/libcore/support/src/test/java/tests/support/ |
D | Support_StringReader.java | 55 if (isOpen()) { in close() 64 private boolean isOpen() { in isOpen() method in Support_StringReader 83 if (isOpen()) { in mark() 120 if (isOpen()) { in read() 153 if (isOpen()) { in read() 188 if (isOpen()) { in ready() 207 if (isOpen()) { in reset() 230 if (isOpen()) { in skip()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
D | AbstractInterruptibleChannelTest.java | 32 assertTrue(testMiChannel.isOpen()); in test_close() 36 assertFalse(testMiChannel.isOpen()); in test_close() 73 assertTrue(testChannel.isOpen()); in test_begin_end() 83 assertTrue(testChannel.isOpen()); in test_close_begin_end() 90 assertTrue(testChannel.isOpen()); in test_close_begin_end() 103 assertFalse(testChannel.isOpen()); in test_close_begin_end() 110 assertFalse(testChannel.isOpen()); in test_close_begin_end()
|
D | AbstractSelectorTest.java | 39 assertTrue(mockSelector.isOpen()); in test_provider() 105 assertTrue(acceptSelector.isOpen()); in test_isOpen() 107 assertFalse(acceptSelector.isOpen()); in test_isOpen() 135 assertFalse(acceptSelector.isOpen()); in test_register_LSelectorI_error()
|
D | AbstractSelectableChannelTest.java | 45 if (testChannel.isOpen()) { in tearDown() 57 assertFalse(testChannel.isOpen()); in test_implClose() 68 assertFalse(testChannel.isOpen()); in test_implClose() 140 assertTrue(acceptSelector.isOpen()); in test_register_LSelectorILObject_IllegalArgument()
|
/libcore/luni/src/main/java/java/nio/channels/spi/ |
D | AbstractSelector.java | 34 private final AtomicBoolean isOpen = new AtomicBoolean(true); field in AbstractSelector 57 if (isOpen.getAndSet(false)) { in close() 71 public final boolean isOpen() { in isOpen() method in AbstractSelector 72 return isOpen.get(); in isOpen()
|
D | AbstractSelectableChannel.java | 129 if (!isOpen()) { in register() 140 if (!selector.isOpen()) { in register() 236 if (!isOpen()) { in configureBlocking()
|
D | AbstractInterruptibleChannel.java | 55 @Override public synchronized final boolean isOpen() { in isOpen() method in AbstractInterruptibleChannel
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | SocketChannelTest.java | 108 assertTrue(sc.isOpen()); in test_channelSocketOutputStreamClosureState() 113 assertFalse(sc.isOpen()); in test_channelSocketOutputStreamClosureState() 129 assertTrue(sc.isOpen()); in test_channelSocketInputStreamClosureState() 134 assertFalse(sc.isOpen()); in test_channelSocketInputStreamClosureState() 173 assertTrue(sc.isOpen()); in test_bind_unresolvedAddress() 200 assertFalse(sc.isOpen()); in test_bind_socketStateSync() 226 assertFalse(sc.isOpen()); in test_bind_socketObjectCreationAfterBind()
|
D | OldServerSocketChannelTest.java | 73 assertTrue(this.serverChannel.isOpen()); in testIsOpen() 75 assertFalse(this.serverChannel.isOpen()); in testIsOpen()
|
D | OldSocketChannelTest.java | 115 assertTrue(testSChannel.isOpen()); in testOpen() 130 assertTrue(this.channel1.isOpen()); in testIsOpen() 132 assertFalse(this.channel1.isOpen()); in testIsOpen() 217 assertTrue(this.channel1.isOpen()); in statusConnected_NotPending() 225 assertTrue(this.channel1.isOpen()); in tryFinish()
|
D | DatagramChannelTest.java | 99 assertTrue(dc.isOpen()); in test_bind_unresolvedAddress() 117 assertTrue(dc.isOpen()); in test_bind_any()
|
D | ServerSocketChannelTest.java | 75 assertTrue(ssc.isOpen()); in test_bind_unresolvedAddress()
|
/libcore/luni/src/main/java/java/io/ |
D | InputStreamReader.java | 156 if (!isOpen()) { in getEncoding() 177 if (!isOpen()) { in read() 201 if (!isOpen()) { in read() 274 private boolean isOpen() { in isOpen() method in InputStreamReader
|
D | CharArrayReader.java | 103 if (isOpen()) { 114 private boolean isOpen() {
|
/libcore/luni/src/main/java/java/nio/channels/ |
D | Channel.java | 38 public boolean isOpen(); in isOpen() method
|
D | Selector.java | 78 public abstract boolean isOpen(); in isOpen() method in Selector
|
D | Channels.java | 298 if (!isOpen()) { in read() 337 if (!isOpen()) { in write()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | ServerSocketChannelTest.java | 199 assertFalse(ssc.isOpen()); in test_bind_socketSync() 220 assertFalse(ssc.isOpen()); in test_bind_socketSyncAfterBind() 239 assertFalse(ssc.isOpen()); in test_getLocalSocketAddress_afterClose() 252 assertTrue(this.serverChannel.isOpen()); in testSocket_Block_BeforeClose() 263 assertFalse(this.serverChannel.isOpen()); in testSocket_Block_BeforeClose() 268 assertTrue(this.serverChannel.isOpen()); in testSocket_NonBlock_BeforeClose() 279 assertFalse(this.serverChannel.isOpen()); in testSocket_NonBlock_BeforeClose() 285 assertFalse(this.serverChannel.isOpen()); in testSocket_Block_Closed() 299 assertFalse(this.serverChannel.isOpen()); in testSocket_NonBlock_Closed() 338 assertTrue(this.serverChannel.isOpen()); in testAccept_Block_NotYetBound() [all …]
|
D | ChannelsTest.java | 231 assertTrue(testChannel.isOpen()); in testNewChannelOutputStream() 232 assertTrue(rbChannel.isOpen()); in testNewChannelOutputStream() 272 assertTrue(readbc.isOpen()); in testNewInputStreamReadableByteChannel_InputNull() 289 assertTrue(readbc.isOpen()); in testNewInputStreamReadableByteChannel() 301 assertFalse(readbc.isOpen()); in testNewInputStreamReadableByteChannel() 322 assertTrue(writebc.isOpen()); in testNewOutputStreamWritableByteChannel_InputNull() 336 assertTrue(writebc.isOpen()); in testNewOutputStreamWritableByteChannel() 348 assertFalse(writebc.isOpen()); in testNewOutputStreamWritableByteChannel()
|
D | SocketChannelTest.java | 218 assertFalse(sc.isOpen()); in test_getLocalSocketAddress_afterClose() 602 assertFalse(this.channel1.isOpen()); in assertSocketAction_Block_BeforeConnect() 636 assertFalse(this.channel1.isOpen()); in assertSocketAction_NonBlock_BeforeConnect() 660 assertFalse(this.channel1.isOpen()); in assertSocketAction_Block_AfterConnect() 694 assertFalse(this.channel1.isOpen()); in assertSocketAction_NonBlock_AfterConnect() 805 assertTrue(this.channel1.isOpen()); in testCFII_ServerClosedAfterFinish_Block() 818 assertTrue(this.channel1.isOpen()); in testCFII_ServerClosedAfterFinish_NonBlock() 966 if (this.channel1.isOpen()) { in testCFII_ConnectAfterFinish_NoServer_NonBlock() 1446 assertFalse(this.channel1.isOpen()); in testCFII_StatusAfterFinish() 1448 assertFalse(this.channel1.isOpen()); in testCFII_StatusAfterFinish() [all …]
|
D | DatagramChannelTest.java | 357 assertFalse(channel1.isOpen()); in testSocket_ActionsBeforeConnect() 396 assertFalse(this.channel1.isOpen()); in assertSocketActionAfterConnect() 511 assertFalse(this.channel1.isOpen()); in testConnect_ClosedChannelException() 545 assertFalse(this.channel1.isOpen()); in testConnect_CheckOpenBeforeStatus() 562 assertFalse(this.channel1.isOpen()); in disconnectAfterClosed() 602 assertFalse(this.channel1.isOpen()); in testDisconnect_UnconnectedClosed() 639 assertTrue(this.channel1.isOpen()); in testDisconnect_BlockWithServerServerClosed() 654 assertTrue(this.channel1.isOpen()); in testDisconnect_NonBlockWithServerServerClosed() 749 assertFalse(this.channel1.isOpen()); in testReceive_UnconnectedClose() 764 assertFalse(this.channel1.isOpen()); in testReceive_UnconnectedCloseNull() [all …]
|
/libcore/luni/src/main/java/java/nio/ |
D | SocketChannelImpl.java | 206 if (isOpen()) { in connect() 261 if (!isOpen()) { in finishConnect() 279 if (isOpen()) { in finishConnect() 417 if (!isOpen()) { in checkOpenConnected() 429 if (!isOpen()) { in checkUnconnected() 512 if (!channel.isOpen()) { in SocketAdapter() 556 if (channel.isOpen()) { in close()
|
D | ServerSocketChannelImpl.java | 60 if (!isOpen()) { in accept() 164 if (channelImpl.isOpen()) { in close()
|
D | FileChannelImpl.java | 73 if (!isOpen()) { in checkOpen() 145 return !isReleased && channel().isOpen(); in isValid() 149 if (!channel().isOpen()) { in release() 365 if (!src.isOpen()) { in transferFrom() 405 if (!target.isOpen()) { in transferTo()
|
D | DatagramChannelImpl.java | 186 if (!isConnected() || !isOpen()) { in disconnect() 464 if (!isOpen()) { in checkOpen() 523 if (!channelImpl.isOpen()) { in DatagramSocketAdapter() 608 if (channelImpl.isOpen()) { in close()
|