/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | DeflaterTest.java | 79 x += defl.deflate(outPutBuf); in test_deflate$B() 82 .deflate(outPutBuf)); in test_deflate$B() 123 x += defl.deflate(outPutBuf, offSet, length); in test_deflate$BII() 125 assertEquals("Deflater at end of stream, should return 0", 0, defl.deflate( in test_deflate$BII() 164 defl.deflate(outPutBuf, offSet, length); in test_deflate$BII() 184 defl.deflate(outPutBuf); in test_end() 220 x += defl.deflate(outPutBuf); in test_finish() 256 defl.deflate(outPutBuf); in test_finished() 275 defl.deflate(outPutBuf); in test_getAdler() 300 defl.deflate(outPutBuf); in test_getTotalIn() [all …]
|
D | InflaterTest.java | 147 Deflater deflate = new Deflater(1); in test_getTotalIn() local 148 deflate.setInput(byteArray); in test_getTotalIn() 149 while (!(deflate.needsInput())) { in test_getTotalIn() 150 x += deflate.deflate(outPutBuf, x, outPutBuf.length - x); in test_getTotalIn() 152 deflate.finish(); in test_getTotalIn() 153 while (!(deflate.finished())) { in test_getTotalIn() 154 x = x + deflate.deflate(outPutBuf, x, outPutBuf.length - x); in test_getTotalIn() 172 deflate.getTotalOut(), inflate.getTotalIn()); in test_getTotalIn() 173 deflate.end(); in test_getTotalIn() 207 Deflater deflate = new Deflater(1); in test_getTotalOut() local [all …]
|
D | DeflaterOutputStreamTest.java | 58 protected void deflate() throws IOException { in deflate() method in DeflaterOutputStreamTest.MyDeflaterOutputStream 60 super.deflate(); in deflate() 75 Deflater deflate = new Deflater(1); in setUp() local 76 deflate.setInput(byteArray); in setUp() 77 while (!(deflate.needsInput())) { in setUp() 78 x += deflate.deflate(outputBuf, x, outputBuf.length - x); in setUp() 80 deflate.finish(); in setUp() 81 while (!(deflate.finished())) { in setUp() 82 x = x + deflate.deflate(outputBuf, x, outputBuf.length - x); in setUp() 84 deflate.end(); in setUp()
|
D | InflaterOutputStreamTest.java | 192 int length1 = defaultDeflater.deflate(compressedBytes); in test_finish() 199 … int length2 = bestDeflater.deflate(compressedBytes, length1, compressedBytes.length - length1); in test_finish() 419 return deflater.deflate(compressedBytes); in compressToBytes()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | DeflaterOutputStream.java | 212 deflate(); in write() 227 deflate(); in finish() 251 protected void deflate() throws IOException { in deflate() method in DeflaterOutputStream 259 while ((len = def.deflate(buf, 0, buf.length)) > 0) { in deflate() 282 while ((len = def.deflate(buf, 0, buf.length, Deflater.SYNC_FLUSH)) > 0) in flush()
|
D | Deflater.java | 383 public int deflate(byte[] b, int off, int len) { in deflate() method in Deflater 384 return deflate(b, off, len, NO_FLUSH); in deflate() 402 public int deflate(byte[] b) { in deflate() method in Deflater 403 return deflate(b, 0, b.length, NO_FLUSH); in deflate() 450 public int deflate(byte[] b, int off, int len, int flush) { in deflate() method in Deflater
|
D | GZIPOutputStream.java | 159 int len = def.deflate(buf, 0, buf.length); in finish()
|
D | DeflaterInputStream.java | 199 n = def.deflate(b, off, len); in read()
|
D | ZipOutputStream.java | 257 deflate(); in closeEntry()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | InflaterTest.java | 46 byte[] deflatedBytes = deflate(expectedBytes, dictionary); in assertRoundTrip() 101 byte[] emptyInput = deflate(new byte[0], null); in testEmptyFileAndEmptyBuffer() 110 private static byte[] deflate(byte[] input, byte[] dictionary) { in deflate() method in InflaterTest 121 int byteCount = deflater.deflate(buf); in deflate() 139 byte[] compressed = deflate(new byte[] { 1, 2, 3 }, null); in testInflaterCounts()
|
D | DeflaterTest.java | 81 int lastDeflated = deflater.deflate(compressed, totalDeflated, 109 assertEquals(11, deflater.deflate(compressed, 0, compressed.length, Deflater.FULL_FLUSH)); 116 assertEquals(9, deflater.deflate(compressed, 0, compressed.length, Deflater.FULL_FLUSH));
|
D | OldAndroidDeflateTest.java | 51 int compressedDataLength = compresser.deflate(output); in simpleTest() 154 compCount = deflater.deflate(outBuf, outPosn, LOCAL_BUF_SIZE); in compress()
|
D | DeflaterOutputStreamTest.java | 110 public int deflate(byte[] buf, int offset, int byteCount) { in deflate() method in DeflaterOutputStreamTest.FlushingDeflater 111 return super.deflate(buf, offset, byteCount, Deflater.SYNC_FLUSH); in deflate()
|
D | OldAndroidZipStressTest.java | 159 deflater.deflate(zipped); in testZipDeflateInflateStress()
|
/libcore/ojluni/annotations/hiddenapi/java/util/zip/ |
D | Deflater.java | 81 public int deflate(byte[] b, int off, int len) { in deflate() method in Deflater 85 public int deflate(byte[] b) { in deflate() method in Deflater 89 public int deflate(byte[] b, int off, int len, int flush) { in deflate() method in Deflater
|
/libcore/ojluni/src/main/native/ |
D | Deflater.c | 197 res = deflate(strm, finish ? Z_FINISH : flush); in Deflater_deflateBytes()
|
/libcore/api/ |
D | current.txt | 16119 field public static final String DEFLATE_HINT = "pack.deflate.hint"; 16144 field public static final String DEFLATE_HINT = "unpack.deflate.hint"; 16936 method public int deflate(byte[], int, int); 16937 method public int deflate(byte[]); 16938 method public int deflate(byte[], int, int, int); 16984 method protected void deflate() throws java.io.IOException;
|