Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 88) sorted by relevance

1234

/build/make/tools/
Dfindleaves.py41 while i < len(dirs):
59 while i < len(dirs):
92 while i<len(argv) and len(argv[i])>2 and argv[i][0:2] == "--":
96 mindepth = int(arg[len("--mindepth="):])
100 p = arg[len("--prune="):]
101 if len(p) == 0:
105 d = arg[len("--dir="):]
106 if len(d) == 0:
112 if len(dirlist) == 0: # backwards compatibility
113 if len(argv)-i < 2: # need both <dirlist> and <filename>
[all …]
Dauto_gen_test_config.py45 if len(argv) != 4 and len(argv) != 6:
58 extra_configs = '\n'.join(argv[5].split('\\n')) if len(argv) == 6 else ''
63 if len(instrumentation_elements) != 1 or len(manifest_elements) != 1:
Dfat16copy.py123 self.idx += len(got)
129 self.idx += len(data)
142 return name[:8 - len(postfix)] + postfix
194 if len(parts) == 1:
209 if len(name) <= 8 and len(ext) <= 3 and not '.' in name:
269 assert len(name_data) == 11, "Name data should be exactly 11 characters"
312 if not self.ext or len(self.ext) == 0:
342 if len(self.longname) == 0:
346 long_name_padding = "\0" * (26 - (len(encoded_long_name) % 26))
350 len(padded_long_name), 26)]
[all …]
Dparsedeps.py96 if len(line) > 0:
109 print "Read %d dependencies. %d targets." % (deps.count, len(deps.lines))
116 if len(split) == 2 and cmd == "dep":
122 elif len(split) == 3 and cmd == "trace":
132 if len(t.tgt) > width:
133 width = len(t.tgt)
137 print t.tgt, " " * (width-len(t.tgt)), " #", t.pos
Dtest_post_process_props.py77 self.assertEqual(4, len(self.props.get_all_props()))
97 self.assertEqual(2, len(self.props.get_props("foo")))
102 self.assertEqual(5, len(self.props.get_all_props()))
111 self.assertEqual(4, len(self.props.get_all_props()))
122 self.assertEqual(5, len(self.props.get_all_props()))
134 self.assertEqual(3, len(self.props.get_all_props()))
142 self.assertEqual(3, len(self.props.get_all_props()))
153 self.assertEqual(3, len(self.props.get_all_props()))
155 self.assertEqual(1, len(self.props.get_props("foo")))
180 self.assertEqual(1, len(props.get_props("qux")))
Dgenerate-self-extracting-archive.py111 if len(start_str) != _MAX_OFFSET_WIDTH + 1:
115 if len(size_str) != _MAX_OFFSET_WIDTH:
122 if len(argv) != 5:
155 header_size = len(header_for_size.encode('utf-8'))
Dsoong_to_convert.py93 if len(deps[module]) != 0:
97 if len(problems[module]) > 0:
109 count_width = len(count_header)
130 if len(sys.argv) != 2:
Dfilter-product-graph.py46 if not (len(sys.argv) == 2 and sys.argv[1] == "--all"):
51 while prevLen != len(included):
52 prevLen = len(included)
Djava-layers.py100 if len(parts) > len(pkg):
103 for i in range(0, len(parts)):
129 lines = [(n,s) for (n,s) in lines if len(s) > 0]
133 if len(words) == 1:
151 elif len(words) == 2:
176 if len(fn) != 0])
238 if len(argv) < 3:
Djava-event-log-tags.py54 if len(args) != 1 and len(args) != 2:
55 print "need one or two input files, not %d" % (len(args),)
62 if len(args) > 1:
Dfileslist_util.py47 if len(opts) == 0:
52 if len(args) == 0:
/build/bazel/examples/android_app/java/com/app/
Djni_dep.cc23 int len = strlen(str); in NewStringLatin1() local
25 str1 = reinterpret_cast<jchar *>(malloc(len * sizeof(jchar))); in NewStringLatin1()
27 for (int i = 0; i < len; i++) { in NewStringLatin1()
30 jstring result = env->NewString(str1, len); in NewStringLatin1()
/build/soong/scripts/
Dmanifest_fixer.py89 if len(uses_sdk) > 1:
91 elif len(uses_sdk) == 1:
144 application = elems[0] if len(elems) == 1 else None
145 if len(elems) > 1:
189 application = elems[0] if len(elems) == 1 else None
190 if len(elems) > 1:
237 application = elems[0] if len(elems) == 1 else None
238 if len(elems) > 1:
257 application = elems[0] if len(elems) == 1 else None
258 if len(elems) > 1:
[all …]
/build/make/tools/signapk/src/com/android/signapk/
DCountingOutputStream.java45 public void write(byte[] b, int off, int len) throws IOException { in write() argument
46 mBase.write(b, off, len); in write()
47 mWrittenBytes += len; in write()
/build/make/tools/product_config/
Dinherit_tree.py23 if len(argv) != 2:
33 if len(line) < 3 or line[0] != "phase" or line[1] != "PRODUCTS":
38 if len(line) < 3 or line[0] != "inherit":
/build/soong/python/tests/
Dpy-cmd_test.py33 assert_equal("len(sys.argv)", len(sys.argv), 3)
37 assert_equal("len(sys.argv)", len(sys.argv), 3)
41 assert_equal("len(sys.argv)", len(sys.argv), 1)
59 assert_equal("len(sys.path)", len(sys.path), 4)
65 assert_equal("len(sys.path)", len(sys.path), 8)
Dpar_test.py42 assert_equal("len(sys.path)", len(sys.path), 3)
48 assert_equal("len(sys.argv)", len(sys.argv), 3)
52 assert_equal("len(sys.argv)", len(sys.argv), 1)
/build/make/tools/atree/
Dfiles.cpp89 size_t len = p-q; in split_line() local
90 if (len > 2 && *start == '"' && start[len - 1] == '"') { in split_line()
92 len -= 2; in split_line()
94 out->push_back(string(start, len)); in split_line()
104 size_t len = p-q; in split_line() local
105 if (len > 2 && *start == '"' && start[len - 1] == '"') { in split_line()
107 len -= 2; in split_line()
109 out->push_back(string(start, len)); in split_line()
246 int len = strlen(p); in read_list_file() local
247 q = p + len + 1; in read_list_file()
/build/make/core/
Dchecktree62 if len(lines) >= 1:
64 if len(lines) >= 1:
69 if len(sys.argv) == 1:
71 elif len(sys.argv) == 2 and sys.argv[1] == "-a":
/build/make/tools/releasetools/
Dota_package_parser.py80 assert len(lines) >= 4, "{} is too short; Transfer list expects at least" \
81 "4 lines, it has {}".format(name, len(lines))
92 assert len(cmd_list) == 2, "command format error: {}".format(line)
98 assert len(cmd_list) >= 5, "command format error: {}".format(line)
110 assert len(cmd_list) >= 8, "command format error: {}".format(line)
120 assert len(cmd_list) == 3, "command format error: {}".format(line)
125 assert len(cmd_list) == 2, "command format error: {}".format(line)
Drangelib.py39 assert len(data) % 2 == 0
46 for i in range(0, len(self.data), 2):
100 assert raw[0] == len(raw[1:]), "Invalid raw string."
147 for i in range(0, len(self.data), 2):
157 return str(len(self.data)) + "," + ",".join(str(i) for i in self.data)
294 for i in range(0, len(self.data), 2):
Dvalidate_target_files.py50 file_size = len(file_data)
112 input_tmp, which.upper(), entry[(len(prefix) + 1):])
179 assert len(lines) >= 10
183 assert len(check_partition.split(':')) == 4
187 assert len(lines) == 10, "Invalid line count: {}".format(lines)
204 assert len(lines) == 11, "Invalid line count: {}".format(lines)
213 assert len(source_info) == 4, \
231 assert len(recovery_info) == 4, \
/build/make/tools/ziptime/
DZipFile.cpp212 status_t ZipFile::EndOfCentralDir::readBuf(const uint8_t* buf, int len) in readBuf() argument
216 if (len < kEOCDLen) { in readBuf()
219 kEOCDLen, len); in readBuf()
/build/make/tools/warn/
Dwarn_common.py195 link_path = link_path[len('/chrome_root'):] # remove chrome_root
198 link_path = link_path[len('/chrome_root'):] # remove chrome_root
223 for idx in reversed(range(2, len(parts))):
256 if len(root_path) > 2 and root_path[len(root_path) - 1] == '/':
264 return path[1 + len(android_root):]
281 return path[idx + len('chrome_root/'):]
520 message_idx = len(warning_messages)
522 link_idx = len(warning_links)
/build/soong/cc/ndk_api_coverage_parser/
Dtest_ndk_api_coverage_parser.py49 if len(elem1) != len(elem2):

1234