Home
last modified time | relevance | path

Searched refs:isClosed (Results 1 – 25 of 53) sorted by relevance

123

/libcore/ojluni/src/main/java/java/net/
DSocket.java622 if (isClosed()) in connect()
681 if (isClosed()) in bind()
959 if (isClosed()) in getInputStream()
998 if (isClosed()) in getOutputStream()
1033 if (isClosed()) in setTcpNoDelay()
1049 if (isClosed()) in getTcpNoDelay()
1070 if (isClosed()) in setSoLinger()
1098 if (isClosed()) in getSoLinger()
1122 if (isClosed()) { in sendUrgentData()
1158 if (isClosed()) in setOOBInline()
[all …]
DDatagramSocket.java143 if (isClosed()) in connectInternal()
395 if (isClosed()) in bind()
530 if (isClosed()) in disconnect()
632 if (isClosed()) in getLocalSocketAddress()
687 if (isClosed()) in send()
885 if (isClosed()) in getLocalAddress()
912 if (isClosed()) in getLocalPort()
937 if (isClosed()) in setSoTimeout()
952 if (isClosed()) in getSoTimeout()
999 if (isClosed()) in setSendBufferSize()
[all …]
DPlainDatagramSocketImpl.java68 if (isClosed()) { in setOption()
81 if (isClosed()) { in getOption()
101 if (isClosed()) { in bind0()
117 if (isClosed()) { in send()
146 if (isClosed()) { in doRecv()
181 if (isClosed()) { in join()
190 if (isClosed()) { in leave()
215 if (isClosed()) { in socketSetOption0()
223 if (isClosed()) { in socketGetOption()
231 if (isClosed()) { in connect0()
[all …]
DMulticastSocket.java221 if (isClosed()) in setTTL()
249 if (isClosed()) in setTimeToLive()
267 if (isClosed()) in getTTL()
281 if (isClosed()) in getTimeToLive()
306 if (isClosed()) { in joinGroup()
351 if (isClosed()) { in leaveGroup()
395 if (isClosed()) in joinGroup()
442 if (isClosed()) in leaveGroup()
474 if (isClosed()) { in setInterface()
499 if (isClosed()) { in getInterface()
[all …]
DServerSocket.java382 if (isClosed()) in bind()
532 if (isClosed()) in accept()
608 if (isClosed()) in close()
653 public boolean isClosed() { in isClosed() method in ServerSocket
676 if (isClosed()) in setSoTimeout()
690 if (isClosed()) in getSoTimeout()
738 if (isClosed()) in setReuseAddress()
754 if (isClosed()) in getReuseAddress()
873 if (isClosed()) in setReceiveBufferSize()
894 if (isClosed()) in getReceiveBufferSize()
DAbstractPlainDatagramSocketImpl.java261 protected boolean isClosed() { in isClosed() method in AbstractPlainDatagramSocketImpl
280 if (isClosed()) { in setOption()
351 if (isClosed()) { in getOption()
DSocketOutputStream.java169 if (!socket.isClosed()) in close()
/libcore/luni/src/test/java/libcore/java/sql/
DConnectionTest.java35 assertFalse(c.isClosed()); in testDriverManager_getConnection()
37 assertTrue(c.isClosed()); in testDriverManager_getConnection()
44 assertFalse(c.isClosed()); in testConnect()
46 assertTrue(c.isClosed()); in testConnect()
DOldSQLTest.java55 if (! conn.isClosed()) { in tearDown()
/libcore/dalvik/src/main/java/dalvik/system/
DSocketTagger.java91 if (!socket.isClosed()) { in tag()
113 if (!socket.isClosed()) { in untag()
130 if (!socket.isClosed()) { in tag()
151 if (!socket.isClosed()) { in untag()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java111 assertFalse(scSocket.isClosed()); in test_channelSocketOutputStreamClosureState()
116 assertTrue(scSocket.isClosed()); in test_channelSocketOutputStreamClosureState()
132 assertFalse(scSocket.isClosed()); in test_channelSocketInputStreamClosureState()
137 assertTrue(scSocket.isClosed()); in test_channelSocketInputStreamClosureState()
150 assertFalse(socket.isClosed()); in test_open_initialState()
198 assertFalse(socket.isClosed()); in test_bind_socketStateSync()
203 assertTrue(socket.isClosed()); in test_bind_socketStateSync()
224 assertFalse(socket.isClosed()); in test_bind_socketObjectCreationAfterBind()
229 assertTrue(socket.isClosed()); in test_bind_socketObjectCreationAfterBind()
246 assertFalse(sc.socket().isClosed()); in test_connect_blocking()
[all …]
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixDirectoryStream.java59 private volatile boolean isClosed; field in UnixDirectoryStream
92 return !isClosed; in isOpen()
96 if (!isClosed) { in closeImpl()
97 isClosed = true; in closeImpl()
125 if (isClosed) { in iterator()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DWhileOpTest.java333 AtomicBoolean isClosed = new AtomicBoolean();
334 Stream<Integer> s = Stream.of(1, 2, 3).onClose(() -> isClosed.set(true));
338 assertTrue(isClosed.get());
343 AtomicBoolean isClosed = new AtomicBoolean();
344 IntStream s = IntStream.of(1, 2, 3).onClose(() -> isClosed.set(true));
348 assertTrue(isClosed.get());
353 AtomicBoolean isClosed = new AtomicBoolean();
354 LongStream s = LongStream.of(1, 2, 3).onClose(() -> isClosed.set(true));
358 assertTrue(isClosed.get());
363 AtomicBoolean isClosed = new AtomicBoolean();
[all …]
/libcore/ojluni/src/test/java/io/InputStream/
DReadNBytes.java78 check(!in.isClosed(), "Stream unexpectedly closed"); in test()
97 check(!in.isClosed(), "Stream unexpectedly closed"); in test()
137 check(!in.isClosed(), "Stream unexpectedly closed"); in test()
160 boolean isClosed() { return closed; } in isClosed() method in ReadNBytes.WrapperInputStream
DReadAllBytes.java78 check(!in.isClosed(), "Stream unexpectedly closed"); in test()
100 boolean isClosed() { return closed; } in isClosed() method in ReadAllBytes.WrapperInputStream
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSocketFactoryTest.java74 assertFalse(s.isClosed()); in test_createSocket()
79 assertTrue(st.isClosed()); in test_createSocket()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DMulticastSocketTest.java760 assertTrue("should not be bound", !ms.isBound() && !ms.isClosed() && !ms.isConnected()); in constructorLjava_net_SocketAddress()
762 assertTrue("should be bound", ms.isBound() && !ms.isClosed() && !ms.isConnected()); in constructorLjava_net_SocketAddress()
764 assertTrue("should be closed", ms.isClosed()); in constructorLjava_net_SocketAddress()
767 assertTrue("should be bound", ms.isBound() && !ms.isClosed() && !ms.isConnected()); in constructorLjava_net_SocketAddress()
769 assertTrue("should be closed", ms.isClosed()); in constructorLjava_net_SocketAddress()
772 assertTrue("should be bound", ms.isBound() && !ms.isClosed() && !ms.isConnected()); in constructorLjava_net_SocketAddress()
774 assertTrue("should be closed", ms.isClosed()); in constructorLjava_net_SocketAddress()
793 assertTrue("should not be bound", !ms.isBound() && !ms.isClosed() && !ms.isConnected()); in getLoopbackMode()
795 assertTrue("should not be bound", !ms.isBound() && !ms.isClosed() && !ms.isConnected()); in getLoopbackMode()
797 assertTrue("should be closed", ms.isClosed()); in getLoopbackMode()
[all …]
DServerSocketTest.java674 .isClosed()); in test_isClosed()
677 .isClosed()); in test_isClosed()
682 .isClosed()); in test_isClosed()
685 .isClosed()); in test_isClosed()
689 .isClosed()); in test_isClosed()
692 .isClosed()); in test_isClosed()
696 .isClosed()); in test_isClosed()
699 .isClosed()); in test_isClosed()
DSocketTest.java352 assertFalse("Wrong closed status", client.isClosed()); in test_connectLjava_net_SocketAddress()
453 assertFalse("Wrong closed status", client.isClosed()); in test_connectLjava_net_SocketAddressI()
503 assertFalse("new socket should not be closed", s.isClosed()); in test_Constructor()
1060 .isClosed()); in test_isClosed()
1062 assertTrue("Socket should indicate it is closed(1):", client.isClosed()); in test_isClosed()
1067 .isClosed()); in test_isClosed()
1070 .isClosed()); in test_isClosed()
1074 .isClosed()); in test_isClosed()
1077 .isClosed()); in test_isClosed()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DServerSocketChannelTest.java195 assertFalse(socket.isClosed()); in test_bind_socketSync()
200 assertTrue(socket.isClosed()); in test_bind_socketSync()
216 assertFalse(socket.isClosed()); in test_bind_socketSyncAfterBind()
221 assertTrue(socket.isClosed()); in test_bind_socketSyncAfterBind()
255 assertFalse(s1.isClosed()); in testSocket_Block_BeforeClose()
271 assertFalse(s1.isClosed()); in testSocket_NonBlock_BeforeClose()
288 assertTrue(s1.isClosed()); in testSocket_Block_Closed()
301 assertTrue(s1.isClosed()); in testSocket_NonBlock_Closed()
322 assertFalse(gotSocket.isClosed()); in testChannelBasicStatus()
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketTest.java63 assertFalse(ss.isClosed()); in testInitialState()
81 assertTrue(ss.isClosed()); in testStateAfterClose()
/libcore/ojluni/src/main/java/sun/nio/ch/
DDatagramSocketAdaptor.java78 if (isClosed()) in connectInternal()
227 if (isClosed()) in getLocalAddress()
245 if (isClosed()) in getLocalPort()
356 public boolean isClosed() { in isClosed() method in DatagramSocketAdaptor
/libcore/ojluni/src/main/java/java/util/concurrent/
DSubmissionPublisher.java372 if (b.isClosed()) { // remove in subscribe()
482 if (b.isClosed()) { in cleanAndCount()
689 public boolean isClosed() { in isClosed() method in SubmissionPublisher
716 if (b.isClosed()) { in hasSubscribers()
781 if (b.isClosed()) { in getSubscribers()
816 if (b.isClosed()) { in isSubscribed()
1120 final boolean isClosed() { in isClosed() method in SubmissionPublisher.BufferedSubscription
/libcore/ojluni/src/test/java/util/concurrent/tck/
DSubmissionPublisherTest.java163 assertFalse(p.isClosed()); in checkInitialState()
233 assertTrue(p.isClosed()); in testClose()
241 assertTrue(p.isClosed()); in testClose()
256 assertTrue(p.isClosed()); in testCloseExceptionally()
263 assertTrue(p.isClosed()); in testCloseExceptionally()
326 assertTrue(p.isClosed()); in testSubscribe3()
395 assertTrue(p.isClosed()); in testCloseCompletes()
417 assertTrue(p.isClosed()); in testCloseExceptionallyError()
/libcore/luni/src/main/java/libcore/io/
DMemoryMappedFile.java79 public boolean isClosed() { in isClosed() method in MemoryMappedFile

123