/libcore/ojluni/src/main/native/ |
D | zip_util.c | 224 jzfile *zip; in allocZip() local 225 if (((zip = calloc(1, sizeof(jzfile))) != NULL) && in allocZip() 226 ((zip->name = strdup(name)) != NULL) && in allocZip() 227 ((zip->lock = MCREATE()) != NULL)) { in allocZip() 228 zip->zfd = -1; in allocZip() 229 return zip; in allocZip() 232 if (zip != NULL) { in allocZip() 233 free(zip->name); in allocZip() 234 free(zip); in allocZip() 243 freeZip(jzfile *zip) in freeZip() argument [all …]
|
D | ZipFile.c | 95 jzfile *zip = 0; in ZipFile_open() local 102 zip = ZIP_Get_From_Cache(path, &msg, lastModified); in ZipFile_open() 103 if (zip == 0 && msg == 0) { in ZipFile_open() 118 zip = ZIP_Put_In_Cache0(path, zfd, &msg, lastModified, usemmap); in ZipFile_open() 121 if (zip != 0) { in ZipFile_open() 122 result = ptr_to_jlong(zip); in ZipFile_open() 140 jzfile *zip = jlong_to_ptr(zfile); in ZipFile_getTotal() local 142 return zip->total; in ZipFile_getTotal() 148 jzfile *zip = jlong_to_ptr(zfile); in ZipFile_startsWithLOC() local 150 return zip->locsig; in ZipFile_startsWithLOC() [all …]
|
D | zip_util.h | 247 ZIP_FindEntry(jzfile *zip, char *name, jint *sizeP, jint *nameLenP); 250 ZIP_ReadEntry(jzfile *zip, jzentry *entry, unsigned char *buf, char *entrynm); 253 ZIP_GetNextEntry(jzfile *zip, jint n); 271 ZIP_Close(jzfile *zip); 273 jzentry * ZIP_GetEntry(jzfile *zip, char *name, jint ulen); 274 void ZIP_Lock(jzfile *zip); 275 void ZIP_Unlock(jzfile *zip); 276 jint ZIP_Read(jzfile *zip, jzentry *entry, jlong pos, void *buf, jint len); 277 void ZIP_FreeEntry(jzfile *zip, jzentry *ze); 278 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 | 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() 166 private final java.util.zip.ZStreamRef zsRef;
|
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()
|
/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 | 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()
|
D | ZipFileTest.java | 17 package libcore.java.util.zip; 30 import java.util.zip.ZipEntry; 31 import java.util.zip.ZipFile; 32 import java.util.zip.ZipOutputStream;
|
D | OldZipInputStreamTest.java | 18 package libcore.java.util.zip; 25 import java.util.zip.ZipEntry; 26 import java.util.zip.ZipException; 27 import java.util.zip.ZipInputStream; 28 import java.util.zip.ZipOutputStream;
|
D | Zip64FileTest.java | 17 package libcore.java.util.zip; 28 import java.util.zip.ZipEntry; 29 import java.util.zip.ZipFile; 30 import java.util.zip.ZipOutputStream;
|
D | OldAndroidChecksumTest.java | 17 package libcore.java.util.zip; 21 import java.util.zip.Adler32; 22 import java.util.zip.CRC32;
|
D | OldZipExceptionTest.java | 17 package libcore.java.util.zip; 21 import java.util.zip.ZipException;
|
/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; 28 import java.util.zip.CRC32; 29 import java.util.zip.ZipEntry; 30 import java.util.zip.ZipException; 31 import java.util.zip.ZipInputStream; 32 import java.util.zip.ZipOutputStream; 211 ZipOutputStream zip = new ZipOutputStream(stream); in test_write$BII() local 212 zip.setMethod(ZipEntry.STORED); in test_write$BII() 215 zip.putNextEntry(new ZipEntry("Second")); in test_write$BII() 223 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/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()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FilterInputStreamNullSourceTest.java | 29 import java.util.zip.CRC32; 30 import java.util.zip.CheckedInputStream; 31 import java.util.zip.Inflater; 32 import java.util.zip.InflaterInputStream;
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | TEST_MAPPING | 7 "include-filter": "libcore.java.util.zip" 10 "include-filter": "org.apache.harmony.tests.java.util.zip"
|