/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | DatagramChannelTest.java | 268 assertFalse(dc.isConnected());// not connected in testSocket_BasicStatusBeforeConnect() 273 assertFalse(s1.isConnected()); in testSocket_BasicStatusBeforeConnect() 328 assertTrue(s.isConnected()); in assertSocketAfterConnect() 347 assertFalse(channel1.isConnected());// not connected in testSocket_ActionsBeforeConnect() 352 assertTrue(channel1.isConnected()); in testSocket_ActionsBeforeConnect() 353 assertTrue(s.isConnected()); in testSocket_ActionsBeforeConnect() 356 assertFalse(channel1.isConnected()); in testSocket_ActionsBeforeConnect() 357 assertFalse(s.isConnected()); in testSocket_ActionsBeforeConnect() 368 assertFalse(this.channel1.isConnected());// not connected in testSocket_Block_ActionsAfterConnect() 389 assertTrue(this.channel1.isConnected()); in assertSocketActionAfterConnect() [all …]
|
D | UnixSelectorTest.java | 80 boolean isConnected = socketChannel.connect(server.socket.getLocalSocketAddress()); in testSelectorAcceptAndRead() 81 if (!isConnected) { in testSelectorAcceptAndRead() 85 assertEquals(true, socketChannel.isConnected()); in testSelectorAcceptAndRead() 88 assertEquals(true, socketChannel.isConnected()); in testSelectorAcceptAndRead() 101 assertEquals(false, socketChannel2.isConnected()); in testSelectUnConnectedChannel()
|
D | SocketChannelTest.java | 341 assertFalse(this.channel1.isConnected());// not connected in testSocket_BasicStatusBeforeConnect() 351 assertFalse(this.channel1.isConnected());// not connected in testSocket_Block_BasicStatusAfterConnect() 354 assertTrue(this.channel1.isConnected()); in testSocket_Block_BasicStatusAfterConnect() 364 assertFalse(this.channel1.isConnected());// not connected in testSocket_NonBlock_BasicStatusAfterConnect() 370 assertFalse(this.channel1.isConnected()); in testSocket_NonBlock_BasicStatusAfterConnect() 384 assertTrue(this.channel1.isConnected()); in testSocket_NonBlock_BasicStatusAfterConnect() 394 assertFalse(this.channel1.isConnected());// not connected in testSocket_Block_ActionsBeforeConnect() 400 assertFalse(this.channel1.isConnected());// not connected in testSocket_Block_ActionsAfterConnect() 402 assertTrue(this.channel1.isConnected()); in testSocket_Block_ActionsAfterConnect() 410 assertFalse(this.channel1.isConnected());// not connected in testSocket_NonBlock_ActionsAfterConnectBeforeFinish() [all …]
|
D | MockSocketChannel.java | 42 public boolean isConnected() { in isConnected() method in MockSocketChannel
|
D | MockDatagramChannel.java | 45 public boolean isConnected() { in isConnected() method in MockDatagramChannel
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | SocketChannelTest.java | 151 assertFalse(socket.isConnected()); in test_open_initialState() 176 assertFalse(sc.isConnected()); in test_bind_unresolvedAddress() 197 assertFalse(socket.isConnected()); in test_bind_socketStateSync() 223 assertFalse(socket.isConnected()); in test_bind_socketObjectCreationAfterBind() 244 assertTrue(sc.isConnected()); in test_connect_blocking() 245 assertTrue(sc.socket().isConnected()); in test_connect_blocking() 265 assertFalse(sc.isConnected()); in test_connect_nonBlocking() 266 assertFalse(sc.socket().isConnected()); in test_connect_nonBlocking() 271 assertTrue(sc.isConnected()); in test_connect_nonBlocking() 272 assertTrue(sc.socket().isConnected()); in test_connect_nonBlocking()
|
D | OldSocketChannelTest.java | 138 assertFalse(this.channel1.isConnected());// not connected in testIsConnected() 141 assertFalse(this.channel1.isConnected()); in testIsConnected() 144 assertTrue(this.channel1.isConnected()); in testIsConnected() 146 assertFalse(this.channel1.isConnected()); in testIsConnected() 182 assertTrue(this.channel1.isConnected()); in testOpenSocketAddress() 217 assertTrue(this.channel1.isConnected()); in statusConnected_NotPending() 362 public boolean isConnected() { in isConnected() method in OldSocketChannelTest.MockSocketChannel
|
D | DatagramChannelTest.java | 90 assertFalse(socket.isConnected()); in testInitialState() 114 assertFalse(dc.isConnected()); in test_bind_unresolvedAddress() 132 assertFalse(dc.isConnected()); in test_bind_any()
|
D | AsynchronousServerSocketChannelTest.java | 118 assertTrue(s.isConnected()); in test_futureAccept() 143 assertTrue(s.isConnected()); in test_completionHandlerAccept() 171 assertTrue(s.isConnected()); in test_completionHandlerAccept_attachment()
|
/libcore/ojluni/src/main/java/java/net/ |
D | Socket.java | 600 if (!oldImpl && isConnected()) in connect() 721 if (!isConnected()) in getInetAddress() 777 if (!isConnected()) in getPort() 826 if (!isConnected()) in getRemoteSocketAddress() 936 if (!isConnected()) in getInputStream() 976 if (!isConnected()) in getOutputStream() 1425 if(!isConnected()) in setTrafficClass() 1566 if (!isConnected()) in shutdownInput() 1596 if (!isConnected()) in shutdownOutput() 1612 if (isConnected()) in toString() [all …]
|
D | DatagramSocket.java | 564 public boolean isConnected() { in isConnected() method in DatagramSocket 613 if (!isConnected()) in getRemoteSocketAddress() 1225 if(!isConnected()) in setTrafficClass()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | SocketAdaptor.java | 152 if (!isConnected()) { in getInetAddress() 175 if (!isConnected()) { in getPort() 244 if (!sc.isConnected()) in getInputStream() 266 if (!sc.isConnected()) in getOutputStream() 431 if (sc.isConnected()) in toString() 438 public boolean isConnected() { in isConnected() method in SocketAdaptor 439 return sc.isConnected(); in isConnected()
|
D | DatagramSocketAdaptor.java | 123 public boolean isConnected() { in isConnected() method in DatagramSocketAdaptor 128 return (isConnected() in getInetAddress() 134 return (isConnected() in getPort() 148 if (dc.isConnected()) { in send()
|
D | DatagramChannelImpl.java | 369 if (isConnected() || (security == null)) { in receive() 444 isConnected()); in receiveIntoNativeBuffer() 463 if (!isConnected()) { in send() 556 if (isConnected()) in sendFromNativeBuffer() 571 if (!isConnected()) in read() 600 if (!isConnected()) in read() 627 if (!isConnected()) in write() 656 if (!isConnected()) in write() 731 public boolean isConnected() { in isConnected() method in DatagramChannelImpl 805 if (!isConnected() || !isOpen()) in disconnect()
|
D | SocketChannelImpl.java | 299 if (!isConnected()) in ensureReadOpen() 314 if (!isConnected()) in ensureWriteOpen() 634 public boolean isConnected() { in isConnected() method in SocketChannelImpl 826 if (!isConnected()) in shutdownInput() 843 if (!isConnected()) in shutdownOutput()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | SocketTest.java | 158 assertTrue(in.isConnected()); in checkSocketLocalAndRemoteAddresses() 159 assertTrue(in.socket().isConnected()); in checkSocketLocalAndRemoteAddresses() 160 assertTrue(out.socket().isConnected()); in checkSocketLocalAndRemoteAddresses() 161 assertTrue(out.isConnected()); in checkSocketLocalAndRemoteAddresses() 169 assertFalse(in.isConnected()); in checkSocketLocalAndRemoteAddresses() 170 assertFalse(in.socket().isConnected()); in checkSocketLocalAndRemoteAddresses() 171 assertFalse(out.socket().isConnected()); in checkSocketLocalAndRemoteAddresses() 172 assertFalse(out.isConnected()); in checkSocketLocalAndRemoteAddresses() 357 assertFalse(s.isConnected()); in testInitialState() 379 assertFalse(s.isConnected()); in testStateAfterClose() [all …]
|
D | DatagramSocketTest.java | 44 assertFalse(ds.isConnected()); in testInitialState() 65 assertFalse(ds.isConnected()); in testStateAfterClose() 121 assertTrue(s.isConnected()); in test_b31218085()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | SocketChannel.java | 198 assert sc.isConnected(); in open() 310 public abstract boolean isConnected(); in isConnected() method in SocketChannel
|
D | DatagramChannel.java | 245 public abstract boolean isConnected(); in isConnected() method in DatagramChannel
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 193 } while (!IoBridge.isConnected(fd, inetAddress, port, timeoutMs, remainingTimeoutMs)); in connectErrno() 260 public static boolean isConnected(FileDescriptor fd, InetAddress inetAddress, int port, in isConnected() method in IoBridge 594 …t byteOffset, int byteCount, int flags, DatagramPacket packet, boolean isConnected) throws IOExcep… in recvfrom() argument 601 result = maybeThrowAfterRecvfrom(isRead, isConnected, errnoException); in recvfrom() 606 …iptor fd, ByteBuffer buffer, int flags, DatagramPacket packet, boolean isConnected) throws IOExcep… in recvfrom() argument 613 result = maybeThrowAfterRecvfrom(isRead, isConnected, errnoException); in recvfrom() 634 …private static int maybeThrowAfterRecvfrom(boolean isRead, boolean isConnected, ErrnoException err… in maybeThrowAfterRecvfrom() argument 642 if (isConnected && errnoException.errno == ECONNREFUSED) { in maybeThrowAfterRecvfrom()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | MulticastSocketTest.java | 791 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()
|
D | SocketTest.java | 351 assertTrue("Wrong connected status", client.isConnected()); in test_connectLjava_net_SocketAddress() 452 assertTrue("Wrong connected status", client.isConnected()); in test_connectLjava_net_SocketAddressI() 501 assertFalse("new socket should not be connected", s.isConnected()); in test_Constructor() 553 assertTrue(theSocket.isConnected()); in test_ConstructorLjava_lang_StringILjava_net_InetAddressI() 831 while (!pingClient.isConnected()) { in test_getOutputStream() 1090 .isConnected()); in test_isConnected() 1100 .isConnected()); in test_isConnected() 1109 .isConnected()); in test_isConnected()
|
D | DatagramSocketTest.java | 706 assertFalse(theSocket.isConnected()); in test_isConnected() 708 assertTrue(theSocket.isConnected()); in test_isConnected() 712 assertTrue(theSocket.isConnected()); in test_isConnected() 716 assertFalse(theSocket.isConnected()); in test_isConnected() 723 assertTrue(theSocket.isConnected()); in test_isConnected()
|
/libcore/ojluni/src/main/java/sun/net/ftp/impl/ |
D | FtpClient.java | 526 if (!isConnected()) { in issueCommand() 927 if (isConnected()) { in tryConnect() 983 if (isConnected()) { in disconnect() 1002 public boolean isConnected() { in isConnected() method in FtpClient 1056 if (!isConnected()) { in login() 1095 if (!isConnected()) { in login() 1135 if (isConnected()) { in close() 2062 if (!isConnected()) { in startSecureSession()
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | DatagramSocket.annotated.java | 56 public boolean isConnected() { throw new RuntimeException("Stub!"); } in isConnected() method in DatagramSocket
|