Home
last modified time | relevance | path

Searched refs:localSocketAddress (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/test/java/net/DatagramSocket/
DReuseAddressTest.java61 InetSocketAddress localSocketAddress = new InetSocketAddress(localAddress, testMcastPort); in createSocketAddress() local
62 return localSocketAddress; in createSocketAddress()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java1134 InetSocketAddress localSocketAddress = (InetSocketAddress) Os.getsockname(fd);
1135 assertEquals(Inet6Address.ANY, localSocketAddress.getAddress());
1139 localSocketAddress = (InetSocketAddress) Os.getsockname(fd);
1140 assertEquals(Inet6Address.ANY, localSocketAddress.getAddress());
1144 localSocketAddress = (InetSocketAddress) Os.getsockname(fd);
1145 assertEquals(Inet4Address.ANY, localSocketAddress.getAddress());
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTest.java1229 SocketAddress localSocketAddress; in test_connectLjava_net_SocketAddressI() local
1232 localSocketAddress = serverSocket.getLocalSocketAddress(); in test_connectLjava_net_SocketAddressI()
1233 theSocket.connect(localSocketAddress); in test_connectLjava_net_SocketAddressI()
1265 socket.connect(localSocketAddress); in test_connectLjava_net_SocketAddressI()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSocketChannelTest.java516 InetSocketAddress localSocketAddress = (InetSocketAddress) s.getLocalSocketAddress(); in assertSocketAfterImplicitBind() local
517 assertTrue(localSocketAddress.getAddress().isLoopbackAddress()); in assertSocketAfterImplicitBind()
518 assertEquals(s.getLocalPort(), localSocketAddress.getPort()); in assertSocketAfterImplicitBind()