Home
last modified time | relevance | path

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

123

/libcore/luni/src/test/java/libcore/java/util/zip/
DZip64FileTest.java45 Enumeration<? extends ZipEntry> entries = zf.entries(); in testZip64Support_largeNumberOfEntries() local
46 assertTrue(entries.hasMoreElements()); in testZip64Support_largeNumberOfEntries()
47 ZipEntry ze = entries.nextElement(); in testZip64Support_largeNumberOfEntries()
72 Enumeration<? extends ZipEntry> entries = zf.entries(); in testZip64Support_totalLargerThan4G() local
73 assertTrue(entries.hasMoreElements()); in testZip64Support_totalLargerThan4G()
74 ZipEntry ze = entries.nextElement(); in testZip64Support_totalLargerThan4G()
95 Enumeration<? extends ZipEntry> entries = zf.entries(); in testZip64Support_hugeEntry() local
96 assertTrue(entries.hasMoreElements()); in testZip64Support_hugeEntry()
97 ZipEntry ze = entries.nextElement(); in testZip64Support_hugeEntry()
DZipFileTest.java53 Enumeration<? extends ZipEntry> entries = zipFile.entries(); in testZipFileOffsetNeverChangesAfterInit() local
57 ZipEntry entry1 = entries.nextElement(); in testZipFileOffsetNeverChangesAfterInit()
58 ZipEntry entry2 = entries.nextElement(); in testZipFileOffsetNeverChangesAfterInit()
59 assertFalse(entries.hasMoreElements()); in testZipFileOffsetNeverChangesAfterInit()
DOldAndroidZipStressTest.java103 Enumeration<? extends ZipEntry> entries = zip.entries(); in testZipStressAllFiles() local
104 while (entries.hasMoreElements()) { in testZipStressAllFiles()
105 InputStream stream = zip.getInputStream(entries.nextElement()); in testZipStressAllFiles()
DAbstractZipFileTest.java59 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in testInflatingFilesRequiringZipRefill()
196 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in testZipFileWithLotsOfEntries()
211 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in testZipFileLargerThan2GiB()
530 Enumeration<? extends ZipEntry> entries = zf.entries(); in testArchivesWithRelativePaths() local
532 while (entries.hasMoreElements()) { in testArchivesWithRelativePaths()
533 ZipEntry ze = entries.nextElement(); in testArchivesWithRelativePaths()
555 InputStream is = zipFile.getInputStream(zipFile.entries().nextElement()); in testReadMoreThan8kInOneRead()
576 InputStream is = zipFile.getInputStream(zipFile.entries().nextElement()); in testReadWithOffset()
602 InputStream is = zipFile.getInputStream(zipFile.entries().nextElement()); in testReadWithOffsetInvalid()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DRefSortedMap.java85 transient ArrayList<MapEntry<K, V>> entries = new ArrayList<MapEntry<K, V>>(); field in RefSortedMap
116 entries.size(); in entrySet()
122 return offset + 1 < entries.size() in entrySet()
123 && isInRange(entries.get(offset + 1).getKey()); in entrySet()
134 return entries.get(offset); in entrySet()
143 RefSortedMap.this.entries.remove(offset); in entrySet()
182 if (-idx - 1 >= entries.size() || !isInRange(entries.get(-idx - 1).getKey())) {
185 return entries.get(-idx - 1).getKey();
205 if (idx < 0 || !isInRange(entries.get(idx).getKey())) {
208 return entries.get(idx).getKey();
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarFileTest.java297 Enumeration<JarEntry> e = jarFile.entries(); in test_entries()
324 Enumeration<JarEntry> enumeration = jarFile.entries(); in test_getEntryLjava_lang_String()
331 enumeration = jarFile.entries(); in test_getEntryLjava_lang_String()
361 Enumeration<JarEntry> enumeration = jarFile.entries(); in test_getJarEntryLjava_lang_String()
368 enumeration = jarFile.entries(); in test_getJarEntryLjava_lang_String()
585 Enumeration<JarEntry> e = jarFile.entries(); in assertFirstSignedEntryCertificateLength()
613 Enumeration<JarEntry> e = jarFile.entries(); in getSignedJarCerts()
674 Enumeration<JarEntry> entries = jarFile.entries(); in test_Jar_created_before_java_5() local
675 while (entries.hasMoreElements()) { in test_Jar_created_before_java_5()
676 ZipEntry zipEntry = entries.nextElement(); in test_Jar_created_before_java_5()
[all …]
/libcore/luni/src/main/java/libcore/util/
DDebugInfo.java29 private final List<DebugEntry> entries; field in DebugInfo
33 this.entries = new ArrayList<>(); in DebugInfo()
43 entries.add(new DebugEntry(key, value)); in addStringEntry()
61 return entries; in getDebugEntries()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipOutputStreamTest.java300 List<ZipEntry> entries = new ArrayList<>(); in test_timeSerializationRounding() local
303 entries.add(zipEntry = new ZipEntry("test1")); in test_timeSerializationRounding()
307 entries.add(zipEntry = new ZipEntry("test2")); in test_timeSerializationRounding()
310 for (ZipEntry entry : entries) { in test_timeSerializationRounding()
337 List<ZipEntry> entries = new ArrayList<>(); in test_exttSupport() local
361 entries.add(zipEntry = new ZipEntry("test_setTime")); in test_exttSupport()
366 entries.add(zipEntry = new ZipEntry("test_setLastModifiedTime")); in test_exttSupport()
374 entries.add(zipEntry = new ZipEntry("test_setCreationTime")); in test_exttSupport()
382 entries.add(zipEntry = new ZipEntry("test_setLastAccessTime")); in test_exttSupport()
387 for (ZipEntry entry : entries) { in test_exttSupport()
[all …]
/libcore/ojluni/src/main/java/java/util/jar/
DManifest.java54 private Map<String, Attributes> entries = new HashMap<>(); field in Manifest
79 entries.putAll(man.getEntries()); in Manifest()
100 return entries; in getEntries()
134 entries.clear(); in clear()
151 Iterator<Map.Entry<String, Attributes>> it = entries.entrySet().iterator(); in write()
249 entries.put(name, attr); in read()
293 entries.equals(m.getEntries()); in equals()
303 return attr.hashCode() + entries.hashCode(); in hashCode()
/libcore/luni/src/test/java/libcore/java/util/
DHashMapTest.java182 Set<Map.Entry<Integer, String>> entries = m.entrySet(); in test_entrySet_subsizeEstimates_recursive() local
184 assertSubsizeEstimate(entries.spliterator(), 50); in test_entrySet_subsizeEstimates_recursive()
185 assertSubsizeEstimate(entries.spliterator().trySplit(), 25); in test_entrySet_subsizeEstimates_recursive()
186 assertSubsizeEstimate(entries.spliterator().trySplit().trySplit(), 12); in test_entrySet_subsizeEstimates_recursive()
187 assertSubsizeEstimate(entries.spliterator().trySplit().trySplit().trySplit(), 6); in test_entrySet_subsizeEstimates_recursive()
188 assertSubsizeEstimate(entries.spliterator().trySplit().trySplit().trySplit().trySplit(), 3); in test_entrySet_subsizeEstimates_recursive()
190 entries.spliterator().trySplit().trySplit().trySplit().trySplit().trySplit(), 1); in test_entrySet_subsizeEstimates_recursive()
191 assertSubsizeEstimate(entries.spliterator().trySplit().trySplit().trySplit().trySplit() in test_entrySet_subsizeEstimates_recursive()
DOldAbstractMapTest.java102 private final List<Entry<String, String>> entries = new ArrayList<Entry<String, String>>(); field in OldAbstractMapTest.AMT
106 entries.add(new AbstractMap.SimpleEntry<String, String>(key, value)); in put()
113 return entries.iterator(); in entrySet()
116 return entries.size(); in entrySet()
DEvilMapTest.java32 private final Set<Entry<K,V>> entries = new HashSet<Entry<K,V>>(); field in EvilMapTest.EvilMap
35 entries.add(new AbstractMap.SimpleEntry("hi", "there")); in EvilMap()
41 @Override public Set<Entry<K, V>> entrySet() { return entries; } in entrySet()
DTreeMapTest.java709 Set<Map.Entry<String, String>> entries = treeMap.entrySet(); in test_spliterator_entrySet() local
732 SpliteratorTester.runBasicIterationTests_unordered(entries.spliterator(), expectedValues, in test_spliterator_entrySet()
734 SpliteratorTester.runBasicSplitTests(entries, expectedValues, comparator); in test_spliterator_entrySet()
735 SpliteratorTester.testSpliteratorNPE(entries.spliterator()); in test_spliterator_entrySet()
739 entries.spliterator().characteristics()); in test_spliterator_entrySet()
740 SpliteratorTester.runSortedTests(entries, (a, b) -> (a.getKey().compareTo(b.getKey()))); in test_spliterator_entrySet()
741 SpliteratorTester.runOrderedTests(entries); in test_spliterator_entrySet()
742 SpliteratorTester.assertSupportsTrySplit(entries); in test_spliterator_entrySet()
/libcore/ojluni/src/main/java/sun/nio/fs/
DLinuxFileSystem.java79 ArrayList<UnixMountEntry> entries = new ArrayList<>(); in getMountEntries() local
88 entries.add(entry); in getMountEntries()
97 return entries; in getMountEntries()
DPollingWatchService.java244 private Map<Path,CacheEntry> entries;
253 this.entries = new HashMap<Path,CacheEntry>();
261 entries.put(entry.getFileName(), new CacheEntry(lastModified, tickCount));
349 CacheEntry e = entries.get(entry.getFileName());
352 entries.put(entry.getFileName(),
396 Iterator<Map.Entry<Path,CacheEntry>> i = entries.entrySet().iterator();
DUnixFileSystem.java185 private final Iterator<UnixMountEntry> entries;
189 this.entries = getMountEntries().iterator();
195 if (!entries.hasNext())
197 UnixMountEntry entry = entries.next();
/libcore/ojluni/src/main/java/java/util/prefs/
DXmlSupport.java372 NodeList entries = map.getChildNodes(); in ImportPrefs() local
374 entries = elementNodesOf(entries); in ImportPrefs()
375 for (int i=0, numEntries = entries.getLength(); i < numEntries; i++) { in ImportPrefs()
376 Element entry = (Element) entries.item(i); in ImportPrefs()
434 NodeList entries = xmlMap.getChildNodes(); in importMap() local
435 for (int i=0, numEntries=entries.getLength(); i<numEntries; i++) { in importMap()
440 if (!(entries.item(i) instanceof Element)) { in importMap()
444 Element entry = (Element) entries.item(i); in importMap()
/libcore/ojluni/src/main/java/sun/security/util/
DManifestDigester.java43 private HashMap<String, Entry> entries; // key is a UTF-8 string field in ManifestDigester
113 entries = new HashMap<String, Entry>(); in ManifestDigester()
123 entries.put(MF_MAIN_ATTRS, in ManifestDigester()
170 entries.put(nameBuf.toString(), in ManifestDigester()
258 Entry e = entries.get(name); in get()
/libcore/ojluni/src/main/java/java/util/
DXMLUtils.java113 NodeList entries = propertiesElement.getChildNodes(); in importProperties() local
114 int numEntries = entries.getLength(); in importProperties()
116 entries.item(0).getNodeName().equals("comment") ? 1 : 0; in importProperties()
119 if (!(entries.item(i) instanceof Element)) { in importProperties()
122 Element entry = (Element)entries.item(i); in importProperties()
/libcore/ojluni/src/main/java/sun/misc/
DMetaIndex.java253 private MetaIndex(List<String> entries, boolean isClassOnlyJar) in MetaIndex() argument
255 if (entries == null) { in MetaIndex()
259 contents = entries.toArray(new String[0]); in MetaIndex()
DJarIndex.java239 Enumeration<? extends ZipEntry> entries = zrf.entries(); in parseJars() local
240 while(entries.hasMoreElements()) { in parseJars()
241 ZipEntry entry = entries.nextElement(); in parseJars()
/libcore/ojluni/src/main/java/javax/crypto/
DJceSecurity.java312 Enumeration<JarEntry> entries = jf.entries(); in loadPolicies() local
313 while (entries.hasMoreElements()) { in loadPolicies()
314 JarEntry je = entries.nextElement(); in loadPolicies()
/libcore/ojluni/src/main/native/
Dzip_util.c518 free(zip->entries); zip->entries = NULL; in freeCEN()
563 jzcell *entries; in readCEN() local
665 entries = zip->entries = calloc(total, sizeof(entries[0])); in readCEN()
671 if ((entries == NULL && total != 0) || table == NULL) goto Catch; in readCEN()
718 entries[i].cenpos = cenpos + (cp - cenbuf); in readCEN()
719 entries[i].hash = hashN(entryName, nlen); in readCEN()
720 entries[i].next = ZIP_ENDCHAIN; in readCEN()
723 hsh = entries[i].hash % tablelen; in readCEN()
728 const jzcell* cell = &entries[chain]; in readCEN()
729 if (cell->hash == entries[i].hash) { in readCEN()
[all …]
/libcore/benchmarks/src/benchmarks/
DZipFileReadBenchmark.java42 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in setUp()
78 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in timeZipFileRead()
/libcore/ojluni/src/main/java/java/security/acl/
DAcl.java211 public Enumeration<AclEntry> entries(); in entries() method

123