Home
last modified time | relevance | path

Searched refs:entries (Results 1 – 25 of 70) sorted by relevance

123

/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFat.java40 private final long[] entries; field in Fat
98 if (bs.getDataClusterCount() > result.entries.length) in create()
134 entries = new long[(int) ((sectorCount * sectorSize) / in Fat()
137 if (lastClusterIndex > entries.length) throw new IOException( in Fat()
139 "clusters but only " + entries.length + " FAT entries"); in Fat()
165 entries[0] = in init()
168 entries[1] = fatType.getEofMarker(); in init()
181 for (int i = 0; i < entries.length; i++) in read()
182 entries[i] = fatType.readEntry(data, i); in read()
198 for (int index = 0; index < entries.length; index++) { in writeCopy()
[all …]
DAbstractDirectory.java43 private final List<FatDirectoryEntry> entries; field in AbstractDirectory
62 this.entries = new ArrayList<FatDirectoryEntry>(); in AbstractDirectory()
120 this.entries.clear(); in setEntries()
121 this.entries.addAll(newEntries); in setEntries()
139 return this.entries.get(idx); in getEntry()
160 return this.entries.size(); in getEntryCount()
179 return entries.size() + ((this.volumeLabel != null) ? 1 : 0); in getSize()
217 for (int i=0; i < entries.size(); i++) { in flush()
218 final FatDirectoryEntry entry = entries.get(i); in flush()
263 entries.add(e); in read()
[all …]
DFatLfnDirectoryEntry.java216 final FatDirectoryEntry[] entries = in compactForm() local
223 entries[i] = createPart(fileName.substring(j * 13, j * 13 + 13), in compactForm()
228 entries[0] = createPart(fileName.substring(j * 13), in compactForm()
231 entries[totalEntrySize - 1] = this.realEntry; in compactForm()
233 return entries; in compactForm()
/tools/tradefederation/core/javatests/com/android/tradefed/util/zip/
DMergedZipEntryCollectionTest.java36 List<CentralDirectoryInfo> entries = new ArrayList<>(); in testMergeZipEntries_smallGap() local
39 entries.add(info); in testMergeZipEntries_smallGap()
45 entries.add(info); in testMergeZipEntries_smallGap()
49 MergedZipEntryCollection.createCollections(entries); in testMergeZipEntries_smallGap()
59 List<CentralDirectoryInfo> entries = new ArrayList<>(); in testMergeZipEntries_largeGap() local
62 entries.add(info); in testMergeZipEntries_largeGap()
68 entries.add(info); in testMergeZipEntries_largeGap()
72 MergedZipEntryCollection.createCollections(entries); in testMergeZipEntries_largeGap()
84 List<CentralDirectoryInfo> entries = new ArrayList<>(); in testMergeZipEntries_smallGapPercent() local
89 entries.add(info); in testMergeZipEntries_smallGapPercent()
[all …]
/tools/security/remote_provisioning/hwtrust/src/cbor/dice/
Dentry.rs74 let entries = cbor_map_from_slice(bytes)?; in from_cbor() localVariable
75 let profile_version = PayloadFields::extract_profile_version(session, &entries)?; in from_cbor()
76 Self::from_entries(&profile_version.into(), entries, config_format) in from_cbor()
81 entries: Vec<(Value, Value)>, in from_entries()
84 let f = PayloadFields::from_entries(profile, entries, config_format)?; in from_entries()
119 let entries = cbor_map_from_slice(bytes)?; in from_cbor() localVariable
120 let profile_version = Self::extract_profile_version(session, &entries)?; in from_cbor()
121 Self::from_entries(&profile_version.into(), entries, config_format) in from_cbor()
126 entries: &[(Value, Value)], in extract_profile_version()
129 for (key, value) in entries.iter() { in extract_profile_version()
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DCentralDirectory.java178 private final Map<String, StoredEntry> entries; field in CentralDirectory
204 entries = Maps.newHashMap(); in CentralDirectory()
258 @Nonnull Set<StoredEntry> entries, in makeFromEntries()
261 for (StoredEntry entry : entries) { in makeFromEntries()
264 !directory.entries.containsKey(cdr.getName()), in makeFromEntries()
266 directory.entries.put(cdr.getName(), entry); in makeFromEntries()
386 if (entries.containsKey(fileName)) { in readEntry()
390 entries.put(fileName, entry); in readEntry()
400 return ImmutableMap.copyOf(entries); in getEntries()
421 List<StoredEntry> sorted = Lists.newArrayList(entries.values()); in computeByteRepresentation()
[all …]
DZFile.java293 private final Map<String, FileUseMapEntry<StoredEntry>> entries; field in ZFile
499 entries = Maps.newHashMap(); in ZFile()
541 public Set<StoredEntry> entries() { in entries() method in ZFile
542 Map<String, StoredEntry> entries = Maps.newHashMap(); in entries() local
544 for (FileUseMapEntry<StoredEntry> mapEntry : this.entries.values()) { in entries()
547 entries.put(entry.getCentralDirectoryHeader().getName(), entry); in entries()
555 entries.put(uncompressed.getCentralDirectoryHeader().getName(), uncompressed); in entries()
558 return Sets.newHashSet(entries.values()); in entries()
579 FileUseMapEntry<StoredEntry> found = entries.get(path); in get()
675 entries.put(entry.getCentralDirectoryHeader().getName(), mapEntry); in readData()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DRemoteZipTest.java105 List<CentralDirectoryInfo> entries = remoteZip.getZipEntries(); in testGetZipEntries() local
107 assertEquals(13, entries.size()); in testGetZipEntries()
108 assertTrue(mExpectedEntries.containsAll(entries)); in testGetZipEntries()
126 List<CentralDirectoryInfo> entries = remoteZip.getZipEntries(); in testGetZipEntriesWithUseZip64() local
127 assertEquals(13, entries.size()); in testGetZipEntriesWithUseZip64()
128 assertTrue(mExpectedEntries.containsAll(entries)); in testGetZipEntriesWithUseZip64()
DZipUtilFuncTest.java175 Enumeration<? extends ZipEntry> entries = zipFile.entries(); in validateCentralDirectoryInfos() local
176 while (entries.hasMoreElements()) { in validateCentralDirectoryInfos()
177 ZipEntry zipEntry = entries.nextElement(); in validateCentralDirectoryInfos()
DMultiMapTest.java77 assertEquals(0, multiMap.entries().size()); in testEmptyMapEntries()
96 multiMap.entries()); in testEntries()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DZipUtil2.java80 Enumeration<? extends ZipArchiveEntry> entries = zipFile.getEntries(); in extractZip() local
82 while (entries.hasMoreElements()) { in extractZip()
83 ZipArchiveEntry entry = entries.nextElement(); in extractZip()
204 Enumeration<? extends ZipArchiveEntry> entries = zipFile.getEntries(); in restorePermissions() local
206 while (entries.hasMoreElements()) { in restorePermissions()
207 ZipArchiveEntry entry = entries.nextElement(); in restorePermissions()
DZipUtil.java114 Enumeration<? extends ZipEntry> entries = zipFile.entries(); in extractZip() local
115 while (entries.hasMoreElements()) { in extractZip()
116 ZipEntry entry = entries.nextElement(); in extractZip()
138 Enumeration<? extends ZipEntry> entries = zipFile.entries(); in extractZip() local
139 while (entries.hasMoreElements()) { in extractZip()
140 ZipEntry entry = entries.nextElement(); in extractZip()
DMultiMap.java112 public Collection<Map.Entry<K, V>> entries() { in entries() method in MultiMap
113 ArrayList<Map.Entry<K, V>> entries = new ArrayList<>(); in entries() local
116 entries.add(new AbstractMap.SimpleImmutableEntry<>(key, value)); in entries()
119 return Collections.unmodifiableList(entries); in entries()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileTest.java104 assertEquals(1, azf.entries().size()); in readAlmostEmptyZip()
117 assertEquals(3, azf.entries().size()); in readZipWithTwoFilesOneDirectory()
150 assertEquals(1, zf.entries().size()); in readOnlyZipSupport()
163 assertEquals(416, zf.entries().size()); in readOnlyV2SignedApkSupport()
231 assertEquals(2, zf.entries().size());
232 for (StoredEntry e : zf.entries()) {
267 assertEquals(1, zf.entries().size());
323 assertEquals(3, zf.entries().size());
363 assertEquals(3, zf.entries().size());
406 assertEquals(3, zf.entries().size());
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DClassPathScanner.java119 for (Enumeration<? extends ZipEntry> e = jarFile.entries(); e.hasMoreElements(); ) { in getEntriesFromJar()
152 private void getEntriesFromDir(File dir, Set<String> entries, List<String> rootPath, in getEntriesFromDir() argument
162 getEntriesFromDir(childFile, entries, rootPath, filter); in getEntriesFromDir()
169 entries.add(filter.transform(classPathEntryName)); in getEntriesFromDir()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DAnnotationFilter.kt91 for ((fqn, patterns) in map.entries) { in build()
136 val entries = qualifiedNameToEntries[annotation.qualifiedName] ?: return false in matches() constant
137 return entries.firstOrNull { entry -> annotationsMatch(entry, annotation) }?.matchResult in matches()
/tools/security/remote_provisioning/hwtrust/src/cbor/
Ddice.rs28 if let Value::Map(ref mut entries) = value { in cose_key_from_cbor_value()
29 for (label, value) in entries.iter_mut() { in cose_key_from_cbor_value()
/tools/acloud/public/actions/
Dremote_host_gf_device_factory.py512 entries = zip_obj.namelist()
513 if len(entries) > 0 and sep in entries[0]:
514 subdir = entries[0].split(sep, 1)[0]
515 if all(e.startswith(subdir + sep) for e in entries):
518 zip_path, " ".join(entries))
/tools/repohooks/rh/
Dgit.py142 entries = []
156 entries.append(rawdiff)
158 return entries
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterLogSaverTest.java340 Set<String> entries = getZipEntries(contextFile); in testAppendFilesToContext() local
341 assertTrue(entries.contains("1.txt")); in testAppendFilesToContext()
342 assertTrue(entries.contains("2.txt")); in testAppendFilesToContext()
343 assertFalse(entries.contains("unknown.txt")); // unknown file ignored in testAppendFilesToContext()
/tools/tradefederation/core/common_util/com/android/tradefed/util/zip/
DMergedZipEntryCollection.java79 List<CentralDirectoryInfo> entries = in createCollections() local
89 for (CentralDirectoryInfo entry : entries) { in createCollections()
/tools/netsim/ui/ts/
Ddevice-info.ts465 Object.entries(checkboxes).length ?
469 Object.entries(checkboxes)
515 Object.entries(checkboxes)
/tools/netsim/ui/dist/js/
Ddevice-info.js63 ${Object.entries(s).length?i`<div class="name">Radios</div>`:i``}
64 ${Object.entries(s).map((([e,t])=>i`<div class="label">${e}</div>
69 ${Object.entries(e).map((([e,t])=>i`<div class="label">${e}</div>
/tools/asuite/atest/integration_tests/
Datest_integration_test.py209 entries = []
216 entries.append(
229 return entries
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/
DMixImageZipPreparer.java361 Enumeration<? extends ZipEntry> entries = zipFile.entries(); in getInputStreamFactoriesFromImageZip() local
362 while (entries.hasMoreElements()) { in getInputStreamFactoriesFromImageZip()
363 final ZipEntry entry = entries.nextElement(); in getInputStreamFactoriesFromImageZip()

123