Searched refs:available (Results 51 - 75 of 151) sorted by relevance

1234567

/libcore/luni/src/test/java/libcore/java/io/
H A DFileInputStreamTest.java127 fis2.available();
153 fis1.available();
187 fis.available();
222 assertEquals(0, input.available());
H A DOldAndroidPipedStreamTest.java45 assertEquals(0, in.available());
112 assertEquals(0, in.available());
198 assertEquals(0, in.available());
/libcore/ojluni/src/main/java/java/io/
H A DByteArrayInputStream.java133 * <code>0</code> to <code>255</code>. If no byte is available
231 public synchronized int available() { method in class:ByteArrayInputStream
H A DInputStream.java54 * <code>255</code>. If no byte is available because the end of the stream
56 * blocks until input data is available, the end of the stream is detected,
71 * available, end of file is detected, or an exception is thrown.
75 * least one byte. If no byte is available because the stream is at the
110 * <p> This method blocks until input data is available, end of file is
115 * least one byte. If no byte is available because the stream is at end of
250 * <p> The {@code available} method for class {@code InputStream} always
260 public int available() throws IOException { method in class:InputStream
H A DStringBufferInputStream.java80 * <code>0</code> to <code>255</code>. If no byte is available
164 public synchronized int available() { method in class:StringBufferInputStream
H A DFileInputStream.java42 * are available depends on the host environment.
236 * if no input is yet available.
266 * is available.
282 * blocks until some input is available; otherwise, no
376 // BEGIN Android-changed: available() implementation changed from bare native.
377 public int available() throws IOException { method in class:FileInputStream
387 // END Android-changed: available() implementation changed from bare native.
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileDescriptorHolderSocketImpl.java102 protected int available() throws IOException { method in class:FileDescriptorHolderSocketImpl
H A DChannelInputStream.java119 public int available() throws IOException { method in class:ChannelInputStream
/libcore/ojluni/src/main/java/sun/security/timestamp/
H A DTimestampToken.java158 while (tstInfo.data.available() > 0) {
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DScheduledThreadPoolExecutor.java26 * This file is available under and governed by the GNU General Public
862 * we are not guaranteed to have such indices available, in
900 * Condition signalled when a newer task becomes available at the
903 private final Condition available = lock.newCondition(); field in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
1064 available.signal();
1120 available.await();
1127 available.await();
1132 available.awaitNanos(delay);
1142 available.signal();
1159 nanos = available
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DFileHandler.java495 boolean available;
497 available = lockFileChannel.tryLock() != null;
511 available = fileCreated;
516 // continue searching for an available lock.
517 available = false;
519 if (available) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DDataOutputStreamTest.java157 int i, a = dis.available() / 2;
232 dis.available() == unihw.length() + 2);
H A DLineNumberInputStreamTest.java46 * java.io.LineNumberInputStream#available()
49 assertTrue("Returned incorrect number of available bytes", lnis
50 .available() == text.length() / 2);
H A DFilterInputStreamTest.java122 * java.io.FilterInputStream#available()
125 assertTrue("Returned incorrect number of available bytes", is
126 .available() == INPUT.length());
/libcore/ojluni/src/main/java/sun/security/x509/
H A DBasicConstraintsExtension.java134 if (val.data == null || val.data.available() == 0) {
145 if (val.data.available() == 0) {
H A DAuthorityInfoAccessExtension.java125 while (val.data.available() != 0) {
H A DCertificatePoliciesExtension.java149 while (val.data.available() != 0) {
H A DCertificateVersion.java79 if (derVal.data.available() != 0) {
H A DGeneralSubtree.java83 while (val.data.available() != 0) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DSocketImplTest.java94 protected int available() throws IOException { method in class:SocketImplTest.MockSocketImpl
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DOCSPResponse.java280 //System.out.println ("version is available");
283 if (seq.data.available() != 0) {
331 if (seqDerIn.available() > 0) {
361 // if seq[3] is available , then it is a sequence of certificates
363 // certs are available
703 if (derVal.data.available() != 0) {
739 if (tmp.available() == 0) {
749 if (tmp.available() == 0) {
760 if (tmp.available() > 0) {
/libcore/luni/src/test/java/libcore/java/net/
H A DOldSocketImplFactoryTest.java124 protected int available() throws IOException { method in class:OldSocketImplFactoryTest.MockSocketImpl
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DX509CertificateTest.java176 final int size = ris.available();
243 byte[] buf = new byte[ris.available()];
1130 assertEquals(certsBytes.length * 2, bais.available());
1133 assertTrue(certsBytes.length < bais.available());
1143 assertEquals(cert1Bytes.length * 2, bais.available());
1145 assertEquals(cert1Bytes.length, bais.available());
1191 assertEquals(certsPlusExtra.length, bais.available());
1209 assertEquals(0, bais.available());
1211 assertEquals(4096, bais.available());
1221 assertEquals(certsPlusExtra.length, bais.available());
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
H A DDeflaterInputStream.java205 // so that available is more accurate.
263 public int available() throws IOException { method in class:DeflaterInputStream
H A DInflaterInputStream.java121 * enough input is available for decompression.
189 public int available() throws IOException { method in class:InflaterInputStream

Completed in 393 milliseconds

1234567