/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | SocketChannelTest.java | 52 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress())) { in test_read_intoReadOnlyByteArrays() 104 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress()); in test_channelSocketOutputStreamClosureState() 125 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress()); in test_channelSocketInputStreamClosureState() 146 assertNull(sc.socket().getLocalSocketAddress()); in test_open_initialState() 154 assertNull(socket.getLocalSocketAddress()); in test_open_initialState() 174 assertNull(sc.socket().getLocalSocketAddress()); in test_bind_unresolvedAddress() 184 assertNull(sc.socket().getLocalSocketAddress()); in test_bind_socketStateSync() 187 assertNull(socket.getLocalSocketAddress()); in test_bind_socketStateSync() 193 InetSocketAddress actualAddr = (InetSocketAddress) sc.socket().getLocalSocketAddress(); in test_bind_socketStateSync() 194 assertEquals(actualAddr, socket.getLocalSocketAddress()); in test_bind_socketStateSync() [all …]
|
D | ServerSocketChannelTest.java | 66 assertNull(ssc.socket().getLocalSocketAddress()); in open_initialState() 72 assertNull(socket.getLocalSocketAddress()); in open_initialState() 89 assertNull(ssc.socket().getLocalSocketAddress()); in bind_unresolvedAddress() 99 InetSocketAddress boundAddress = (InetSocketAddress) ssc.socket().getLocalSocketAddress(); in bind_nullBindsToAll() 171 InetSocketAddress boundAddress = (InetSocketAddress) ssc.socket().getLocalSocketAddress(); in bind_loopback()
|
D | AsynchronousSocketChannelTest.java | 73 assertEquals(asc.getRemoteAddress(), s.getLocalSocketAddress()); in test_connect() 137 asc.bind(ss.getLocalSocketAddress()); in test_bind_usedAddress() 275 Future<Void> connectFuture = asc.connect(ss.getLocalSocketAddress()); in test_futureReadWrite() 327 asc.connect(ss.getLocalSocketAddress(), attachment, connectCompletionHandler); in test_completionHandlerReadWrite() 386 asc.connect(ss.getLocalSocketAddress(), attachment, connectCompletionHandler); in test_scatterReadWrite() 456 asc.connect(ss.getLocalSocketAddress(), null, null); in test_completionHandler_connect_npe() 471 asc.connect(ss.getLocalSocketAddress(), null, in test_read_npe() 571 asc.connect(ss.getLocalSocketAddress(), null, in test_read_failures() 641 asc.connect(ss.getLocalSocketAddress(), null, in test_write_npe() 740 asc.connect(ss.getLocalSocketAddress(), null, in test_write_failures() [all …]
|
D | DatagramChannelTest.java | 51 dc.connect(ds.getLocalSocketAddress()); in test_read_intoReadOnlyByteArrays() 93 assertNull(socket.getLocalSocketAddress()); in testInitialState() 134 InetSocketAddress actualAddress = (InetSocketAddress) dc.socket().getLocalSocketAddress(); in test_bind_any() 163 … InetSocketAddress actualAddress = (InetSocketAddress) dc.socket().getLocalSocketAddress(); in test_bind()
|
D | SelectorTest.java | 44 sc.connect(ssc.socket().getLocalSocketAddress()); in testNonBlockingConnect_immediate() 119 sc.connect(ssc.socket().getLocalSocketAddress()); in test_57456()
|
D | AsynchronousServerSocketChannelTest.java | 98 assc.bind(ss.getLocalSocketAddress()); in test_bind_used() 122 assertEquals(asc.getRemoteAddress(), s.getLocalSocketAddress()); in test_futureAccept() 147 assertEquals(asc.getRemoteAddress(), s.getLocalSocketAddress()); in test_completionHandlerAccept()
|
D | OldSocketChannelTest.java | 60 this.localAddr1 = (InetSocketAddress) server1.getLocalSocketAddress(); in setUp() 303 sc.connect(ssc.socket().getLocalSocketAddress()); in test_socketChannel_read_DirectByteBuffer() 319 sc.connect(ssc.socket().getLocalSocketAddress()); in test_socketChannel_read_DirectByteBuffer()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | ServerSocketChannelTest.java | 117 assertNull(ssc.socket().getLocalSocketAddress()); in test_bind_null() 121 … InetSocketAddress localAddress = (InetSocketAddress) ssc.socket().getLocalSocketAddress(); in test_bind_null() 136 ssc.socket().bind(portHog.socket().getLocalSocketAddress()); in test_bind_failure() 163 …netSocketAddress address = (InetSocketAddress) portPickingChannel.socket().getLocalSocketAddress(); in test_bind_explicitPort() 173 InetSocketAddress boundAddress = (InetSocketAddress) ssc.socket().getLocalSocketAddress(); in test_bind_explicitPort() 182 assertNull(ssc.socket().getLocalSocketAddress()); in test_bind_socketSync() 185 assertNull(socket.getLocalSocketAddress()); in test_bind_socketSync() 191 InetSocketAddress actualAddr = (InetSocketAddress) ssc.socket().getLocalSocketAddress(); in test_bind_socketSync() 192 assertEquals(actualAddr, socket.getLocalSocketAddress()); in test_bind_socketSync() 205 assertNull(ssc.socket().getLocalSocketAddress()); in test_bind_socketSyncAfterBind() [all …]
|
D | DatagramChannelTest.java | 81 channel1Address = (InetSocketAddress) channel1.socket().getLocalSocketAddress(); in setUp() 82 channel2Address = (InetSocketAddress) channel2.socket().getLocalSocketAddress(); in setUp() 87 datagramSocket1Address = (InetSocketAddress) datagramSocket1.getLocalSocketAddress(); in setUp() 88 datagramSocket2Address = (InetSocketAddress) datagramSocket2.getLocalSocketAddress(); in setUp() 279 assertNull(s1.getLocalSocketAddress()); in testSocket_BasicStatusBeforeConnect() 331 assertNotNull(s.getLocalSocketAddress()); in assertSocketAfterConnect() 1947 this.channel1.connect(channel1.socket().getLocalSocketAddress()); in testReadWrite_Block_DifferentAddr() 1977 channel2.connect(dc.socket().getLocalSocketAddress()); in testReadWrite_Block_WriterNotBound() 2169 channel2.connect(dc.socket().getLocalSocketAddress()); in testReadWrite_NonBlock_WriterNotBound() 2388 SocketAddress boundedAddress = server.socket().getLocalSocketAddress(); in test_bounded_harmony6493() [all …]
|
D | SocketChannelTest.java | 160 assertNull(channel1.socket().getLocalSocketAddress()); in testBind_Null() 164 … InetSocketAddress localAddress = (InetSocketAddress) channel1.socket().getLocalSocketAddress(); in testBind_Null() 170 assertNull(channel1.socket().getLocalSocketAddress()); in testBind_Failure() 194 …netSocketAddress address = (InetSocketAddress) portPickingChannel.socket().getLocalSocketAddress(); in testBind_explicitPort() 205 … InetSocketAddress boundAddress = (InetSocketAddress) channel1.socket().getLocalSocketAddress(); in testBind_explicitPort() 212 assertNull(sc.socket().getLocalSocketAddress()); in test_getLocalSocketAddress_afterClose() 217 assertNotNull(sc.socket().getLocalSocketAddress()); in test_getLocalSocketAddress_afterClose() 223 sc.socket().getLocalSocketAddress(); in test_getLocalSocketAddress_afterClose() 473 assertNotNull(socket.getLocalSocketAddress()); in testSocket_getLocalAddress() 478 assertNull(socket.getLocalSocketAddress()); in testSocket_getLocalSocketAddress() [all …]
|
D | UnixSelectorTest.java | 80 boolean isConnected = socketChannel.connect(server.socket.getLocalSocketAddress()); in testSelectorAcceptAndRead()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | DatagramSocketTest.java | 47 InetSocketAddress socketAddress = (InetSocketAddress) ds.getLocalSocketAddress(); in testInitialState() 68 assertNull(ds.getLocalSocketAddress()); in testStateAfterClose() 159 otherSocket.connect(dgramSocket.getLocalSocketAddress()); in testExplicitFilter() 177 srcSocket.connect(dgramSocket.getLocalSocketAddress()); in testExplicitFilter() 181 dgramSocket.connect(srcSocket.getLocalSocketAddress()); in testExplicitFilter() 206 srcDs.connect(ds.getLocalSocketAddress()); in testAddressSameIfUnchanged()
|
D | ServerSocketTest.java | 63 assertNull(ss.getLocalSocketAddress()); in testInitialState() 75 InetSocketAddress boundAddress = (InetSocketAddress) ss.getLocalSocketAddress(); in testStateAfterClose() 83 InetSocketAddress localAddressAfterClose = (InetSocketAddress) ss.getLocalSocketAddress(); in testStateAfterClose()
|
D | OldSocketTest.java | 266 assertTrue("ANY address not IPv6: " + s.getLocalSocketAddress(), in test_getLocalAddress() 668 s.getLocalSocketAddress()); in test_getLocalSocketAddress() 676 theSocket.getLocalSocketAddress()); in test_getLocalSocketAddress() 681 theSocket.getLocalSocketAddress()); in test_getLocalSocketAddress() 688 assertTrue("ANY address not IPv6: " + s.getLocalSocketAddress(), in test_getLocalSocketAddress() 689 … ((InetSocketAddress) s.getLocalSocketAddress()).getAddress() instanceof Inet6Address); in test_getLocalSocketAddress() 695 assertTrue("ANY address not IPv6: " + s.getLocalSocketAddress(), in test_getLocalSocketAddress() 696 … ((InetSocketAddress) s.getLocalSocketAddress()).getAddress() instanceof Inet6Address); in test_getLocalSocketAddress() 706 + s.getLocalSocketAddress().toString(), in test_getRemoteSocketAddress() 749 theSocket.connect(serverSocket.getLocalSocketAddress()); in test_isBound() [all …]
|
D | ConcurrentCloseTest.java | 105 s.connect(ss.getLocalSocketAddress()); in test_read() 120 s.connect(ss.getLocalSocketAddress()); in test_read_multiple() 188 s.connect(ss.getLocalSocketAddress()); in test_write() 232 public SocketAddress getLocalSocketAddress() { in getLocalSocketAddress() method in ConcurrentCloseTest.SilentServer 233 return ss.getLocalSocketAddress(); in getLocalSocketAddress()
|
D | SocketTest.java | 136 InetSocketAddress listenAddress = (InetSocketAddress) in.socket().getLocalSocketAddress(); in checkSocketLocalAndRemoteAddresses() 138 … InetSocketAddress outLocalAddress = (InetSocketAddress) out.socket().getLocalSocketAddress(); in checkSocketLocalAndRemoteAddresses() 139 InetSocketAddress inLocalAddress = (InetSocketAddress) in.socket().getLocalSocketAddress(); in checkSocketLocalAndRemoteAddresses() 179 assertEquals(listenAddress, ssc.socket().getLocalSocketAddress()); in checkSocketLocalAndRemoteAddresses() 184 (InetSocketAddress) in.socket().getLocalSocketAddress(); in checkSocketLocalAndRemoteAddresses() 189 (InetSocketAddress) out.socket().getLocalSocketAddress(); in checkSocketLocalAndRemoteAddresses() 360 assertNull(s.getLocalSocketAddress()); in testInitialState() 374 InetSocketAddress boundAddress = (InetSocketAddress) s.getLocalSocketAddress(); in testStateAfterClose() 383 InetSocketAddress localAddressAfterClose = (InetSocketAddress) s.getLocalSocketAddress(); in testStateAfterClose()
|
D | SocketTimeoutTest.java | 97 s.connect(ss.getLocalSocketAddress()); in testSocketReadTimeout() 118 sock.connect(serverSocket.getLocalSocketAddress()); in testSocketWriteNeverTimeouts()
|
D | OldServerSocketTest.java | 63 + theSocket.getLocalSocketAddress().toString() in performancePreferenceTest() 67 .getLocalSocketAddress().equals( in performancePreferenceTest()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | ServerSocketTest.java | 419 + theSocket.getLocalSocketAddress().toString() in test_bindLjava_net_SocketAddress() 423 .getLocalSocketAddress().equals( in test_bindLjava_net_SocketAddress() 454 SocketAddress localAddress = theSocket.getLocalSocketAddress(); in test_bindLjava_net_SocketAddress() 503 + theSocket.getLocalSocketAddress().toString() in test_bindLjava_net_SocketAddressI() 507 .getLocalSocketAddress().equals( in test_bindLjava_net_SocketAddressI() 515 SocketAddress localAddress = theSocket.getLocalSocketAddress(); in test_bindLjava_net_SocketAddressI() 537 SocketAddress inuseAddress = theSocket.getLocalSocketAddress(); in test_bindLjava_net_SocketAddressI() 576 localAddress = theSocket.getLocalSocketAddress(); in test_bindLjava_net_SocketAddressI() 607 + theSocket.getLocalSocketAddress().toString() in test_getLocalSocketAddress() 611 .getLocalSocketAddress().equals( in test_getLocalSocketAddress() [all …]
|
D | DatagramSocketTest.java | 358 assertTrue("ANY address not IPv6: " + s.getLocalSocketAddress(), in test_getLocalAddress() 642 assertNotNull(theSocket.getLocalSocketAddress()); in test_bindLjava_net_SocketAddress_null() 753 assertNull(theSocket.getLocalSocketAddress()); in test_getLocalSocketAddress_late_bind() 775 assertEquals("ANY address not IPv6: " + s.getLocalSocketAddress(), in test_getLocalSocketAddress_ANY() 977 sds.connect(ds.getLocalSocketAddress()); in testReceiveTwice()
|
D | SocketTest.java | 183 theSocket.getLocalSocketAddress()); in test_bindLjava_net_SocketAddress() 210 .getLocalSocketAddress()); in test_bindLjava_net_SocketAddress() 222 theSocket2.bind(theSocket.getLocalSocketAddress()); in test_bindLjava_net_SocketAddress() 747 client.getLocalSocketAddress()); in test_getLocalSocketAddress() 756 client.getLocalSocketAddress()); in test_getLocalSocketAddress() 763 client.getLocalSocketAddress()); in test_getLocalSocketAddress() 769 … assertTrue(((InetSocketAddress) client.getLocalSocketAddress()).getAddress().isAnyLocalAddress()); in test_getLocalSocketAddress()
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | ServerSocket.annotated.java | 51 public java.net.SocketAddress getLocalSocketAddress() { throw new RuntimeException("Stub!"); } in getLocalSocketAddress() method in ServerSocket
|
D | DatagramSocket.annotated.java | 64 public java.net.SocketAddress getLocalSocketAddress() { throw new RuntimeException("Stub!"); } in getLocalSocketAddress() method in DatagramSocket
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | ServerSocket.java | 86 public java.net.SocketAddress getLocalSocketAddress() { in getLocalSocketAddress() method in ServerSocket
|
D | DatagramSocket.java | 111 public java.net.SocketAddress getLocalSocketAddress() { in getLocalSocketAddress() method in DatagramSocket
|