Home
last modified time | relevance | path

Searched refs:ia (Results 1 – 13 of 13) 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()
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 …]
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.java735 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/
DMulticastSocket.java497 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/
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.java108 for (InterfaceAddress ia : nif.getInterfaceAddresses()) { in testInterfaceProperties()
109 if (ia.getAddress() instanceof Inet4Address) { in testInterfaceProperties()
110 assertNotNull(ia.getBroadcast()); in testInterfaceProperties()
127 for (InterfaceAddress ia : lo.getInterfaceAddresses()) { in testLoopback()
128 assertNull(ia.getBroadcast()); in testLoopback()
DInetAddressTest.java284 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/
DNet.java225 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();
DDatagramChannelImpl.java301 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()
DSocketChannelImpl.java686 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/
DDatagramChannelImpl.c223 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/
DObjectOutputStream.java1384 int[] ia = (int[]) array; in writeArray() local
1385 bout.writeInt(ia.length); in writeArray()
1386 bout.writeInts(ia, 0, ia.length); in writeArray()