Home
last modified time | relevance | path

Searched refs:jarFile (Results 1 – 25 of 35) sorted by relevance

12

/external/guava/android/guava-tests/test/com/google/common/reflect/
DClassPathTest.java187 File jarFile = File.createTempFile("with_circular_class_path", ".jar"); in testScan_classPathCycle() local
189 writeSelfReferencingJarFile(jarFile, "test.txt"); in testScan_classPathCycle()
191 scanner.scan(jarFile, ClassPathTest.class.getClassLoader()); in testScan_classPathCycle()
194 jarFile.delete(); in testScan_classPathCycle()
244 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_noClassPath() local
245 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifest(""))).isEmpty(); in testGetClassPathFromManifest_noClassPath()
249 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_emptyClassPath() local
250 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifestClasspath(""))) in testGetClassPathFromManifest_emptyClassPath()
255 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_badClassPath() local
257 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifest)).isEmpty(); in testGetClassPathFromManifest_badClassPath()
[all …]
/external/guava/guava-tests/test/com/google/common/reflect/
DClassPathTest.java194 File jarFile = File.createTempFile("with_circular_class_path", ".jar"); in testScan_classPathCycle() local
196 writeSelfReferencingJarFile(jarFile, "test.txt"); in testScan_classPathCycle()
198 scanner.scan(jarFile, ClassPathTest.class.getClassLoader()); in testScan_classPathCycle()
201 jarFile.delete(); in testScan_classPathCycle()
310 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_noClassPath() local
311 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifest(""))).isEmpty(); in testGetClassPathFromManifest_noClassPath()
315 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_emptyClassPath() local
316 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifestClasspath(""))) in testGetClassPathFromManifest_emptyClassPath()
321 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_badClassPath() local
323 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifest)).isEmpty(); in testGetClassPathFromManifest_badClassPath()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/resolution/typesolvers/
DJarTypeSolver.java65 JarFile jarFile = new JarFile(pathToJar); in addPathToJar() local
67 Enumeration<JarEntry> e = jarFile.entries(); in addPathToJar()
72 classpathElements.put(name, new ClasspathElement(jarFile, entry, name)); in addPathToJar()
122 private JarFile jarFile; field in JarTypeSolver.ClasspathElement
126 ClasspathElement(JarFile jarFile, JarEntry entry, String path) { in ClasspathElement() argument
127 this.jarFile = jarFile; in ClasspathElement()
133 try (InputStream is = jarFile.getInputStream(entry)) { in toCtClass()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/
DJarTypeSolver.java100 JarFile jarFile = new JarFile(pathToJar); in addPathToJar() local
102 Enumeration<JarEntry> e = jarFile.entries(); in addPathToJar()
107 classpathElements.put(name, new ClasspathElement(jarFile, entry)); in addPathToJar()
157 private JarFile jarFile; field in JarTypeSolver.ClasspathElement
160 ClasspathElement(JarFile jarFile, JarEntry entry) { in ClasspathElement() argument
161 this.jarFile = jarFile; in ClasspathElement()
166 try (InputStream is = jarFile.getInputStream(entry)) { in toCtClass()
DAarTypeSolver.java46 JarFile jarFile = new JarFile(aarFile); in AarTypeSolver() local
47 ZipEntry classesJarEntry = jarFile.getEntry("classes.jar"); in AarTypeSolver()
51 delegate = new JarTypeSolver(jarFile.getInputStream(classesJarEntry)); in AarTypeSolver()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/
DJarInstrumentor.java53 JarFile jarFile = new JarFile(sourceFile); in instrumentJar() local
58 return JarInstrumentor.getClassBytes(className, jarFile); in instrumentJar()
69 Enumeration<JarEntry> entries = jarFile.entries(); in instrumentJar()
86 byte[] classBytes = getClassBytes(className, jarFile); in instrumentJar()
101 Util.copy(jarFile.getInputStream(jarEntry), jarOut); in instrumentJar()
128 private static byte[] getClassBytes(String className, JarFile jarFile) in getClassBytes() argument
131 ZipEntry entry = jarFile.getEntry(classFilename); in getClassBytes()
137 inputStream = jarFile.getInputStream(entry); in getClassBytes()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DJarFinder.java142 JarFile jarFile; in scanJar() local
144 jarFile = new JarFile(file); in scanJar()
151 for (URI uri : getClassPathFromManifest(file, jarFile.getManifest())) { in scanJar()
156 jarFile.close(); in scanJar()
169 File jarFile, @Nullable Manifest manifest) { in getClassPathFromManifest() argument
180 uri = getClassPathEntry(jarFile, path); in getClassPathFromManifest()
199 @VisibleForTesting static URI getClassPathEntry(File jarFile, String path) in getClassPathEntry() argument
204 : new File(jarFile.getParentFile(), path.replace('/', File.separatorChar)).toURI(); in getClassPathEntry()
DAllocationInstrument.java178 JarFile jarFile = null; in findAllocationInstrumentJarOnClasspath() local
180 jarFile = new JarFile(file); in findAllocationInstrumentJarOnClasspath()
181 Manifest manifest = jarFile.getManifest(); in findAllocationInstrumentJarOnClasspath()
188 if (jarFile != null) { in findAllocationInstrumentJarOnClasspath()
189 jarFile.close(); in findAllocationInstrumentJarOnClasspath()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DCompatibilityTest.java168 JarFile jarFile = null; in getJarList() local
177 jarFile = conn.getJarFile(); in getJarList()
178 Enumeration entries = jarFile.entries(); in getJarList()
186 … SerializableTestUtility.copyStreamBytes(jarFile.getInputStream(entry))); in getJarList()
193 if (jarFile != null) { in getJarList()
194 jarFile.close(); in getJarList()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DCompatibilityTest.java171 JarFile jarFile = null; in getJarList() local
180 jarFile = conn.getJarFile(); in getJarList()
181 Enumeration entries = jarFile.entries(); in getJarList()
189 … SerializableTestUtility.copyStreamBytes(jarFile.getInputStream(entry))); in getJarList()
196 if (jarFile != null) { in getJarList()
197 jarFile.close(); in getJarList()
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DJvmtiAgent.java86 File jarFile = File.createTempFile("mockito-boot", ".jar"); in appendToBootstrapClassLoaderSearch() local
87 jarFile.deleteOnExit(); in appendToBootstrapClassLoaderSearch()
90 try (OutputStream os = new FileOutputStream(jarFile)) { in appendToBootstrapClassLoaderSearch()
101 nativeAppendToBootstrapClassLoaderSearch(jarFile.getAbsolutePath()); in appendToBootstrapClassLoaderSearch()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DFs.java94 private final JarFile jarFile; field in Fs.JarFs
99 jarFile = new JarFile(file); in JarFs()
111 Enumeration<JarEntry> entries = jarFile.entries(); in JarFs()
218 return new BufferedInputStream(jarFile.getInputStream(jarEntryMap.get(path))); in getInputStream()
222 return Util.readBytes(jarFile.getInputStream(jarEntryMap.get(path))); in getBytes()
241 return jarFile.getEntry(path).getSize(); in length()
258 return jarFile.getName(); in getJarFileName()
/external/turbine/java/com/google/turbine/deps/
DDependencies.java60 String jarFile = info.jarFile(); in collectDeps() local
65 jars.add(jarFile); in collectDeps()
67 for (String jarFile : jars) { in collectDeps()
70 .setPath(jarFile) in collectDeps()
/external/guava/android/guava/src/com/google/common/reflect/
DClassPath.java389 JarFile jarFile; in scanJar() local
391 jarFile = new JarFile(file); in scanJar()
397 for (File path : getClassPathFromManifest(file, jarFile.getManifest())) { in scanJar()
400 scanJarFile(classloader, jarFile); in scanJar()
403 jarFile.close(); in scanJar()
418 File jarFile, @NullableDecl Manifest manifest) { in getClassPathFromManifest() argument
429 url = getClassPathEntry(jarFile, path); in getClassPathFromManifest()
500 static URL getClassPathEntry(File jarFile, String path) throws MalformedURLException { in getClassPathEntry() argument
501 return new URL(jarFile.toURI().toURL(), path); in getClassPathEntry()
/external/guava/guava/src/com/google/common/reflect/
DClassPath.java389 JarFile jarFile; in scanJar() local
391 jarFile = new JarFile(file); in scanJar()
397 for (File path : getClassPathFromManifest(file, jarFile.getManifest())) { in scanJar()
400 scanJarFile(classloader, jarFile); in scanJar()
403 jarFile.close(); in scanJar()
417 static ImmutableSet<File> getClassPathFromManifest(File jarFile, @Nullable Manifest manifest) { in getClassPathFromManifest() argument
428 url = getClassPathEntry(jarFile, path); in getClassPathFromManifest()
499 static URL getClassPathEntry(File jarFile, String path) throws MalformedURLException { in getClassPathEntry() argument
500 return new URL(jarFile.toURI().toURL(), path); in getClassPathEntry()
/external/apache-commons-bcel/src/examples/
DPackage.java185 JarOutputStream jarFile = new JarOutputStream(new FileOutputStream(defaultJar)); in go() local
186 jarFile.setLevel(5); // use compression in go()
193 jarFile.putNextEntry(zipEntry); in go()
194 jarFile.write(bytes, 0, length); in go()
197 jarFile.close(); in go()
/external/objenesis/tck/src/main/java/org/objenesis/tck/search/
DClassEnumerator.java59 JarFile jarFile; in processJarfile() local
61 jarFile = new JarFile(jarPath); in processJarfile()
65 Enumeration<JarEntry> entries = jarFile.entries(); in processJarfile()
/external/kotlinx.coroutines/binary-compatibility-validator/test/
DPublicApiTest.kt52 JarFile(jarPath).use { jarFile -> in <lambda>() method
53 val api = getBinaryAPI(jarFile, visibilities).filterOutNonPublic(nonPublicPackages) in <lambda>()
56 jarFile.checkForAtomicFu() in <lambda>()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/pack200/
DPack200Utils.java136 JarFile jarFile = new JarFile(from)) { in normalize()
139 packer.pack(jarFile, fos); in normalize()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/
DSdkStore.java120 private final JarFile jarFile; field in SdkStore.Sdk
127 this.jarFile = ensureJar(); in Sdk()
242 try (InputStream inputStream = jarFile.getInputStream(jarFile.getJarEntry("build.prop"))) { in readSdkInt()
291 ZipEntry entry = jarFile.getEntry(classFileName); in loadClassNode()
295 try (InputStream inputStream = jarFile.getInputStream(entry)) { in loadClassNode()
/external/testng/src/test/java/test/jarpackages/
DJarPackagesTest.java13 private TestListenerAdapter init(String jarFile) { in init() argument
19 String finalPath = path + jarFile; in init()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_resolution_typesolvers_JarTypeSolver.txt5 Line 67) jarFile.entries() ==> java.util.jar.JarFile.entries()
13 …Line 72) classpathElements.put(name, new ClasspathElement(jarFile, entry, name)) ==> java.util.Map…
30 …Line 133) jarFile.getInputStream(entry) ==> java.util.jar.JarFile.getInputStream(java.util.zip.Zip…
/external/turbine/java/com/google/turbine/binder/bytecode/
DBytecodeBoundClass.java76 private final String jarFile; field in BytecodeBoundClass
82 String jarFile) { in BytecodeBoundClass() argument
85 this.jarFile = jarFile; in BytecodeBoundClass()
91 ClassFile cf = ClassReader.read(jarFile + "!" + sym.binaryName(), bytes.get()); in BytecodeBoundClass()
593 public String jarFile() {
594 return jarFile;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DURLHandler.java192 JarFile jarFile; field in URLHandler.JarURLHandler
217 jarFile = conn.getJarFile(); in JarURLHandler()
228 Enumeration<JarEntry> entries = jarFile.entries(); in guide()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DURLHandler.java196 JarFile jarFile; field in URLHandler.JarURLHandler
221 jarFile = conn.getJarFile(); in JarURLHandler()
232 Enumeration<JarEntry> entries = jarFile.entries(); in guide()

12