Searched refs:getByName (Results 1 - 25 of 28) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DInet4AddressTest.java40 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 DInet6AddressTest.java43 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 DInetAddressTest.java39 * 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 DInetAddressThreadTest.java34 * 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 DDatagramSocketImplTest.java42 InetAddress localhost = InetAddress.getByName("localhost"); //$NON-NLS-1$
H A DNetworkInterfaceTest.java198 * 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 DMulticastSocketTest.java40 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 DDatagramPacketTest.java151 InetAddress ia = InetAddress.getByName("127.0.0.1");
H A DDatagramSocketTest.java137 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 DSocketTest.java249 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 DInetAddressTest.java106 // 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 DInetSocketAddressTest.java59 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 DNetworkInterfaceTest.java34 NetworkInterface lo = NetworkInterface.getByName("lo");
75 NetworkInterface lo = NetworkInterface.getByName("lo");
82 NetworkInterface eth0 = NetworkInterface.getByName("eth0");
H A DOldDatagramPacketTest.java49 DatagramPacket packet = new DatagramPacket(bytes, 6, InetAddress.getByName("localhost"), ss.getLocalPort());
H A DOldURLStreamHandlerTest.java62 assertEquals(InetAddress.getByName("localhost"), handler.getHostAddress(url3));
H A DOldSocketTest.java104 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 DDnsBenchmark.java46 InetAddress.getByName(hosts[i % hosts.length]);
H A DSSLSocketBenchmark.java50 this.host = InetAddress.getByName(url.getHost());
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DDatagramChannelTest.java106 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 DInetSocketAddress.java105 addr = InetAddress.getByName(hostname);
H A DInet6Address.java239 return (scope_ifname_set && ifname != null) ? NetworkInterface.getByName(ifname) : null;
H A DNetworkInterface.java104 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 DPlainSocketImpl.java158 connect(InetAddress.getByName(aHost), aPort);
313 return InetAddress.getByName(proxyName);
H A DURLStreamHandler.java329 return InetAddress.getByName(host);
H A DInetAddress.java304 public static InetAddress getByName(String host) throws UnknownHostException { method in class:InetAddress
309 * Operates identically to {@code getByName} except host resolution is

Completed in 165 milliseconds

12