Home
last modified time | relevance | path

Searched refs:ia (Results 1 – 9 of 9) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInetAddressTest.java61 InetAddress ia = InetAddress.getByName("127.0.0.1"); in test_getAddress() local
63 byte[] addr = ia.getAddress(); in test_getAddress()
96 for (InetAddress ia : ias) { in test_getAllByNameLjava_lang_String()
97 assertTrue(ia.isLoopbackAddress()); in test_getAllByNameLjava_lang_String()
101 for (InetAddress ia : ias) { in test_getAllByNameLjava_lang_String()
102 assertTrue(ia.isLoopbackAddress()); in test_getAllByNameLjava_lang_String()
309 InetAddress ia = Inet4Address.getByName("127.0.0.1"); in test_isReachableI() local
310 assertTrue(ia.isReachable(10000)); in test_isReachableI()
311 ia = Inet4Address.getByName("127.0.0.1"); in test_isReachableI()
313 ia.isReachable(-1); in test_isReachableI()
[all …]
DInetAddressThreadTest.java85 InetAddress ia = InetAddress.getByName(lookupName); in run() local
86 String hostName = ia.getHostName(); in run()
87 String hostAddress = ia.getHostAddress(); in run()
DDatagramPacketTest.java151 InetAddress ia = InetAddress.getByName("127.0.0.1"); in test_setAddressLjava_net_InetAddress() local
154 dp.setAddress(ia); in test_setAddressLjava_net_InetAddress()
155 assertEquals("Incorrect address returned", ia, dp.getAddress()); in test_setAddressLjava_net_InetAddress()
DInet6AddressTest.java777 InetAddress ia = InetAddress.getByAddress(ipAddress); in test_getHostAddress_() local
778 assertEquals("::1", ia.getHostAddress().toLowerCase(Locale.US)); in test_getHostAddress_()
781 ia = InetAddress.getByAddress(ipAddress); in test_getHostAddress_()
782 assertEquals("fe80::211:25ff:fef8:7cb1", ia.getHostAddress().toLowerCase(Locale.US)); in test_getHostAddress_()
/libcore/luni/src/main/java/java/net/
DInet6Address.java129 InetAddress ia = addressList.nextElement(); in getByAddress() local
130 if (ia.getAddress().length == 16) { in getByAddress()
131 Inet6Address v6ia = (Inet6Address) ia; in getByAddress()
159 private boolean compareLocalType(Inet6Address ia) { in compareLocalType() argument
160 if (ia.isSiteLocalAddress() && isSiteLocalAddress()) { in compareLocalType()
163 if (ia.isLinkLocalAddress() && isLinkLocalAddress()) { in compareLocalType()
166 if (!ia.isSiteLocalAddress() && !ia.isLinkLocalAddress()) { in compareLocalType()
DURI.java559 InetAddress ia = InetAddress.parseNumericAddress(host); in isValidHost() local
560 if (ia instanceof Inet4Address) { in isValidHost()
/libcore/luni/src/test/java/libcore/java/net/
DInetSocketAddressTest.java59 InetAddress ia = InetAddress.getByName(validIPAddresses[i]); in test_ConstructorLInetAddressI() local
60 InetSocketAddress isa = new InetSocketAddress(ia, 80); in test_ConstructorLInetAddressI()
121 InetAddress ia = InetAddress.getByName(validIPAddresses[i]); in test_getAddress() local
122 InetSocketAddress isa = new InetSocketAddress(ia, 0); in test_getAddress()
123 assertEquals(ia, isa.getAddress()); in test_getAddress()
DNetworkInterfaceTest.java77 for (InterfaceAddress ia : lo.getInterfaceAddresses()) { in testLoopback()
78 assertNull(ia.getBroadcast()); in testLoopback()
85 for (InterfaceAddress ia : eth0.getInterfaceAddresses()) { in testLoopback()
86 if (ia.getAddress() instanceof Inet4Address) { in testLoopback()
87 assertNotNull(ia.getBroadcast()); in testLoopback()
DInetAddressTest.java308 InetAddress ia = InetAddress.getByName(validIPAddresses[i]); in test_toString() local
309 String result = ia.toString(); in test_toString()