Home
last modified time | relevance | path

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

12

/build/tools/
Dfindleaves.py40 while i < len(dirs):
73 while i<len(argv) and len(argv[i])>2 and argv[i][0:2] == "--":
77 mindepth = int(arg[len("--mindepth="):])
81 p = arg[len("--prune="):]
82 if len(p) == 0:
88 if len(argv)-i < 2: # need both <dirlist> and <filename>
Dpost_process_props.py63 if len(key) > PROP_NAME_MAX:
67 sys.stderr.write("%s (%d)\n" % (key, len(key)))
68 if len(value) > PROP_VALUE_MAX:
74 sys.stderr.write("%s (%d)\n" % (value, len(value)))
81 sys.stderr.write("%s (%d)\n" % (value, len(value)))
103 return line[len(key):]
108 for i in range(0,len(self.lines)):
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
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:
Dfilter-product-graph.py46 if not (len(sys.argv) == 2 and sys.argv[1] == "--all"):
51 while prevLen != len(included):
52 prevLen = len(included)
Dwarn.py7 if len(sys.argv) == 1:
442 unknown += len(i['members'])
444 known += len(i['members'])
470 if len(i['members']) == 0 and i['severity'] != severity.SKIP:
481 if cat['severity'] != severity.SKIP and len(cat['members']) != 0:
482 header = [descriptionfor(cat),str(len(cat['members'])) + ' occurences:']
Dgenerate-notice-files.py55 if len(args) != 4:
57 and the directory containing notices, not %d""" % (len(args),)
62 return ("%02x"*len(s)) % tuple(map(ord, s))
Dproduct_debug.py29 if len(words) == 1:
55 for i in range(0,len(groups)/2):
Devent_log_tags.py70 if len(parts) < 2:
88 if len(parts) == 3:
Djava-event-log-tags.py54 if len(args) != 2:
55 print "need exactly two input files, not %d" % (len(args),)
Dfileslist.py28 base = len(root[:root.rfind(os.path.sep)])
Ddiff_package_overlays.py40 if len(argv) != 4:
Dcheck_radio_versions.py25 if len(sys.argv) < 2:
/build/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/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/tools/releasetools/
Dblockimgdiff.py93 partial = len(self.data) % self.blocksize
104 assert len(self.data) % self.blocksize == 0
106 self.total_blocks = len(self.data) / self.blocksize
149 self.id = len(by_id)
439 tgt_size += len(p)
486 size = len(patch)
507 xf.patch_len = len(patch)
509 p += len(patch)
572 assert len(L) == len(self.transfers)
733 x.order = len(new_transfers)
Dcheck_target_files_signatures245 displayname = fullname[len(d)+1:]
250 self.max_pkg_len = max(self.max_pkg_len, len(apk.package))
251 self.max_fn_len = max(self.max_fn_len, len(apk.filename))
305 order = [(-len(v), k) for (k, v) in by_cert.iteritems()]
391 if len(args) != 1:
425 print "%d problem(s) found:\n" % (len(PROBLEMS),)
Drangelib.py35 for i in range(0, len(self.data), 2):
109 for i in range(0, len(self.data), 2):
118 return str(len(self.data)) + "," + ",".join(str(i) for i in self.data)
Dedify_generator.py56 if len(parts) == 1:
260 if len(patchpairs) % 2 != 0 or len(patchpairs) == 0:
264 for i in range(0, len(patchpairs), 2):
Dcommon.py211 if not (3 <= len(pieces) <= 4):
220 if len(pieces) >= 4:
223 if len(pieces) >= 5:
247 if len(pieces) != 5:
546 size = len(data)
570 public_key_suffix_len = len(OPTIONS.public_key_suffix)
571 private_key_suffix_len = len(OPTIONS.private_key_suffix)
881 self.size = len(data)
982 print len(diffs), "diffs to compute"
1011 dur, len(patch), tf.size, 100.0 * len(patch) / tf.size, name)
Dsign_target_files_apks149 maxsize = max([len(os.path.basename(i.filename))
311 assert len(pieces) == 5
319 if len(value) > 1 and value[-1].endswith("-keys"):
465 if len(args) != 2:
Dota_from_target_files387 if oem_props is None or len(oem_props) == 0:
472 if oem_props is not None and len(oem_props) > 0:
687 while len(dirs) > 0:
759 if oem_props is not None and len(oem_props) > 0:
830 target_boot.size, source_boot.size, len(d))
968 if d is None or len(d) > tf.size * OPTIONS.patch_threshold or \
1032 if len(self.renames) > 0:
1062 if oem_props is not None and len(oem_props) > 0:
1182 target_boot.size, source_boot.size, len(d))
1452 if len(args) != 2:
/build/tools/signapk/
DSignApk.java367 public void write(byte[] b, int off, int len) throws IOException { in write() argument
368 super.write(b, off, len); in write()
369 mCount += len; in write()
577 public void write(byte[] b, int off, int len) throws IOException { in write() argument
580 footer.write(b, off, len); in write()
584 out.write(b, off, len); in write()
585 tee.write(b, off, len); in write()
/build/core/tasks/check_boot_jars/
Dcheck_boot_jars.py65 if len(argv) < 2:
/build/tools/zipalign/
DZipFile.cpp1297 status_t ZipFile::EndOfCentralDir::readBuf(const unsigned char* buf, int len) in readBuf() argument
1302 if (len < kEOCDLen) { in readBuf()
1305 kEOCDLen, len); in readBuf()
1324 if (kEOCDLen + mCommentLen > len) { in readBuf()
1326 kEOCDLen, mCommentLen, len); in readBuf()

12