Home
last modified time | relevance | path

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

123

/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
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 …]
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 …]
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/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/tradefederation/core/src/com/android/tradefed/util/
DZipUtil2.java40 private static void applyUnixModeIfNecessary(ZipArchiveEntry entry, File localFile) in applyUnixModeIfNecessary() argument
42 if (entry.getPlatform() == ZipArchiveEntry.PLATFORM_UNIX) { in applyUnixModeIfNecessary()
44 FileUtil.unixModeToPosix(entry.getUnixMode())); in applyUnixModeIfNecessary()
49 entry.getName()); in applyUnixModeIfNecessary()
63 ZipArchiveEntry entry = entries.nextElement(); in extractZip() local
64 File childFile = new File(destDir, entry.getName()); in extractZip()
66 if (entry.isDirectory()) { in extractZip()
68 applyUnixModeIfNecessary(entry, childFile); in extractZip()
71 FileUtil.writeToFile(zipFile.getInputStream(entry), childFile); in extractZip()
72 applyUnixModeIfNecessary(entry, childFile); in extractZip()
[all …]
DMultiMap.java110 for (Map.Entry<? extends K, ? extends V> entry : m.entrySet()) { in putAll()
111 put(entry.getKey(), entry.getValue()); in putAll()
161 for (Map.Entry<K, List<V>> entry : mInternalMap.entrySet()) { in getUniqueMap()
163 for (V value : entry.getValue()) { in getUniqueMap()
165 addUniqueEntry(uniqueMap, entry.getKey().toString(), value); in getUniqueMap()
168 addUniqueEntry(uniqueMap, String.format("%s%d", entry.getKey(), count), value); in getUniqueMap()
DPropertyChanger.java69 for (Entry<String, String> entry : propsToAdd.entrySet()) { in changeProperties()
70 bw.write(String.format("%s=%s\n", entry.getKey(), entry.getValue())); in changeProperties()
DZipUtil.java92 ZipEntry entry = entries.nextElement(); in extractZip() local
93 File childFile = new File(destDir, entry.getName()); in extractZip()
95 if (entry.isDirectory()) { in extractZip()
98 FileUtil.writeToFile(zipFile.getInputStream(entry), childFile); in extractZip()
112 ZipEntry entry = zipFile.getEntry(filePath); in extractFileFromZip() local
113 if (entry == null) { in extractFileFromZip()
118 FileUtil.writeToFile(zipFile.getInputStream(entry), createdFile); in extractFileFromZip()
/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/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/tradefederation/core/src/com/android/tradefed/util/clockwork/
DClockworkUtils.java42 for (Map.Entry<ITestDevice, IBuildInfo> entry : deviceInfos.entrySet()) { in setUpMultiDevice()
45 entry.getKey().getProperty("ro.build.characteristics"); in setUpMultiDevice()
47 deviceList.add(entry.getKey()); in setUpMultiDevice()
53 companion = entry.getKey(); in setUpMultiDevice()
/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()
DDumpsysPackageStatsItem.java37 for (Map.Entry<String, AppVersionItem> entry : entrySet()) { in toJson()
38 appVersions.put(entry.getKey(), entry.getValue().toJson()); in toJson()
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/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/
Dscript_help.sh82 for entry in "$folder"/*; do
83 if [[ "$entry" = *".jar"* ]]; then
84 TF_PATH=${TF_PATH}:$entry
/tools/tradefederation/core/src/com/android/tradefed/device/
DFileEntryWrapper.java41 FileEntryWrapper(NativeDevice testDevice, FileEntry entry) { in FileEntryWrapper() argument
43 mFileEntry = entry; in FileEntryWrapper()
111 for (FileEntry entry : childEntrys) { in buildChildrenMap()
112 childMap.put(entry.getName(), new FileEntryWrapper(mTestDevice, entry)); in buildChildrenMap()
/tools/tradefederation/core/prod-tests/src/com/android/graphics/tests/
DFlatlandTestFuncTest.java63 for(Map.Entry<String, String> entry: ft.mResultMap.entrySet()) { in testPraseResults()
64 CLog.e("key:%s, value:%s", entry.getKey(), entry.getValue()); in testPraseResults()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DMultiMapTest.java56 for (Map.Entry<String, String> entry : uniqueMap.entrySet()) { in checkKeyForValue()
57 if (entry.getValue().equals(value)) { in checkKeyForValue()
58 String key = entry.getKey(); in checkKeyForValue()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DFilePullerDeviceMetricCollector.java114 for (Entry<String, String> entry : currentRunMetrics.entrySet()) { in pullMetricFile()
115 if (p.matcher(entry.getKey()).find()) { in pullMetricFile()
118 File attemptPull = device.pullFile(entry.getValue()); in pullMetricFile()
122 String.format("rm -f %s", entry.getValue())); in pullMetricFile()
125 return new SimpleEntry<String, File>(entry.getKey(), attemptPull); in pullMetricFile()
130 entry.getValue(), device.getSerialNumber()); in pullMetricFile()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DInstrumentationPreparer.java129 for (Map.Entry<String, String> entry : mInstrArgMap.entrySet()) { in runInstrumentation()
130 test.addInstrumentationArg(entry.getKey(), entry.getValue()); in runInstrumentation()
149 for (Entry<TestDescription, TestResult> entry : result.getTestResults().entrySet()) { in getFailedTestNames()
150 if (entry.getValue().getStatus().equals(TestStatus.PASSED)) { in getFailedTestNames()
157 builder.append(entry.getKey()); in getFailedTestNames()
/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()

123