Home
last modified time | relevance | path

Searched refs:deflater (Results 1 – 8 of 8) sorted by relevance

/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/
DDeflateCompressor.java61 private Deflater deflater = null; field in DeflateCompressor
107 if (deflater != null && compressionLevel != this.compressionLevel) { in setCompressionLevel()
108 deflater.reset(); in setCompressionLevel()
109 deflater.setLevel(compressionLevel); in setCompressionLevel()
128 if (deflater != null && strategy != this.strategy) { in setStrategy()
129 deflater.reset(); in setStrategy()
130 deflater.setStrategy(strategy); in setStrategy()
200 Deflater result = deflater; in createOrResetDeflater()
205 deflater = result; in createOrResetDeflater()
217 if (deflater != null) { in release()
[all …]
/external/okhttp/okio/okio/src/main/java/okio/
DDeflaterSink.java39 private final Deflater deflater; field in DeflaterSink
42 public DeflaterSink(Sink sink, Deflater deflater) { in DeflaterSink() argument
43 this(Okio.buffer(sink), deflater); in DeflaterSink()
51 DeflaterSink(BufferedSink sink, Deflater deflater) { in DeflaterSink() argument
53 if (deflater == null) throw new IllegalArgumentException("inflater == null"); in DeflaterSink()
55 this.deflater = deflater; in DeflaterSink()
65 deflater.setInput(head.data, head.pos, toDeflate); in write()
95 ? deflater.deflate(s.data, s.limit, Segment.SIZE - s.limit, Deflater.SYNC_FLUSH) in deflate()
96 : deflater.deflate(s.data, s.limit, Segment.SIZE - s.limit); in deflate()
102 } else if (deflater.needsInput()) { in deflate()
[all …]
DGzipSink.java43 private final Deflater deflater; field in GzipSink
58 this.deflater = new Deflater(DEFAULT_COMPRESSION, true /* No wrap */); in GzipSink()
60 this.deflaterSink = new DeflaterSink(this.sink, deflater); in GzipSink()
98 deflater.end(); in close()
126 sink.writeIntLe(deflater.getTotalIn()); // Length of original data. in writeFooter()
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/
DPartiallyCompressingOutputStream.java42 private Deflater deflater = null; field in PartiallyCompressingOutputStream
137 if (deflater == null) { in writeChunk()
138 deflater = new Deflater(parameters.level, parameters.nowrap); in writeChunk()
141 deflater.end(); in writeChunk()
142 deflater = new Deflater(parameters.level, parameters.nowrap); in writeChunk()
146 deflater.setLevel(parameters.level); in writeChunk()
147 deflater.setStrategy(parameters.strategy); in writeChunk()
148 deflaterOut = new DeflaterOutputStream(normalOut, deflater, compressionBufferSize); in writeChunk()
176 deflater.reset(); in writeChunk()
184 deflater.end(); in writeChunk()
[all …]
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/
DDeflateUncompressorTest.java56 Deflater deflater = new Deflater(Deflater.DEFAULT_COMPRESSION, true); in setUp() local
57 DeflaterOutputStream deflateOut = new DeflaterOutputStream(compressedContentBuffer, deflater); in setUp()
61 deflater.end(); in setUp()
85 Deflater deflater = new Deflater(Deflater.DEFAULT_COMPRESSION, false /* nowrap */); in testNowrap() local
87 DeflaterOutputStream deflateOut = new DeflaterOutputStream(compressedContentBuffer, deflater); in testNowrap()
91 deflater.end(); in testNowrap()
161 Deflater deflater = new Deflater(Deflater.DEFAULT_COMPRESSION, false /* nowrap */); in testReusability() local
163 DeflaterOutputStream deflateOut = new DeflaterOutputStream(compressedContentBuffer, deflater); in testReusability()
167 deflater.end(); in testReusability()
/external/okhttp/okio/okio/src/test/java/okio/
DDeflaterSinkTest.java81 Deflater deflater = new Deflater(); in multipleSegmentsWithoutCompression() local
82 deflater.setLevel(Deflater.NO_COMPRESSION); in multipleSegmentsWithoutCompression()
83 DeflaterSink deflaterSink = new DeflaterSink(buffer, deflater); in multipleSegmentsWithoutCompression()
117 Deflater deflater = new Deflater(); in closeWithExceptionWhenWritingAndClosing() local
118 deflater.setLevel(Deflater.NO_COMPRESSION); in closeWithExceptionWhenWritingAndClosing()
119 DeflaterSink deflaterSink = new DeflaterSink(mockSink, deflater); in closeWithExceptionWhenWritingAndClosing()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DSpdy3.java298 Deflater deflater = new Deflater(); in Writer() local
299 deflater.setDictionary(DICTIONARY); in Writer()
301 headerBlockOut = Okio.buffer(new DeflaterSink(headerBlockBuffer, deflater)); in Writer()
/external/jline/src/src/test/resources/jline/example/
Denglish.gz