Home
last modified time | relevance | path

Searched refs:isConnected (Results 1 – 22 of 22) sorted by relevance

/dalvik/libcore/luni/src/main/java/java/net/
DSocket.java49 private boolean isConnected = false; field in Socket
437 if (!isConnected()) { in getInetAddress()
524 if (!isConnected()) { in getPort()
781 isConnected = true; in startupSocket()
797 if (!isConnected()) { in toString()
853 if (!isConnected()) { in checkClosedAndCreate()
903 if (!isConnected()) { in getRemoteSocketAddress()
924 public boolean isConnected() { in isConnected() method in Socket
925 return isConnected; in isConnected()
1023 if (isConnected()) { in connect()
[all …]
DDatagramSocket.java47 private boolean isConnected = false; field in DatagramSocket
176 isConnected = true; in connect()
185 if (isClosed() || !isConnected()) { in disconnect()
191 isConnected = false; in disconnect()
699 isConnected = true; in connect()
717 public boolean isConnected() { in isConnected() method in DatagramSocket
718 return isConnected; in isConnected()
728 if (!isConnected()) { in getRemoteSocketAddress()
/dalvik/libcore/luni/src/main/java/java/io/
DPipedOutputStream.java93 if (stream.isConnected) { in connect()
97 stream.isConnected = true; in connect()
DPipedReader.java61 private boolean isConnected; field in PipedReader
134 if (isConnected) { in establishConnection()
137 isConnected = true; in establishConnection()
197 if (!isConnected) { in read()
303 if (!isConnected) { in ready()
DPipedInputStream.java73 boolean isConnected = false; field in PipedInputStream
167 if (!isConnected) { in read()
279 if (!isConnected) { in read()
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/
DDatagramChannelImpl.java147 synchronized public boolean isConnected() { in isConnected() method in DatagramChannelImpl
201 if (!isConnected() || !isOpen()) { in disconnect()
264 if (isConnected()) { in receiveImpl()
278 if (!isConnected() && null != sm) { in receiveImpl()
312 if (isConnected()) { in receiveDirectImpl()
326 if (!isConnected() && null != sm) { in receiveDirectImpl()
365 if (isConnected()) { in send()
510 if (isConnected()) { in readImpl()
522 if (isConnected()) { in readImpl()
686 if (!isConnected()) { in checkOpenConnected()
[all …]
DSocketChannelImpl.java218 synchronized public boolean isConnected() { in isConnected() method in SocketChannelImpl
597 if (!isConnected()) { in checkOpenConnected()
714 public boolean isConnected() { in isConnected() method in SocketChannelImpl.SocketAdapter
715 return channel.isConnected(); in isConnected()
739 if (isConnected()) { in connect()
745 if (super.isConnected()) { in connect()
756 if (channel.isConnected()) { in bind()
944 if (!channel.isConnected()) { in getOutputStream()
964 if (!channel.isConnected()) { in getInputStream()
DSelectorImpl.java211 private boolean isConnected(SelectionKeyImpl key) { in isConnected() method in SelectorImpl
214 return ((SocketChannel) channel).isConnected(); in isConnected()
281 if (isConnected(key)) { in processSelectResult()
DServerSocketChannelImpl.java154 end(socketGot.isConnected()); in accept()
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
DSocketChannelTest.java244 assertFalse(this.channel1.isConnected());// not connected in testIsConnected()
247 assertFalse(this.channel1.isConnected()); in testIsConnected()
250 assertTrue(this.channel1.isConnected()); in testIsConnected()
252 assertFalse(this.channel1.isConnected()); in testIsConnected()
329 assertTrue(this.channel1.isConnected()); in testOpenSocketAddress()
522 assertFalse(this.channel1.isConnected());// not connected in testSocket_BasicStatusBeforeConnect()
539 assertFalse(this.channel1.isConnected());// not connected in testSocket_Block_BasicStatusAfterConnect()
542 assertTrue(this.channel1.isConnected()); in testSocket_Block_BasicStatusAfterConnect()
559 assertFalse(this.channel1.isConnected());// not connected in testSocket_NonBlock_BasicStatusAfterConnect()
562 assertFalse(this.channel1.isConnected()); in testSocket_NonBlock_BasicStatusAfterConnect()
[all …]
DDatagramChannelTest.java348 assertTrue(this.channel1.isConnected()); in testReadByteBufferArray()
373 assertTrue(this.channel1.isConnected()); in testReadByteBufferArray_ConnectedBufNull()
437 assertTrue(this.channel1.isConnected()); in testWriteByteBufferArray_Block()
532 assertTrue(this.channel1.isConnected()); in testWriteByteBufferArray_NonBlock()
559 assertTrue(this.channel1.isConnected()); in testWriteByteBufferArray_BlockClosed()
581 assertTrue(this.channel1.isConnected()); in testWriteByteBufferArray_NonBlockClosed()
633 assertTrue(this.channel1.isConnected()); in testWriteByteBufferArray_ConnectedBufNull()
672 assertFalse(this.channel1.isConnected());// not connected in testSocket_BasicStatusBeforeConnect()
729 assertFalse(this.channel1.isConnected());// not connected in testSocket_ActionsBeforeConnect()
746 assertFalse(this.channel1.isConnected());// not connected in testSocket_Block_ActionsAfterConnect()
[all …]
DMockSocketChannel.java37 public boolean isConnected() { in isConnected() method in MockSocketChannel
DMockDatagramChannel.java37 public boolean isConnected() { in isConnected() method in MockDatagramChannel
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
DOpenSSLSocketImplWrapper.java36 if (!socket.isConnected()) { in OpenSSLSocketImplWrapper()
170 public boolean isConnected() { in isConnected() method in OpenSSLSocketImplWrapper
171 return socket.isConnected(); in isConnected()
/dalvik/vm/jdwp/
DJdwpPriv.h58 bool (*isConnected)(struct JdwpState* state); member
159 return state != NULL && (*state->transport->isConnected)(state); in dvmJdwpIsConnected()
DJdwpAdb.c369 static bool isConnected(struct JdwpState* state) in isConnected() function
711 isConnected,
DJdwpSocket.c264 static bool isConnected(JdwpState* state) in isConnected() function
863 isConnected,
/dalvik/libcore/nio/src/main/java/java/nio/channels/
DDatagramChannel.java112 public abstract boolean isConnected(); in isConnected() method in DatagramChannel
DSocketChannel.java163 public abstract boolean isConnected(); in isConnected() method in SocketChannel
/dalvik/libcore/luni/src/test/java/tests/api/java/net/
DMulticastSocketTest.java1258 && !ms.isConnected()); in test_ConstructorLjava_net_SocketAddress()
1262 && !ms.isConnected()); in test_ConstructorLjava_net_SocketAddress()
1268 && !ms.isConnected()); in test_ConstructorLjava_net_SocketAddress()
1274 && !ms.isConnected()); in test_ConstructorLjava_net_SocketAddress()
1334 && !ms.isConnected()); in test_getLoopbackMode()
1337 && !ms.isConnected()); in test_getLoopbackMode()
DDatagramSocketTest.java2043 .isConnected()); in test_connectLjava_net_SocketAddress()
2130 theSocket.isConnected()); in test_isConnected()
2133 theSocket.isConnected()); in test_isConnected()
2138 theSocket.isConnected()); in test_isConnected()
2143 theSocket.isConnected()); in test_isConnected()
2151 theSocket.isConnected()); in test_isConnected()
DSocketTest.java108 assertFalse("new socket should not be connected", s.isConnected()); in test_Constructor()
1498 theSocket.isConnected()); in test_isConnected()
1507 .isConnected()); in test_isConnected()
1513 theSocket.isConnected()); in test_isConnected()
1805 .isConnected()); in test_connectLjava_net_SocketAddress()
2115 .isConnected()); in test_connectLjava_net_SocketAddressI()