Home
last modified time | relevance | path

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

12345

/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.java544 StoredEntry entry = mapEntry.getStore(); in entries() local
545 assert entry != null; in entries()
546 entries.put(entry.getCentralDirectoryHeader().getName(), entry); in entries() local
611 for (StoredEntry entry : directory.getEntries().values()) { in readData()
612 long start = entry.getCentralDirectoryHeader().getOffset(); in readData()
613 long end = start + entry.getInFileSize(); in readData()
668 + describe.apply(entry) in readData()
673 FileUseMapEntry<StoredEntry> mapEntry = map.add(start, end, entry); in readData()
674 entries.put(entry.getCentralDirectoryHeader().getName(), mapEntry); in readData()
948 void delete(@Nonnull final StoredEntry entry, boolean notify) throws IOException { in delete() argument
[all …]
/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/test/connectivity/acts/framework/tests/config/
Dentries_test.py26 for entry in entries.config_entries:
27 if entry.cli_flags is None:
29 if type(entry.cli_flags) is not list:
31 'value must be a string or list of strings.' % entry)
32 for cli_flag in entry.cli_flags:
36 (entry, cli_flag, type(cli_flag)))
40 for entry in entries.config_entries:
41 if entry.help is None:
42 self.fail('Entry %s must define the help kwarg.' % entry)
46 for entry in entries.config_entries:
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DRebootReasonCollectorTest.java122 entry -> in testAddingMetrics_singleDevice()
123 entry.getKey().contains(RebootReasonCollector.METRIC_PREFIX) in testAddingMetrics_singleDevice()
124 && entry.getKey().contains("bootloader_reason") in testAddingMetrics_singleDevice()
125 && entry.getKey().contains("system_reason_1") in testAddingMetrics_singleDevice()
126 && (!entry.getKey().contains(DEVICE_SERIAL_1)) in testAddingMetrics_singleDevice()
128 entry.getValue() in testAddingMetrics_singleDevice()
137 entry -> in testAddingMetrics_singleDevice()
138 entry.getKey().contains(RebootReasonCollector.METRIC_PREFIX) in testAddingMetrics_singleDevice()
139 && entry.getKey().contains("bootloader_reason") in testAddingMetrics_singleDevice()
140 && entry.getKey().contains("system_reason_2") in testAddingMetrics_singleDevice()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DZipUtil2.java44 private static boolean applyUnixModeIfNecessary(ZipArchiveEntry entry, File localFile) in applyUnixModeIfNecessary() argument
46 if (entry.getPlatform() == ZipArchiveEntry.PLATFORM_UNIX) { in applyUnixModeIfNecessary()
48 FileUtil.unixModeToPosix(entry.getUnixMode())); in applyUnixModeIfNecessary()
65 ZipArchiveEntry entry = entries.nextElement(); in extractZip() local
66 File childFile = new File(destDir, entry.getName()); in extractZip()
68 if (entry.isDirectory()) { in extractZip()
70 if (!applyUnixModeIfNecessary(entry, childFile)) { in extractZip()
71 noPermissions.add(entry.getName()); in extractZip()
75 FileUtil.writeToFile(zipFile.getInputStream(entry), childFile); in extractZip()
76 if (!applyUnixModeIfNecessary(entry, childFile)) { in extractZip()
[all …]
DMultiMap.java134 for (Map.Entry<? extends K, ? extends V> entry : m.entrySet()) { in putAll()
135 put(entry.getKey(), entry.getValue()); in putAll()
185 for (Map.Entry<K, List<V>> entry : mInternalMap.entrySet()) { in getUniqueMap()
187 for (V value : entry.getValue()) { in getUniqueMap()
189 addUniqueEntry(uniqueMap, entry.getKey().toString(), value); in getUniqueMap()
192 addUniqueEntry(uniqueMap, String.format("%s%d", entry.getKey(), count), value); in getUniqueMap()
/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/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiClass.java68 ApiElement entry = findByName(mSuperClasses, superClass); in removeSuperClass() local
69 if (entry != null) { in removeSuperClass()
70 mSuperClasses.remove(entry); in removeSuperClass()
72 return entry; in removeSuperClass()
210 Map.Entry<String, ApiElement> entry = it.next(); in removeOverridingMethods() local
211 ApiElement method = entry.getValue(); in removeOverridingMethods()
273 for (Map.Entry<String, ApiElement> entry : hiddenSuper.mMethods.entrySet()) { in inlineFromHiddenSuperClasses()
274 String name = entry.getKey(); in inlineFromHiddenSuperClasses()
275 ApiElement value = entry.getValue(); in inlineFromHiddenSuperClasses()
280 for (Map.Entry<String, ApiElement> entry : hiddenSuper.mFields.entrySet()) { in inlineFromHiddenSuperClasses()
[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/tradefederation/core/src/com/android/tradefed/host/
DLocalHostResourceManager.java47 for (Map.Entry<String, String> entry : mHostResources.entrySet()) { in setup()
48 File localFile = fetchHostResource(entry.getKey(), entry.getValue()); in setup()
49 mDownloadedHostResources.put(entry.getKey(), localFile); in setup()
65 for (Map.Entry<String, File> entry : mDownloadedHostResources.entrySet()) { in cleanup()
66 clearHostResource(entry.getKey(), entry.getValue()); in cleanup()
/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>()
/tools/test/connectivity/acts/framework/tests/
Dacts_proto_utils_test.py55 def compare_test_entry(self, entry, name, id, nested): argument
56 self.assertEqual(entry.name, name)
57 self.assertEqual(entry.id, id)
58 self.assertEqual(len(entry.nested), len(nested))
59 for i in range(len(entry.nested)):
60 self.assertEqual(entry.nested[i].name, nested[i][0])
61 self.assertEqual(entry.nested[i].type, nested[i][1])
/tools/tradefederation/core/src/com/android/tradefed/targetprep/multi/
DHelloWorldMultiTargetPreparer.java44 for (Entry<ITestDevice, IBuildInfo> entry : deviceBuildInfo.entrySet()) { in setUp()
46 entry.getKey().getSerialNumber(), entry.getValue().getBuildId()); in setUp()
57 for (Entry<ITestDevice, IBuildInfo> entry : deviceBuildInfo.entrySet()) { in tearDown()
59 entry.getKey().getSerialNumber(), entry.getValue().getBuildId()); in tearDown()
/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/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 …]
/tools/test/connectivity/acts/framework/acts/config/config_sources/
Denv_config_source.py33 for entry in config_entry_metas:
34 if (entry.env_var_name is not None and
35 entry.env_var_name in os.environ):
36 config[entry.acts_config_key] = os.environ[entry.env_var_name]
/tools/loganalysis/src/com/android/loganalysis/item/
DMemoryHealthItem.java88 for (Map.Entry<String, Map<String, Long>> entry : map.entrySet()) { in mapToJson()
90 out.put(entry.getKey(), processToJson(entry.getValue())); in mapToJson()
100 for (Map.Entry<String, Long> entry : map.entrySet()) { in processToJson()
102 out.put(entry.getKey(), entry.getValue()); in processToJson()
DGenericItem.java41 for (Map.Entry<String, Object> entry : attributes.entrySet()) { in GenericItem()
42 setAttribute(entry.getKey(), entry.getValue()); in GenericItem()
152 for (Map.Entry<String, Object> entry : mAttributes.entrySet()) { in toJson()
153 final String key = entry.getKey(); in toJson()
154 final Object attribute = entry.getValue(); in toJson()
/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/tradefederation/contrib/src/com/android/graphics/tests/
DOpenGlPerformanceTest.java273 for (Map.Entry<String, String[]> entry : mKeyMap.entrySet()) { in logOutputFile()
274 String[] itemKeys = entry.getValue(); in logOutputFile()
276 CLog.v("ru key: %s", entry.getKey()); in logOutputFile()
288 reportMetrics(entry.getKey(), runMetrics, listener); in logOutputFile()
327 for (Map.Entry<String, String[]> entry : mKeyMap.entrySet()) { in printKeyMap()
328 CLog.v("ru key: %s", entry.getKey()); in printKeyMap()
329 for (String itemKey : entry.getValue()) { in printKeyMap()
336 for (Map.Entry<String, Double[]> entry : mTestResults.entrySet()) { in printTestResults()
337 CLog.v("key %s:", entry.getKey()); in printTestResults()
338 for (Double d : entry.getValue()) { in printTestResults()

12345