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

/libcore/luni/src/test/java/libcore/java/net/
H A DInetAddressTest.java100 // Strange special cases, for compatibility with InetAddress.getByName.
130 assertFalse(InetAddress.getByName("127.0.0.1").isLinkLocalAddress());
131 assertFalse(InetAddress.getByName("::ffff:127.0.0.1").isLinkLocalAddress());
132 assertTrue(InetAddress.getByName("169.254.1.2").isLinkLocalAddress());
134 assertFalse(InetAddress.getByName("fec0::").isLinkLocalAddress());
135 assertTrue(InetAddress.getByName("fe80::").isLinkLocalAddress());
139 assertFalse(InetAddress.getByName("239.254.255.255").isMCSiteLocal());
140 assertTrue(InetAddress.getByName("239.255.0.0").isMCSiteLocal());
141 assertTrue(InetAddress.getByName("239.255.255.255").isMCSiteLocal());
142 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 DOldDatagramSocketTest.java277 .getByName(Support_Configuration.IPv6GlobalAddressJcl4);
664 .getByName(Support_Configuration.IPv6GlobalAddressJcl4);
680 .getByName(Support_Configuration.IPv6GlobalAddressJcl4));
682 .getByName(Support_Configuration.InetTestAddress2));
684 .getByName(Support_Configuration.InetTestAddress2));
686 .getByName(Support_Configuration.InetTestIP));
1103 InetAddress i = InetAddress.getByName("127.0.0.1");
1997 .getByName(Support_Configuration.IPv6GlobalAddressJcl4);
H A DOldURLStreamHandlerTest.java62 assertEquals(InetAddress.getByName("localhost"), handler.getHostAddress(url3));
H A DOldSocketTest.java105 socket = new Socket(InetAddress.getByName(null), sport);
254 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0));
681 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0));
689 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0));
892 InetAddress address = InetAddress.getByName("localhost");
949 .getByName(Support_Configuration.ResolvedNotExistingHost),
1168 SocketAddress nonReachableAddress = new InetSocketAddress(InetAddress.getByName(Support_Configuration.ResolvedNotExistingHost), 0);
H A DURLConnectionTest.java1389 assertEquals(InetAddress.getByName(server.getHostName()), authenticator.requestingSite);
1427 assertEquals(InetAddress.getByName(server.getHostName()), authenticator.requestingSite);
/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/crypto/src/main/java/org/conscrypt/
H A DProtocolVersion.java81 public static ProtocolVersion getByName(String name) { method in class:ProtocolVersion
95 ProtocolVersion latest = getByName(protocols[0]);
98 current = getByName(protocols[i]);
H A DOpenSSLServerSocketImpl.java203 String keyType = CipherSuite.getByName(enabledCipherSuite).getServerKeyType();
H A DSSLParametersImpl.java235 cipherSuites[i] = CipherSuite.getByName(suite);
H A DCipherSuite.java800 public static CipherSuite getByName(String name) { method in class:CipherSuite
H A DClientHandshakeImpl.java197 if (servProt.equals(ProtocolVersion.getByName(enabled[i]))) {
H A DOpenSSLSocketImpl.java296 String keyType = CipherSuite.getByName(enabledCipherSuite).getServerKeyType();
/libcore/crypto/src/test/java/org/conscrypt/
H A DCipherSuiteTest.java32 assertNull(CipherSuite.getByName(name));
38 assertNull(CipherSuite.getByName("bogus"));
40 CipherSuite.getByName(null);
47 CipherSuite cs = CipherSuite.getByName(name);
58 assertSame(name, cs, CipherSuite.getByName(name));
/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.java167 connect(InetAddress.getByName(aHost), aPort);
316 return InetAddress.getByName(proxyName);
H A DURLStreamHandler.java327 return InetAddress.getByName(host);
H A DInetAddress.java288 public static InetAddress getByName(String host) throws UnknownHostException { method in class:InetAddress
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DGeneralName.java655 return InetAddress.getByName(ip).getAddress();
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
H A DDatagramChannelTest.java1445 InetAddress.getByName("127.0.0.1").getAddress()[i]);

Completed in 740 milliseconds