Home
last modified time | relevance | path

Searched refs:zipFile (Results 1 – 7 of 7) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidZipFileTest.java101 ZipFile zipFile = new ZipFile(fileName); in scanZip() local
106 for (fileList = zipFile.entries(); fileList.hasMoreElements();) { in scanZip()
113 zipFile.close(); in scanZip()
124 ZipFile zipFile; in read2() local
131 zipFile = new ZipFile(fileName); in read2()
132 entry1 = zipFile.getEntry("file-1"); in read2()
133 entry2 = zipFile.getEntry("file-2"); in read2()
140 stream1 = zipFile.getInputStream(entry1); in read2()
141 stream2 = zipFile.getInputStream(entry2); in read2()
178 stream1 = zipFile.getInputStream(zipFile.getEntry("file-0")); in read2()
[all …]
DZipEntryTest.java67 ZipFile zipFile = new ZipFile(f); in test_utf8FileNames() local
69 assertNotNull(filename, zipFile.getEntry(filename)); in test_utf8FileNames()
114 ZipFile zipFile = new ZipFile(f); in testMaxLengthName() local
115 assertNotNull(zipFile.getEntry(maxLengthName)); in testMaxLengthName()
116 zipFile.close(); in testMaxLengthName()
141 ZipFile zipFile = new ZipFile(f); in testMaxLengthExtra() local
142 assertEquals(maxLengthExtra.length, zipFile.getEntry("x").getExtra().length); in testMaxLengthExtra()
143 zipFile.close(); in testMaxLengthExtra()
168 ZipFile zipFile = new ZipFile(f); in testMaxLengthComment() local
169 assertEquals(maxLengthComment, zipFile.getEntry("x").getComment()); in testMaxLengthComment()
[all …]
DZipFileTest.java55 ZipFile zipFile = new ZipFile(createZipFile(1, originalSize)); in testInflatingFilesRequiringZipRefill() local
56 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in testInflatingFilesRequiringZipRefill()
60 InputStream is = zipFile.getInputStream(zipEntry); in testInflatingFilesRequiringZipRefill()
64 zipFile.close(); in testInflatingFilesRequiringZipRefill()
155 File zipFile = createTemporaryZipFile(); in testStoredEntrySize() local
156 writeBytes(zipFile, outBuffer); in testStoredEntrySize()
158 ZipFile zip = new ZipFile(zipFile); in testStoredEntrySize()
187 ZipFile zipFile = new ZipFile(f); in testZipFileWithLotsOfEntries() local
189 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in testZipFileWithLotsOfEntries()
194 zipFile.close(); in testZipFileWithLotsOfEntries()
[all …]
/libcore/benchmarks/src/benchmarks/
DBufferedZipFileBenchmark.java56 ZipFile zipFile = new ZipFile(file); in timeUnbufferedRead() local
57 ZipEntry entry = zipFile.getEntry("entry.data"); in timeUnbufferedRead()
58 InputStream in = zipFile.getInputStream(entry); in timeUnbufferedRead()
63 zipFile.close(); in timeUnbufferedRead()
69 ZipFile zipFile = new ZipFile(file); in timeBufferedRead() local
70 ZipEntry entry = zipFile.getEntry("entry.data"); in timeBufferedRead()
71 InputStream in = new BufferedInputStream(zipFile.getInputStream(entry)); in timeBufferedRead()
76 zipFile.close(); in timeBufferedRead()
/libcore/luni/src/main/java/java/util/jar/
DJarFile.java321 static HashMap<String, byte[]> readMetaEntries(ZipFile zipFile, in readMetaEntries() argument
324 List<ZipEntry> metaEntries = getMetaEntries(zipFile); in readMetaEntries()
338 zipFile.getInputStream(entry))); in readMetaEntries()
350 InputStream is = zipFile.getInputStream(entry); in readMetaEntries()
425 private static List<ZipEntry> getMetaEntries(ZipFile zipFile) { in getMetaEntries() argument
428 Enumeration<? extends ZipEntry> allEntries = zipFile.entries(); in getMetaEntries()
/libcore/dalvik/src/main/java/dalvik/system/
DDexPathList.java399 private ZipFile zipFile; field in DexPathList.Element
431 zipFile = new ZipFile(zip); in maybeInit()
440 zipFile = null; in maybeInit()
460 if (zipFile == null || zipFile.getEntry(name) == null) { in findResource()
/libcore/dex/src/main/java/com/android/dex/
DDex.java104 ZipFile zipFile = new ZipFile(file); in Dex() local
105 ZipEntry entry = zipFile.getEntry(DexFormat.DEX_IN_JAR_NAME); in Dex()
107 loadFrom(zipFile.getInputStream(entry)); in Dex()
108 zipFile.close(); in Dex()