Home
last modified time | relevance | path

Searched refs:ready (Results 1 – 25 of 34) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DObjectTest.java27 int ready = 0; field in ObjectTest
121 ready++; in test_notify()
140 ready = 0; in test_notify()
158 if (ready == threadCount) { in test_notify()
162 assertEquals("Not all launched threads are waiting. (ready=" + ready + ")", in test_notify()
163 ready, threadCount); in test_notify()
193 ready += 1; in test_notifyAll()
211 ready = 0; in test_notifyAll()
227 if (ready == threadCount) { in test_notifyAll()
233 assertEquals("Not all launched threads are waiting.", threadCount, ready); in test_notifyAll()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DCharArrayReaderTest.java34 assertTrue("Failed to create reader", cr.ready()); in test_Constructor$C()
42 assertTrue("Failed to create reader", cr.ready()); in test_Constructor$CII()
112 assertTrue("ready returned false", cr.ready()); in test_ready()
114 assertTrue("ready returned true", !cr.ready()); in test_ready()
118 cr.ready(); in test_ready()
126 cr.ready(); in test_ready()
DInputStreamReaderTest.java151 reader.ready(); in test_close()
182 assertFalse(reader.ready()); in test_close()
521 assertTrue("Ready test failed", is.ready()); in test_ready()
523 assertTrue("More chars, but not ready", is.ready()); in test_ready()
525 assertTrue(reader.ready()); in test_ready()
527 assertFalse(reader.ready()); in test_ready()
DStringReaderTest.java110 assertTrue("Steam not ready", sr.ready()); in test_ready()
114 sr.ready(); in test_ready()
DPipedReaderTest.java381 assertTrue("Reader should be ready", preader.ready()); in test_ready()
386 preader.ready()); in test_ready()
DConsoleTest.java81 assertTrue(reader1.ready()); in test_reader()
/libcore/luni/src/test/java/libcore/java/io/
DOldCharArrayReaderTest.java37 assertTrue("Failed to create reader", cr.ready()); in test_Constructor$C()
73 assertTrue("Test 5: Failed to create reader", cr.ready()); in test_Constructor$CII()
196 assertTrue("ready returned false", cr.ready()); in test_ready()
198 assertTrue("ready returned true", !cr.ready()); in test_ready()
201 cr.ready(); in test_ready()
210 cr.ready(); in test_ready()
DOldInputStreamReaderTest.java138 assertTrue(reader.ready()); in testReady()
140 assertFalse(reader.ready()); in testReady()
210 reader.ready(); in testClose()
234 assertTrue("Ready test failed", is.ready()); in test_ready()
236 assertTrue("More chars, but not ready", is.ready()); in test_ready()
DOldFilterReaderTest.java63 public boolean ready() throws IOException { in ready() method in OldFilterReaderTest.MockReader
148 fr.ready(); in test_ready()
DOldPushbackReaderTest.java233 assertTrue("Should be ready!", tobj.ready()); in test_ready()
236 tobj.ready(); in test_ready()
DOldReaderTest.java90 simple.ready(); in test_ready()
/libcore/ojluni/src/main/java/java/io/
DFilterReader.java91 public boolean ready() throws IOException { in ready() method in FilterReader
92 return in.ready(); in ready()
DInputStreamReader.java194 public boolean ready() throws IOException { in ready() method in InputStreamReader
195 return sd.ready(); in ready()
DBufferedReader.java299 while ((n < len) && in.ready()) { in read()
453 public boolean ready() throws IOException { in ready() method in BufferedReader
465 if (nextChar >= nChars && in.ready()) { in ready()
474 return (nextChar < nChars) || in.ready(); in ready()
DPushbackReader.java204 public boolean ready() throws IOException { in ready() method in PushbackReader
207 return (pos < buf.length) || super.ready(); in ready()
DConsole.java417 public boolean ready() throws IOException { in ready() method in Console.LineReader
419 return in.ready(); in ready()
485 if (nextChar == nChars && in.ready()) { in read()
DReader.java203 public boolean ready() throws IOException { in ready() method in Reader
DStringReader.java142 public boolean ready() throws IOException { in ready() method in StringReader
DCharArrayReader.java183 public boolean ready() throws IOException { in ready() method in CharArrayReader
DPipedReader.java342 public synchronized boolean ready() throws IOException { in ready() method in PipedReader
/libcore/ojluni/src/main/native/
DSocketChannelImpl.c54 jboolean ready) in Java_sun_nio_ch_SocketChannelImpl_checkConnect() argument
63 if (!ready) { in Java_sun_nio_ch_SocketChannelImpl_checkConnect()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DChannelsTest.java402 assertFalse(testReader.ready()); in testNewReaderReadableByteChannelString_InputNull()
416 assertFalse(testReader.ready()); in testNewReaderReadableByteChannelString_InputNull()
439 assertFalse(testReader.ready()); in testNewReaderReadableByteChannelString_internalBufferZero()
452 assertFalse(testReader.ready()); in testNewReaderReadableByteChannelString_internalBufferZero()
477 assertTrue(testReader.ready()); in testNewReaderReadableByteChannelString()
478 assertTrue(testReader_s.ready()); in testNewReaderReadableByteChannelString()
493 assertTrue(testReader.ready()); in testNewReaderReadableByteChannelString()
494 assertTrue(testReader_s.ready()); in testNewReaderReadableByteChannelString()
/libcore/support/src/test/java/tests/support/
DSupport_ASimpleReader.java48 public boolean ready() throws IOException { in ready() method in Support_ASimpleReader
DSupport_StringReader.java186 public boolean ready() throws IOException { in ready() method in Support_StringReader
/libcore/ojluni/annotations/hiddenapi/java/io/
DConsole.java128 public boolean ready() throws java.io.IOException { in ready() method in Console.LineReader

12