Home
last modified time | relevance | path

Searched refs:isOpen (Results 1 – 25 of 33) sorted by relevance

12

/libcore/support/src/test/java/tests/support/
DSupport_StringReader.java55 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/
DAbstractInterruptibleChannelTest.java32 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()
DAbstractSelectorTest.java39 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()
DAbstractSelectableChannelTest.java45 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/
DAbstractSelector.java34 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()
DAbstractSelectableChannel.java129 if (!isOpen()) { in register()
140 if (!selector.isOpen()) { in register()
236 if (!isOpen()) { in configureBlocking()
DAbstractInterruptibleChannel.java55 @Override public synchronized final boolean isOpen() { in isOpen() method in AbstractInterruptibleChannel
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java108 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()
DOldServerSocketChannelTest.java73 assertTrue(this.serverChannel.isOpen()); in testIsOpen()
75 assertFalse(this.serverChannel.isOpen()); in testIsOpen()
DOldSocketChannelTest.java115 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()
DDatagramChannelTest.java99 assertTrue(dc.isOpen()); in test_bind_unresolvedAddress()
117 assertTrue(dc.isOpen()); in test_bind_any()
DServerSocketChannelTest.java75 assertTrue(ssc.isOpen()); in test_bind_unresolvedAddress()
/libcore/luni/src/main/java/java/io/
DInputStreamReader.java156 if (!isOpen()) { in getEncoding()
177 if (!isOpen()) { in read()
201 if (!isOpen()) { in read()
274 private boolean isOpen() { in isOpen() method in InputStreamReader
DCharArrayReader.java103 if (isOpen()) {
114 private boolean isOpen() {
/libcore/luni/src/main/java/java/nio/channels/
DChannel.java38 public boolean isOpen(); in isOpen() method
DSelector.java78 public abstract boolean isOpen(); in isOpen() method in Selector
DChannels.java298 if (!isOpen()) { in read()
337 if (!isOpen()) { in write()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DServerSocketChannelTest.java199 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 …]
DChannelsTest.java231 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()
DSocketChannelTest.java218 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 …]
DDatagramChannelTest.java357 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/
DSocketChannelImpl.java206 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()
DServerSocketChannelImpl.java60 if (!isOpen()) { in accept()
164 if (channelImpl.isOpen()) { in close()
DFileChannelImpl.java73 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()
DDatagramChannelImpl.java186 if (!isConnected() || !isOpen()) { in disconnect()
464 if (!isOpen()) { in checkOpen()
523 if (!channelImpl.isOpen()) { in DatagramSocketAdapter()
608 if (channelImpl.isOpen()) { in close()

12