/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | JarFileTest.java | 45 import java.util.jar.JarFile; 161 JarFile jarFile = new JarFile(new File("Wrong.file")); in test_ConstructorLjava_io_File() 169 JarFile jarFile = new JarFile(file); in test_ConstructorLjava_io_File() 181 JarFile jarFile = new JarFile("Wrong.file"); in test_ConstructorLjava_lang_String() 190 JarFile jarFile = new JarFile(fileName); in test_ConstructorLjava_lang_String() 202 JarFile jarFile = new JarFile("Wrong.file", false); in test_ConstructorLjava_lang_StringZ() 211 JarFile jarFile = new JarFile(fileName, true); in test_ConstructorLjava_lang_StringZ() 223 JarFile jarFile = new JarFile(new File("Wrong.file"), true); in test_ConstructorLjava_io_FileZ() 231 JarFile jarFile = new JarFile(file, false); in test_ConstructorLjava_io_FileZ() 243 JarFile jarFile = new JarFile(new File("Wrong.file"), true, in test_ConstructorLjava_io_FileZI() [all …]
|
D | JarEntryTest.java | 26 import java.util.jar.JarFile; 37 private JarFile jarFile; 57 jarFile = new JarFile(new File(resources, jarName)); in setUp() 100 JarFile attrJar = null; in test_getAttributes() 105 attrJar = new JarFile(file); in test_getAttributes() 127 JarFile jarFile = new JarFile(file); in testCertificatesAndCodesigners() 161 JarFile jarFile = new JarFile(file); in test_getCodeSigners()
|
D | ManifestTest.java | 27 import java.util.jar.JarFile; 62 JarFile jarFile = new JarFile(new File(resources, fileName)); in getManifest()
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldJarFileTest.java | 23 import java.util.jar.JarFile; 42 new JarFile(new File("Wrong.file")); in test_ConstructorLjava_io_File() 48 new JarFile(new File(resources, jarName)); in test_ConstructorLjava_io_File() 53 new JarFile("Wrong.file"); in test_ConstructorLjava_lang_String() 60 new JarFile(fileName); in test_ConstructorLjava_lang_String() 65 new JarFile("Wrong.file", false); in test_ConstructorLjava_lang_StringZ() 72 new JarFile(fileName, true); in test_ConstructorLjava_lang_StringZ() 77 new JarFile(new File("Wrong.file"), true); in test_ConstructorLjava_io_FileZ() 83 new JarFile(new File(resources, jarName), false); in test_ConstructorLjava_io_FileZ() 88 new JarFile(new File("Wrong.file"), true, in test_ConstructorLjava_io_FileZI() [all …]
|
D | OldJarEntryTest.java | 23 import java.util.jar.JarFile; 32 private JarFile jarFile; 41 jarFile = new JarFile(new File(resources, jarName)); in setUp() 87 JarFile attrJar = null; in test_getAttributes() 92 attrJar = new JarFile(new File(resources, "Broken_manifest.jar")); in test_getAttributes()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | JarFileFactory.java | 33 import java.util.jar.JarFile; 46 private static final HashMap<String, JarFile> fileCache = new HashMap<>(); 49 private static final HashMap<JarFile, URL> urlCache = new HashMap<>(); 59 URLConnection getConnection(JarFile jarFile) throws IOException { in getConnection() 70 public JarFile get(URL url) throws IOException { in get() 74 JarFile get(URL url, boolean useCaches) throws IOException { in get() 76 JarFile result; in get() 77 JarFile local_result; in get() 112 public void close(JarFile jarFile) { in close() 120 private JarFile getCachedJarFile(URL url) { in getCachedJarFile() [all …]
|
D | URLJarFile.java | 46 public class URLJarFile extends JarFile { 64 static JarFile getJarFile(URL url) throws IOException { in getJarFile() 68 … static JarFile getJarFile(URL url, URLJarFileCloseController closeController) throws IOException { in getJarFile() 192 private static JarFile retrieve(final URL url) throws IOException { in retrieve() 200 …private static JarFile retrieve(final URL url, final URLJarFileCloseController closeController) th… in retrieve() 215 JarFile result = null; in retrieve() 220 new PrivilegedExceptionAction<JarFile>() { in retrieve() 221 public JarFile run() throws IOException { in retrieve() 225 JarFile jarFile = new URLJarFile(tmpFile.toFile(), closeController); in retrieve() 288 public void close(JarFile jarFile); in close()
|
D | JarURLConnection.java | 40 import java.util.jar.JarFile; 74 private JarFile jarFile; 88 public JarFile getJarFile() throws IOException { in getJarFile()
|
/libcore/luni/src/main/java/libcore/io/ |
D | ClassPathURLStreamHandler.java | 29 import java.util.jar.JarFile; 43 private final JarFile jarFile; 46 jarFile = new JarFile(jarFileName); in ClassPathURLStreamHandler() 108 private JarFile connectionJarFile; 140 public JarFile getJarFile() throws IOException { in getJarFile() 148 connectionJarFile = new JarFile(jarFile.getName()); in getJarFile()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | JarFileBenchmark.java | 21 import java.util.jar.JarFile; 34 JarFile jf = new JarFile(f); in time()
|
D | StringReplaceAllBenchmark.java | 32 BOOT_IMAGE(java.util.jar.JarFile.MANIFEST_NAME);
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | JarFile.java | 69 class JarFile extends ZipFile { class 105 public JarFile(String name) throws IOException { in JarFile() method in JarFile 119 public JarFile(String name, boolean verify) throws IOException { in JarFile() method in JarFile 132 public JarFile(File file) throws IOException { in JarFile() method in JarFile 147 public JarFile(File file, boolean verify) throws IOException { in JarFile() method in JarFile 168 public JarFile(File file, boolean verify, int mode) throws IOException { in JarFile() method in JarFile 260 final Enumeration<? extends ZipEntry> e = JarFile.super.entries(); 300 Manifest man = JarFile.this.getManifest(); in getAttributes() 314 certs = jv.getCerts(JarFile.this, this); in getCertificates() 325 signers = jv.getCodeSigners(JarFile.this, this); in getCodeSigners()
|
D | JarVerifier.java | 144 if (uname.equals(JarFile.MANIFEST_NAME) || in beginEntry() 348 public java.security.cert.Certificate[] getCerts(JarFile jar, JarEntry entry) in getCerts() 363 public CodeSigner[] getCodeSigners(JarFile jar, JarEntry entry) in getCodeSigners() 433 if (sigFileSigners.containsKey(JarFile.MANIFEST_NAME)) { in doneWithMeta() 434 CodeSigner[] codeSigners = sigFileSigners.remove(JarFile.MANIFEST_NAME); in doneWithMeta() 435 verifiedSigners.put(JarFile.MANIFEST_NAME, codeSigners); in doneWithMeta() 697 public synchronized Enumeration<String> entryNames(JarFile jar, final CodeSource[] cs) { in entryNames() 761 public Enumeration<JarEntry> entries2(final JarFile jar, Enumeration<? extends ZipEntry> e) { in entries2() 822 private Enumeration<String> unsignedEntryNames(JarFile jar) { 875 public synchronized CodeSource[] getCodeSources(JarFile jar, URL url) { [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/jar/ |
D | JarFile.java | 32 public class JarFile extends java.util.zip.ZipFile { class 34 public JarFile(java.lang.String name) throws java.io.IOException { in JarFile() method in JarFile 39 public JarFile(java.lang.String name, boolean verify) throws java.io.IOException { in JarFile() method in JarFile 44 public JarFile(java.io.File file) throws java.io.IOException { in JarFile() method in JarFile 49 public JarFile(java.io.File file, boolean verify) throws java.io.IOException { in JarFile() method in JarFile 54 public JarFile(java.io.File file, boolean verify, int mode) throws java.io.IOException { in JarFile() method in JarFile
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ClassLoaderTest.java | 27 import java.util.jar.JarFile; 142 JarFile uncachedJarFile = uncachedConnection.getJarFile(); in testUncachedJarStreamBehavior() 189 JarFile jarFile1 = urlConnection1.getJarFile(); in testResourceJarFileBehavior() 190 JarFile jarFile2 = urlConnection2.getJarFile(); in testResourceJarFileBehavior() 195 JarFile uncachedJarFile = uncachedConnection.getJarFile(); in testResourceJarFileBehavior() 229 private static boolean isJarFileClosed(JarFile jarFile) { in isJarFileClosed()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | JarVerifier.java | 84 JarFile jf = null; in verify() 90 new PrivilegedExceptionAction<JarFile>() { in verify() 91 public JarFile run() throws Exception { in verify()
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | URLClassPath.java | 247 java.util.jar.JarFile getJarFile() { in getJarFile() 259 static java.util.jar.JarFile checkJar(java.util.jar.JarFile jar) in checkJar() 264 private java.util.jar.JarFile getJarFile(java.net.URL url) throws java.io.IOException { in getJarFile() 325 private java.util.jar.JarFile jar; 373 private java.util.jar.JarFile jarfile;
|
D | JarIndex.java | 49 public static sun.misc.JarIndex getJarIndex(java.util.jar.JarFile jar) in getJarIndex() 55 java.util.jar.JarFile jar, sun.misc.MetaIndex metaIndex) throws java.io.IOException { in getJarIndex()
|
/libcore/ojluni/src/main/java/java/net/ |
D | JarURLConnection.java | 29 import java.util.jar.JarFile; 217 public abstract JarFile getJarFile() throws IOException; in getJarFile()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | PathClassLoaderTest.java | 30 import java.util.jar.JarFile; 111 JarFile jarFile = new JarFile(f, true /* verify */, ZipFile.OPEN_READ); in test_classLoader_tampered_certificate_loadsOK_nullCertificates()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldAndroidZipStressTest.java | 27 import java.util.jar.JarFile; 39 JarFile jarFile = new JarFile(file); in checkJarCertificates()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldJarURLConnectionTest.java | 35 import java.util.jar.JarFile; 81 JarFile jf = juc.getJarFile(); in test_getCertificates() 235 JarFile jarFile1 = connection.getJarFile(); in test_setUseCaches() 239 JarFile jarFile2 = connection.getJarFile(); in test_setUseCaches() 345 public JarFile getJarFile() throws IOException { in getJarFile()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | JarIndex.java | 118 public static JarIndex getJarIndex(JarFile jar) throws IOException { in getJarIndex() 128 public static JarIndex getJarIndex(JarFile jar, MetaIndex metaIndex) throws IOException { in getJarIndex() 248 fileName.equals(JarFile.MANIFEST_NAME)) in parseJars()
|
D | URLClassPath.java | 30 import java.util.jar.JarFile; 691 private JarFile jarfile; // if this points to a jar file 811 private JarFile jar; 877 JarFile getJarFile () { 928 static JarFile checkJar(JarFile jar) throws IOException { 943 private JarFile getJarFile(URL url) throws IOException { 950 return checkJar(new JarFile(p.getPath())); 954 JarFile jarFile = ((JarURLConnection)uc).getJarFile();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | JarURLConnectionTest.java | 31 import java.util.jar.JarFile; 166 JarFile jarFile1 = connection.getJarFile(); in test_setUseCaches() 172 JarFile jarFile2 = connection.getJarFile(); in test_setUseCaches()
|