Home
last modified time | relevance | path

Searched refs:isAnyLocalAddress (Results 1 – 20 of 20) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DOldAndroidDatagramTest.java193 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in test_54072_DatagramSocket()
195 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in test_54072_DatagramSocket()
203 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in test_54072_DatagramChannel()
205 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in test_54072_DatagramChannel()
DSocketTest.java64 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in test_getLocalAddress_after_close()
162 assertTrue(inLocalAddressAfterClose.getAddress().isAnyLocalAddress()); in checkSocketLocalAndRemoteAddresses()
167 assertTrue(outLocalAddressAfterClose.getAddress().isAnyLocalAddress()); in checkSocketLocalAndRemoteAddresses()
327 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in testInitialState()
348 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in testStateAfterClose()
352 assertTrue(localAddressAfterClose.getAddress().isAnyLocalAddress()); in testStateAfterClose()
DDatagramSocketTest.java34 assertTrue(ds.getLocalAddress().isAnyLocalAddress()); in testInitialState()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DServerSocketChannelTest.java84 assertTrue(boundAddress.getAddress().isAnyLocalAddress()); in test_bind_nullBindsToAll()
110 assertFalse(boundAddress.getAddress().isAnyLocalAddress()); in test_bind_loopback()
DDatagramChannelTest.java78 assertTrue(socket.getLocalAddress().isAnyLocalAddress()); in testInitialState()
121 assertTrue(actualAddress.getAddress().isAnyLocalAddress()); in test_bind_any()
DSocketChannelTest.java151 assertTrue(socket.getLocalAddress().isAnyLocalAddress()); in test_open_initialState()
/libcore/luni/src/main/java/java/net/
DInet4Address.java55 @Override public boolean isAnyLocalAddress() { in isAnyLocalAddress() method in Inet4Address
DInet6Address.java172 @Override public boolean isAnyLocalAddress() { in isAnyLocalAddress() method in Inet6Address
DMulticastSocket.java83 if (ipvXaddress.isAnyLocalAddress()) { in getInterface()
DPlainSocketImpl.java179 InetAddress normalAddr = anAddr.isAnyLocalAddress() ? InetAddress.getLocalHost() : anAddr; in connect()
DInetAddress.java540 public boolean isAnyLocalAddress() { in isAnyLocalAddress() method in InetAddress
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInet4AddressTest.java58 assertTrue(InetAddress.getByName("0.0.0.0").isAnyLocalAddress()); in test_isAnyLocalAddress()
59 assertFalse(InetAddress.getByName("127.0.0.1").isAnyLocalAddress()); in test_isAnyLocalAddress()
DInetAddressTest.java181 assertFalse(ia2.isAnyLocalAddress()); in test_isAnyLocalAddress()
183 assertFalse(ia2.isAnyLocalAddress()); in test_isAnyLocalAddress()
DInet6AddressTest.java102 .isAnyLocalAddress()); in test_isAnyLocalAddress()
109 .isAnyLocalAddress()); in test_isAnyLocalAddress()
115 !addr.isAnyLocalAddress()); in test_isAnyLocalAddress()
DMulticastSocketTest.java134 assertTrue(mss.getInterface().isAnyLocalAddress()); in test_getInterface()
166 assertTrue(firstAddress.isAnyLocalAddress()); in test_getNetworkInterface()
DSocketTest.java716 assertTrue(client.getLocalAddress().isAnyLocalAddress()); in test_getLocalAddress()
768 … assertTrue(((InetSocketAddress) client.getLocalSocketAddress()).getAddress().isAnyLocalAddress()); in test_getLocalSocketAddress()
774 assertTrue(client.getLocalAddress().isAnyLocalAddress()); in test_getLocalSocketAddress()
/libcore/luni/src/main/java/java/nio/
DSocketChannelImpl.java185 if (normalAddr.isAnyLocalAddress()) { in connect()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DServerSocketChannelTest.java122 assertTrue(localAddress.getAddress().isAnyLocalAddress()); in test_bind_null()
DDatagramChannelTest.java273 assertTrue(s1.getLocalAddress().isAnyLocalAddress()); in testSocket_BasicStatusBeforeConnect()
2407 assertTrue(localAddress.getAddress().isAnyLocalAddress()); in test_bind_null()
DSocketChannelTest.java162 assertTrue(localAddress.getAddress().isAnyLocalAddress()); in testBind_Null()
501 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in assertSocketBeforeBind()