/libcore/luni/src/test/java/libcore/java/util/zip/ |
DeflaterTest.java | 20 import java.util.zip.Deflater; 28 private Deflater deflater = new Deflater(); field in class:DeflaterTest 34 deflater.setInput(new byte[] { 1, 2, 3 }); 35 deflateInflate(Deflater.NO_FLUSH); 39 deflater.setInput(new byte[] { 4, 5, 6 }); 40 deflateInflate(Deflater.SYNC_FLUSH); 45 deflater.setInput(new byte[] { 7, 8, 9 }); 46 deflateInflate(Deflater.FULL_FLUSH) [all...] |
OldAndroidDeflateTest.java | 23 import java.util.zip.Deflater; 38 * Inflater/Deflater classes. 48 Deflater compresser = new Deflater(); 80 Deflater deflater = new Deflater(Deflater.BEST_COMPRESSION, false); local 84 compress(deflater, input, comp); 85 expand(inflater, comp, (int) deflater.getBytesWritten(), output) [all...] |
InflaterTest.java | 21 import java.util.zip.Deflater; 104 Deflater deflater = new Deflater(); local 106 deflater.setDictionary(dictionary); 108 deflater.setInput(input); 109 deflater.finish(); 112 while (!deflater.finished()) { 113 int byteCount = deflater.deflate(buf); 116 deflater.end() [all...] |
DeflaterOutputStreamTest.java | 32 import java.util.zip.Deflater; 60 * Creates an optionally-flushing deflater stream, writes some bytes to it, 61 * and flushes it. Returns an inflater stream that reads this deflater's 105 * Confirm that a DeflaterOutputStream constructed with Deflater 111 Deflater def = new Deflater(); 114 f.setInt(def, Deflater.SYNC_FLUSH); 161 // ensure Deflater.finish has not been called at any point
|
OldAndroidZipStressTest.java | 28 import java.util.zip.Deflater; 122 * Native memory allocated by Deflater in system_server. The fix reduced 156 Deflater deflater = new Deflater(i); local 157 deflater.setInput(input); 158 deflater.finish(); 159 deflater.deflate(zipped); 160 deflater.end();
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
DeflaterTest.java | 24 import java.util.zip.Deflater; 32 class MyDeflater extends Deflater { 67 * @tests java.util.zip.Deflater#deflate(byte[]) 75 Deflater defl = new Deflater(); 81 assertEquals("Deflater at end of stream, should return 0", 0, defl 109 * @tests java.util.zip.Deflater#deflate(byte[], int, int) 119 Deflater defl = new Deflater(); 125 assertEquals("Deflater at end of stream, should return 0", 0, defl.deflate 1155 Deflater deflater = new Deflater(); local [all...] |
InflaterOutputStreamTest.java | 22 import java.util.zip.Deflater; 170 Deflater defaultDeflater = new Deflater(Deflater.BEST_SPEED); 176 Deflater bestDeflater = new Deflater(Deflater.BEST_COMPRESSION ); 386 Deflater deflater = new Deflater(); local [all...] |
DeflaterInputStreamTest.java | 24 import java.util.zip.Deflater; 316 * @tests DeflaterInputStream#DeflaterInputStream(InputStream,Deflater) 320 new DeflaterInputStream(is, new Deflater()); 329 new DeflaterInputStream(null, new Deflater()); 337 * @tests DeflaterInputStream#DeflaterInputStream(InputStream,Deflater,int) 341 new DeflaterInputStream(is, new Deflater(), 1024); 350 new DeflaterInputStream(null, new Deflater(), 1024); 356 new DeflaterInputStream(is, new Deflater(), -1); 362 new DeflaterInputStream(null, new Deflater(), -1);
|
DeflaterOutputStreamTest.java | 26 import java.util.zip.Deflater; 41 MyDeflaterOutputStream(OutputStream out, Deflater defl) { 45 MyDeflaterOutputStream(OutputStream out, Deflater defl, int size) { 67 // setting up a deflater to be used 70 Deflater deflate = new Deflater(1); 84 * java.util.zip.Deflater) 90 Deflater defl = null; 92 // Test for a null Deflater. 98 defl = new Deflater(); [all...] |
InflaterTest.java | 26 import java.util.zip.Deflater; 139 Deflater deflate = new Deflater(1); 196 Deflater deflate = new Deflater(1); 282 Deflater defEmpty = new Deflater(3); 489 // note does not throw exception if deflater has a header, but inflater 536 "method needsDictionary returned false when dictionary was used in deflater", 545 "method needsDictionary returned true when dictionary was not used in deflater", [all...] |
/libcore/luni/src/main/java/java/util/zip/ |
DeflaterOutputStream.java | 29 * {@code Deflater} class and takes care of the buffering. 31 * @see Deflater 42 * The deflater used. 44 protected Deflater def; 51 * Constructs a new instance with a default-constructed {@link Deflater}. 54 this(os, new Deflater(), BUF_SIZE, false); 58 * Constructs a new instance with the given {@code Deflater}. 60 public DeflaterOutputStream(OutputStream os, Deflater def) { 65 * Constructs a new instance with the given {@code Deflater} and buffer size. 67 public DeflaterOutputStream(OutputStream os, Deflater def, int bufferSize) [all...] |
DeflaterInputStream.java | 35 protected final Deflater def; 42 * Constructs a {@code DeflaterInputStream} with a new {@code Deflater} and an 49 this(in, new Deflater(), DEFAULT_BUFFER_SIZE); 53 * Constructs a {@code DeflaterInputStream} with the given {@code Deflater} and an 58 * @param deflater the {@code Deflater} to be used for compression 60 public DeflaterInputStream(InputStream in, Deflater deflater) { 61 this(in, deflater, DEFAULT_BUFFER_SIZE); 65 * Constructs a {@code DeflaterInputStream} with the given {@code Deflater} an [all...] |
GZIPOutputStream.java | 82 super(os, new Deflater(Deflater.DEFAULT_COMPRESSION, true), bufferSize, syncFlush); 84 out.write(Deflater.DEFLATED);
|
Deflater.java | 34 * Deflater deflater = new Deflater(); 35 * deflater.setInput(originalBytes); 36 * deflater.finish(); 40 * while (!deflater.finished()) { 41 * int byteCount = deflater.deflate(buf); 44 * deflater.end(); 49 * input that you want to feed it to the deflater in chunks), it's possible to call 60 public class Deflater { [all...] |
ZipOutputStream.java | 80 private int compressionLevel = Deflater.DEFAULT_COMPRESSION; 97 super(os, new Deflater(Deflater.DEFAULT_COMPRESSION, true)); 364 * Sets the <a href="Deflater.html#compression_level">compression level</a> to be used 368 if (level < Deflater.DEFAULT_COMPRESSION || level > Deflater.BEST_COMPRESSION) {
|
/libcore/luni/src/main/native/ |
java_util_zip_Deflater.cpp | 18 #define LOG_TAG "Deflater" 140 NATIVE_METHOD(Deflater, createStream, "(IIZ)J"), 141 NATIVE_METHOD(Deflater, deflateImpl, "([BIIJI)I"), 142 NATIVE_METHOD(Deflater, endImpl, "(J)V"), 143 NATIVE_METHOD(Deflater, getAdlerImpl, "(J)I"), 144 NATIVE_METHOD(Deflater, getTotalInImpl, "(J)J"), 145 NATIVE_METHOD(Deflater, getTotalOutImpl, "(J)J"), 146 NATIVE_METHOD(Deflater, resetImpl, "(J)V"), 147 NATIVE_METHOD(Deflater, setDictionaryImpl, "([BIIJ)V"), 148 NATIVE_METHOD(Deflater, setInputImpl, "([BIIJ)V") [all...] |
/external/smack/src/org/jivesoftware/smack/compression/ |
Java7ZlibInputOutputStream.java | 23 import java.util.zip.Deflater; 29 * This class provides XMPP "zlib" compression with the help of the Deflater class of the Java API. Note that the method 34 * href="http://docs.oracle.com/javase/7/docs/api/java/util/zip/Deflater.html#deflate(byte[], int, int, int)">The 41 private final static int compressionLevel = Deflater.DEFAULT_STRATEGY; 46 m = Deflater.class.getMethod("deflate", byte[].class, int.class, int.class, int.class); 95 return new DeflaterOutputStream(outputStream, new Deflater(compressionLevel)) {
|
/external/okhttp/android/main/java/com/squareup/okhttp/internal/ |
Platform.java | 29 import java.util.zip.Deflater; 98 * Returns a deflater output stream that supports SYNC_FLUSH for SPDY name 103 OutputStream out, Deflater deflater, boolean syncFlush) { 104 return new DeflaterOutputStream(out, deflater, syncFlush);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
DataExporter.java | 32 import java.util.zip.Deflater; 66 os.setLevel(Deflater.BEST_COMPRESSION);
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
SpdyWriter.java | 27 import java.util.zip.Deflater; 38 Deflater deflater = new Deflater(); local 39 deflater.setDictionary(SpdyReader.DICTIONARY); 42 Platform.get().newDeflaterOutputStream(nameValueBlockBuffer, deflater, true));
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/ |
Platform.java | 39 import java.util.zip.Deflater; 114 * Returns a deflater output stream that supports SYNC_FLUSH for SPDY name 118 public OutputStream newDeflaterOutputStream(OutputStream out, Deflater deflater, 124 OutputStream.class, Deflater.class, boolean.class); 126 return constructor.newInstance(out, deflater, syncFlush);
|
/frameworks/base/services/java/com/android/server/ |
BackupManagerService.java | 122 import java.util.zip.Deflater; 2836 Deflater deflater = new Deflater(Deflater.BEST_COMPRESSION); local [all...] |
/prebuilts/sdk/10/ |
android.jar | |
/prebuilts/sdk/11/ |
android.jar | |
/prebuilts/sdk/13/ |
android.jar | |