Home
last modified time | relevance | path

Searched refs:ia (Results 1 – 19 of 19) 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/test/java/net/InetSocketAddress/
DToString.java63 InetAddress ia = InetAddress.getLocalHost();
64 addr = ia.toString();
65 if (ia instanceof Inet6Address) {
66 addr = ia.getHostName() + "/[" + ia.getHostAddress() + "]";
/libcore/ojluni/src/test/java/util/Collections/
DCheckedListBash.java178 Integer[] ia = (Integer[]) l.toArray(new Integer[0]); in main() local
179 if (!l.equals(Arrays.asList(ia))) in main()
181 ia = new Integer[listSize]; in main()
182 Integer[] ib = (Integer[]) l.toArray(ia); in main()
183 if (ia != ib || !l.equals(Arrays.asList(ia))) in main()
185 ia = new Integer[listSize+1]; in main()
186 ia[listSize] = new Integer(69); in main()
187 ib = (Integer[]) l.toArray(ia); in main()
188 if (ia != ib || ia[listSize] != null in main()
189 || !l.equals(Arrays.asList(ia).subList(0, listSize))) in main()
/libcore/ojluni/src/test/java/net/InetAddress/
DBadDottedIPAddress.java47 InetAddress ia = InetAddress.getByName(host); in testBadDotted() local
55 InetAddress ia = InetAddress.getByName(host); in testBadDotted() local
65 InetAddress ia = InetAddress.getByName(host); in testBadDotted() local
74 InetAddress ia = InetAddress.getByName(host); in testBadDotted() local
DWhiteSpaceHostTest.java45 InetAddress ia; in testWhiteSpace() local
47 ia = InetAddress.getByName(hostname); in testWhiteSpace()
51 if (ia.isAnyLocalAddress()) { in testWhiteSpace()
/libcore/ojluni/src/main/java/java/net/
DMulticastSocket.java503 InetAddress ia = in getInterface() local
511 return ia; in getInterface()
517 if (ia.equals(infAddress)) { in getInterface()
518 return ia; in getInterface()
527 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); in getInterface()
541 return ia; in getInterface()
543 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.java109 for (InterfaceAddress ia : nif.getInterfaceAddresses()) { in testInterfaceProperties()
110 if (ia.getAddress() instanceof Inet4Address) { in testInterfaceProperties()
111 assertNotNull(ia.getBroadcast()); in testInterfaceProperties()
131 for (InterfaceAddress ia : lo.getInterfaceAddresses()) { in testLoopback()
132 assertNull(ia.getBroadcast()); in testLoopback()
DInetAddressTest.java285 for (InetAddress ia : inetAddresses) { in test_isReachable_by_ICMP()
288 if (ia.isReachableByICMP(5 * 1000 /* ICMP timeout */)) { in test_isReachable_by_ICMP()
485 InetAddress ia = InetAddress.getByName(address); in test_toString() local
486 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/test/java/lang/String/CompactString/
DCompactString.java74 ia = i; in StringSources()
90 return ia; in getIntArray()
96 private final int[] ia; field in CompactString.StringSources
/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()
/libcore/ojluni/src/test/java/util/Collection/
DMOAT.java72 Integer[] ia = new Integer[20];
74 for (int i = 0; i < ia.length; i++) {
75 ia[i] = i + 1;
77 integerArray = ia;