/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | FileUseMap.java | 102 private void internalAdd(@Nonnull FileUseMapEntry<?> entry) { in internalAdd() argument 103 map.add(entry); in internalAdd() 105 if (entry.isFree()) { in internalAdd() 106 free.add(entry); in internalAdd() 115 private void internalRemove(@Nonnull FileUseMapEntry<?> entry) { in internalRemove() argument 116 boolean wasRemoved = map.remove(entry); in internalRemove() 119 if (entry.isFree()) { in internalRemove() 120 free.remove(entry); in internalRemove() 131 private void add(@Nonnull FileUseMapEntry<?> entry) { in add() argument 132 Preconditions.checkArgument(entry.getStart() < size, "entry.getStart() >= size"); in add() [all …]
|
D | CentralDirectory.java | 261 for (StoredEntry entry : entries) { in makeFromEntries() 262 CentralDirectoryHeader cdr = entry.getCentralDirectoryHeader(); in makeFromEntries() 266 directory.entries.put(cdr.getName(), entry); in makeFromEntries() local 378 StoredEntry entry; in readEntry() local 381 entry = new StoredEntry(centralDirectoryHeader, file, null); in readEntry() 390 entries.put(fileName, entry); in readEntry() 437 for (StoredEntry entry : sorted) { in computeByteRepresentation() 438 cdhs[idx] = entry.getCentralDirectoryHeader(); in computeByteRepresentation()
|
D | ZFileExtension.java | 129 public IOExceptionRunnable added(@Nonnull StoredEntry entry, @Nullable StoredEntry replaced) { in added() argument 143 public IOExceptionRunnable removed(@Nonnull StoredEntry entry) { in removed() argument
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | FatLfnDirectory.java | 93 FatFile getFile(FatDirectoryEntry entry) throws IOException { in getFile() argument 94 FatFile file = entryToFile.get(entry); in getFile() 97 file = FatFile.get(fat, entry); in getFile() 98 entryToFile.put(entry, file); in getFile() 104 FatLfnDirectory getDirectory(FatDirectoryEntry entry) throws IOException { in getDirectory() argument 105 FatLfnDirectory result = entryToDirectory.get(entry); in getDirectory() 108 final ClusterChainDirectory storage = read(entry, fat); in getDirectory() 110 entryToDirectory.put(entry, result); in getDirectory() 136 final FatLfnDirectoryEntry entry = in addFile() local 139 dir.addEntries(entry.compactForm()); in addFile() [all …]
|
D | FatType.java | 51 void writeEntry(byte[] data, int index, long entry) { in writeEntry() argument 55 data[idx] = (byte) (entry & 0xFF); in writeEntry() 56 data[idx + 1] = (byte) ((entry >> 8) & 0x0F); in writeEntry() 58 data[idx] |= (byte) ((entry & 0x0F) << 4); in writeEntry() 59 data[idx + 1] = (byte) ((entry >> 4) & 0xFF); in writeEntry() 78 void writeEntry(byte[] data, int index, long entry) { in writeEntry() argument 80 data[idx] = (byte) (entry & 0xFF); in writeEntry() 81 data[idx + 1] = (byte) ((entry >> 8) & 0xFF); in writeEntry() 101 void writeEntry(byte[] data, int index, long entry) { in writeEntry() argument 103 data[idx] = (byte) (entry & 0xFF); in writeEntry() [all …]
|
D | FatFile.java | 36 private final FatDirectoryEntry entry; field in FatFile 42 this.entry = myEntry; in FatFile() 46 static FatFile get(Fat fat, FatDirectoryEntry entry) in get() argument 49 if (entry.isDirectory()) in get() 50 throw new IllegalArgumentException(entry + " is a directory"); in get() 53 fat, entry.getStartCluster(), entry.isReadonlyFlag()); in get() 55 if (entry.getLength() > cc.getLengthOnDisk()) throw new IOException( in get() 58 return new FatFile(entry, cc); in get() 71 return entry.getLength(); in getLength() 93 this.entry.setStartCluster(chain.getStartCluster()); in setLength() [all …]
|
D | AbstractDirectory.java | 218 final FatDirectoryEntry entry = entries.get(i); in flush() local 220 if (entry != null) { in flush() 221 entry.write(data); in flush() 288 public void removeEntry(FatDirectoryEntry entry) throws IOException { in removeEntry() argument 289 assert (entry != null); in removeEntry() 291 this.entries.remove(entry); in removeEntry() 313 final FatDirectoryEntry entry = FatDirectoryEntry.create(true); in createSub() local 314 entry.setStartCluster(chain.getStartCluster()); in createSub() 324 copyDateTimeFields(entry, dot); in createSub() 332 copyDateTimeFields(entry, dotDot); in createSub() [all …]
|
D | Fat.java | 262 long entry = entries[(int) cluster]; in getNextCluster() local 263 if (isEofCluster(entry)) { in getNextCluster() 266 return entry; in getNextCluster() 425 protected boolean isFreeCluster(long entry) { in isFreeCluster() argument 426 if (entry > Integer.MAX_VALUE) throw new IllegalArgumentException(); in isFreeCluster() 427 return (entries[(int) entry] == 0); in isFreeCluster() 436 protected boolean isReservedCluster(long entry) { in isReservedCluster() argument 437 return fatType.isReservedCluster(entry); in isReservedCluster() 446 protected boolean isEofCluster(long entry) { in isEofCluster() argument 447 return fatType.isEofCluster(entry); in isEofCluster()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/ |
D | SigningExtension.java | 163 @Nonnull StoredEntry entry, @Nullable StoredEntry replaced) { in register() 164 return () -> onZipEntryOutput(entry); in register() 168 public IOExceptionRunnable removed(@Nonnull StoredEntry entry) { in register() 169 String entryName = entry.getCentralDirectoryHeader().getName(); in register() 244 private void onZipEntryOutput(@Nonnull StoredEntry entry) throws IOException { in onZipEntryOutput() argument 246 String entryName = entry.getCentralDirectoryHeader().getName(); in onZipEntryOutput() 249 if (entry.isDeleted()) { in onZipEntryOutput() 256 byte[] entryContents = entry.read(); in onZipEntryOutput() 277 for (StoredEntry entry : zFile.entries()) { in onOutputZipReadyForUpdate() 278 String entryName = entry.getCentralDirectoryHeader().getName(); in onOutputZipReadyForUpdate() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/ |
D | ApiClass.java | 70 ApiElement entry = findByName(mSuperClasses, superClass); in removeSuperClass() local 71 if (entry != null) { in removeSuperClass() 72 mSuperClasses.remove(entry); in removeSuperClass() 74 return entry; in removeSuperClass() 212 Map.Entry<String, ApiElement> entry = it.next(); in removeOverridingMethods() local 213 ApiElement method = entry.getValue(); in removeOverridingMethods() 275 for (Map.Entry<String, ApiElement> entry : hiddenSuper.mMethods.entrySet()) { in inlineFromHiddenSuperClasses() 276 String name = entry.getKey(); in inlineFromHiddenSuperClasses() 277 ApiElement value = entry.getValue(); in inlineFromHiddenSuperClasses() 282 for (Map.Entry<String, ApiElement> entry : hiddenSuper.mFields.entrySet()) { in inlineFromHiddenSuperClasses() [all …]
|
D | AndroidJarReader.java | 127 ZipEntry entry = zis.getNextEntry(); in readJar() local 128 while (entry != null) { in readJar() 129 String name = entry.getName(); in readJar() 177 entry = zis.getNextEntry(); in readJar()
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/ |
D | GameQualificationResultReporter.java | 160 for (Map.Entry<TestDescription, MetricSummary> entry : summaries.entrySet()) { in getInvocationSummary() 161 sb.append(String.format("\n%s Metrics:\n%s\n", entry.getKey(), entry.getValue())); in getInvocationSummary() 179 for (Map.Entry<TestDescription, TestResult> entry in getInvocationSummary() 186 sb.append(entry.getKey().toString()); in getInvocationSummary() 188 sb.append(entry.getValue().getStatus().name()); in getInvocationSummary() 276 for (Map.Entry<TestDescription, TestResult> entry : testResults.entrySet()) { in getTestRunSummary() 277 if (mSuppressPassedTest && TestStatus.PASSED.equals(entry.getValue().getStatus())) { in getTestRunSummary() 280 sb.append(getTestSummary(entry.getKey(), entry.getValue())); in getTestRunSummary() 304 for (Map.Entry<TestDescription, MetricSummary> entry : summaries.entrySet()) { in createPerformanceReport() 305 TestDescription testId = entry.getKey(); in createPerformanceReport() [all …]
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/ |
D | Histogram.java | 111 for (Map.Entry<Long, Integer> entry : mCounts.entrySet()) { in plotAscii() 112 cumulative += entry.getValue(); in plotAscii() 113 long key = entry.getKey(); in plotAscii() 123 float percentage = entry.getValue() * 100f / total; in plotAscii() 126 ? (entry.getValue() * maxBarLength + maxCount - 1) / maxCount in plotAscii() 127 : entry.getValue(); in plotAscii() 134 entry.getValue(), in plotAscii()
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | bits.py | 103 entry = registry[key] 104 if isinstance(entry, str): 105 return entry 106 if isinstance(entry, list): 107 return None if len(entry) == 0 else entry[0] 110 key, type(entry)))
|
/tools/tradefederation/prebuilts/filegroups/tradefed/ |
D | script_help.sh | 97 for entry in "$folder"/*; do 98 if [[ "$entry" = *".jar"* ]]; then 100 if ! grep -q android/app/Application.class "$entry"; then 101 TF_PATH=${TF_PATH}:$entry
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/compress/ |
D | MultiCompressorTest.java | 66 StoredEntry entry = zf.get("file"); in storeIsBest() local 67 assertNotNull(entry); in storeIsBest() 70 entry.getCentralDirectoryHeader().getCompressionInfoWithWait(); in storeIsBest() 85 StoredEntry entry = zf.get("file"); in sameCompressionResultButBetterThanStore() local 86 assertNotNull(entry); in sameCompressionResultButBetterThanStore() 89 entry.getCentralDirectoryHeader().getCompressionInfoWithWait(); in sameCompressionResultButBetterThanStore()
|
/tools/asuite/atest/ |
D | atest_script_help.sh | 102 for entry in "$folder"/*; do 103 if [[ "$entry" = *".jar"* ]]; then 104 TF_PATH=${TF_PATH}:$entry
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | AlignmentTest.java | 185 StoredEntry entry = zf.get("test.txt"); 186 assertNotNull(entry); 187 assertFalse(entry.realign()); 268 StoredEntry entry = zf.get("foo"); 269 assertNotNull(entry); 270 assertEquals(0, entry.getCentralDirectoryHeader().getOffset()); 296 StoredEntry entry = zf.get("foo"); 297 assertNotNull(entry); 298 assertEquals(991, entry.getCentralDirectoryHeader().getOffset()); 358 StoredEntry entry = zf.get("foo.a"); [all …]
|
D | ZFileTest.java | 219 ZipEntry entry = new ZipEntry("foo/"); 220 entry.setMethod(ZipEntry.STORED); 221 entry.setSize(0); 222 entry.setCompressedSize(0); 223 entry.setCrc(0); 224 zos.putNextEntry(entry); 948 StoredEntry entry = f.entries().iterator().next(); in utf8NamesSupportedOnReading() local 954 entry.getCentralDirectoryHeader().getName()); in utf8NamesSupportedOnReading() 956 "Stuff about food is good.\n".getBytes(Charsets.US_ASCII), entry.read()); in utf8NamesSupportedOnReading() 973 StoredEntry entry = f.entries().iterator().next(); in utf8NamesSupportedOnReadingWithoutUtf8Flag() local [all …]
|
/tools/carrier_settings/python/ |
D | update_carrier_data.py | 174 for carriermap in carriers.entry: 275 new_carrier = carriers.entry.add() 279 tmp = sorted(carriers.entry, key=lambda c: c.canonical_name) 280 del carriers.entry[:] 281 carriers.entry.extend(tmp) 415 for carrier in other_carriers.entry: 421 del other_carriers.entry[:] 422 other_carriers.entry.extend(other_carriers_entry_with_mccmnc)
|
/tools/repohooks/tools/ |
D | android_test_mapping_format.py | 80 def _validate_import(entry: Dict[str, Any], test_mapping_file: str): 90 if len(entry) != 1: 94 if _PATH not in entry:
|
/tools/security/fuzzing/orphans/libexif/ |
D | libexif_fuzzer.cpp | 20 static void dump_value(ExifEntry *entry, void *) { in dump_value() argument 22 exif_entry_get_value(entry, buf, sizeof(buf)); in dump_value()
|
/tools/asuite/atest-py2/tools/ |
D | atest_tools.py | 155 for entry in output.splitlines(): 156 match = output_re.match(entry) 283 for entry in output.split('\n'): 284 match = constants.QCLASS_OUTPUT_RE.match(entry)
|
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/ |
D | PsiTypePrinterTest.kt | 914 val entry = results[key]!! in <lambda>() constant 915 val string = entry.printed in <lambda>() 916 val type = entry.type in <lambda>() 918 val canonical = entry.canonical in <lambda>() 924 val elementAnnotations = entry.elementAnnotations in <lambda>()
|
/tools/asuite/atest/tools/ |
D | atest_tools.py | 179 for entry in output.splitlines(): 180 match = output_re.match(entry) 318 for entry in output.split('\n'): 319 match = constants.QCLASS_OUTPUT_RE.match(entry)
|