/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | InetAddressTest.java | 61 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() 292 InetAddress ia = Inet4Address.getByName("127.0.0.1"); in test_isReachableI() local 293 assertTrue(ia.isReachable(10000)); in test_isReachableI() 294 ia = Inet4Address.getByName("127.0.0.1"); in test_isReachableI() 296 ia.isReachable(-1); in test_isReachableI() [all …]
|
D | InetAddressThreadTest.java | 85 InetAddress ia = InetAddress.getByName(lookupName); in run() local 86 String hostName = ia.getHostName(); in run() 87 String hostAddress = ia.getHostAddress(); in run()
|
D | DatagramPacketTest.java | 151 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()
|
D | Inet6AddressTest.java | 735 InetAddress ia = InetAddress.getByAddress(ipAddress); in test_getHostAddress_() local 736 assertEquals("::1", ia.getHostAddress().toLowerCase(Locale.US)); in test_getHostAddress_() 739 ia = InetAddress.getByAddress(ipAddress); in test_getHostAddress_() 740 assertEquals("fe80::211:25ff:fef8:7cb1", ia.getHostAddress().toLowerCase(Locale.US)); in test_getHostAddress_()
|
/libcore/ojluni/src/main/java/java/net/ |
D | MulticastSocket.java | 497 InetAddress ia = in getInterface() local 505 return ia; in getInterface() 511 if (ia.equals(infAddress)) { in getInterface() 512 return ia; in getInterface() 521 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); in getInterface() 535 return ia; in getInterface() 537 return ia; in getInterface()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | InetSocketAddressTest.java | 59 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()
|
D | NetworkInterfaceTest.java | 105 for (InterfaceAddress ia : nif.getInterfaceAddresses()) { in testInterfaceProperties() 106 if (ia.getAddress() instanceof Inet4Address) { in testInterfaceProperties() 107 assertNotNull(ia.getBroadcast()); in testInterfaceProperties() 124 for (InterfaceAddress ia : lo.getInterfaceAddresses()) { in testLoopback() 125 assertNull(ia.getBroadcast()); in testLoopback()
|
D | InetAddressTest.java | 284 for (InetAddress ia : inetAddresses) { in test_isReachable_by_ICMP() 287 if (ia.isReachableByICMP(5 * 1000 /* ICMP timeout */)) { in test_isReachable_by_ICMP() 471 InetAddress ia = InetAddress.getByName(address); in test_toString() local 472 String result = ia.toString(); in test_toString()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | Net.java | 225 static int inet4AsInt(InetAddress ia) { 226 if (ia instanceof Inet4Address) { 227 byte[] addr = ia.getAddress(); 257 static byte[] inet6AsByteArray(InetAddress ia) { 258 if (ia instanceof Inet6Address) { 259 return ia.getAddress(); 263 if (ia instanceof Inet4Address) { 264 byte[] ip4address = ia.getAddress();
|
D | DatagramChannelImpl.java | 301 InetAddress ia = Net.inet4FromInt(address); in getOption() 302 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); in getOption() 471 InetAddress ia = isa.getAddress(); in send() local 472 if (ia == null) in send() 480 if (ia.isMulticastAddress()) { in send() 481 sm.checkMulticast(ia); in send() 483 sm.checkConnect(ia.getHostAddress(), in send()
|
D | SocketChannelImpl.java | 686 InetAddress ia = isa.getAddress(); in connect() local 687 if (ia.isAnyLocalAddress()) in connect() 688 ia = InetAddress.getLocalHost(); in connect() 690 ia, in connect()
|
/libcore/ojluni/src/main/native/ |
D | DatagramChannelImpl.c | 223 jobject ia = NET_SockaddrToInetAddress(env, (struct sockaddr *)&sa, &port); in Java_sun_nio_ch_DatagramChannelImpl_receive0() local 228 if (ia != NULL) { in Java_sun_nio_ch_DatagramChannelImpl_receive0() 229 isa = (*env)->NewObject(env, isa_class, isa_ctorID, ia, port); in Java_sun_nio_ch_DatagramChannelImpl_receive0() 233 (*env)->SetObjectField(env, this, dci_senderAddrID, ia); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectOutputStream.java | 1384 int[] ia = (int[]) array; in writeArray() local 1385 bout.writeInt(ia.length); in writeArray() 1386 bout.writeInts(ia, 0, ia.length); in writeArray()
|