/libcore/ojluni/src/main/native/ |
D | zip_util.c | 260 jzfile *zip; in allocZip() local 261 if (((zip = calloc(1, sizeof(jzfile))) != NULL) && in allocZip() 262 ((zip->name = strdup(name)) != NULL) && in allocZip() 263 ((zip->lock = MCREATE()) != NULL)) { in allocZip() 264 zip->zfd = -1; in allocZip() 265 return zip; in allocZip() 268 if (zip != NULL) { in allocZip() 269 free(zip->name); in allocZip() 270 free(zip); in allocZip() 279 freeZip(jzfile *zip) in freeZip() argument [all …]
|
D | ZipFile.c | 89 jzfile *zip = 0; in ZipFile_open() local 96 zip = ZIP_Get_From_Cache(path, &msg, lastModified); in ZipFile_open() 97 if (zip == 0 && msg == 0) { in ZipFile_open() 113 zip = ZIP_Put_In_Cache0(env, thiz, path, zfd, &msg, lastModified, usemmap); in ZipFile_open() 116 if (zip != 0) { in ZipFile_open() 117 result = ptr_to_jlong(zip); in ZipFile_open() 135 jzfile *zip = jlong_to_ptr(zfile); in ZipFile_getTotal() local 137 return zip->total; in ZipFile_getTotal() 143 jzfile *zip = jlong_to_ptr(zfile); in ZipFile_startsWithLOC() local 145 return zip->locsig; in ZipFile_startsWithLOC() [all …]
|
D | zip_util.h | 248 ZIP_FindEntry(jzfile *zip, char *name, jint *sizeP, jint *nameLenP); 251 ZIP_ReadEntry(jzfile *zip, jzentry *entry, unsigned char *buf, char *entrynm); 254 ZIP_GetNextEntry(jzfile *zip, jint n); 272 ZIP_Close(jzfile *zip); 275 ZIP_GetEntry(jzfile *zip, char *name, jint ulen); 277 ZIP_Lock(jzfile *zip); 279 ZIP_Unlock(jzfile *zip); 281 ZIP_Read(jzfile *zip, jzentry *entry, jlong pos, void *buf, jint len); 283 ZIP_FreeEntry(jzfile *zip, jzentry *ze); 284 jlong ZIP_GetEntryDataOffset(jzfile *zip, jzentry *entry); [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/zip/ |
D | ZipOutputStream.java | 27 package java.util.zip; 32 public class ZipOutputStream extends java.util.zip.DeflaterOutputStream 33 implements java.util.zip.ZipConstants { 45 private static int version(java.util.zip.ZipEntry e) throws java.util.zip.ZipException { in version() 65 public void putNextEntry(java.util.zip.ZipEntry e) throws java.io.IOException { in putNextEntry() 85 private void writeLOC(java.util.zip.ZipOutputStream.XEntry xentry) throws java.io.IOException { in writeLOC() 89 private void writeEXT(java.util.zip.ZipEntry e) throws java.io.IOException { in writeEXT() 93 private void writeCEN(java.util.zip.ZipOutputStream.XEntry xentry) throws java.io.IOException { in writeCEN() 137 private java.util.zip.CRC32 crc; 139 private java.util.zip.ZipOutputStream.XEntry current; [all …]
|
D | ZipFile.java | 27 package java.util.zip; 32 public class ZipFile implements java.util.zip.ZipConstants, java.io.Closeable { 42 public ZipFile(java.io.File file) throws java.io.IOException, java.util.zip.ZipException { in ZipFile() 64 public java.util.zip.ZipEntry getEntry(java.lang.String name) { in getEntry() 73 public java.io.InputStream getInputStream(java.util.zip.ZipEntry entry) in getInputStream() 78 private java.util.zip.Inflater getInflater() { in getInflater() 82 private void releaseInflater(java.util.zip.Inflater inf) { in releaseInflater() 90 public java.util.Enumeration<? extends java.util.zip.ZipEntry> entries() { in entries() 94 public java.util.stream.Stream<? extends java.util.zip.ZipEntry> stream() { in stream() 98 private java.util.zip.ZipEntry getZipEntry(java.lang.String name, long jzentry) { in getZipEntry() [all …]
|
D | ZipInputStream.java | 27 package java.util.zip; 32 public class ZipInputStream extends java.util.zip.InflaterInputStream 33 implements java.util.zip.ZipConstants { 49 public java.util.zip.ZipEntry getNextEntry() throws java.io.IOException { in getNextEntry() 73 private java.util.zip.ZipEntry readLOC() throws java.io.IOException { in readLOC() 77 protected java.util.zip.ZipEntry createZipEntry(java.lang.String name) { in createZipEntry() 81 private void readEnd(java.util.zip.ZipEntry e) throws java.io.IOException { in readEnd() 97 private java.util.zip.CRC32 crc; 99 private java.util.zip.ZipEntry entry; 111 private java.util.zip.ZipCoder zc;
|
D | ZipEntry.java | 27 package java.util.zip; 32 public class ZipEntry implements java.util.zip.ZipConstants, java.lang.Cloneable { 52 public ZipEntry(java.util.zip.ZipEntry e) { in ZipEntry() 76 public java.util.zip.ZipEntry setLastModifiedTime(java.nio.file.attribute.FileTime time) { in setLastModifiedTime() 84 public java.util.zip.ZipEntry setLastAccessTime(java.nio.file.attribute.FileTime time) { in setLastAccessTime() 92 public java.util.zip.ZipEntry setCreationTime(java.nio.file.attribute.FileTime time) { in setCreationTime()
|
D | Inflater.java | 27 package java.util.zip; 74 public int inflate(byte[] b, int off, int len) throws java.util.zip.DataFormatException { in inflate() 78 public int inflate(byte[] b) throws java.util.zip.DataFormatException { in inflate() 127 throws java.util.zip.DataFormatException; in inflateBytes()
|
/libcore/ojluni/src/test/java/util/zip/ |
D | CloseInflaterDeflaterTest.java | 30 package test.java.util.zip; 35 import java.util.zip.DeflaterInputStream; 36 import java.util.zip.DeflaterOutputStream; 37 import java.util.zip.GZIPOutputStream; 38 import java.util.zip.InflaterOutputStream; 39 import java.util.zip.ZipOutputStream; 40 import java.util.zip.ZipEntry; 203 public void testZipCloseEntry(ZipOutputStream zip) throws IOException { in testZipCloseEntry() argument 204 assertThrows(IOException.class , () -> zip.putNextEntry(new ZipEntry(""))); in testZipCloseEntry() 205 zip.write(inputBytes, 0, INPUT_LENGTH); in testZipCloseEntry() [all …]
|
D | TestChecksum.java | 25 package test.java.util.zip; 32 import java.util.zip.CRC32C; 33 import java.util.zip.Checksum;
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | ZipOutputStreamTest.java | 17 package libcore.java.util.zip; 29 import java.util.zip.ZipEntry; 30 import java.util.zip.ZipException; 31 import java.util.zip.ZipFile; 32 import java.util.zip.ZipInputStream; 33 import java.util.zip.ZipOutputStream; 46 byte[] zipped = zip("short", data); in testShortMessage() 53 byte[] zipped = zip("z", data); in test3181430() 60 assertTrue(Arrays.equals(data, ZipInputStreamTest.unzip("r", zip("r", data)))); in testLongMessage() 63 public static byte[] zip(String name, byte[] bytes) throws IOException { in zip() method in ZipOutputStreamTest
|
D | OldAndroidZipStressTest.java | 17 package libcore.java.util.zip; 28 import java.util.zip.Deflater; 29 import java.util.zip.Inflater; 30 import java.util.zip.ZipEntry; 31 import java.util.zip.ZipFile; 84 ZipFile zip = new ZipFile(file); in testZipStressManifest() local 85 ZipEntry entry = zip.getEntry("AndroidManifest.xml"); in testZipStressManifest() 86 InputStream stream = zip.getInputStream(entry); in testZipStressManifest() 102 ZipFile zip = new ZipFile(file); in testZipStressAllFiles() local 103 Enumeration<? extends ZipEntry> entries = zip.entries(); in testZipStressAllFiles() [all …]
|
D | ZipInputStreamTest.java | 17 package libcore.java.util.zip; 28 import java.util.zip.ZipEntry; 29 import java.util.zip.ZipInputStream; 30 import java.util.zip.ZipOutputStream; 42 byte[] zipped = ZipOutputStreamTest.zip("short", data); in testShortMessage() 49 assertTrue(Arrays.equals(data, unzip("r", ZipOutputStreamTest.zip("r", data)))); in testLongMessage() 118 zip(new String[] { "foo", "bar", "baz" }, new byte[] { 0, 0, 0, 1, 1, 1 }))); in testAvailable() 159 private static byte[] zip(String[] names, byte[] bytes) throws IOException { in zip() method in ZipInputStreamTest
|
D | ZipFileTest.java | 17 package libcore.java.util.zip; 28 import java.util.zip.ZipEntry; 29 import java.util.zip.ZipException; 30 import java.util.zip.ZipFile; 31 import java.util.zip.ZipOutputStream;
|
D | DeflaterOutputStreamTest.java | 17 package libcore.java.util.zip; 31 import java.util.zip.Deflater; 32 import java.util.zip.DeflaterOutputStream; 33 import java.util.zip.GZIPInputStream; 34 import java.util.zip.GZIPOutputStream; 35 import java.util.zip.InflaterInputStream;
|
D | OldZipFileTest.java | 18 package libcore.java.util.zip; 25 import java.util.zip.ZipEntry; 26 import java.util.zip.ZipFile; 51 java.util.zip.ZipEntry zentry = zfile.getEntry("File1.txt"); in test_getEntryLjava_lang_String_AndroidOnly() 108 java.util.zip.ZipEntry zentry = zfile.getEntry("File1.txt"); in test_getEntryLjava_lang_String_Ex()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipFileTest.java | 18 package org.apache.harmony.tests.java.util.zip; 29 import java.util.zip.ZipEntry; 30 import java.util.zip.ZipException; 31 import java.util.zip.ZipFile; 32 import java.util.zip.ZipOutputStream; 51 ZipFile zip = new ZipFile(file, ZipFile.OPEN_DELETE | ZipFile.OPEN_READ); in test_ConstructorLjava_io_FileI() local 52 zip.close(); in test_ConstructorLjava_io_FileI() 57 zip = new ZipFile(file, ZipFile.OPEN_READ); in test_ConstructorLjava_io_FileI() 64 zip = new ZipFile(file, -1); in test_ConstructorLjava_io_FileI() 77 ZipFile zip = new ZipFile(tempFileName); in test_ConstructorLjava_lang_String() local [all …]
|
D | ZipOutputStreamTest.java | 17 package org.apache.harmony.tests.java.util.zip; 29 import java.util.zip.CRC32; 30 import java.util.zip.ZipEntry; 31 import java.util.zip.ZipException; 32 import java.util.zip.ZipInputStream; 33 import java.util.zip.ZipOutputStream; 215 ZipOutputStream zip = new ZipOutputStream(stream); in test_write$BII() local 216 zip.setMethod(ZipEntry.STORED); in test_write$BII() 219 zip.putNextEntry(new ZipEntry("Second")); in test_write$BII() 227 zip.write(new byte[2]); in test_write$BII() [all …]
|
D | CheckedOutputStreamTest.java | 17 package org.apache.harmony.tests.java.util.zip; 22 import java.util.zip.Adler32; 23 import java.util.zip.CRC32; 24 import java.util.zip.CheckedOutputStream;
|
/libcore/ojluni/src/test/java/util/zip/ZipFile/ |
D | TestCleaner.java | 31 package test.java.util.zip.ZipFile; 38 import java.util.zip.*; 112 private static Object openAndCloseZipFile(File zip) throws Throwable { in openAndCloseZipFile() argument 114 try (var fos = new FileOutputStream(zip); in openAndCloseZipFile() 121 var zf = new ZipFile(zip); in openAndCloseZipFile() 145 zip.delete(); in openAndCloseZipFile() 154 File zip = File.createTempFile("testzf", "zip", dir.toFile()); in testZipFile() local 156 Object zsrc = openAndCloseZipFile(zip); in testZipFile()
|
D | Zip64SizeTest.java | 23 package test.java.util.zip.ZipFile; 35 import java.util.zip.ZipEntry; 36 import java.util.zip.ZipFile; 37 import java.util.zip.ZipOutputStream; 87 try (ZipFile zip = new ZipFile(ZIP_FILE_NAME)) { in validateZipEntrySizes() argument 88 ZipEntry ze = zip.getEntry(LARGE_FILE_NAME); in validateZipEntrySizes() 91 ze = zip.getEntry(SMALL_FILE_NAME); in validateZipEntrySizes()
|
/libcore/ojluni/annotations/flagged_api/java/util/zip/ |
D | Inflater.annotated.java | 28 package java.util.zip; 59 public int inflate(byte[] output, int off, int len) throws java.util.zip.DataFormatException { thro… in inflate() 61 public int inflate(byte[] output) throws java.util.zip.DataFormatException { throw new RuntimeExcep… in inflate() 64 public int inflate(java.nio.ByteBuffer output) throws java.util.zip.DataFormatException { throw new… in inflate()
|
D | ZipEntry.annotated.java | 28 package java.util.zip; 35 public ZipEntry(java.util.zip.ZipEntry e) { throw new RuntimeException("Stub!"); } in ZipEntry() 52 public java.util.zip.ZipEntry setLastModifiedTime(java.nio.file.attribute.FileTime time) { throw ne… in setLastModifiedTime() 56 public java.util.zip.ZipEntry setLastAccessTime(java.nio.file.attribute.FileTime time) { throw new … in setLastAccessTime() 60 public java.util.zip.ZipEntry setCreationTime(java.nio.file.attribute.FileTime time) { throw new Ru… in setCreationTime()
|
/libcore/ojluni/annotations/hiddenapi/java/util/jar/ |
D | JarFile.java | 32 public class JarFile extends java.util.zip.ZipFile { 74 public java.util.zip.ZipEntry getEntry(java.lang.String name) { in getEntry() 94 private byte[] getBytes(java.util.zip.ZipEntry ze) throws java.io.IOException { in getBytes() 98 public synchronized java.io.InputStream getInputStream(java.util.zip.ZipEntry ze) in getInputStream() 119 java.util.jar.JarEntry newEntry(java.util.zip.ZipEntry ze) { in newEntry() 183 final java.util.Enumeration<? extends java.util.zip.ZipEntry> e; 193 JarFileEntry(java.util.zip.ZipEntry ze) { in JarFileEntry()
|
/libcore/ojluni/annotations/mmodule/java/util/zip/ |
D | ZipEntry.annotated.java | 28 package java.util.zip; 39 public ZipEntry(java.util.zip.ZipEntry e) { throw new RuntimeException("Stub!"); } in ZipEntry() 50 public java.util.zip.ZipEntry setLastModifiedTime(java.nio.file.attribute.FileTime time) { throw ne… in setLastModifiedTime() 54 public java.util.zip.ZipEntry setLastAccessTime(java.nio.file.attribute.FileTime time) { throw new … in setLastAccessTime() 58 public java.util.zip.ZipEntry setCreationTime(java.nio.file.attribute.FileTime time) { throw new Ru… in setCreationTime()
|