Home
last modified time | relevance | path

Searched refs:Deflater (Results 1 – 25 of 25) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DDeflaterTest.java24 import java.util.zip.Deflater;
36 class MyDeflater extends Deflater {
71 Deflater defl = new Deflater(); in test_deflate$B()
115 Deflater defl = new Deflater(); in test_deflate$BII()
148 defl = new Deflater(); in test_deflate$BII()
176 Deflater defl = new Deflater(); in test_end()
195 Deflater defl = new Deflater(); in test_finish()
235 Deflater defl = new Deflater(); in test_finished()
255 Deflater defl = new Deflater(); in test_getAdler()
282 Deflater defl = new Deflater(); in test_getTotalIn()
[all …]
DInflaterOutputStreamTest.java22 import java.util.zip.Deflater;
189 Deflater defaultDeflater = new Deflater(Deflater.BEST_SPEED); in test_finish()
196 Deflater bestDeflater = new Deflater(Deflater.BEST_COMPRESSION); in test_finish()
415 Deflater deflater = new Deflater(); in compressToBytes()
DInflaterTest.java26 import java.util.zip.Deflater;
147 Deflater deflate = new Deflater(1); in test_getTotalIn()
207 Deflater deflate = new Deflater(1); in test_getTotalOut()
297 Deflater defEmpty = new Deflater(3); in test_inflate$B()
788 Deflater def = new Deflater(); in test_getBytesRead()
816 Deflater def = new Deflater(); in test_getBytesWritten()
891 Deflater defDictNo = new Deflater(9); in testSetDictionary$B()
892 Deflater defDict1 = new Deflater(9); in testSetDictionary$B()
893 Deflater defDict2 = new Deflater(9); in testSetDictionary$B()
1020 Deflater defDict1 = new Deflater(9); in testSetDictionary$BII()
[all …]
DDeflaterOutputStreamTest.java26 import java.util.zip.Deflater;
46 MyDeflaterOutputStream(OutputStream out, Deflater defl) { in MyDeflaterOutputStream()
50 MyDeflaterOutputStream(OutputStream out, Deflater defl, int size) { in MyDeflaterOutputStream()
75 Deflater deflate = new Deflater(1); in setUp()
95 Deflater defl = null; in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater()
103 defl = new Deflater(); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater()
145 Deflater defl = null; in test_ConstructorLjava_io_OutputStreamLjava_util_zip_DeflaterI()
154 defl = new Deflater(); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_DeflaterI()
DDeflaterInputStreamTest.java25 import java.util.zip.Deflater;
382 Deflater deflater = new Deflater(); in testDeflaterInputStreamInputStreamDeflater()
408 Deflater deflater = new Deflater(); in testDeflaterInputStreamInputStreamDeflaterInt()
/libcore/ojluni/src/test/java/util/zip/
DDeInflate.java44 static void checkStream(Deflater def, byte[] in, int len, in checkStream()
72 static void checkByteBuffer(Deflater def, Inflater inf, in checkByteBuffer()
100 static void checkByteBufferReadonly(Deflater def, Inflater inf, in checkByteBufferReadonly()
138 static void check(Deflater def, byte[] in, int len, boolean nowrap) in check()
210 static void checkDict(Deflater def, Inflater inf, byte[] src, in checkDict()
236 Deflater def = newDeflater(level, strategy, false, new byte[0]); in checkDict()
276 private static Deflater newDeflater(int level, int strategy, boolean dowrap, byte[] tmp) { in newDeflater()
277 Deflater def = new Deflater(level, dowrap); in newDeflater()
278 if (strategy != Deflater.DEFAULT_STRATEGY) { in newDeflater()
290 private static Deflater resetDeflater(Deflater def, int level, int strategy) { in resetDeflater()
[all …]
DDeflaterDictionaryTests.java32 import java.util.zip.Deflater;
92 Deflater deflater = new Deflater(); in testByteArray()
99 … int compressedDataLength = deflater.deflate(output, 0, output.length, Deflater.NO_FLUSH); in testByteArray()
140 Deflater deflater = new Deflater(); in testHeapByteBuffer()
147 … int compressedDataLength = deflater.deflate(output, 0, output.length, Deflater.NO_FLUSH); in testHeapByteBuffer()
194 Deflater deflater = new Deflater(); in testByteBufferDirect()
201 … int compressedDataLength = deflater.deflate(output, 0, output.length, Deflater.NO_FLUSH); in testByteBufferDirect()
241 Deflater deflater = new Deflater(); in testInvalidOffsets()
/libcore/luni/src/test/java/libcore/java/util/zip/
DDeflaterTest.java20 import java.util.zip.Deflater;
33 private Deflater deflater;
41 deflater = new Deflater(); in setUp()
54 deflateInflate(Deflater.NO_FLUSH); in testDeflate()
59 deflateInflate(Deflater.SYNC_FLUSH); in testDeflate()
65 deflateInflate(Deflater.FULL_FLUSH); in testDeflate()
74 deflateInflate(Deflater.SYNC_FLUSH); in testDeflate()
102 deflateInflate(Deflater.FULL_FLUSH);
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.java23 import java.util.zip.Deflater;
48 Deflater compresser = new Deflater(); in simpleTest()
80 Deflater deflater = new Deflater(Deflater.BEST_COMPRESSION, false); in bigTest()
126 private void compress(Deflater deflater, byte[] inBuf, byte[] outBuf) { in compress()
DDeflaterOutputStreamTest.java31 import java.util.zip.Deflater;
108 static class FlushingDeflater extends Deflater {
111 return super.deflate(buf, offset, byteCount, Deflater.SYNC_FLUSH); in deflate()
122 Deflater def = new FlushingDeflater(); in testSyncFlushDeflater()
DInflaterTest.java21 import java.util.zip.Deflater;
111 Deflater deflater = new Deflater(); in deflate()
DOldAndroidZipStressTest.java28 import java.util.zip.Deflater;
156 Deflater deflater = new Deflater(i); in testZipDeflateInflateStress()
/libcore/ojluni/src/main/java/java/util/zip/
DDeflaterOutputStream.java47 protected Deflater def;
79 Deflater def, in DeflaterOutputStream()
106 public DeflaterOutputStream(OutputStream out, Deflater def, int size) { in DeflaterOutputStream()
125 Deflater def, in DeflaterOutputStream()
141 public DeflaterOutputStream(OutputStream out, Deflater def) { in DeflaterOutputStream()
162 this(out, out != null ? new Deflater() : null, 512, syncFlush); in DeflaterOutputStream()
290 while ((len = def.deflate(buf, 0, buf.length, Deflater.SYNC_FLUSH)) > 0) in flush()
DDeflaterInputStream.java47 protected final Deflater def;
78 this(in, in != null ? new Deflater() : null); in DeflaterInputStream()
90 public DeflaterInputStream(InputStream in, Deflater defl) { in DeflaterInputStream()
104 public DeflaterInputStream(InputStream in, Deflater defl, int bufLen) { in DeflaterInputStream()
DGZIPOutputStream.java100 super(out, out != null ? new Deflater(Deflater.DEFAULT_COMPRESSION, true) : null, in GZIPOutputStream()
201 Deflater.DEFLATED, // Compression method (CM) in writeHeader()
DDeflater.java99 public class Deflater { class
206 public Deflater(int level, boolean nowrap) { in Deflater() method in Deflater
220 public Deflater(int level) { in Deflater() method in Deflater
228 public Deflater() { in Deflater() method in Deflater
960 private DeflaterZStreamRef(Deflater owner, long addr) { in DeflaterZStreamRef()
DZipOutputStream.java135 super(out, out != null ? new Deflater(Deflater.DEFAULT_COMPRESSION, true) : null); in ZipOutputStream()
/libcore/ojluni/annotations/flagged_api/java/util/zip/
DDeflater.annotated.java30 public class Deflater { class
32 public Deflater(int level, boolean nowrap) { throw new RuntimeException("Stub!"); } in Deflater() method in Deflater
34 public Deflater(int level) { throw new RuntimeException("Stub!"); } in Deflater() method in Deflater
36 public Deflater() { throw new RuntimeException("Stub!"); } in Deflater() method in Deflater
/libcore/ojluni/annotations/hiddenapi/java/util/zip/
DDeflater.java31 public class Deflater { class
33 public Deflater(int level, boolean nowrap) { in Deflater() method in Deflater
37 public Deflater(int level) { in Deflater() method in Deflater
41 public Deflater() { in Deflater() method in Deflater
/libcore/ojluni/src/main/native/
DDeflater.c317 NATIVE_METHOD(Deflater, init, "(IIZ)J"),
318 NATIVE_METHOD(Deflater, setDictionary, "(J[BII)V"),
319 NATIVE_METHOD(Deflater, setDictionaryBuffer, "(JJI)V"),
320 NATIVE_METHOD(Deflater, deflateBytesBytes, "(J[BII[BIIII)J"),
321 NATIVE_METHOD(Deflater, deflateBytesBuffer, "(J[BIIJIII)J"),
322 NATIVE_METHOD(Deflater, deflateBufferBytes, "(JJI[BIIII)J"),
323 NATIVE_METHOD(Deflater, deflateBufferBuffer, "(JJIJIII)J"),
324 NATIVE_METHOD(Deflater, getAdler, "(J)I"),
325 NATIVE_METHOD(Deflater, reset, "(J)V"),
326 NATIVE_METHOD(Deflater, end, "(J)V"),
DAndroid.bp30 "Deflater.c",
/libcore/ojluni/src/test/java/util/zip/ZipFile/
DTestCleaner.java64 Field zsRefDef = Deflater.class.getDeclaredField("zsRef"); in testDeInflater()
73 if (addrOf(zsRefDef.get(new Deflater())) == -1 || in testDeInflater()
81 var def = new Deflater(); in testDeInflater()
/libcore/api/
Dcurrent.txt18537 public class Deflater {
18538 ctor public Deflater(int, boolean);
18539 ctor public Deflater(int);
18540 ctor public Deflater();
18579 ctor public DeflaterInputStream(java.io.InputStream, java.util.zip.Deflater);
18580 ctor public DeflaterInputStream(java.io.InputStream, java.util.zip.Deflater, int);
18582 field protected final java.util.zip.Deflater def;
18586 ctor public DeflaterOutputStream(java.io.OutputStream, java.util.zip.Deflater, int, boolean);
18587 ctor public DeflaterOutputStream(java.io.OutputStream, java.util.zip.Deflater, int);
18588 ctor public DeflaterOutputStream(java.io.OutputStream, java.util.zip.Deflater, boolean);
[all …]
/libcore/
DEXPECTED_UPSTREAM1253 …jluni/src/main/java/java/util/zip/Deflater.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/j…
1837 ojluni/src/main/native/Deflater.c,jdk17u/jdk-17.0.6-ga,src/java.base/share/native/libzip/Deflater.c
Dopenjdk_java_files.bp1256 "ojluni/src/main/java/java/util/zip/Deflater.java",