/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | StrictJarFileTest.java | 61 HashMap<String, ZipEntry> entries = new HashMap<String, ZipEntry>(); in testIteration() local 64 entries.put(ze.getName(), ze); in testIteration() 67 assertEquals(6, entries.size()); in testIteration() 68 assertTrue(entries.containsKey("META-INF/")); in testIteration() 70 assertTrue(entries.containsKey("META-INF/MANIFEST.MF")); in testIteration() 71 ZipEntry ze = entries.get("META-INF/MANIFEST.MF"); in testIteration() 76 assertTrue(entries.containsKey("Blah.txt")); in testIteration() 77 ze = entries.get("Blah.txt"); in testIteration() 84 assertTrue(entries.containsKey("foo/")); in testIteration() 85 assertTrue(entries.containsKey("foo/bar/")); in testIteration() [all …]
|
D | OldJarFileTest.java | 106 jarFile.entries(); in test_close()
|
/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 …]
|
D | IdentityHashMapTest.java | 593 Set entries = map.entrySet(); in test_sets() local 594 Iterator it = entries.iterator(); in test_sets() 597 assertTrue("EntrySetIterator can not find entry ", entries in test_sets()
|
/libcore/luni/src/main/java/java/util/jar/ |
D | Manifest.java | 45 private final HashMap<String, Attributes> entries; field in Manifest 69 entries = new HashMap<String, Attributes>(); in Manifest() 97 entries = (HashMap<String, Attributes>) ((HashMap<String, Attributes>) man in Manifest() 114 entries.clear(); in clear() 138 return entries; in getEntries() 193 im.readEntries(entries, chunks); in read() 264 Iterator<?> entries = manifest.mainAttributes.keySet().iterator(); in write() local 265 while (entries.hasNext()) { in write() 266 Attributes.Name name = (Attributes.Name) entries.next(); in write() 277 Attributes attributes = manifest.entries.get(key); in write() [all …]
|
D | ManifestReader.java | 57 …public void readEntries(Map<String, Attributes> entries, Map<String, Manifest.Chunk> chunks) throw… in readEntries() argument 65 Attributes entry = entries.get(entryNameValue); in readEntries() 88 entries.put(entryNameValue, entry); in readEntries()
|
D | JarVerifier.java | 308 HashMap<String, Attributes> entries = new HashMap<String, Attributes>(); in verifyCertificate() local 311 im.readEntries(entries, null); in verifyCertificate() 341 Iterator<Map.Entry<String, Attributes>> it = entries.entrySet().iterator(); in verifyCertificate() 355 signatures.put(signatureFile, entries); in verifyCertificate()
|
D | JarFile.java | 262 public Enumeration<JarEntry> entries() { in entries() method in JarFile 263 return new JarFileEnumerator(super.entries(), this); in entries() 428 Enumeration<? extends ZipEntry> allEntries = zipFile.entries(); in getMetaEntries()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | JarFileTest.java | 293 Enumeration<JarEntry> e = jarFile.entries(); in test_entries() 306 Enumeration<JarEntry> enumeration = jarFile.entries(); in test_entries2() 315 enumeration = jarFile.entries(); in test_entries2() 341 Enumeration<JarEntry> enumeration = jarFile.entries(); in test_getEntryLjava_lang_String() 348 enumeration = jarFile.entries(); in test_getEntryLjava_lang_String() 378 Enumeration<JarEntry> enumeration = jarFile.entries(); in test_getJarEntryLjava_lang_String() 385 enumeration = jarFile.entries(); in test_getJarEntryLjava_lang_String() 456 Enumeration<JarEntry> e = jarFile.entries(); in testGetJarEntry() 683 Enumeration<JarEntry> e = jarFile.entries(); in checkSignedJar() 729 Enumeration<JarEntry> e = jarFile.entries(); in getSignedJarCerts() [all …]
|
D | ManifestTest.java | 152 Map<String, Attributes> entries = mf.getEntries(); in testStreamConstructor() local 153 assertEquals("Should be one named entry", 1, entries.size()); in testStreamConstructor() 155 Attributes namedEntryAttributes = (Attributes) (entries.get("")); in testStreamConstructor()
|
/libcore/luni/src/main/native/ |
D | java_io_File.cpp | 123 static bool readDirectory(JNIEnv* env, jstring javaPath, DirEntries& entries) { in readDirectory() argument 134 entries.push_back(filename); in readDirectory() 142 DirEntries entries; in File_listImpl() local 143 if (!readDirectory(env, javaPath, entries)) { in File_listImpl() 147 return toStringArray(env, entries); in File_listImpl()
|
/libcore/luni/src/test/java/libcore/java/util/ |
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()
|
/libcore/luni/src/main/java/java/util/zip/ |
D | ZipOutputStream.java | 76 private final HashSet<String> entries = new HashSet<String>(); field in ZipOutputStream 225 if (entries.isEmpty()) { in finish() 236 writeShort(cDir, entries.size()); // Number of entries in finish() 237 writeShort(cDir, entries.size()); // Number of entries in finish() 292 if (entries.contains(ze.name)) { in putNextEntry() 295 if (entries.size() == 64*1024-1) { in putNextEntry() 313 entries.add(currentEntry.name); in putNextEntry()
|
D | ZipFile.java | 104 private final LinkedHashMap<String, ZipEntry> entries = new LinkedHashMap<String, ZipEntry>(); field in ZipFile 229 public Enumeration<? extends ZipEntry> entries() { in entries() method in ZipFile 231 final Iterator<ZipEntry> iterator = entries.values().iterator(); in entries() 269 ZipEntry ze = entries.get(entryName); 271 ze = entries.get(entryName + "/"); 353 return entries.size(); 443 if (entries.put(entryName, newEntry) != null) {
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
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 | ZipFileTest.java | 56 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in testInflatingFilesRequiringZipRefill() 189 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in testZipFileWithLotsOfEntries() 203 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in testZipFileLargerThan2GiB()
|
D | OldAndroidZipFileTest.java | 106 for (fileList = zipFile.entries(); fileList.hasMoreElements();) { in scanZip()
|
/libcore/luni/src/main/java/java/security/acl/ |
D | Acl.java | 142 Enumeration<AclEntry> entries(); in entries() method
|
/libcore/luni/src/main/java/java/util/prefs/ |
D | XMLParser.java | 367 NodeList entries = selectNodeList(node, "map/entry"); in loadNode() local 370 int entryNumber = entries.getLength(); in loadNode() 376 Element entry = (Element) entries.item(i); in loadNode() 453 NodeList entries = selectNodeList(document.getDocumentElement(), "entry"); in readXmlPreferences() local 454 int length = entries.getLength(); in readXmlPreferences() 456 Element node = (Element) entries.item(i); in readXmlPreferences()
|
/libcore/luni/src/main/java/org/apache/harmony/security/utils/ |
D | JarUtils.java | 193 Collection<?> entries = a.getValue().getValues(ASN1OctetString.getInstance()); in verifySignature() local 194 if (entries.size() != 1) { in verifySignature() 197 existingDigest = (byte[]) entries.iterator().next(); in verifySignature()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipFileTest.java | 154 Enumeration<? extends ZipEntry> enumer = zfile.entries(); in test_entries() 162 Enumeration<? extends ZipEntry> enumeration = zfile.entries(); in test_entries() 177 zfile.entries(); in test_entries()
|
/libcore/luni/src/main/java/java/util/ |
D | Properties.java | 627 NodeList entries = doc.getElementsByTagName("entry"); in loadFromXML() local 628 if (entries == null) { in loadFromXML() 631 int entriesListLength = entries.getLength(); in loadFromXML() 634 Element entry = (Element) entries.item(i); in loadFromXML()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | X509CRLTest.java | 386 Set<? extends X509CRLEntry> entries = crlRsa.getRevokedCertificates(); in getRevokedCertificates() local 387 assertEquals(1, entries.size()); in getRevokedCertificates() 388 for (X509CRLEntry e : entries) { in getRevokedCertificates()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | DexFile.java | 245 public Enumeration<String> entries() { in entries() method in DexFile
|