Home
last modified time | relevance | path

Searched refs:isBlocking (Results 1 – 20 of 20) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DPipeTest.java47 assertTrue(sink.isBlocking()); in test_sink()
56 assertTrue(source.isBlocking()); in test_source()
DSinkChannelTest.java81 boolean isBlocking = sinkBlockingMode[i] && sourceBlockingMode[i]; in test_write_LByteBuffer()
93 } while (totalCount != BUFFER_SIZE && !isBlocking); in test_write_LByteBuffer()
193 boolean isBlocking = sinkBlockingMode[i] && sourceBlockingMode[i]; in test_write_$LByteBuffer()
203 } while (totalCount != BUFFER_SIZE && !isBlocking); in test_write_$LByteBuffer()
291 boolean isBlocking = sinkBlockingMode[i] && sourceBlockingMode[i]; in test_write_$LByteBufferII()
300 } while (totalCount != BUFFER_SIZE && !isBlocking); in test_write_$LByteBufferII()
DSelectableChannelTest.java57 public boolean isBlocking() { in isBlocking() method in SelectableChannelTest.MockSelectableChannel
DServerSocketChannelTest.java253 assertTrue(this.serverChannel.isBlocking()); in testSocket_Block_BeforeClose()
286 assertTrue(this.serverChannel.isBlocking()); in testSocket_Block_Closed()
298 assertFalse(this.serverChannel.isBlocking()); in testSocket_NonBlock_Closed()
323 assertTrue(this.serverChannel.isBlocking()); in testChannelBasicStatus()
339 assertTrue(this.serverChannel.isBlocking()); in testAccept_Block_NotYetBound()
371 assertTrue(this.serverChannel.isBlocking()); in testAccept_Block_NoConnect()
462 assertTrue(serverChannel.isBlocking()); in test_write_Blocking_RealData()
DDatagramChannelTest.java348 assertTrue(channel1.isBlocking()); in testSocket_ActionsBeforeConnect()
427 assertTrue(this.channel1.isBlocking()); in testConnect_BlockWithServer()
616 assertTrue(this.channel1.isBlocking()); in testDisconnect_BlockWithServerChannelClosed()
639 assertTrue(this.channel1.isBlocking()); in testDisconnect_BlockWithServerServerClosed()
654 assertFalse(this.channel1.isBlocking()); in testDisconnect_NonBlockWithServerServerClosed()
808 assertTrue(this.channel1.isBlocking()); in testReceive_BlockNoServerNull()
824 assertTrue(this.channel1.isBlocking()); in testReceive_BlockNoServerReadonly()
869 assertTrue(this.channel1.isBlocking()); in testReceive_BlockNoServerChannelClose()
885 assertTrue(this.channel1.isBlocking()); in testReceive_BlockNoServerCloseNull()
909 assertTrue(this.channel1.isBlocking()); in testReceive_BlockNoServerCloseReadonly()
[all …]
DChannelsTest.java601 assertFalse(sc.isBlocking()); in test_newReader_LReadableByteChannel_LString()
605 assertFalse(sc.isBlocking()); in test_newReader_LReadableByteChannel_LString()
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectableChannel.java332 public abstract boolean isBlocking(); in isBlocking() method in SelectableChannel
DChannels.java97 if (!sc.isBlocking()) in writeFully()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java239 assertTrue(sc.isBlocking()); in test_connect_blocking()
247 assertTrue(sc.isBlocking()); in test_connect_blocking()
258 assertTrue(sc.isBlocking()); in test_connect_nonBlocking()
260 assertFalse(sc.isBlocking()); in test_connect_nonBlocking()
274 assertFalse(sc.isBlocking()); in test_connect_nonBlocking()
DOldSocketChannelTest.java173 assertTrue(this.channel1.isBlocking()); in testChannelBasicStatus()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DAbstractSelectableChannelTest.java88 assertTrue(testChannel.isBlocking()); in test_isBlocking()
90 assertFalse(testChannel.isBlocking()); in test_isBlocking()
92 assertTrue(testChannel.isBlocking()); in test_isBlocking()
/libcore/ojluni/src/main/java/sun/nio/ch/
DChannelInputStream.java55 boolean bm = sc.isBlocking(); in read()
DSocketAdaptor.java92 if (!sc.isBlocking()) in connect()
206 if (!sc.isBlocking()) in read()
DDatagramSocketAdaptor.java141 if (!dc.isBlocking()) in send()
209 if (!dc.isBlocking()) in receive()
DServerSocketAdaptor.java101 if (sc == null && !ssc.isBlocking()) in accept()
DSocketChannelImpl.java723 if (!isBlocking()) { in connect()
760 if (!isBlocking()) { in finishConnect()
1005 assert Thread.holdsLock(blockingLock()) && !isBlocking(); in poll()
DServerSocketChannelImpl.java352 assert Thread.holdsLock(blockingLock()) && !isBlocking(); in poll()
DDatagramChannelImpl.java792 blocking = isBlocking(); in connect()
1150 assert Thread.holdsLock(blockingLock()) && !isBlocking(); in poll()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelectableChannel.java266 public final boolean isBlocking() { in isBlocking() method in AbstractSelectableChannel
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerTest.java454 assertFalse(sc.isBlocking()); in test_Constructor_LReadableByteChannel()
458 assertFalse(sc.isBlocking()); in test_Constructor_LReadableByteChannel()