Home
last modified time | relevance | path

Searched refs:inf (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/test/java/util/zip/
DDeInflate.java59 Inflater inf = new Inflater(nowrap); in checkStream() local
60 inf.setInput(out1, 0, m); in checkStream()
61 int n = inf.inflate(out2); in checkStream()
65 inf.inflate(out2) != 0) { in checkStream()
72 static void checkByteBuffer(Deflater def, Inflater inf, in checkByteBuffer() argument
78 inf.reset(); in checkByteBuffer()
87 inf.setInput(out1); in checkByteBuffer()
88 int n = inf.inflate(out2); in checkByteBuffer()
95 inf.inflate(result) != 0) { in checkByteBuffer()
100 static void checkByteBufferReadonly(Deflater def, Inflater inf, in checkByteBufferReadonly() argument
[all …]
DCloseInflaterDeflaterTest.java182 InflaterOutputStream inf = new InflaterOutputStream(outStream); in testInflaterOutputStream() local
183 assertThrows(IOException.class , () -> inf.write(inputBytes, 0, INPUT_LENGTH)); in testInflaterOutputStream()
187 inf.close(); in testInflaterOutputStream()
189 inf.finish(); in testInflaterOutputStream()
193 assertThrows(IOException.class , () -> inf.write(inputBytes, 0, INPUT_LENGTH)); in testInflaterOutputStream()
/libcore/ojluni/src/main/java/java/util/zip/
DInflaterInputStream.java47 protected Inflater inf; field in InflaterInputStream
99 InflaterInputStream(InputStream in, Inflater inf, int size, boolean ownsInflater) { in InflaterInputStream() argument
101 if (in == null || inf == null) { in InflaterInputStream()
106 this.inf = inf; in InflaterInputStream()
119 public InflaterInputStream(InputStream in, Inflater inf, int size) { in InflaterInputStream() argument
131 this(in, inf, size, /* ownsInflater= */ true); in InflaterInputStream()
140 public InflaterInputStream(InputStream in, Inflater inf) { in InflaterInputStream() argument
141 this(in, inf, 512); in InflaterInputStream()
204 while ((n = inf.inflate(b, off, len)) == 0) { in read()
205 if (inf.finished() || inf.needsDictionary()) { in read()
[all …]
DInflaterOutputStream.java46 protected final Inflater inf; field in InflaterOutputStream
115 inf = infl; in InflaterOutputStream()
148 if (!inf.finished()) { in flush()
150 while (!inf.finished() && !inf.needsInput()) { in flush()
154 n = inf.inflate(buf, 0, buf.length); in flush()
188 inf.end(); in finish()
238 if (inf.needsInput()) { in write()
239 inf.setInput(b, off, len); in write()
246 n = inf.inflate(buf, 0, buf.length); in write()
253 if (inf.needsDictionary()) { in write()
[all …]
DGZIPInputStream.java93 inf.end(); in GZIPInputStream()
230 int n = inf.getRemaining(); in readTrailer()
241 (readUInt(in) != (inf.getBytesWritten() & 0xffffffffL))) in readTrailer()
255 inf.reset(); in readTrailer()
257 inf.setInput(buf, len - n + m, n - m); in readTrailer()
DZipInputStream.java136 inf.reset(); in getNextEntry()
395 int n = inf.getRemaining(); in readEnd()
401 if (inf.getBytesWritten() > ZIP64_MAGICVAL || in readEnd()
402 inf.getBytesRead() > ZIP64_MAGICVAL) { in readEnd()
433 if (e.size != inf.getBytesWritten()) { in readEnd()
436 " but got " + inf.getBytesWritten() + " bytes)"); in readEnd()
438 if (e.csize != inf.getBytesRead()) { in readEnd()
441 " but got " + inf.getBytesRead() + " bytes)"); in readEnd()
DZipFile.java442 private final Inflater inf; field in ZipFile.InflaterCleanupAction
445 InflaterCleanupAction(Inflater inf, CleanableResource res) { in InflaterCleanupAction() argument
446 this.inf = inf; in InflaterCleanupAction()
452 res.releaseInflater(inf); in run()
468 Inflater inf, int size) { in ZipFileInflaterInputStream() argument
472 super(zfin, inf, size, /* ownsInflater */ false); in ZipFileInflaterInputStream()
474 new InflaterCleanupAction(inf, res)); in ZipFileInflaterInputStream()
501 inf.setInput(buf, 0, len); in fill()
507 long avail = ((ZipFileInputStream)in).size() - inf.getBytesWritten(); in available()
781 Inflater inf; in getInflater() local
[all …]
/libcore/ojluni/src/test/java/net/InetAddress/
DIsReachableViaLoopbackTest.java49 NetworkInterface inf = NetworkInterface.getByInetAddress(addr); in testReachableViaLoopback() local
50 if (inf != null) { in testReachableViaLoopback()
51 if (!addr.isReachable(inf, 20, 10000)) { in testReachableViaLoopback()
55 if (remoteAddr.isReachable(inf, 20, 10000)) { in testReachableViaLoopback()
DIsReachable.java43 NetworkInterface inf = NetworkInterface.getByInetAddress(addr); in testIsReachable() local
44 if (inf != null) { in testIsReachable()
45 if (!addr.isReachable(inf, 20, 10000)) in testIsReachable()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DInflaterTest.java572 Inflater inf = new Inflater(); in test_needsDictionary() local
573 assertFalse(inf.needsDictionary()); in test_needsDictionary()
574 assertEquals(0, inf.getTotalIn()); in test_needsDictionary()
575 assertEquals(0, inf.getTotalOut()); in test_needsDictionary()
576 assertEquals(0, inf.getBytesRead()); in test_needsDictionary()
577 assertEquals(0, inf.getBytesWritten()); in test_needsDictionary()
578 assertEquals(1, inf.getAdler()); in test_needsDictionary()
579 inf.end(); in test_needsDictionary()
789 Inflater inf = new Inflater(); in test_getBytesRead() local
802 inf.setInput(output); in test_getBytesRead()
[all …]
DInflaterInputStreamTest.java493 Inflater inf = new Inflater(); in testInflaterInputStreamWithExternalInflater_3ArgConstructor() local
495 InflaterInputStream iis = new InflaterInputStream(base, inf, 512); in testInflaterInputStreamWithExternalInflater_3ArgConstructor()
498 inf.reset(); in testInflaterInputStreamWithExternalInflater_3ArgConstructor()
508 Inflater inf = new Inflater(); in testInflaterInputStreamWithExternalInflater_2ArgConstructor() local
509 InflaterInputStream iis = new InflaterInputStream(base, inf); in testInflaterInputStreamWithExternalInflater_2ArgConstructor()
512 inf.reset(); in testInflaterInputStreamWithExternalInflater_2ArgConstructor()
DDeflaterTest.java1055 Deflater inf = new Deflater(); in test_needsDictionary() local
1056 assertEquals(0, inf.getTotalIn()); in test_needsDictionary()
1057 assertEquals(0, inf.getTotalOut()); in test_needsDictionary()
1058 assertEquals(0, inf.getBytesRead()); in test_needsDictionary()
1059 assertEquals(0, inf.getBytesWritten()); in test_needsDictionary()
1060 inf.end(); in test_needsDictionary()
/libcore/ojluni/src/test/java/util/zip/ZipFile/
DTestCleaner.java87 var inf = new Inflater(); in testDeInflater() local
88 list.add(zsRefInf.get(inf)); in testDeInflater()
89 inf.setInput(buf1, 0, n); in testDeInflater()
90 n = inf.inflate(buf2); in testDeInflater()
/libcore/ojluni/src/main/java/java/net/
DMulticastSocket.java473 public void setInterface(InetAddress inf) throws SocketException { in setInterface() argument
477 checkAddress(inf, "setInterface"); in setInterface()
479 getImpl().setOption(SocketOptions.IP_MULTICAST_IF, inf); in setInterface()
480 infAddress = inf; in setInterface()
/libcore/ojluni/annotations/hiddenapi/java/util/zip/
DZipFile.java82 private void releaseInflater(java.util.zip.Inflater inf) { in releaseInflater() argument
264 java.util.zip.Inflater inf, in ZipFileInflaterInputStream() argument
/libcore/api/
Dcurrent.txt18646 field protected java.util.zip.Inflater inf;
18656 field protected final java.util.zip.Inflater inf;