/libcore/ojluni/src/main/java/javax/crypto/ |
H A D | CipherInputStream.java | 47 * <code>skip</code> method skips, and the <code>available</code> 161 * <code>0</code> to <code>255</code>. If no byte is available 164 * is available, the end of the stream is detected, or an exception 206 * available. If the first argument is <code>null,</code> up to 230 int available = ofinish - ostart; 231 if (len < available) available = len; 233 System.arraycopy(obuffer, ostart, b, off, available); 235 ostart = ostart + available; 236 return available; 280 public int available() throws IOException { method in class:CipherInputStream [all...] |
/libcore/support/src/test/java/tests/support/ |
H A D | Support_ASimpleReader.java | 60 int available = len - pos; 61 if (available > 0) { 62 int readable = (available < count ? available : count);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
H A D | DeflaterInputStreamTest.java | 55 * DeflaterInputStream#available() 60 assertEquals(1, dis.available()); 62 assertEquals(1, dis.available()); 64 assertEquals(0, dis.available()); 66 assertEquals(0, dis.available()); 69 dis.available(); 82 assertEquals(1, dis.available()); 85 dis.available(); 128 assertEquals(1, dis.available()); 130 assertEquals(1, dis.available()); [all...] |
H A D | InflaterInputStreamTest.java | 232 // InflaterInputStream.available() returns either 1 or 0, even though 233 // that contradicts the behavior defined in InputStream.available() 235 assertEquals(1, in.available()); 237 assertEquals(1, in.available()); 239 assertEquals(1, in.available()); 241 assertEquals(0, in.available()); 250 assertEquals(1, in.available()); 252 assertEquals(0, in.available()); 261 assertEquals(0, in.available()); 378 // Test for skipping more bytes than available i [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | ObjectInput.java | 55 * available. 64 * block until some input is available. 74 * block until some input is available. 95 * @return the number of available bytes. 98 public int available() throws IOException; method in interface:ObjectInput
|
H A D | PipedInputStream.java | 105 * to <code>src</code> will then be available 121 * be available as input from this stream. 200 * available. 224 * block until some input is available. 305 * This method blocks until input data is available, the end of the 367 * available, end of the stream has been detected, or an exception is 402 int available; 405 available = Math.min((buffer.length - out), (in - out)); 407 available = buffer.length - out; 411 if (available > (le 443 public synchronized int available() throws IOException { method in class:PipedInputStream [all...] |
H A D | FilterInputStream.java | 68 * <code>0</code> to <code>255</code>. If no byte is available 71 * is available, the end of the stream is detected, or an exception 89 * input is available. 113 * blocks until some input is available; otherwise, no 161 * This method returns the result of {@link #in in}.available(). 167 public int available() throws IOException { method in class:FilterInputStream 168 return in.available();
|
H A D | LineNumberInputStream.java | 70 * <code>0</code> to <code>255</code>. If no byte is available 73 * is available, the end of the stream is detected, or an exception 114 * into an array of bytes. This method blocks until some input is available. 239 public int available() throws IOException { method in class:LineNumberInputStream 240 return (pushBack == -1) ? super.available()/2 : super.available()/2 + 1;
|
H A D | SequenceInputStream.java | 126 * This method simply calls {@code available} of the current underlying 137 public int available() throws IOException { method in class:SequenceInputStream 139 return 0; // no way to signal EOF from available() 141 return in.available(); 147 * <code>255</code>. If no byte is available because the end of the 149 * This method blocks until input data is available, the end of the 177 * blocks until at least 1 byte of input is available; otherwise, no
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
H A D | AppInputStream.java | 58 public int available() throws IOException { method in class:AppInputStream 62 return r.available(); 101 while (r.available() == 0) { 108 int howmany = Math.min(len, r.available());
|
H A D | HandshakeInStream.java | 72 * Return the number of bytes available for read(). 77 public int available() { method in class:HandshakeInStream 78 return r.available(); 97 // data in a single read if enough is available 218 // Is a length greater than available bytes in the record? 220 if (len > available()) {
|
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | Semaphore.java | 15 * available, and then takes it. Each {@link #release} adds a permit, 18 * keeps a count of the number available and acts accordingly. 26 * private final Semaphore available = new Semaphore(MAX_AVAILABLE, true); 29 * available.acquire(); 35 * available.release(); 68 * the semaphore, guaranteeing that an item is available for use. When 79 * only has at most one permit available, can serve as a mutual 82 * available, or zero permits available. When used in this way, the 106 * available [all...] |
H A D | DelayQueue.java | 72 * Condition signalled when a newer element becomes available 76 private final Condition available = lock.newCondition(); field in class:DelayQueue 120 available.signal(); 175 * until an element with an expired delay is available on this queue. 187 available.await(); 194 available.await(); 199 available.awaitNanos(delay); 209 available.signal(); 216 * until an element with an expired delay is available on this queue, 221 * an expired delay becomes available [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | DeflaterInputStreamTest.java | 35 assertEquals(1, in.available()); 40 assertEquals(0, in.available()); 46 in.available(); 68 assertEquals(1, in.available()); 74 assertEquals(0, in.available()); 80 in.available();
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Currency.java | 67 private static HashSet<Currency> available; field in class:Currency 149 * Gets the set of available currencies. The returned set of currencies 150 * contains all of the available currencies, which may include currencies 152 * without affecting the available currencies in the runtime. 154 * @return the set of available currencies. If there is no currency 155 * available in the runtime, the returned set is empty. 160 if (available == null) { 163 available = new HashSet<>(); 170 available.add(currency); 173 return (Set<Currency>) available [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | PipedInputStreamTest.java | 74 pis.available(); 101 * java.io.PipedInputStream#available() 115 + pis.available(), pis.available() == 1000); 125 assertEquals("Incorrect available count", 1024, pin.available()); 155 assertEquals("Non-conected pipe returned non-zero available bytes", 0, 156 pis.available()); 166 .available()); 184 .available()); [all...] |
H A D | BufferedOutputStreamTest.java | 135 assertEquals("Bytes written, not buffered", 0, bais.available()); 138 assertEquals("Bytes not written after flush", 500, bais.available()); 142 bais.available() >= 1000); 653 assertEquals("Byte written, not buffered", 0, bais.available()); 656 assertEquals("Byte not written after flush", 1, bais.available()); 690 assertEquals("Bytes written, not buffered", 10, byteArrayis.available()); 694 .available()); 701 assertEquals("Bytes written, not buffered", 20, byteArrayis.available()); 705 .available()); 715 assertEquals("Bytes written, not buffered", 30, byteArrayis.available()); [all...] |
H A D | ByteArrayInputStreamTest.java | 38 bis.available() == fileString.length()); 49 .available()); 74 * ByteArrayInputStream#available() 77 assertTrue("Returned incorrect number of available bytes", is 78 .available() == fileString.length());
|
H A D | FilterOutputStreamTest.java | 83 bis.available() == fileString.length()); 100 bis.available() == fileString.length()); 116 assertEquals("Byte not written after flush", 1, bis.available());
|
H A D | StringBufferInputStreamTest.java | 36 * java.io.StringBufferInputStream#available() 39 // Test for method int java.io.StringBufferInputStream.available() 40 assertEquals("Returned incorrect number of available bytes", 11, sbis 41 .available());
|
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | DerInputBuffer.java | 65 int len = available(); 106 int max = this.available(); 107 if (other.available() != max) 125 int len = available(); 134 if (len > available()) 148 if (len > available()) 193 if (len > available()) 219 return getBitString(available()); 233 int len = available(); 255 if (len > available()) [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | GeneralNames.java | 60 if (derVal.data.available() == 0) { 61 throw new IOException("No data available in " 65 while (derVal.data.available() != 0) {
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldBufferedOutputStreamTest.java | 93 0, bais.available()); 97 500, bais.available()); 101 bais.available() >= 1000); 161 0, bais.available()); 165 1, bais.available());
|
H A D | FilterInputStreamNullSourceTest.java | 56 assertEquals(0, in.available()); 113 in.available(); 129 in.available();
|
H A D | OldSequenceInputStreamTest.java | 32 assertEquals("Returned incorrect number of bytes!", s1.length(), si.available()); 35 si.available() == s1.length()); 38 si.available();
|