/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldJarEntryTest.java | 34 private final String entryName = "foo/bar/A.class"; field in OldJarEntryTest 56 JarEntry newJarEntry = new JarEntry(jarFile.getJarEntry(entryName)); in test_ConstructorLjava_util_jar_JarEntry_on_null() 73 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_util_zip_ZipEntry() 77 assertEquals("Wrong entry constructed--wrong name", entryName, jarEntry in test_ConstructorLjava_util_zip_ZipEntry() 103 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_lang_String() 105 jarEntry = new JarEntry(entryName); in test_ConstructorLjava_lang_String() 107 assertEquals("Wrong entry constructed--wrong name", entryName, jarEntry in test_ConstructorLjava_lang_String() 129 JarEntry je = jarFile.getJarEntry(entryName); in test_ConstructorLjava_util_jar_JarEntry() 133 assertEquals("Wrong entry constructed--wrong name", entryName, jarEntry in test_ConstructorLjava_util_jar_JarEntry()
|
D | OldJarOutputStreamTest.java | 31 final String entryName = "foo/bar/execjartest/MainClass.class"; in test_putNextEntryLjava_util_zip_ZipEntry() local 38 jout.putNextEntry(new JarEntry(entryName)); in test_putNextEntryLjava_util_zip_ZipEntry()
|
D | OldJarFileTest.java | 32 private final String entryName = "foo/bar/A.class"; field in OldJarFileTest 125 InputStream is = jf.getInputStream(jf.getEntry(entryName)); in test_getInputStreamLjava_util_jar_JarEntry()
|
/libcore/ojluni/src/main/java/java/net/ |
D | JarURLConnection.java | 144 private String entryName; field in JarURLConnection 180 entryName = null; in parseSpecs() 184 entryName = spec.substring(separator, spec.length()); in parseSpecs() 185 entryName = ParseUtil.decode (entryName); in parseSpecs() 206 return entryName; in getEntryName() 253 return getJarFile().getJarEntry(entryName); in getJarEntry()
|
/libcore/luni/src/main/java/libcore/io/ |
D | ClassPathURLStreamHandler.java | 59 public URL getEntryUrlOrNull(String entryName) { in getEntryUrlOrNull() argument 60 if (findEntryWithDirectoryFallback(jarFile, entryName) != null) { in getEntryUrlOrNull() 64 String encodedName = ParseUtil.encodePath(entryName, false); in getEntryUrlOrNull() 77 public boolean isEntryStored(String entryName) { in isEntryStored() argument 78 ZipEntry entry = jarFile.getEntry(entryName); in isEntryStored() 97 static ZipEntry findEntryWithDirectoryFallback(JarFile jarFile, String entryName) { in findEntryWithDirectoryFallback() argument 98 ZipEntry entry = jarFile.getEntry(entryName); in findEntryWithDirectoryFallback() 99 if (entry == null && !entryName.endsWith("/") ) { in findEntryWithDirectoryFallback() 100 entry = jarFile.getEntry(entryName + "/"); in findEntryWithDirectoryFallback()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | JarURLConnection.java | 68 private String entryName; field in JarURLConnection 85 entryName = getEntryName(); in JarURLConnection() 131 if ((entryName != null)) { in connect() 132 jarEntry = (JarEntry)jarFile.getEntry(entryName); in connect() 140 throw new FileNotFoundException("JAR entry " + entryName + in connect() 154 if (entryName == null) { in getInputStream() 158 throw new FileNotFoundException("JAR entry " + entryName + in getInputStream() 194 if (entryName == null) { in getContent() 204 if (entryName == null) { in getContentType() 218 contentType = guessContentTypeFromName(entryName); in getContentType()
|
/libcore/luni/src/test/java/libcore/io/ |
D | ClassPathURLStreamHandlerTest.java | 103 String entryName, String expectedJarRelativeURI) throws IOException { in checkGetEntryUrlOrNull() argument 106 URL urlOrNull = streamHandler.getEntryUrlOrNull(entryName); in checkGetEntryUrlOrNull() 107 assertNotNull("URL was unexpectedly null for " + entryName, urlOrNull); in checkGetEntryUrlOrNull() 151 File jarFile, String entryName, URLStreamHandler streamHandler) throws IOException { in assertOpenConnectionConnectFails() argument 153 URL standardUrl = createJarUrl(jarFile, entryName, null /* use default stream handler */); in assertOpenConnectionConnectFails() 160 URL actualUrl = createJarUrl(jarFile, entryName, streamHandler); in assertOpenConnectionConnectFails() 168 private static void assertOpenConnectionOk(File jarFile, String entryName, in assertOpenConnectionOk() argument 170 URL standardUrl = createJarUrl(jarFile, entryName, null /* use default stream handler */); in assertOpenConnectionOk() 174 URL actualUrl = createJarUrl(jarFile, entryName, streamHandler); in assertOpenConnectionOk() 217 private static URL createJarUrl(File jarFile, String entryName, URLStreamHandler streamHandler) in createJarUrl() argument [all …]
|
/libcore/ojluni/src/main/java/java/text/ |
D | EntryPair.java | 48 public String entryName; field in EntryPair 56 this.entryName = name; in EntryPair()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | JarEntryTest.java | 41 private final String entryName = "foo/bar/A.class"; field in JarEntryTest 72 JarEntry newJarEntry = new JarEntry(jarFile.getJarEntry(entryName)); in test_ConstructorLjava_util_jar_JarEntry() 86 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_util_zip_ZipEntry() 90 assertEquals("Wrong entry constructed--wrong name", entryName, jarEntry in test_ConstructorLjava_util_zip_ZipEntry()
|
D | JarFileTest.java | 97 private final String entryName = "foo/bar/A.class"; field in JarFileTest 277 assertTrue(new JarFile(f).getEntry(entryName).getName().equals( in testConstructor_file() 278 entryName)); in testConstructor_file() 279 assertTrue(new JarFile(f.getPath()).getEntry(entryName).getName() in testConstructor_file() 280 .equals(entryName)); in testConstructor_file() 312 entryName).getSize()); in test_getEntryLjava_lang_String() 349 entryName).getSize()); in test_getJarEntryLjava_lang_String() 385 entryName).getSize()); in testGetJarEntry() 979 java.io.InputStream is = jf.getInputStream(jf.getEntry(entryName)); in test_getInputStreamLjava_util_jar_JarEntry()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | URLClassPath.java | 798 String entryName; 803 entryName = entry.getName(); 804 if((pos = entryName.lastIndexOf("/")) != -1) 805 entryName = entryName.substring(0, pos); 806 if (entryName.equals(packageName)) {
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | AbstractZipFileTest.java | 524 for (String entryName : entryNames) { in testArchivesWithRelativePaths() 525 ZipEntry ze = new ZipEntry(entryName); in testArchivesWithRelativePaths() 544 for (String entryName : entryNames) { in testArchivesWithRelativePaths() 545 assertTrue(entryNamesFromFile.contains(entryName)); in testArchivesWithRelativePaths()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | DexPathList.java | 558 String entryName = new File(dir, name).getPath(); in findNativeLibrary() local 559 if (urlHandler.isEntryStored(entryName)) { in findNativeLibrary() 560 return zip.getPath() + zipSeparator + entryName; in findNativeLibrary()
|
/libcore/ojluni/src/main/native/ |
D | zip_util.c | 710 const char* entryName = (const char *)cp + CENHDR; in readCEN() local 711 if (!isValidEntryName(entryName, nlen)) { in readCEN() 716 if (isMetaName(entryName, nlen)) { in readCEN() 724 entries[i].hash = hashN(entryName, nlen); in readCEN() 738 if (strncmp(entryName, chainName, nlen) == 0) { in readCEN()
|