/build/make/tools/ |
D | findleaves.py | 41 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 …]
|
D | auto_gen_test_config.py | 45 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:
|
D | fat16copy.py | 123 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 …]
|
D | parsedeps.py | 96 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
|
D | test_post_process_props.py | 77 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")))
|
D | generate-self-extracting-archive.py | 111 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'))
|
D | soong_to_convert.py | 93 if len(deps[module]) != 0: 97 if len(problems[module]) > 0: 109 count_width = len(count_header) 130 if len(sys.argv) != 2:
|
D | filter-product-graph.py | 46 if not (len(sys.argv) == 2 and sys.argv[1] == "--all"): 51 while prevLen != len(included): 52 prevLen = len(included)
|
D | mk2bp_catalog.py | 29 if len(filename) < len(pattern): 31 for i in range(len(pattern)): 57 for i in range(len(lines)): 143 yield os.path.join(root, filename)[len(cwd) + 1:] 175 len(analysis) 242 if len(soong.deps[m]) == 0: 248 if len(soong.deps[m]) > 0: 263 index = filename.find("/", len(device_prefix)) 266 return filename[len(device_prefix):index] 296 while args.out_dir.endswith("/") and len(args.out_dir) > 1:
|
D | java-layers.py | 100 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:
|
D | java-event-log-tags.py | 54 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:
|
D | fileslist_util.py | 47 if len(opts) == 0: 52 if len(args) == 0:
|
D | post_process_props.py | 60 if len(p.value) > PROP_VALUE_MAX and not p.name.startswith("ro."): 64 sys.stderr.write("%s (%d)\n" % (p.value, len(p.value))) 88 if len(overriding_props) > 1: 107 elif len(overriding_props) == 1: 111 if len(optional_props) > 1:
|
/build/soong/scripts/ |
D | manifest_fixer.py | 89 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 …]
|
D | manifest_check.py | 75 application = elems[0] if len(elems) == 1 else None 76 if len(elems) > 1: 172 if len(uses_sdk) > 1: 174 elif len(uses_sdk) == 0:
|
/build/make/tools/signapk/src/com/android/signapk/ |
D | CountingOutputStream.java | 45 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/soong/python/tests/ |
D | py-cmd_test.py | 33 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)
|
D | par_test.py | 42 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/ |
D | files.cpp | 89 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/ |
D | checktree | 62 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/ |
D | ota_package_parser.py | 80 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)
|
D | rangelib.py | 39 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):
|
D | validate_target_files.py | 50 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/warn/ |
D | warn_common.py | 192 link_path = link_path[len('/chrome_root'):] # remove chrome_root 195 link_path = link_path[len('/chrome_root'):] # remove chrome_root 220 for idx in reversed(range(2, len(parts))): 253 if len(root_path) > 2 and root_path[len(root_path) - 1] == '/': 261 return path[1 + len(android_root):] 278 return path[idx + len('chrome_root/'):] 513 message_idx = len(warning_messages) 515 link_idx = len(warning_links)
|
/build/make/tools/ziptime/ |
D | ZipFile.cpp | 212 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()
|