Home
last modified time | relevance | path

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

123

/build/kati/testcase/tools/
Dfindleaves.py40 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/
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 …]
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
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 …]
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:
Dauto_gen_test_config.py44 if len(argv) != 4:
58 if len(instrumentation_elements) != 1 or len(manifest_elements) != 1:
Dpost_process_props.py67 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)):
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/kati/
Dfile.cc41 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()
Dio.cc41 int len = LoadInt(fp); in LoadString() local
42 if (len < 0) in LoadString()
44 s->resize(len); in LoadString()
Dstring_piece.h70 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()
Dstring_piece.cc36 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 ==()
Dstrutil.cc40 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/
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/soong/scripts/
Dmanifest_fixer.py140 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/
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/
Dvalidate_target_files.py49 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, \
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):
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):
Dsign_apex.py52 a = a[:-len(DEFAULT_CONTAINER_KEY_SUFFIX)]
72 if (len(args) != 2 or 'container_key' not in options or
/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()

123