Home
last modified time | relevance | path

Searched refs:deflate (Results 1 – 16 of 16) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DDeflaterTest.java79 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 …]
DInflaterTest.java147 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 …]
DDeflaterOutputStreamTest.java58 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()
DInflaterOutputStreamTest.java192 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/
DDeflaterOutputStream.java212 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()
DDeflater.java383 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
DGZIPOutputStream.java159 int len = def.deflate(buf, 0, buf.length); in finish()
DDeflaterInputStream.java199 n = def.deflate(b, off, len); in read()
DZipOutputStream.java257 deflate(); in closeEntry()
/libcore/luni/src/test/java/libcore/java/util/zip/
DInflaterTest.java46 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()
DDeflaterTest.java81 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));
DOldAndroidDeflateTest.java51 int compressedDataLength = compresser.deflate(output); in simpleTest()
154 compCount = deflater.deflate(outBuf, outPosn, LOCAL_BUF_SIZE); in compress()
DDeflaterOutputStreamTest.java110 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()
DOldAndroidZipStressTest.java159 deflater.deflate(zipped); in testZipDeflateInflateStress()
/libcore/ojluni/annotations/hiddenapi/java/util/zip/
DDeflater.java81 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/
DDeflater.c197 res = deflate(strm, finish ? Z_FINISH : flush); in Deflater_deflateBytes()