Home
last modified time | relevance | path

Searched refs:zipEntry (Results 1 – 14 of 14) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarInputStreamTest.java178 ZipEntry zipEntry = null; in test_JarInputStream_Modified_Class_getNextEntry() local
181 while (count == 0 || zipEntry != null) { in test_JarInputStream_Modified_Class_getNextEntry()
184 zipEntry = jin.getNextEntry(); in test_JarInputStream_Modified_Class_getNextEntry()
226 ZipEntry zipEntry = null; in test_JarInputStream_Modified_Manifest_EntryAttributes_getNextEntry() local
229 while (count == 0 || zipEntry != null) { in test_JarInputStream_Modified_Manifest_EntryAttributes_getNextEntry()
232 zipEntry = jin.getNextEntry(); in test_JarInputStream_Modified_Manifest_EntryAttributes_getNextEntry()
253 ZipEntry zipEntry = null; in test_JarInputStream_Modified_SF_EntryAttributes_getNextEntry() local
256 while (count == 0 || zipEntry != null) { in test_JarInputStream_Modified_SF_EntryAttributes_getNextEntry()
259 zipEntry = jin.getNextEntry(); in test_JarInputStream_Modified_SF_EntryAttributes_getNextEntry()
279 ZipEntry zipEntry = null; in test_JarInputStream_Modified_Class_read() local
[all …]
DJarFileTest.java676 ZipEntry zipEntry = entries.nextElement(); in test_Jar_created_before_java_5() local
677 jarFile.getInputStream(zipEntry); in test_Jar_created_before_java_5()
689 ZipEntry zipEntry = entries.nextElement(); in test_JarFile_Integrate_Jar() local
690 jarFile.getInputStream(zipEntry).skip(Long.MAX_VALUE); in test_JarFile_Integrate_Jar()
702 ZipEntry zipEntry = jarFile.getJarEntry(integrateJarEntry); in testJarVerificationModifiedEntry() local
703 zipEntry.setSize(zipEntry.getSize() + 1); in testJarVerificationModifiedEntry()
704 jarFile.getInputStream(zipEntry).skip(Long.MAX_VALUE); in testJarVerificationModifiedEntry()
708 ZipEntry zipEntry = jarFile.getJarEntry(integrateJarEntry); in testJarVerificationModifiedEntry() local
709 zipEntry.setSize(zipEntry.getSize() - 1); in testJarVerificationModifiedEntry()
712 jarFile.getInputStream(zipEntry).read(new byte[5000], 0, 5000); in testJarVerificationModifiedEntry()
[all …]
DJarEntryTest.java33 private ZipEntry zipEntry; field in JarEntryTest
86 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_util_zip_ZipEntry()
87 assertNotNull("Zip entry is null", zipEntry); in test_ConstructorLjava_util_zip_ZipEntry()
88 jarEntry = new JarEntry(zipEntry); in test_ConstructorLjava_util_zip_ZipEntry()
132 zipEntry = jarFile.getEntry(entryName2); in testCertificatesAndCodesigners()
133 jarEntry = new JarEntry(zipEntry); in testCertificatesAndCodesigners()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipOutputStreamTest.java305 ZipEntry zipEntry; in test_timeSerializationRounding() local
307 entries.add(zipEntry = new ZipEntry("test1")); in test_timeSerializationRounding()
309 zipEntry.setTime(someTimestamp); in test_timeSerializationRounding()
311 entries.add(zipEntry = new ZipEntry("test2")); in test_timeSerializationRounding()
312 zipEntry.setLastModifiedTime(FileTime.fromMillis(someTimestamp)); in test_timeSerializationRounding()
344 ZipEntry zipEntry; in test_exttSupport() local
366 entries.add(zipEntry = new ZipEntry("test_setTime")); in test_exttSupport()
367 zipEntry.setTime(0); in test_exttSupport()
368 assertNotNull(mtimeField.get(zipEntry)); in test_exttSupport()
371 entries.add(zipEntry = new ZipEntry("test_setLastModifiedTime")); in test_exttSupport()
[all …]
DZipEntryTest.java87 ZipEntry zipEntry = new ZipEntry("zippy.zip"); in test_getComment() local
88 assertNull("Incorrect Comment Returned.", zipEntry.getComment()); in test_getComment()
89 zipEntry.setComment("This Is A Comment"); in test_getComment()
91 "This Is A Comment", zipEntry.getComment()); in test_getComment()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarEntryTest.java30 private ZipEntry zipEntry; field in OldJarEntryTest
73 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_util_zip_ZipEntry()
74 assertNotNull("Zip entry is null", zipEntry); in test_ConstructorLjava_util_zip_ZipEntry()
75 jarEntry = new JarEntry(zipEntry); in test_ConstructorLjava_util_zip_ZipEntry()
103 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_lang_String()
104 assertNotNull("Zip entry is null", zipEntry); in test_ConstructorLjava_lang_String()
/libcore/luni/src/test/java/libcore/java/util/zip/
DZipFileTest.java63 ZipEntry zipEntry = zipFile.entries().nextElement(); in test_zipFileWith_cp1251_fileNames() local
65 assertEquals("имя файла", zipEntry.getName()); in test_zipFileWith_cp1251_fileNames()
69 ZipEntry zipEntry = zipFile.entries().nextElement(); in test_zipFileWith_cp1251_fileNames() local
71 assertEquals("имя файла", zipEntry.getName()); in test_zipFileWith_cp1251_fileNames()
DAbstractZipFileTest.java58 ZipEntry zipEntry = e.nextElement(); in testInflatingFilesRequiringZipRefill() local
60 zipEntry.getCompressedSize() > (64 * 1024)); in testInflatingFilesRequiringZipRefill()
61 InputStream is = zipFile.getInputStream(zipEntry); in testInflatingFilesRequiringZipRefill()
195 ZipEntry zipEntry = e.nextElement(); in testZipFileWithLotsOfEntries() local
/libcore/benchmarks/src/benchmarks/
DZipFileReadBenchmark.java43 ZipEntry zipEntry = e.nextElement(); in setUp() local
79 ZipEntry zipEntry = e.nextElement(); in timeZipFileRead() local
80 InputStream is = zipFile.getInputStream(zipEntry); in timeZipFileRead()
DZipFileBenchmark.java44 ZipEntry zipEntry = e.nextElement(); in setUp() local
/libcore/ojluni/src/test/java/util/zip/ZipFile/
DZip64SizeTest.java124 ZipEntry zipEntry = new ZipEntry(fileToZip.getName()); in createZipFile() local
125 zipEntry.setSize(fileToZip.length()); in createZipFile()
126 zos.putNextEntry(zipEntry); in createZipFile()
/libcore/tools/non-cts-json-generator/src/libcore/tools/generator/noncts/
DMain.java156 ZipEntry zipEntry = zipEntries.nextElement(); in parse() local
157 if (!zipEntry.getName().endsWith(".class")) { in parse()
161 ClassNode classNode = parseClass(zipFile, zipEntry); in parse()
175 private static ClassNode parseClass(ZipFile zipFile, ZipEntry zipEntry) throws IOException { in parseClass() argument
176 try (InputStream in = zipFile.getInputStream(zipEntry)) { in parseClass()
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/
DDependencyAnalyzer.java236 .filter(zipEntry -> zipEntry.getName().endsWith(".class")) in getEntriesFromNameOrThrow()
237 .filter(zipEntry -> Arrays.stream(prefixes) in getEntriesFromNameOrThrow()
238 .anyMatch(prefix -> zipEntry.getName().startsWith(prefix))) in getEntriesFromNameOrThrow()
512 ZipEntry zipEntry = ClassFileUtil.getEntryFromClassName(zipFile, in getClassNode() local
514 if (zipEntry == null) { in getClassNode()
517 try (InputStream in = zipFile.getInputStream(zipEntry)) { in getClassNode()
DMain.java611 ZipEntry zipEntry = zipEntries.nextElement(); in run() local
612 if (!nameTest.test(zipEntry.getName())) { in run()
616 ClassNode newNode = readClassNode(newZip, zipEntry); in run()
679 ZipEntry zipEntry = ClassFileUtil.getEntryFromClassName(zipFile, outerClass.get(), in isClassExposed() local
681 if (zipEntry == null) { in isClassExposed()
686 try (InputStream in = zipFile.getInputStream(zipEntry)) { in isClassExposed()