/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | Inet4AddressTest.java | 40 InetAddress addr = InetAddress.getByName(addrName); 45 addr = InetAddress.getByName(addrName); 50 addr = InetAddress.getByName(addrName); 58 assertTrue(InetAddress.getByName("0.0.0.0").isAnyLocalAddress()); 59 assertFalse(InetAddress.getByName("127.0.0.1").isAnyLocalAddress()); 68 InetAddress addr = InetAddress.getByName(addrName); 74 addr = InetAddress.getByName(addrName); 80 addr = InetAddress.getByName(addrName); 96 InetAddress addr = InetAddress.getByName(addrName); 111 InetAddress addr = InetAddress.getByName(addrNam [all...] |
H A D | Inet6AddressTest.java | 43 addr = InetAddress.getByName(addrName); 48 addr = InetAddress.getByName(addrName); 61 addr = InetAddress.getByName(addrName); 67 addr = InetAddress.getByName(addrName); 80 addr = InetAddress.getByName(addrName); 85 addr = InetAddress.getByName(addrName); 98 addr = InetAddress.getByName(addrName); 105 addr = InetAddress.getByName(addrName); 112 addr = InetAddress.getByName(addrName); 125 InetAddress addr = InetAddress.getByName(addrNam [all...] |
H A D | InetAddressTest.java | 39 * java.net.InetAddress#getByName(String) 47 InetAddress.getByName("unknown.unknown.bad"); 56 InetAddress ia1 = InetAddress.getByName("localhost"); 57 InetAddress ia2 = InetAddress.getByName("::1"); 67 InetAddress ia = InetAddress.getByName("127.0.0.1"); 121 * java.net.InetAddress#getByName(java.lang.String) 125 // java.net.InetAddress.getByName(java.lang.String) 126 InetAddress ia2 = InetAddress.getByName("127.0.0.1"); 129 InetAddress i = InetAddress.getByName("1.2.3"); 131 i = InetAddress.getByName("1. [all...] |
H A D | InetAddressThreadTest.java | 34 * functions in the VM to make sure they're threadsafe. getByName will cause 85 InetAddress ia = InetAddress.getByName(lookupName); 134 InetAddress lookup1 = InetAddress.getByName("localhost"); 136 InetAddress lookup2 = InetAddress.getByName("localhost");
|
H A D | DatagramSocketImplTest.java | 42 InetAddress localhost = InetAddress.getByName("localhost"); //$NON-NLS-1$
|
H A D | NetworkInterfaceTest.java | 198 * java.net.NetworkInterface#getByName(java.lang.String) 203 NetworkInterface.getByName(null)); 204 fail("getByName did not throw NullPointerException for null argument"); 209 NetworkInterface.getByName("8not a name4")); 218 networkInterface1, NetworkInterface.getByName(theName)); 229 networkInterface2, NetworkInterface.getByName(theName));
|
H A D | MulticastSocketTest.java | 40 return InetAddress.getByName(s); 235 mss.joinGroup(new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0), null); 245 mss.joinGroup(new InetSocketAddress(InetAddress.getByName("::1"), 0), null); 443 mss.leaveGroup(new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0), null); 453 mss.leaveGroup(new InetSocketAddress(InetAddress.getByName("::1"), 0), null);
|
H A D | DatagramPacketTest.java | 151 InetAddress ia = InetAddress.getByName("127.0.0.1");
|
H A D | DatagramSocketTest.java | 137 inetAddress = InetAddress.getByName("FE80:0000:0000:0000:020D:60FF:FE0F:A776%4"); 328 inetAddress = InetAddress.getByName("FE80:0000:0000:0000:020D:60FF:FE0F:A776%4"); 340 assertEquals(InetAddress.getByName(InetAddress.getLocalHost().getHostName()), ds.getLocalAddress()); 494 InetAddress i = InetAddress.getByName("127.0.0.1");
|
H A D | SocketTest.java | 249 InetAddress address = InetAddress.getByName("localhost"); 715 client.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); 767 client.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); 773 client.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0));
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | InetAddressTest.java | 106 // Strange special cases, for compatibility with InetAddress.getByName. 139 assertFalse(InetAddress.getByName("127.0.0.1").isLinkLocalAddress()); 140 assertFalse(InetAddress.getByName("::ffff:127.0.0.1").isLinkLocalAddress()); 141 assertTrue(InetAddress.getByName("169.254.1.2").isLinkLocalAddress()); 143 assertFalse(InetAddress.getByName("fec0::").isLinkLocalAddress()); 144 assertTrue(InetAddress.getByName("fe80::").isLinkLocalAddress()); 148 assertFalse(InetAddress.getByName("239.254.255.255").isMCSiteLocal()); 149 assertTrue(InetAddress.getByName("239.255.0.0").isMCSiteLocal()); 150 assertTrue(InetAddress.getByName("239.255.255.255").isMCSiteLocal()); 151 assertFalse(InetAddress.getByName("240. [all...] |
H A D | InetSocketAddressTest.java | 59 InetAddress ia = InetAddress.getByName(validIPAddresses[i]); 69 new InetSocketAddress(InetAddress.getByName("localhost"), 65536); 75 new InetSocketAddress(InetAddress.getByName("localhost"), -1); 106 InetAddress localhost = InetAddress.getByName("localhost"); 121 InetAddress ia = InetAddress.getByName(validIPAddresses[i]); 130 InetAddress localhost = InetAddress.getByName("localhost");
|
H A D | NetworkInterfaceTest.java | 34 NetworkInterface lo = NetworkInterface.getByName("lo"); 75 NetworkInterface lo = NetworkInterface.getByName("lo"); 82 NetworkInterface eth0 = NetworkInterface.getByName("eth0");
|
H A D | OldDatagramPacketTest.java | 49 DatagramPacket packet = new DatagramPacket(bytes, 6, InetAddress.getByName("localhost"), ss.getLocalPort());
|
H A D | OldURLStreamHandlerTest.java | 62 assertEquals(InetAddress.getByName("localhost"), handler.getHostAddress(url3));
|
H A D | OldSocketTest.java | 104 socket = new Socket(InetAddress.getByName(null), sport); 253 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); 680 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); 688 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); 891 InetAddress address = InetAddress.getByName("localhost"); 948 .getByName(Support_Configuration.ResolvedNotExistingHost), 1167 SocketAddress nonReachableAddress = new InetSocketAddress(InetAddress.getByName(Support_Configuration.ResolvedNotExistingHost), 0);
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | DnsBenchmark.java | 46 InetAddress.getByName(hosts[i % hosts.length]);
|
H A D | SSLSocketBenchmark.java | 50 this.host = InetAddress.getByName(url.getHost());
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | DatagramChannelTest.java | 106 test_bind_any(InetAddress.getByName("0.0.0.0")); 110 test_bind_any(InetAddress.getByName("::")); 128 test_bind(InetAddress.getByName("127.0.0.1")); 132 test_bind(InetAddress.getByName("::1"));
|
/libcore/luni/src/main/java/java/net/ |
H A D | InetSocketAddress.java | 105 addr = InetAddress.getByName(hostname);
|
H A D | Inet6Address.java | 239 return (scope_ifname_set && ifname != null) ? NetworkInterface.getByName(ifname) : null;
|
H A D | NetworkInterface.java | 104 public static NetworkInterface getByName(String interfaceName) throws SocketException { method in class:NetworkInterface 116 * Similar to {@link #getByName(String)} except that {@code interfaceName} 284 return NetworkInterface.getByName(name); 310 // http://b/5833739: getByName can return null if the interface went away between our
|
H A D | PlainSocketImpl.java | 158 connect(InetAddress.getByName(aHost), aPort); 313 return InetAddress.getByName(proxyName);
|
H A D | URLStreamHandler.java | 329 return InetAddress.getByName(host);
|
H A D | InetAddress.java | 304 public static InetAddress getByName(String host) throws UnknownHostException { method in class:InetAddress 309 * Operates identically to {@code getByName} except host resolution is
|