/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/comparisons/ |
D | systemtest.py | 31 prefix = sys.argv[1] 33 prefix = '' 34 if prefix: 35 os.chdir(prefix) 36 if prefix[-1:] != '/': prefix = prefix + '/' 37 reportboguslinks(prefix) 41 def reportboguslinks(prefix): argument 45 print "%s%s: can't list: %s" % (prefix, '.', msg) 54 print "%s%s: can't stat: %s" % (prefix, name, msg) 61 (prefix, name, os.readlink(name)) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/bgen/bgen/ |
D | bgenObjectDefinition.py | 12 def __init__(self, name, prefix, itselftype): argument 22 GeneratorGroup.__init__(self, prefix or name) 89 self.prefix, self.typename, self.typename) 94 self.static, self.prefix, self.prefix, self.basechain) 101 Output("%sPyObject *%s_New(%s%s %sitself)", self.static, self.prefix, 122 Output("%sint %s_Convert(PyObject *v, %s *p_itself)", self.static, self.prefix, 126 Output("if (!%s_Check(v))", self.prefix) 140 Output("static void %s_dealloc(%s *self)", self.prefix, self.objecttype) 160 Output("static PyObject *%s_getattr(%s *self, char *name)", self.prefix, self.objecttype) 168 self.prefix) [all …]
|
D | bgenGeneratorGroup.py | 5 def __init__(self, prefix): argument 6 self.prefix = prefix 14 g.setprefix(self.prefix) 21 Output("static PyMethodDef %s_methods[] = {", self.prefix)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/ |
D | fix_idioms.py | 103 x.prefix = u"" 104 T.prefix = u" " 107 test.prefix = u" " 109 test.prefix = node.prefix 114 one.replace(Name(u"True", prefix=one.prefix)) 123 list_call.replace(Name(u"sorted", prefix=list_call.prefix)) 126 new.prefix = u"" 128 prefix=simple_expr.prefix)) 133 btwn = sort_stmt.prefix 141 prefix_lines = (btwn.rpartition(u"\n")[0], next_stmt[0].prefix) [all …]
|
D | fix_ws_comma.py | 29 prefix = child.prefix 30 if prefix.isspace() and u"\n" not in prefix: 31 child.prefix = u"" 35 prefix = child.prefix 36 if not prefix: 37 child.prefix = u" "
|
D | fix_itertools.py | 29 prefix = None 35 prefix = it.prefix 42 prefix = prefix or func.prefix 43 func.replace(Name(func.value[1:], prefix=prefix))
|
D | fix_apply.py | 37 prefix = node.prefix 44 func.prefix = "" 46 args.prefix = "" 49 kwds.prefix = "" 55 l_newargs[-2].prefix = u" " # that's the ** token 59 return Call(func, l_newargs, prefix=prefix)
|
D | fix_raise.py | 58 exc.prefix = u" " 63 new.prefix = node.prefix 70 val.prefix = u"" 75 tb.prefix = u"" 85 new.prefix = node.prefix 90 prefix=node.prefix)
|
D | fix_urllib.py | 83 pref = import_mod.prefix 89 names.extend([Name(name[0], prefix=pref), Comma()]) 90 names.append(Name(MAPPING[import_mod.value][-1][0], prefix=pref)) 99 pref = mod_member.prefix 113 mod_member.replace(Name(new_name, prefix=pref)) 141 def handle_name(name, prefix): argument 143 kids = [Name(name.children[0].value, prefix=prefix), 147 return [Name(name.value, prefix=prefix)] 156 if not first or node.parent.prefix.endswith(indentation): 157 new.prefix = indentation [all …]
|
D | fix_sys_exc.py | 26 call = Call(Name(u"exc_info"), prefix=sys_attr.prefix) 28 attr[1].children[0].prefix = results["dot"].prefix 30 return Node(syms.power, attr, prefix=node.prefix)
|
D | fix_set_literal.py | 42 literal[-1].prefix = items.next_sibling.prefix 44 maker.prefix = node.prefix 50 maker.children[-1].prefix = n.prefix
|
D | fix_print.py | 45 prefix=bare_print.prefix)) 65 l_args[0].prefix = u"" 74 n_stmt.prefix = node.prefix 79 n_expr.prefix = u"" 86 n_argument.prefix = u" "
|
D | fix_has_key.py | 82 prefix = node.prefix 95 before.prefix = u" " 96 n_op = Name(u"in", prefix=u" ") 98 n_not = Name(u"not", prefix=u" ") 109 new.prefix = prefix
|
D | fix_tuple_params.py | 70 arg.prefix = u"" 73 n.prefix = u" " 98 new_lines[0].prefix = u" " 100 new_lines[0].prefix = indent 107 suite[0].children[i].prefix = indent 118 inner.prefix = u" " 126 new_param = Name(tup_name, prefix=u" ") 133 new.prefix = n.prefix 157 def map_to_index(param_list, prefix=[], d=None): argument 165 d[obj] = prefix + trailer
|
D | fix_next.py | 55 attr.replace(Name(u"__next__", prefix=attr.prefix)) 58 base[0].prefix = u"" 59 node.replace(Call(Name(u"next", prefix=node.prefix), base)) 61 n = Name(u"__next__", prefix=name.prefix)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | getpath.c | 128 static char prefix[MAXPATHLEN+1]; variable 270 strncpy(prefix, home, MAXPATHLEN); in search_for_prefix() 271 delim = strchr(prefix, DELIM); in search_for_prefix() 274 joinpath(prefix, lib_python); in search_for_prefix() 275 joinpath(prefix, LANDMARK); in search_for_prefix() 280 strcpy(prefix, argv0_path); in search_for_prefix() 281 joinpath(prefix, "Modules/Setup"); in search_for_prefix() 282 if (isfile(prefix)) { in search_for_prefix() 285 strcpy(prefix, argv0_path); in search_for_prefix() 286 joinpath(prefix, vpath); in search_for_prefix() [all …]
|
/device/google/bramble/vibrator/drv2624/tests/ |
D | test-hwcal.cpp | 81 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 85 EXPECT_TRUE(SetProperty(prefix + "closeloop.threshold", std::to_string(expect))); in TEST_F() 94 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 98 EXPECT_TRUE(SetProperty(prefix + "closeloop.threshold", std::string())); in TEST_F() 107 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 111 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", "0")); in TEST_F() 120 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 124 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", "1")); in TEST_F() 133 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 137 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", std::string())); in TEST_F() [all …]
|
/device/google/redfin/vibrator/drv2624/tests/ |
D | test-hwcal.cpp | 81 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 85 EXPECT_TRUE(SetProperty(prefix + "closeloop.threshold", std::to_string(expect))); in TEST_F() 94 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 98 EXPECT_TRUE(SetProperty(prefix + "closeloop.threshold", std::string())); in TEST_F() 107 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 111 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", "0")); in TEST_F() 120 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 124 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", "1")); in TEST_F() 133 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 137 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", std::string())); in TEST_F() [all …]
|
/device/google/barbet/vibrator/drv2624/tests/ |
D | test-hwcal.cpp | 81 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 85 EXPECT_TRUE(SetProperty(prefix + "closeloop.threshold", std::to_string(expect))); in TEST_F() 94 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 98 EXPECT_TRUE(SetProperty(prefix + "closeloop.threshold", std::string())); in TEST_F() 107 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 111 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", "0")); in TEST_F() 120 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 124 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", "1")); in TEST_F() 133 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 137 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", std::string())); in TEST_F() [all …]
|
/device/google/sunfish/vibrator/drv2624/tests/ |
D | test-hwcal.cpp | 82 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 86 EXPECT_TRUE(SetProperty(prefix + "closeloop.threshold", std::to_string(expect))); in TEST_F() 95 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 99 EXPECT_TRUE(SetProperty(prefix + "closeloop.threshold", std::string())); in TEST_F() 108 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 112 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", "0")); in TEST_F() 121 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 125 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", "1")); in TEST_F() 134 std::string prefix{PROPERTY_PREFIX}; in TEST_F() local 138 EXPECT_TRUE(SetProperty(prefix + "config.dynamic", std::string())); in TEST_F() [all …]
|
/device/generic/goldfish/radio/ril/ |
D | misc.c | 21 int strStartsWith(const char *line, const char *prefix) in strStartsWith() argument 23 for ( ; *line != '\0' && *prefix != '\0' ; line++, prefix++) { in strStartsWith() 24 if (*line != *prefix) { in strStartsWith() 29 return *prefix == '\0'; in strStartsWith()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | MimeWriter.py | 96 def addheader(self, key, value, prefix=0): argument 112 if prefix: 128 def startbody(self, ctype, plist=[], prefix=1): argument 140 self.addheader("Content-Type", ctype, prefix=prefix) 145 def startmultipartbody(self, subtype, boundary=None, plist=[], prefix=1): argument 161 prefix=prefix)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/ |
D | getpath.c | 86 static char prefix[MAXPATHLEN+1]; variable 465 strncpy(prefix, volume_name, MAXPATHLEN); in calculate_path() 466 joinpath(prefix, PREFIX); in calculate_path() 467 joinpath(prefix, lib_python); in calculate_path() 473 strncpy(zip_path, prefix, MAXPATHLEN); in calculate_path() 499 reduce(prefix); in calculate_path() 500 reduce(prefix); in calculate_path() 503 if (!prefix[0]) { in calculate_path() 504 strcpy(prefix, volume_name); in calculate_path() 506 bufsz = strlen(prefix); in calculate_path() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/ |
D | fixer_util.py | 32 source.prefix = u" " 36 target + [Leaf(token.EQUAL, u"=", prefix=u" ")] + source) 38 def Name(name, prefix=None): argument 40 return Leaf(token.NAME, name, prefix=prefix) 61 def Call(func_name, args=None, prefix=None): argument 64 if prefix is not None: 65 node.prefix = prefix 76 def Number(n, prefix=None): argument 77 return Leaf(token.NUMBER, n, prefix=prefix) 85 def String(string, prefix=None): argument [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Efi/ |
D | getpath.c | 80 static char prefix[MAXPATHLEN+1]; variable 534 strncpy(prefix, volume_name, MAXPATHLEN); in calculate_path() 535 joinpath(prefix, PREFIX); in calculate_path() 536 joinpath(prefix, lib_python); in calculate_path() 542 strncpy(zip_path, prefix, MAXPATHLEN); in calculate_path() 568 reduce(prefix); in calculate_path() 569 reduce(prefix); in calculate_path() 572 if (!prefix[0]) { in calculate_path() 573 strcpy(prefix, volume_name); in calculate_path() 575 bufsz = strlen(prefix); in calculate_path() [all …]
|