Home
last modified time | relevance | path

Searched refs:getEntry (Results 1 – 25 of 32) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipFileTest.java90 return zip.getEntry("File1.txt"); in test_finalize1()
131 InputStream is1 = zf.getInputStream(zf.getEntry("File1.txt")); in test_close()
132 InputStream is2 = zf.getInputStream(zf.getEntry("File2.txt")); in test_close()
194 java.util.zip.ZipEntry zentry = zfile.getEntry("File1.txt"); in test_getEntryLjava_lang_String()
199 zentry = zfile.getEntry("testdir1/File1.txt"); in test_getEntryLjava_lang_String()
201 zentry = zfile.getEntry("testdir1/"); in test_getEntryLjava_lang_String()
209 zentry = zfile.getEntry("testdir1/testdir1"); in test_getEntryLjava_lang_String()
220 java.util.zip.ZipEntry zentry = zfile.getEntry("File1.txt"); in test_getEntryLjava_lang_String_AndroidOnly()
225 zentry = zfile.getEntry("testdir1"); in test_getEntryLjava_lang_String_AndroidOnly()
241 java.util.zip.ZipEntry zentry = zfile.getEntry("File1.txt"); in test_getEntryLjava_lang_String_Ex()
[all …]
DZipEntryTest.java52 zentry = zfile.getEntry("File3.txt"); in test_ConstructorLjava_lang_String()
55 zentry = zfile.getEntry(null); in test_ConstructorLjava_lang_String()
130 zentry = zfile.getEntry("File1.txt"); in test_getMethod()
133 zentry = zfile.getEntry("File3.txt"); in test_getMethod()
204 zentry = zfile.getEntry("File1.txt"); in test_setCommentLjava_lang_String()
278 zentry = zfile.getEntry("File1.txt"); in test_setExtra$B()
318 zentry = zfile.getEntry("File3.txt"); in test_setMethodI()
505 zentry = zfile.getEntry("File1.txt"); in setUp()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldZipFileTest.java51 java.util.zip.ZipEntry zentry = zfile.getEntry("File1.txt"); in test_getEntryLjava_lang_String_AndroidOnly()
56 zentry = zfile.getEntry("testdir1"); in test_getEntryLjava_lang_String_AndroidOnly()
84 InputStream is1 = zf.getInputStream(zf.getEntry("File1.txt")); in test_close()
85 InputStream is2 = zf.getInputStream(zf.getEntry("File2.txt")); in test_close()
108 java.util.zip.ZipEntry zentry = zfile.getEntry("File1.txt"); in test_getEntryLjava_lang_String_Ex()
113 zfile.getEntry("File2.txt"); in test_getEntryLjava_lang_String_Ex()
129 zentry = zfile.getEntry("File2.txt"); in test_getInputStreamLjava_util_zip_ZipEntry()
DZipEntryTest.java70 assertNotNull(filename, zipFile.getEntry(filename)); in test_utf8FileNames()
116 assertNotNull(zipFile.getEntry(maxLengthName)); in testMaxLengthName()
144 assertEquals(maxLengthExtra.length, zipFile.getEntry("x").getExtra().length); in testMaxLengthExtra()
195 assertEquals(maxLengthComment, zipFile.getEntry("x").getComment()); in testMaxLengthComment()
225 assertEquals(comment, zipFile.getEntry("x").getComment()); in testCommentAndExtraInSameOrder()
226 assertTrue(Arrays.equals(extra, zipFile.getEntry("x").getExtra())); in testCommentAndExtraInSameOrder()
228 assertEquals(comment, zipFile.getEntry("y").getComment()); in testCommentAndExtraInSameOrder()
229 assertTrue(Arrays.equals(extra, zipFile.getEntry("y").getExtra())); in testCommentAndExtraInSameOrder()
DOldAndroidZipFileTest.java132 entry1 = zipFile.getEntry("file-1"); in read2()
133 entry2 = zipFile.getEntry("file-2"); in read2()
178 stream1 = zipFile.getInputStream(zipFile.getEntry("file-0")); in read2()
DZipFileTest.java68 assertNotNull(zipFile.getEntry(entry2.getName())); in testZipFileOffsetNeverChangesAfterInit()
DOldAndroidZipStressTest.java85 ZipEntry entry = zip.getEntry("AndroidManifest.xml"); in testZipStressManifest()
/libcore/luni/src/main/java/libcore/io/
DClassPathURLStreamHandler.java78 ZipEntry entry = jarFile.getEntry(entryName); in isEntryStored()
98 ZipEntry entry = jarFile.getEntry(entryName); in findEntryWithDirectoryFallback()
100 entry = jarFile.getEntry(entryName + "/"); in findEntryWithDirectoryFallback()
/libcore/benchmarks/src/benchmarks/
DBufferedZipFileBenchmark.java59 ZipEntry entry = zipFile.getEntry("entry.data"); in timeUnbufferedRead()
72 ZipEntry entry = zipFile.getEntry("entry.data"); in timeBufferedRead()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarEntryTest.java73 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_util_zip_ZipEntry()
103 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_lang_String()
DOldJarFileTest.java125 InputStream is = jf.getInputStream(jf.getEntry(entryName)); in test_getInputStreamLjava_util_jar_JarEntry()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStore2Test.java731 keyTest.getEntry("anAlias", new KeyStore.PasswordProtection(new char[] {})); in test_getEntry()
739 keyTest.getEntry(null, new KeyStore.PasswordProtection(new char[] {})); in test_getEntry()
744 keyTest.getEntry("anAlias", null); in test_getEntry()
747 keyTest.getEntry(null, null); in test_getEntry()
753 assertNull(keyTest.getEntry("alias", null)); in test_getEntry()
766 assertNull(keyTest.getEntry("alias", pp)); in test_getEntry()
774 assertNull(keyTest.getEntry("alias", pp)); in test_getEntry()
775 KeyStore.PrivateKeyEntry pkeActual1 = (KeyStore.PrivateKeyEntry) keyTest.getEntry("alias1", in test_getEntry()
777 KeyStore.PrivateKeyEntry pkeActual2 = (KeyStore.PrivateKeyEntry) keyTest.getEntry("alias2", in test_getEntry()
829 keyTest.getEntry("alias",pp); in test_setEntry()
[all …]
DKeyStore4Test.java564 Entry entry = keyStore.getEntry("certalias", null); in testGetEntry()
576 Entry entry = keyStore.getEntry("certalias", new KeyStore.ProtectionParameter() {}); in testGetEntry()
589 … Entry entry = keyStore.getEntry("keyalias", new KeyStore.PasswordProtection(new char[] {} )); in testGetEntry()
601 keyStore.getEntry("unknownalias", new KeyStore.PasswordProtection(new char[] {})); in testGetEntry()
614 keyStore.getEntry(null, new KeyStore.ProtectionParameter() {}); in testGetEntry()
/libcore/ojluni/src/main/java/java/util/zip/
DZipFile.java329 public ZipEntry getEntry(String name) { in getEntry() method in ZipFile
336 jzentry = getEntry(jzfile, zc.getBytes(name), true); in getEntry()
346 private static native long getEntry(long jzfile, byte[] name, in getEntry() method in ZipFile
380 jzentry = getEntry(jzfile, zc.getBytesUTF8(entry.name), true); in getInputStream()
383 jzentry = getEntry(jzfile, zc.getBytes(entry.name), true); in getInputStream()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarEntryTest.java86 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_util_zip_ZipEntry()
119 zipEntry = jarFile.getEntry(entryName2); in testCertificatesAndCodesigners()
DJarFileTest.java278 assertTrue(new JarFile(f).getEntry(entryName).getName().equals( in testConstructor_file()
280 assertTrue(new JarFile(f.getPath()).getEntry(entryName).getName() in testConstructor_file()
312 assertEquals("Error in returned entry", 311, jarFile.getEntry( in test_getEntryLjava_lang_String()
325 jarFile.getEntry(je.getName()); in test_getEntryLjava_lang_String()
333 jarFile.getEntry(je.getName()); in test_getEntryLjava_lang_String()
385 assertEquals("Error in returned entry", 311, jarFile.getEntry( in testGetJarEntry()
871 ZipEntry zipEntry = jarFile.getEntry("Test.class"); in test_JarFile_Modified_Class()
980 java.io.InputStream is = jf.getInputStream(jf.getEntry(entryName)); in test_getInputStreamLjava_util_jar_JarEntry()
/libcore/ojluni/src/main/java/java/util/jar/
DJarFile.java214 return (JarEntry)getEntry(name); in getJarEntry()
230 public ZipEntry getEntry(String name) { in getEntry() method in JarFile
231 ZipEntry ze = super.getEntry(name); in getEntry()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DURLJarFile.java128 public ZipEntry getEntry(String name) { in getEntry() method in URLJarFile
129 ZipEntry ze = super.getEntry(name); in getEntry()
DJarURLConnection.java132 jarEntry = (JarEntry)jarFile.getEntry(entryName); in connect()
/libcore/ojluni/src/main/java/java/lang/
DThreadLocal.java163 ThreadLocalMap.Entry e = map.getEntry(this); in get()
413 private Entry getEntry(ThreadLocal<?> key) { in getEntry() method in ThreadLocal.ThreadLocalMap
/libcore/luni/src/test/java/libcore/dalvik/system/
DPathClassLoaderTest.java113 JarEntry signedEntry = (JarEntry) jarFile.getEntry(signedEntryName); in test_classLoader_tampered_certificate_loadsOK_nullCertificates()
/libcore/luni/src/test/java/tests/targets/security/
DKeyStoreTest.java139 PrivateKeyEntry entry = (PrivateKeyEntry) keyStore.getEntry( in testKeyStoreCreate()
/libcore/ojluni/src/main/java/sun/security/util/
DManifestEntryVerifier.java179 public JarEntry getEntry() in getEntry() method in ManifestEntryVerifier
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassLoaderTest.java232 jarFile.getEntry("anyName"); in isJarFileClosed()
/libcore/ojluni/src/main/java/java/util/
DTreeMap.java233 return getEntry(key) != null; in containsKey()
279 TreeMapEntry<K,V> p = getEntry(key); in get()
343 final TreeMapEntry<K,V> getEntry(Object key) { in getEntry() method in TreeMap
630 TreeMapEntry<K,V> p = getEntry(key); in remove()
1008 TreeMapEntry<K,V> p = getEntry(key); in replace()
1018 TreeMapEntry<K,V> p = getEntry(key); in replace()
1098 TreeMapEntry<K,V> p = getEntry(entry.getKey()); in contains()
1107 TreeMapEntry<K,V> p = getEntry(entry.getKey()); in remove()
1687 TreeMapEntry<?, ?> node = m.getEntry(key); in contains()
1699 TreeMapEntry<K,V> node = m.getEntry(key); in remove()

12