Searched refs:isReachable (Results 1 – 3 of 3) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | InetAddressTest.java | 310 assertTrue(ia.isReachable(10000)); in test_isReachableI() 313 ia.isReachable(-1); in test_isReachableI() 326 assertTrue(ia.isReachable(null, 0, 10000)); in test_isReachableLjava_net_NetworkInterfaceII() 329 ia.isReachable(null, -1, 10000); in test_isReachableLjava_net_NetworkInterfaceII() 335 ia.isReachable(null, 0, -1); in test_isReachableLjava_net_NetworkInterfaceII() 341 ia.isReachable(null, -1, -1); in test_isReachableLjava_net_NetworkInterfaceII() 348 assertFalse(ia.isReachable(1000)); in test_isReachableLjava_net_NetworkInterfaceII() 349 assertFalse(ia.isReachable(null, 0, 1000)); in test_isReachableLjava_net_NetworkInterfaceII() 357 ia.isReachable(netif, 10, 1000); in test_isReachableLjava_net_NetworkInterfaceII() 404 assertTrue(destAddress.isReachable(loopbackInterface, TTL, TIME_OUT)); in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface() [all …]
|
/libcore/luni/src/main/java/java/net/ |
D | InetAddress.java | 684 public boolean isReachable(int timeout) throws IOException { in isReachable() method in InetAddress 685 return isReachable(null, 0, timeout); in isReachable() 708 …public boolean isReachable(NetworkInterface networkInterface, final int ttl, final int timeout) th… in isReachable() method in InetAddress 715 return isReachable(this, null, timeout); in isReachable() 726 final AtomicBoolean isReachable = new AtomicBoolean(false); in isReachable() local 731 if (isReachable(destinationAddress, sourceAddress, timeout)) { in isReachable() 732 isReachable.set(true); in isReachable() 750 return isReachable.get(); in isReachable() 753 …private boolean isReachable(InetAddress destination, InetAddress source, int timeout) throws IOExc… in isReachable() method in InetAddress
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | InetAddressTest.java | 167 deserialized.isReachable(500); in test_isReachable() 170 deserialized.isReachable(nif, 20, 500); in test_isReachable()
|