Home
last modified time | relevance | path

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

1234

/development/scripts/
Dboardconfig_usage_analysis.py74 out_system_path = os.path.join(OUT[len(TOP) + 1:], 'system')
114 variables[variable].add(board_config_mk[len(TOP) + 1:])
132 usage.add(makefile[len(TOP) + 1:])
153 print('sfe_makefiles', len(sfe_makefiles))
154 print('system_module_makefiles', len(system_module_makefiles))
155 print('board_config_mks', len(board_config_mks))
156 print('variables', len(variables))
179 if len(usage) == 0:
183 str(len(locations)),
184 str(len(usage_in_sfe)),
[all …]
Dget_rust_pkg.py88 print("INFO: now {} in {}:{}".format(len(deps), kind, set2list(deps)))
217 count1 = (len(build_deps1), len(dev_deps1), base1)
218 count2 = (len(build_deps2), len(dev_deps2), base2)
278 max_length = functools.reduce(lambda a, t: max(a, len(t[0])), found_pkgs, 1)
299 k, pkg, len(build_deps), len(dev_deps), len(all_build_deps),
300 len(all_dev_deps)))
308 len(all_pkgs), set2list(all_pkgs)))
312 len(deps), kind, set2list(deps)))
366 echo(args, pattern.format(len(core_pkgs), set2list(core_pkgs)))
369 num_core_pkgs = len(core_pkgs)
[all …]
Dsymbol.py95 while len(self._lru) >= self._PIPE_MAX_OPEN:
269 for x in range(len(addrs)):
346 for x in range(len(addrs)):
422 if addr_index >= len(addrs):
446 if toolchains and len(toolchains) != 1:
487 for i in reversed(range(len(result))): # Iterate backward to make cutting easier.
490 if len(nested) == 0:
494 if len(nested) == 0 or {')':'(', '>':'<'}[nested.pop()] != c:
496 if len(nested) == 0 and c == '(' and (end - i) > 2:
498 if len(nested) > 0:
[all …]
Dadd3prf_test.py30 self.assertEqual(len(licenses), 2)
38 self.assertEqual(len(licenses), 1)
46 self.assertEqual(len(licenses), 1)
Daday18 if len(sys.argv) != 2:
/development/tools/line_endings/
Dline_endings.c47 int len; in main() local
58 len = lseek(fd, 0, SEEK_END); in main()
61 if (len > 0) { in main()
66 while (len > 0) { in main()
73 ssize_t amt2 = len < BUFSIZE ? len : BUFSIZE; in main()
88 len -= amt2; in main()
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/
DCardService.java141 int len = s.length(); in HexStringToByteArray() local
142 if (len % 2 == 1) { in HexStringToByteArray()
145 byte[] data = new byte[len / 2]; // Allocate 1 byte per 2 hex characters in HexStringToByteArray()
146 for (int i = 0; i < len; i += 2) { in HexStringToByteArray()
/development/vndk/tools/sourcedr/blueprint/
Danalyze_manifest_split.py152 root_prefix_len = len(root_dir) + 1
170 if (int(len(modules.system_only) > 0) +
171 int(len(modules.vendor_only) > 0) +
172 int(len(modules.both) > 0)) <= 1:
187 print(project, len(modules.system_only), len(modules.vendor_only),
188 len(modules.both))
/development/tools/axl/
Dchewperf.py16 for x in range(len(rawLines)):
79 for x in range(len(buckets.items())):
80 window[x % len(window)] = buckets.items()[x][1]
81 print "%s\t%s" % (buckets.items()[x][0], sum(window) / len(window))
Daxl.py36 self.log("BaseProtocol.write()", len(data), data)
40 self.log("BaseProtocol.dataReceived()", len(data), data)
51 self.write("Content-Length: %d\r\n\r\n" % len(response))
52 if len(response) > 0:
192 self.count += len(data)
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DEncodedStringValue.java191 int len = mData.length; in clone() local
192 byte[] dstBytes = new byte[len]; in clone()
193 System.arraycopy(mData, 0, dstBytes, 0, len); in clone()
239 int len = list.size(); in extract() local
240 if (len > 0) { in extract()
241 return list.toArray(new EncodedStringValue[len]); in extract()
/development/vndk/tools/sourcedr/blueprint/tests/
Dtest_evaluate_default.py41 self.assertEqual(len(result), 3)
55 self.assertEqual(len(result), 1)
56 self.assertEqual(len(result['c']), 2)
Dtest_parser.py36 self.assertEqual(len(parser.var_defs), 1)
37 self.assertEqual(len(parser.vars), 1)
43 self.assertEqual(len(parser.var_defs), 2)
44 self.assertEqual(len(parser.vars), 1)
/development/tools/repo_diff/service/repodiff/tools/
Dupgrade_db.py42 if len(lines) == 3:
57 lambda fname: "upgrade" in fname and fname[:len(db_version)] > db_version,
75 lambda fname: "downgrade" in fname and fname[:len(current_db_version)] < current_db_version,
/development/samples/ApiDemos/src/com/example/android/apis/content/
DTextUndoActivity.java106 int len = str.length(); in addSpaces() local
107 for (int i = 0; i < len; i += 4) { in addSpaces()
108 if (i + 4 < len) { in addSpaces()
113 builder.append(str.subSequence(i, len)); in addSpaces()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DMorseCodeConverter.java95 int len = 1; in pattern() local
101 len++; in pattern()
106 len++; in pattern()
109 len += pattern(c).length; in pattern()
116 long[] result = new long[len+1]; in pattern()
/development/tools/repo_pull/
Drepo_patch.py60 num_changes = len(change_lists)
61 num_changes_width = len(str(num_changes))
/development/vndk/tools/image-diff-tool/
Ddiff.py115 return (len(file_digest_respect_ignore) == len(all_targets) and
116 len(set(file_digest_respect_ignore)) == 1)
162 return len(sha1_target_map) == 1 and len(targets) == len(all_targets)
223 if len(args.target) < 2:
/development/samples/browseable/CardReader/src/com.example.android.cardreader/
DLoyaltyCardReader.java140 int len = s.length(); in HexStringToByteArray() local
141 byte[] data = new byte[len / 2]; in HexStringToByteArray()
142 for (int i = 0; i < len; i += 2) { in HexStringToByteArray()
/development/tools/logblame/
Dlogs.py57 return 32 + 8 + len(self.tag) + 1 + len(self.text) + 1
100 if len(line) > 0 and line[-1] == '\n':
158 if not len(line):
172 if len(logLine.text):
/development/vndk/tools/
Dsystem_image_diff.py44 system_prefix_len = len(system_prefix) + 1
60 system_prefix_len = len(system_prefix) + 1
91 system_prefix_len = len(system_prefix) + 1
99 if len(paths) == 1:
/development/tools/otagui/
Dweb_server.py144 file_length -= len(upper_boundary) * 2 + 4
145 file_length -= len(self.rfile.readline())
146 file_length -= len(self.rfile.readline())
147 file_length -= len(self.rfile.readline())
203 if len(argv) == 2:
/development/samples/SpellChecker/HelloSpellChecker/src/com/example/android/hellospellchecker/
DHelloSpellCheckerActivity.java92 final int len = si.getSuggestionsCount(); in dumpSuggestionsInfoInternal() local
94 for (int j = 0; j < len; ++j) { in dumpSuggestionsInfoInternal()
100 sb.append(" (" + len + ")"); in dumpSuggestionsInfoInternal()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DBitmapDecode.java54 int len; in streamToBytes() local
56 while ((len = is.read(buffer)) >= 0) { in streamToBytes()
57 os.write(buffer, 0, len); in streamToBytes()
/development/samples/BackupRestore/src/com/example/android/backuprestore/
DExampleAgent.java129 int len = buffer.length; in onBackup() local
130 data.writeEntityHeader(APP_DATA_KEY, len); in onBackup()
131 data.writeEntityData(buffer, len); in onBackup()

1234