Searched refs:inflate (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/zip/
H A DDeflaterTest.java43 assertEquals(0, inflater.inflate(decompressed));
49 assertEquals(0, inflater.inflate(decompressed));
56 assertEquals(0, inflater.inflate(decompressed));
65 totalInflated += inflater.inflate(decompressed, totalInflated,
H A DDeflaterInputStreamTest.java42 assertEquals(Arrays.toString(data), Arrays.toString(inflate(out.toByteArray())));
52 public byte[] inflate(byte[] bytes) throws IOException { method in class:DeflaterInputStreamTest
76 assertEquals(Arrays.toString(data), Arrays.toString(inflate(out.toByteArray())));
H A DInflaterTest.java52 assertEquals(0, inflater.inflate(new byte[8]));
60 // We use a tiny output buffer to ensure that we call inflate multiple times, and
70 int inflatedByteCount = inflater.inflate(buf);
99 assertEquals(0, inflater.inflate(new byte[0], 0, 0));
H A DOldAndroidDeflateTest.java37 * Simple inflate/deflate test, taken from the reference docs for the
57 int resultLength = decompresser.inflate(result);
187 // inflate to current position in output buffer
190 compCount = inflater.inflate(outBuf, outPosn, LOCAL_BUF_SIZE);
/libcore/luni/src/main/java/java/util/zip/
H A DInflater.java37 * if (inflater.inflate(decompressedBytes) != decompressedByteCount) {
47 * <p>If you don't know how big the decompressed data will be, you can call {@link #inflate}
204 public int inflate(byte[] buf) throws DataFormatException { method in class:Inflater
205 return inflate(buf, 0, buf.length);
217 public synchronized int inflate(byte[] buf, int offset, int byteCount) throws DataFormatException { method in class:Inflater
239 * dictionary. This method should be called if the first call to {@link #inflate} returns 0,
242 * inflate} again. Use {@link #getAdler} to determine which dictionary is required.
H A DInflaterOutputStream.java149 while ((inflated = inf.inflate(buf)) > 0) {
H A DInflaterInputStream.java157 int result = inf.inflate(buffer, offset, byteCount);
H A DZipInputStream.java333 read = inf.inflate(buffer, offset, byteCount);
/libcore/luni/src/main/native/
H A Dzip.h52 void setDictionary(JNIEnv* env, jbyteArray javaDictionary, int off, int len, bool inflate) { argument
61 if (inflate) {
H A Djava_util_zip_Inflater.cpp36 * zconf.h says the "requirements for inflate are (in bytes) 1 << windowBits
101 int err = inflate(&stream->stream, Z_SYNC_FLUSH);

Completed in 80 milliseconds