/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | Zip64FileTest.java | 45 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()
|
D | ZipFileTest.java | 54 Enumeration<? extends ZipEntry> entries = zipFile.entries(); in testZipFileOffsetNeverChangesAfterInit() local 58 ZipEntry entry1 = entries.nextElement(); in testZipFileOffsetNeverChangesAfterInit() 59 ZipEntry entry2 = entries.nextElement(); in testZipFileOffsetNeverChangesAfterInit() 60 assertFalse(entries.hasMoreElements()); in testZipFileOffsetNeverChangesAfterInit() 113 ZipEntry zipEntry = zipFile.entries().nextElement(); in test_zipFileWith_cp1251_fileNames() 119 ZipEntry zipEntry = zipFile.entries().nextElement(); in test_zipFileWith_cp1251_fileNames()
|
D | OldAndroidZipStressTest.java | 103 Enumeration<? extends ZipEntry> entries = zip.entries(); in testZipStressAllFiles() local 104 while (entries.hasMoreElements()) { in testZipStressAllFiles() 105 InputStream stream = zip.getInputStream(entries.nextElement()); in testZipStressAllFiles()
|
D | AbstractZipFileTest.java | 59 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/ |
D | RefSortedMap.java | 85 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/luni/src/test/java/libcore/java/util/ |
D | MapOfTest.java | 84 Map.Entry[] entries = { entry("duplicateKey", 23), entry("duplicateKey", 42) }; in duplicates_sameKey() local 85 assertThrowsIae(() -> creator.create(entries)); in duplicates_sameKey() 89 Map.Entry[] entries = { entry("duplicateKey", 42), entry("duplicateKey", 42) }; in duplicates_sameEntry() local 90 assertThrowsIae(() -> creator.create(entries)); in duplicates_sameEntry() 94 Map.Entry[] entries = { in duplicates_manyElements() local 99 assertThrowsIae(() -> creator.create(entries)); in duplicates_manyElements() 115 Map.Entry[] entries = sampleEntries.subList(0, size).toArray( in nullEntries() local 117 entries[nullIndex] = null; in nullEntries() 118 assertThrowsNpe(() -> Map.ofEntries(entries)); in nullEntries() 139 Map.Entry[] entries = sampleEntries.subList(0, size).toArray( in manyEntries() local [all …]
|
D | HashMapTest.java | 182 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()
|
D | OldAbstractMapTest.java | 102 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()
|
D | EvilMapTest.java | 32 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()
|
D | TreeMapTest.java | 709 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | JarFileTest.java | 297 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipOutputStreamTest.java | 300 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/ |
D | Manifest.java | 54 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/ojluni/src/main/java/sun/nio/fs/ |
D | LinuxFileSystem.java | 79 ArrayList<UnixMountEntry> entries = new ArrayList<>(); in getMountEntries() local 88 entries.add(entry); in getMountEntries() 97 return entries; in getMountEntries()
|
D | PollingWatchService.java | 244 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();
|
D | UnixFileSystem.java | 185 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/ |
D | XmlSupport.java | 372 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/ |
D | ManifestDigester.java | 43 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/ |
D | XMLUtils.java | 113 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()
|
D | Map.java | 1602 static <K, V> Map<K, V> ofEntries(Entry<? extends K, ? extends V>... entries) { in ofEntries() argument 1603 if (entries.length == 0) { // implicit null check of entries in ofEntries() 1605 } else if (entries.length == 1) { in ofEntries() 1606 return new ImmutableCollections.Map1<>(entries[0].getKey(), in ofEntries() 1607 entries[0].getValue()); in ofEntries() 1609 Object[] kva = new Object[entries.length << 1]; in ofEntries() 1611 for (Entry<? extends K, ? extends V> entry : entries) { in ofEntries()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | MetaIndex.java | 253 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()
|
D | JarIndex.java | 239 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/ |
D | JceSecurity.java | 312 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/ |
D | zip_util.c | 518 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/ |
D | ZipFileReadBenchmark.java | 42 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in setUp() 78 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in timeZipFileRead()
|