Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 67) sorted by relevance

123

/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DFileUseMap.java102 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 …]
DZFile.java545 StoredEntry entry = mapEntry.getStore(); in entries() local
546 assert entry != null; in entries()
547 entries.put(entry.getCentralDirectoryHeader().getName(), entry); in entries() local
612 for (StoredEntry entry : directory.getEntries().values()) { in readData()
613 long start = entry.getCentralDirectoryHeader().getOffset(); in readData()
614 long end = start + entry.getInFileSize(); in readData()
669 + describe.apply(entry) in readData()
674 FileUseMapEntry<StoredEntry> mapEntry = map.add(start, end, entry); in readData()
675 entries.put(entry.getCentralDirectoryHeader().getName(), mapEntry); in readData()
949 void delete(@Nonnull final StoredEntry entry, boolean notify) throws IOException { in delete() argument
[all …]
DCentralDirectory.java261 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()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFatLfnDirectory.java93 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 …]
DFatType.java51 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 …]
DFatFile.java36 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 …]
DAbstractDirectory.java218 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 …]
DFat.java262 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/
DSigningExtension.java163 @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/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/
DGameQualificationResultReporter.java160 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/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiClass.java70 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 …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DRewriteAnnotations.kt221 val entry = zis.nextEntry ?: break in <lambda>() constant
222 val name = entry.name in <lambda>()
226 newEntry = if (entry.method == JarEntry.STORED) { in <lambda>()
227 val jarEntry = JarEntry(entry) in <lambda>()
228 jarEntry.size = entry.size in <lambda>()
229 jarEntry.compressedSize = entry.compressedSize in <lambda>()
230 jarEntry.crc = entry.crc in <lambda>()
239 newEntry.lastModifiedTime = entry.lastModifiedTime in <lambda>()
248 !entry.isDirectory in <lambda>()
DAnnotationStatistics.kt165 for (entry in classPath) { in <lambda>() constant
166 recordUsages(used, entry, entry.path) in <lambda>()
384 val entry = enumeration.nextElement() in <lambda>() constant
385 if (entry.name.endsWith(SdkConstants.DOT_CLASS)) { in <lambda>()
387 jar.getInputStream(entry).use { `is` -> in <lambda>()
390 recordUsages(used, bytes, path + ":" + entry.name) in <lambda>()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DAlignmentTest.java185 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 …]
DZFileTest.java219 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/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/
DHistogram.java111 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/
Dbits.py103 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/test/connectivity/acts/framework/acts/libs/
Dversion_selector.py174 for entry in self.entry_list:
175 if entry.direction == 1:
176 min_boundary = entry.level
177 elif entry.direction == 0:
178 ranges.append(str([entry.level, entry.level]))
180 ranges.append(str([min_boundary, entry.level]))
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/compress/
DMultiCompressorTest.java66 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/carrier_settings/python/
Dupdate_carrier_data.py174 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/
Dandroid_test_mapping_format.py84 def _validate_import(entry, test_mapping_file): argument
94 if len(entry) != 1:
98 (test_mapping_file, entry))
99 if list(entry.keys())[0] != PATH:
103 (test_mapping_file, entry))
/tools/tradefederation/prebuilts/filegroups/tradefed/
Dscript_help.sh97 for entry in "$folder"/*; do
98 if [[ "$entry" = *".jar"* ]]; then
99 TF_PATH=${TF_PATH}:$entry
/tools/asuite/atest/
Datest_script_help.sh102 for entry in "$folder"/*; do
103 if [[ "$entry" = *".jar"* ]]; then
104 TF_PATH=${TF_PATH}:$entry
/tools/acloud/internal/lib/
Dgcompute_client.py1568 entry = "%s:%s" % (user, rsa)
1569 logger.debug("New RSA entry: %s", entry)
1574 if RsaNotInMetadata(metadata, entry):
1575 self.UpdateRsaInMetadata(zone, instance, metadata, entry)
1674 def UpdateRsaInMetadata(self, zone, instance, metadata, entry): argument
1689 list(filter(None, [ssh_key_item[_METADATA_KEY_VALUE], entry])))
1693 _METADATA_KEY_VALUE: entry}
1701 def RsaNotInMetadata(metadata, entry): argument
1713 if entry in item[_METADATA_KEY_VALUE]:
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DPsiTypePrinterTest.kt914 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>()

123