Searched refs:available (Results 76 - 92 of 92) sorted by relevance

1234

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherInputStream1Test.java217 * available() method testing. Tests that the method always return 0.
223 assertEquals("The returned by available() method value "
224 + "should be 0.", cis.available(), 0);
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DTestKeyStoreSpi.java149 if (stream.available() == 0)
/libcore/luni/src/main/java/java/io/
H A DObjectInputStream.java376 public int available() throws IOException { method in class:ObjectInputStream
379 return primitiveData.available();
393 if (primitiveData == input || primitiveData.available() > 0) {
520 * has been reached. Blocks if no input is available.
745 if (primitiveData.available() > 0) {
747 e.length = primitiveData.available();
2304 // To be used with available. Ok to call if reading primitive buffer
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DCertificateFactoryTest.java336 public int available() throws IOException { method in class:CertificateFactoryTest.MeasuredInputStream
337 return mStream.available();
H A DX509CRLTest.java112 byte[] buf = new byte[ris.available()];
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DFileInputStreamTest.java158 * java.io.FileInputStream#available()
163 assertTrue(is.available() == INPUT.length());
H A DSerializationStressTest.java478 avail = ois.available() / 2;
580 available1 = ois.available();
582 available2 = ois.available();
585 assertEquals("available returned incorrect value", 0, available1);
586 assertEquals("available returned incorrect value", 0, available2);
588 assertTrue("available caused incorrect reading", FOO.equals(obj1));
589 assertTrue("available returned incorrect value", FOO.equals(obj2));
H A DInputStreamReaderTest.java62 public int available() { method in class:InputStreamReaderTest.LimitedByteArrayInputStream
H A DObjectOutputStreamTest.java830 avail = ois.available() / 2;
/libcore/luni/src/test/java/libcore/java/net/
H A DOldServerSocketTest.java369 protected int available() throws IOException { method in class:OldServerSocketTest.MockSocketImpl
H A DOldURLTest.java260 assertTrue(output.available() > 0);
H A DURLConnectionTest.java2150 assertTrue(in.available() >= 0);
2153 assertEquals(0, in.available());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DServerSocketTest.java427 fail("No exception binding to address that is not available");
510 fail("No exception binding to address that is not available");
914 protected int available() throws IOException { method in class:ServerSocketTest.MockSocketImpl
H A DSocketTest.java221 fail("No exception binding to address that is not available");
1450 // Bind to any available port on the given address
1562 assertEquals(0, theInput.available());
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
H A DObjectInputStreamTest.java176 ois.available();
684 assertEquals("Read incorrect bytes", 10, ois.available());
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
H A DHttpsURLConnectionTest.java672 while (bufIn.available() > 0) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/x500/
H A DX500PrincipalTest.java376 assertEquals(0, is.available());
406 assertEquals(3, is.available());
419 assertEquals(1, is.available());

Completed in 1112 milliseconds

1234