/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/ |
D | StreamCompressor.java | 30 import java.util.zip.Deflater; 51 private final Deflater def; 63 StreamCompressor(final Deflater deflater) { in StreamCompressor() 74 static StreamCompressor create(final OutputStream os, final Deflater deflater) { in create() 85 return create(os, new Deflater(Deflater.DEFAULT_COMPRESSION, true)); in create() 95 static StreamCompressor create(final DataOutput os, final Deflater deflater) { in create() 107 static StreamCompressor create(final SeekableByteChannel os, final Deflater deflater) { in create() 119 final Deflater deflater = new Deflater(compressionLevel, true); in create() 130 return create(Deflater.DEFAULT_COMPRESSION, bs); in create() 283 …public ScatterGatherBackingStoreCompressor(final Deflater deflater, final ScatterGatherBackingStor… in ScatterGatherBackingStoreCompressor() [all …]
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | DeflaterSinkTest.java | 20 import java.util.zip.Deflater; 36 DeflaterSink deflaterSink = new DeflaterSink(sink, new Deflater()); in deflateWithClose() 48 DeflaterSink deflaterSink = new DeflaterSink(sink, new Deflater()); in deflateWithSyncFlush() 60 DeflaterSink deflaterSink = new DeflaterSink(sink, new Deflater()); in deflateWellCompressed() 72 DeflaterSink deflaterSink = new DeflaterSink(sink, new Deflater()); in deflatePoorlyCompressed() 81 Deflater deflater = new Deflater(); in multipleSegmentsWithoutCompression() 82 deflater.setLevel(Deflater.NO_COMPRESSION); in multipleSegmentsWithoutCompression() 98 DeflaterSink deflaterSink = new DeflaterSink(sink, new Deflater()); in deflateIntoNonemptySink() 117 Deflater deflater = new Deflater(); in closeWithExceptionWhenWritingAndClosing() 118 deflater.setLevel(Deflater.NO_COMPRESSION); in closeWithExceptionWhenWritingAndClosing()
|
/external/caliper/examples/src/main/java/examples/ |
D | CompressionSizeBenchmark.java | 27 import java.util.zip.Deflater; 46 compressionLevelMap.put("bestCompression", Deflater.BEST_COMPRESSION); 47 compressionLevelMap.put("bestSpeed", Deflater.BEST_SPEED); 48 compressionLevelMap.put("noCompression", Deflater.NO_COMPRESSION); 49 compressionLevelMap.put("huffmanOnly", Deflater.HUFFMAN_ONLY); 69 Deflater compressor = new Deflater(); in compress()
|
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/ |
D | DeflateUncompressorTest.java | 25 import java.util.zip.Deflater; 56 Deflater deflater = new Deflater(Deflater.DEFAULT_COMPRESSION, true); in setUp() 85 Deflater deflater = new Deflater(Deflater.DEFAULT_COMPRESSION, false /* nowrap */); in testNowrap() 161 Deflater deflater = new Deflater(Deflater.DEFAULT_COMPRESSION, false /* nowrap */); in testReusability()
|
D | DeflateCompressorTest.java | 27 import java.util.zip.Deflater; 100 Assert.assertEquals(Deflater.DEFAULT_COMPRESSION, compressor.getCompressionLevel()); 101 Assert.assertEquals(Deflater.DEFAULT_STRATEGY, compressor.getStrategy()); 213 Deflater deflater1 = compressor.createOrResetDeflater(); 214 Deflater deflater2 = compressor.createOrResetDeflater(); 221 Deflater deflater1 = compressor.createOrResetDeflater(); 222 Deflater deflater2 = compressor.createOrResetDeflater(); 229 Deflater deflater1 = compressor.createOrResetDeflater(); 231 Deflater deflater2 = compressor.createOrResetDeflater(); 265 compressor.setStrategy(Deflater.FILTERED);
|
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/ |
D | DeflateCompressor.java | 20 import java.util.zip.Deflater; 33 private int compressionLevel = Deflater.DEFAULT_COMPRESSION; 38 private int strategy = Deflater.DEFAULT_STRATEGY; 61 private Deflater deflater = null; 199 protected Deflater createOrResetDeflater() { in createOrResetDeflater() 200 Deflater result = deflater; in createOrResetDeflater() 202 result = new Deflater(compressionLevel, nowrap); in createOrResetDeflater()
|
D | DefaultDeflateCompatibilityWindow.java | 26 import java.util.zip.Deflater; 327 int[] strategies = {Deflater.DEFAULT_STRATEGY, Deflater.FILTERED, Deflater.HUFFMAN_ONLY}; in getSystemValues() 334 if (strategy == Deflater.HUFFMAN_ONLY) { in getSystemValues()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/gzip/ |
D | GzipCompressorOutputStream.java | 26 import java.util.zip.Deflater; 53 private final Deflater deflater; 83 this.deflater = new Deflater(parameters.getCompressionLevel(), true); in GzipCompressorOutputStream() 95 buffer.put((byte) Deflater.DEFLATED); // compression method (8: deflate) in writeHeader() 101 if (compressionLevel == Deflater.BEST_COMPRESSION) { in writeHeader() 103 } else if (compressionLevel == Deflater.BEST_SPEED) { in writeHeader()
|
D | GzipCompressorInputStream.java | 29 import java.util.zip.Deflater; 202 if (method != Deflater.DEFLATED) { in init() 216 parameters.setCompressionLevel(Deflater.BEST_COMPRESSION); in init() 219 parameters.setCompressionLevel(Deflater.BEST_SPEED); in init()
|
D | GzipParameters.java | 22 import java.util.zip.Deflater; 31 private int compressionLevel = Deflater.DEFAULT_COMPRESSION;
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | DeflaterSink.java | 19 import java.util.zip.Deflater; 39 private final Deflater deflater; 42 public DeflaterSink(Sink sink, Deflater deflater) { in DeflaterSink() 51 DeflaterSink(BufferedSink sink, Deflater deflater) { in DeflaterSink() 95 ? deflater.deflate(s.data, s.limit, Segment.SIZE - s.limit, Deflater.SYNC_FLUSH) in deflate()
|
D | GzipSink.java | 20 import java.util.zip.Deflater; 22 import static java.util.zip.Deflater.DEFAULT_COMPRESSION; 43 private final Deflater deflater; 58 this.deflater = new Deflater(DEFAULT_COMPRESSION, true /* No wrap */); in GzipSink()
|
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/ |
D | DeflaterSink.java | 20 import java.util.zip.Deflater; 41 private final Deflater deflater; 44 public DeflaterSink(Sink sink, Deflater deflater) { in DeflaterSink() 53 DeflaterSink(BufferedSink sink, Deflater deflater) { in DeflaterSink() 97 ? deflater.deflate(s.data, s.limit, Segment.SIZE - s.limit, Deflater.SYNC_FLUSH) in deflate()
|
D | GzipSink.java | 21 import java.util.zip.Deflater; 23 import static java.util.zip.Deflater.DEFAULT_COMPRESSION; 45 private final Deflater deflater; 60 this.deflater = new Deflater(DEFAULT_COMPRESSION, true /* No wrap */); in GzipSink()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/ |
D | GZipTestCase.java | 31 import java.util.zip.Deflater; 152 parameters.setCompressionLevel(Deflater.BEST_COMPRESSION); in testInteroperabilityWithGzipCompressorInputStream() 178 parameters.setCompressionLevel(Deflater.BEST_COMPRESSION); in testInteroperabilityWithGZIPInputStream() 232 testExtraFlags(Deflater.BEST_SPEED, 4); in testExtraFlagsFastestCompression() 237 testExtraFlags(Deflater.BEST_COMPRESSION, 2); in testExtraFlagsBestCompression() 242 testExtraFlags(Deflater.DEFAULT_COMPRESSION, 0); in testExtraFlagsDefaultCompression() 262 parameters.setCompressionLevel(Deflater.BEST_COMPRESSION); in testMetadataRoundTrip() 276 assertEquals(Deflater.BEST_COMPRESSION, readParams.getCompressionLevel()); in testMetadataRoundTrip()
|
/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/ |
D | DefaultDeflateCompressionDiviner.java | 31 import java.util.zip.Deflater; 166 Deflater deflater = new Deflater(0, nowrap); in divineDeflateParameters() 200 private static void end(Inflater inflater, Deflater deflater) { in end() 219 Deflater deflater, in matches()
|
/external/archive-patcher/sample/src/main/java/com/google/archivepatcher/sample/ |
D | SamplePatchGenerator.java | 21 import java.util.zip.Deflater; 33 Deflater compressor = new Deflater(9, true); // to compress the patch in main()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/deflate/ |
D | DeflateCompressorOutputStream.java | 23 import java.util.zip.Deflater; 34 private final Deflater deflater; 53 … this.deflater = new Deflater(parameters.getCompressionLevel(), !parameters.withZlibHeader()); in DeflateCompressorOutputStream()
|
D | DeflateParameters.java | 22 import java.util.zip.Deflater; 31 private int compressionLevel = Deflater.DEFAULT_COMPRESSION;
|
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/ |
D | PartiallyCompressingOutputStream.java | 25 import java.util.zip.Deflater; 42 private Deflater deflater = null; 138 deflater = new Deflater(parameters.level, parameters.nowrap); in writeChunk() 142 deflater = new Deflater(parameters.level, parameters.nowrap); in writeChunk()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/ |
D | Coders.java | 28 import java.util.zip.Deflater; 153 final Deflater deflater = new Deflater(level, true); in encode() 197 Deflater deflater; 200 Deflater deflater) { in DeflateDecoderOutputStream()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/sevenz/ |
D | SevenZNativeHeapTest.java | 26 import java.util.zip.Deflater; 159 private class DelegatingDeflater extends Deflater { 161 private final Deflater deflater; 163 public DelegatingDeflater(Deflater deflater) { in DelegatingDeflater()
|
/external/zlib/src/contrib/dotzlib/DotZLib/ |
D | UnitTests.cs | 175 using (Deflater def = new Deflater(CompressLevel.Default)) in Deflate_Init() 201 using (Deflater def = new Deflater((CompressLevel)5)) in Deflate_Compress()
|
D | Deflater.cs | 18 public sealed class Deflater : CodecBase class 38 public Deflater(CompressLevel level) : base() in Deflater() method in DotZLib.Deflater
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/ |
D | StreamCompressorTest.java | 29 import java.util.zip.Deflater; 67 .create(dataOutputStream, new Deflater(9))) { in testCreateDataOutputCompressor()
|