/external/guava/android/guava-tests/test/com/google/common/reflect/ |
D | ClassPathTest.java | 185 File jarFile = File.createTempFile("with_circular_class_path", ".jar"); in testScan_classPathCycle() local 187 writeSelfReferencingJarFile(jarFile, "test.txt"); in testScan_classPathCycle() 189 scanner.scan(jarFile, ClassPathTest.class.getClassLoader()); in testScan_classPathCycle() 192 jarFile.delete(); in testScan_classPathCycle() 242 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_noClassPath() local 243 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifest(""))).isEmpty(); in testGetClassPathFromManifest_noClassPath() 247 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_emptyClassPath() local 248 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifestClasspath(""))) in testGetClassPathFromManifest_emptyClassPath() 253 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_badClassPath() local 255 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifest)).isEmpty(); in testGetClassPathFromManifest_badClassPath() [all …]
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | ClassPathTest.java | 192 File jarFile = File.createTempFile("with_circular_class_path", ".jar"); in testScan_classPathCycle() local 194 writeSelfReferencingJarFile(jarFile, "test.txt"); in testScan_classPathCycle() 196 scanner.scan(jarFile, ClassPathTest.class.getClassLoader()); in testScan_classPathCycle() 199 jarFile.delete(); in testScan_classPathCycle() 309 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_noClassPath() local 310 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifest(""))).isEmpty(); in testGetClassPathFromManifest_noClassPath() 314 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_emptyClassPath() local 315 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifestClasspath(""))) in testGetClassPathFromManifest_emptyClassPath() 320 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_badClassPath() local 322 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/ |
D | JarTypeSolver.java | 65 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/ |
D | JarTypeSolver.java | 100 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()
|
D | AarTypeSolver.java | 46 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/ |
D | JarInstrumentor.java | 53 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/ |
D | JarFinder.java | 142 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()
|
D | AllocationInstrument.java | 178 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/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/ |
D | JvmtiAgent.java | 86 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
D | CompatibilityTest.java | 168 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/ |
D | CompatibilityTest.java | 171 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/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
D | Fs.java | 94 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/javatests/com/google/turbine/main/ |
D | MainTest.java | 202 try (JarFile jarFile = new JarFile(output.toFile())) { in testManifest() argument 203 try (Stream<JarEntry> entries = jarFile.stream()) { in testManifest() 207 Manifest manifest = jarFile.getManifest(); in testManifest() 218 assertThat(jarFile.getEntry(JarFile.MANIFEST_NAME).getLastModifiedTime().toInstant()) in testManifest() 222 try (JarFile jarFile = new JarFile(gensrcOutput.toFile())) { in testManifest() argument 223 Manifest manifest = jarFile.getManifest(); in testManifest() 294 try (JarFile jarFile = new JarFile(gensrc); in noSources() argument 295 Stream<JarEntry> entries = jarFile.stream()) { in noSources() 402 try (JarFile jarFile = new JarFile(gensrc); in noSourcesProcessing() argument 403 Stream<JarEntry> entries = jarFile.stream()) { in noSourcesProcessing() [all …]
|
/external/guava/guava/src/com/google/common/reflect/ |
D | ClassPath.java | 396 JarFile jarFile; in scanJar() local 398 jarFile = new JarFile(file); in scanJar() 404 for (File path : getClassPathFromManifest(file, jarFile.getManifest())) { in scanJar() 407 scanJarFile(classloader, jarFile); in scanJar() 410 jarFile.close(); in scanJar() 424 static ImmutableSet<File> getClassPathFromManifest(File jarFile, @Nullable Manifest manifest) { in getClassPathFromManifest() argument 435 url = getClassPathEntry(jarFile, path); in getClassPathFromManifest() 506 static URL getClassPathEntry(File jarFile, String path) throws MalformedURLException { in getClassPathEntry() argument 507 return new URL(jarFile.toURI().toURL(), path); in getClassPathEntry()
|
/external/guava/android/guava/src/com/google/common/reflect/ |
D | ClassPath.java | 396 JarFile jarFile; in scanJar() local 398 jarFile = new JarFile(file); in scanJar() 404 for (File path : getClassPathFromManifest(file, jarFile.getManifest())) { in scanJar() 407 scanJarFile(classloader, jarFile); in scanJar() 410 jarFile.close(); in scanJar() 425 File jarFile, @NullableDecl Manifest manifest) { in getClassPathFromManifest() argument 436 url = getClassPathEntry(jarFile, path); in getClassPathFromManifest() 507 static URL getClassPathEntry(File jarFile, String path) throws MalformedURLException { in getClassPathEntry() argument 508 return new URL(jarFile.toURI().toURL(), path); in getClassPathEntry()
|
/external/apache-commons-bcel/src/examples/ |
D | Package.java | 185 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/ |
D | ClassEnumerator.java | 59 JarFile jarFile; in processJarfile() local 61 jarFile = new JarFile(jarPath); in processJarfile() 65 Enumeration<JarEntry> entries = jarFile.entries(); in processJarfile()
|
/external/turbine/java/com/google/turbine/deps/ |
D | Dependencies.java | 68 String jarFile = info.jarFile(); in collectDeps() local 73 jars.add(jarFile); in collectDeps() 75 for (String jarFile : jars) { in collectDeps() 78 .setPath(jarFile) in collectDeps()
|
/external/kotlinx.coroutines/buildSrc/src/main/kotlin/ |
D | RunR8.kt | 27 val jarFile: File = project.tasks.named<Zip>("jar").get().archivePath constant in RunR8 43 arguments.add(jarFile.absolutePath) in exec()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/pack200/ |
D | Pack200Utils.java | 136 JarFile jarFile = new JarFile(from)) { in normalize() 139 packer.pack(jarFile, fos); in normalize()
|
/external/testng/src/test/java/test/jarpackages/ |
D | JarPackagesTest.java | 13 private TestListenerAdapter init(String jarFile) { in init() argument 19 String finalPath = path + jarFile; in init()
|
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/ |
D | SdkStore.java | 120 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/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_resolution_typesolvers_JarTypeSolver.txt | 5 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/ |
D | BytecodeBoundClass.java | 77 private final String jarFile; field in BytecodeBoundClass 83 String jarFile) { in BytecodeBoundClass() argument 86 this.jarFile = jarFile; in BytecodeBoundClass() 92 ClassFile cf = ClassReader.read(jarFile + "!" + sym.binaryName(), bytes.get()); in BytecodeBoundClass() 614 public String jarFile() { 615 return jarFile;
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | URLHandler.java | 196 JarFile jarFile; field in URLHandler.JarURLHandler 221 jarFile = conn.getJarFile(); in JarURLHandler() 232 Enumeration<JarEntry> entries = jarFile.entries(); in guide()
|