Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/io/
DOsTest.java354 InetSocketAddress localSocketAddress = (InetSocketAddress) Libcore.os.getsockname(fd); in test_socketFamilies() local
355 assertEquals(Inet6Address.ANY, localSocketAddress.getAddress()); in test_socketFamilies()
359 localSocketAddress = (InetSocketAddress) Libcore.os.getsockname(fd); in test_socketFamilies()
360 assertEquals(Inet6Address.ANY, localSocketAddress.getAddress()); in test_socketFamilies()
364 localSocketAddress = (InetSocketAddress) Libcore.os.getsockname(fd); in test_socketFamilies()
365 assertEquals(Inet4Address.ANY, localSocketAddress.getAddress()); in test_socketFamilies()
/libcore/luni/src/main/java/java/nio/
DDatagramChannelImpl.java125 InetSocketAddress localSocketAddress = (InetSocketAddress) sa; in onBind() local
126 localAddress = localSocketAddress.getAddress(); in onBind()
127 localPort = localSocketAddress.getPort(); in onBind()
DSocketChannelImpl.java156 InetSocketAddress localSocketAddress = (InetSocketAddress) sa; in onBind() local
157 localAddress = localSocketAddress.getAddress(); in onBind()
158 localPort = localSocketAddress.getPort(); in onBind()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSocketChannelTest.java513 InetSocketAddress localSocketAddress = (InetSocketAddress) s.getLocalSocketAddress(); in assertSocketAfterImplicitBind() local
514 assertTrue(localSocketAddress.getAddress().isLoopbackAddress()); in assertSocketAfterImplicitBind()
515 assertEquals(s.getLocalPort(), localSocketAddress.getPort()); in assertSocketAfterImplicitBind()