Home
last modified time | relevance | path

Searched refs:isBound (Results 1 – 25 of 29) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/nio/ch/
DServerSocketAdaptor.java81 if (!ssc.isBound()) in getInetAddress()
88 if (!ssc.isBound()) in getLocalPort()
96 if (!ssc.isBound()) in accept()
144 public boolean isBound() { in isBound() method in ServerSocketAdaptor
145 return ssc.isBound(); in isBound()
178 if (!isBound()) in toString()
DServerSocketChannelImpl.java198 public boolean isBound() { in isBound() method in ServerSocketChannelImpl
215 if (isBound()) in bind()
236 if (!isBound()) in accept()
/libcore/ojluni/src/main/java/java/net/
DServerSocket.java362 if (!oldImpl && isBound()) in bind()
408 if (!isBound()) in getInetAddress()
437 if (!isBound()) in getLocalPort()
476 if (!isBound()) in getLocalSocketAddress()
512 if (!isBound()) in accept()
618 public boolean isBound() { in isBound() method in ServerSocket
749 if (!isBound()) in toString()
DDatagramSocket.java153 if (!isBound()) in connectInternal()
264 if (!isBound()) in DatagramSocket()
395 if (isBound()) in bind()
550 public boolean isBound() { in isBound() method in DatagramSocket
632 if (!isBound()) in getLocalSocketAddress()
718 if (!isBound()) in send()
758 if (!isBound()) in receive()
DSocket.java658 if (!oldImpl && isBound()) in bind()
747 if (!isBound()) in getLocalAddress()
798 if (!isBound()) in getLocalPort()
862 if (!isBound()) in getLocalSocketAddress()
1649 public boolean isBound() { in isBound() method in Socket
DAbstractPlainSocketImpl.java381 if (!closePending && (socket == null || !socket.isBound())) { in doConnect()
423 if (!closePending && (socket == null || !socket.isBound())) { in bind()
DMulticastSocket.java176 if (!isBound()) in MulticastSocket()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java149 assertFalse(socket.isBound()); in test_open_initialState()
188 assertFalse(socket.isBound()); in test_bind_socketStateSync()
196 assertTrue(socket.isBound()); in test_bind_socketStateSync()
222 assertTrue(socket.isBound()); in test_bind_socketObjectCreationAfterBind()
243 assertTrue(sc.socket().isBound()); in test_connect_blocking()
264 assertTrue(sc.socket().isBound()); in test_connect_nonBlocking()
270 assertTrue(sc.socket().isBound()); in test_connect_nonBlocking()
DServerSocketChannelTest.java56 assertFalse(socket.isBound()); in test_open_initialState()
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketTest.java60 assertFalse(ss.isBound()); in testInitialState()
78 assertTrue(ss.isBound()); in testStateAfterClose()
DDatagramSocketTest.java41 assertTrue(ds.isBound()); in testInitialState()
63 assertTrue(ds.isBound()); in testStateAfterClose()
DSocketTest.java157 assertTrue(ssc.socket().isBound()); in checkSocketLocalAndRemoteAddresses()
168 assertTrue(ssc.socket().isBound()); in checkSocketLocalAndRemoteAddresses()
355 assertFalse(s.isBound()); in testInitialState()
377 assertTrue(s.isBound()); in testStateAfterClose()
DOldSocketTest.java67 assertFalse("new socket should not be bound", s.isBound()); in test_Constructor()
736 theSocket.isBound()); in test_isBound()
744 .isBound()); in test_isBound()
749 theSocket.isBound()); in test_isBound()
756 .isBound()); in test_isBound()
759 theSocket.isBound()); in test_isBound()
762 theSocket.isBound()); in test_isBound()
975 .isBound()); in test_connectLjava_net_SocketAddress()
1194 .isBound()); in test_connectLjava_net_SocketAddressI()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DServerSocketTest.java427 .isBound()); in test_bindLjava_net_SocketAddress()
511 .isBound()); in test_bindLjava_net_SocketAddressI()
640 serverSocket.isBound()); in test_isBound()
645 serverSocket.isBound()); in test_isBound()
651 serverSocket.isBound()); in test_isBound()
656 serverSocket.isBound()); in test_isBound()
661 serverSocket.isBound()); in test_isBound()
DDatagramSocketTest.java674 assertTrue(theSocket.isBound()); in test_isBound()
678 assertTrue(theSocket.isBound()); in test_isBound()
682 assertFalse(theSocket.isBound()); in test_isBound()
688 assertTrue(theSocket.isBound()); in test_isBound()
694 assertFalse(theSocket.isBound()); in test_isBound()
696 assertTrue(theSocket.isBound()); in test_isBound()
698 assertTrue(theSocket.isBound()); in test_isBound()
DMulticastSocketTest.java791 assertTrue("should not be bound", !ms.isBound() && !ms.isClosed() && !ms.isConnected()); in test_ConstructorLjava_net_SocketAddress()
793 assertTrue("should be bound", ms.isBound() && !ms.isClosed() && !ms.isConnected()); in test_ConstructorLjava_net_SocketAddress()
798 assertTrue("should be bound", ms.isBound() && !ms.isClosed() && !ms.isConnected()); in test_ConstructorLjava_net_SocketAddress()
803 assertTrue("should be bound", ms.isBound() && !ms.isClosed() && !ms.isConnected()); in test_ConstructorLjava_net_SocketAddress()
825 assertTrue("should not be bound", !ms.isBound() && !ms.isClosed() && !ms.isConnected()); in test_getLoopbackMode()
827 assertTrue("should not be bound", !ms.isBound() && !ms.isClosed() && !ms.isConnected()); in test_getLoopbackMode()
DSocketTest.java353 assertTrue("Wrong bound status", client.isBound()); in test_connectLjava_net_SocketAddress()
454 assertTrue("Wrong bound status", client.isBound()); in test_connectLjava_net_SocketAddressI()
502 assertFalse("new socket should not be bound", s.isBound()); in test_Constructor()
1014 .isBound()); in test_isBound()
1021 .isBound()); in test_isBound()
1030 .isBound()); in test_isBound()
1040 .isBound()); in test_isBound()
1043 .isBound()); in test_isBound()
1046 .isBound()); in test_isBound()
/libcore/ojluni/annotations/mmodule/java/net/
DServerSocket.annotated.java64 public boolean isBound() { throw new RuntimeException("Stub!"); } in isBound() method in ServerSocket
DDatagramSocket.annotated.java54 public boolean isBound() { throw new RuntimeException("Stub!"); } in isBound() method in DatagramSocket
DSocket.annotated.java130 public boolean isBound() { throw new RuntimeException("Stub!"); } in isBound() method in Socket
/libcore/ojluni/annotations/hiddenapi/java/net/
DServerSocket.java106 public boolean isBound() { in isBound() method in ServerSocket
DDatagramSocket.java91 public boolean isBound() { in isBound() method in DatagramSocket
DSocket.java269 public boolean isBound() { in isBound() method in Socket
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DServerSocketChannelTest.java186 assertFalse(socket.isBound()); in test_bind_socketSync()
194 assertTrue(socket.isBound()); in test_bind_socketSync()
215 assertTrue(socket.isBound()); in test_bind_socketSyncAfterBind()
309 assertFalse(s.isBound()); in assertSocketNotAccepted()
DDatagramChannelTest.java271 assertFalse(s1.isBound()); in testSocket_BasicStatusBeforeConnect()
326 assertTrue(s.isBound()); in assertSocketAfterConnect()
574 assertTrue(this.datagramSocket1.isBound()); in connectLocalServer()
710 assertFalse(dc.socket().isBound()); in testReceive_UnboundBufZero()
720 assertFalse(dc.socket().isBound()); in testReceive_UnboundBufNotEmpty()
735 assertFalse(dc.socket().isBound()); in testReceive_UnboundBufFull()
2395 assertTrue(client.socket().isBound()); in test_bounded_harmony6493()
2466 assertFalse(socket.isBound()); in test_bind_socketSync()
2474 assertTrue(socket.isBound()); in test_bind_socketSync()
2500 assertTrue(socket.isBound()); in test_bind_socketSyncAfterBind()

12