/build/kati/testcase/tools/ |
D | findleaves.py | 40 while i < len(dirs): 79 while i<len(argv) and len(argv[i])>2 and argv[i][0:2] == "--": 83 mindepth = int(arg[len("--mindepth="):]) 87 p = arg[len("--prune="):] 88 if len(p) == 0: 92 d = arg[len("--dir="):] 93 if len(p) == 0: 99 if len(dirlist) == 0: # backwards compatibility 100 if len(argv)-i < 2: # need both <dirlist> and <filename> 105 if len(argv)-i < 1: # need <filename>
|
/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 | 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 | 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 | 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 | auto_gen_test_config.py | 44 if len(argv) != 4: 58 if len(instrumentation_elements) != 1 or len(manifest_elements) != 1:
|
D | post_process_props.py | 67 if len(value) > PROP_VALUE_MAX and not key.startswith("ro."): 71 sys.stderr.write("%s (%d)\n" % (value, len(value))) 93 return line[len(key):] 98 for i in range(0,len(self.lines)):
|
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 | 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:
|
/build/kati/ |
D | file.cc | 41 size_t len = st.st_size; in Makefile() local 43 buf_.resize(len); in Makefile() 45 ssize_t r = HANDLE_EINTR(read(fd, &buf_[0], len)); in Makefile() 46 if (r != static_cast<ssize_t>(len)) { in Makefile() 49 ERROR("Unexpected read length=%zd expected=%zu", r, len); in Makefile()
|
D | io.cc | 41 int len = LoadInt(fp); in LoadString() local 42 if (len < 0) in LoadString() 44 s->resize(len); in LoadString()
|
D | string_piece.h | 70 StringPiece(const char* offset, size_type len) : ptr_(offset), length_(len) {} in StringPiece() argument 85 void set(const char* data, size_type len) { in set() argument 87 length_ = len; in set() 93 void set(const void* data, size_type len) { in set() argument 95 length_ = len; in set()
|
D | string_piece.cc | 36 size_t len = x.size(); in operator ==() local 37 if (len >= sizeof(uint64_t)) { in operator ==() 38 len -= sizeof(uint64_t); in operator ==() 39 uint64_t xt = *reinterpret_cast<const uint64_t*>(x.data() + len); in operator ==() 40 uint64_t yt = *reinterpret_cast<const uint64_t*>(y.data() + len); in operator ==() 44 return StringPiece::wordmemcmp(x.data(), y.data(), len) == 0; in operator ==()
|
D | strutil.cc | 40 int len, in SkipUntilSSE42() argument 44 len &= ~15; in SkipUntilSSE42() 46 while (i < len) { in SkipUntilSSE42() 49 ranges16, ranges_size, b16, len - i, in SkipUntilSSE42() 56 return len; in SkipUntilSSE42() 62 int len, in SkipUntil() argument 68 i += SkipUntilSSE42(s, len, ranges, ranges_size); in SkipUntil() 70 for (; i < len; i++) { in SkipUntil() 78 int len = static_cast<int>(in->size()); in operator ++() local 79 for (s = i + 1; s < len; s++) { in operator ++() [all …]
|
/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/scripts/ |
D | manifest_fixer.py | 140 indent = text[:len(text)-len(text.lstrip())] 162 if len(uses_sdk) > 1: 164 elif len(uses_sdk) == 1: 216 application = elems[0] if len(elems) == 1 else None 217 if len(elems) > 1: 263 application = elems[0] if len(elems) == 1 else None 264 if len(elems) > 1: 283 application = elems[0] if len(elems) == 1 else None 284 if len(elems) > 1: 305 application = elems[0] if len(elems) == 1 else None [all …]
|
/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 | validate_target_files.py | 49 file_size = len(file_data) 109 input_tmp, which.upper(), entry[(len(prefix) + 1):]) 168 assert len(lines) >= 10 172 assert len(check_partition.split(':')) == 4 176 assert len(lines) == 10, "Invalid line count: {}".format(lines) 193 assert len(lines) == 11, "Invalid line count: {}".format(lines) 202 assert len(source_info) == 4, \ 220 assert len(recovery_info) == 4, \
|
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): 97 assert raw[0] == len(raw[1:]), "Invalid raw string." 144 for i in range(0, len(self.data), 2): 154 return str(len(self.data)) + "," + ",".join(str(i) for i in self.data) 291 for i in range(0, len(self.data), 2):
|
D | sign_apex.py | 52 a = a[:-len(DEFAULT_CONTAINER_KEY_SUFFIX)] 72 if (len(args) != 2 or 'container_key' not in options or
|
/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()
|