Home
last modified time | relevance | path

Searched refs:zis (Results 1 – 8 of 8) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipInputStreamTest.java43 private ZipInputStream zis; field in ZipInputStreamTest
56 zis = new ZipInputStream(is); in setUp()
74 if (zis != null) { in tearDown()
76 zis.close(); in tearDown()
86 zentry = zis.getNextEntry(); in test_ConstructorLjava_io_InputStream()
87 zis.closeEntry(); in test_ConstructorLjava_io_InputStream()
95 zis.close(); in test_close()
97 zis.read(rbuf, 0, 1); in test_close()
109 zis.close(); in test_close2()
111 zis.close(); in test_close2()
[all …]
DZipOutputStreamTest.java51 ZipInputStream zis; field in ZipOutputStreamTest
116 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray())); in test_putNextEntryLjava_util_zip_ZipEntry()
117 ZipEntry ze2 = zis.getNextEntry(); in test_putNextEntryLjava_util_zip_ZipEntry()
118 zis.closeEntry(); in test_putNextEntryLjava_util_zip_ZipEntry()
201 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray())); in test_write$BII()
202 zis.getNextEntry(); in test_write$BII()
206 while (count != b.length && (r = zis.read(b, count, b.length)) != -1) { in test_write$BII()
209 zis.closeEntry(); in test_write$BII()
321 try (ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray()))) { in test_timeSerializationRounding() argument
323 ZipEntry readEntry = zis.getNextEntry(); in test_timeSerializationRounding()
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DZipInputStreamTest.java117 ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream( in testAvailable() local
120 assertEquals(1, zis.available()); in testAvailable()
121 zis.getNextEntry(); in testAvailable()
122 assertEquals(1, zis.available()); in testAvailable()
123 zis.closeEntry(); in testAvailable()
127 assertEquals(0, zis.available()); in testAvailable()
130 zis.getNextEntry(); in testAvailable()
131 Streams.readFullyNoClose(zis); in testAvailable()
132 assertEquals(0, zis.available()); in testAvailable()
135 zis.getNextEntry(); in testAvailable()
[all …]
DOldZipInputStreamTest.java33 private ZipInputStream zis; field in OldZipInputStreamTest
42 zis = new ZipInputStream(is); in setUp()
55 if (zis != null) { in tearDown()
56 zis.close(); in tearDown()
119 zis.getNextEntry(); in test_closeEntry()
120 zis.closeEntry(); in test_closeEntry()
121 zis.getNextEntry(); in test_closeEntry()
122 zis.close(); in test_closeEntry()
124 zis.closeEntry(); in test_closeEntry()
DZipOutputStreamTest.java127 try (ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray()))) { in testPutNextEntryUsingCurrentTime() argument
128 ZipEntry entry = zis.getNextEntry(); in testPutNextEntryUsingCurrentTime()
/libcore/ojluni/src/test/java/util/zip/
DTestExtraTime.java147 ZipInputStream zis = new ZipInputStream( in test0() local
149 ze = zis.getNextEntry(); in test0()
150 zis.close(); in test0()
299 try (ZipInputStream zis = new ZipInputStream( in testTagOnlyHandling() argument
301 ZipEntry ze = zis.getNextEntry(); in testTagOnlyHandling()
345 try (ZipInputStream zis = new ZipInputStream( in testNullMtime() argument
347 ZipEntry ze = zis.getNextEntry(); in testNullMtime()
DTestLocalTime.java103 ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream(zbytes)); in test() local
104 ZipEntry ze = zis.getNextEntry(); in test()
105 zis.close(); in test()
/libcore/luni/src/test/java/libcore/dalvik/system/
DZipPathValidatorTest.java123 try (ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream(badZipBytes))) { in testZipInputStreamCallback() argument
124 zis.getNextEntry(); in testZipInputStreamCallback()