/libcore/luni/src/test/java/libcore/java/net/ |
H A D | InetAddressTest.java | 100 // 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 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 | OldDatagramSocketTest.java | 277 .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 D | OldURLStreamHandlerTest.java | 62 assertEquals(InetAddress.getByName("localhost"), handler.getHostAddress(url3));
|
H A D | OldSocketTest.java | 105 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 D | URLConnectionTest.java | 1389 assertEquals(InetAddress.getByName(server.getHostName()), authenticator.requestingSite); 1427 assertEquals(InetAddress.getByName(server.getHostName()), authenticator.requestingSite);
|
/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/crypto/src/main/java/org/conscrypt/ |
H A D | ProtocolVersion.java | 81 public static ProtocolVersion getByName(String name) { method in class:ProtocolVersion 95 ProtocolVersion latest = getByName(protocols[0]); 98 current = getByName(protocols[i]);
|
H A D | OpenSSLServerSocketImpl.java | 203 String keyType = CipherSuite.getByName(enabledCipherSuite).getServerKeyType();
|
H A D | SSLParametersImpl.java | 235 cipherSuites[i] = CipherSuite.getByName(suite);
|
H A D | CipherSuite.java | 800 public static CipherSuite getByName(String name) { method in class:CipherSuite
|
H A D | ClientHandshakeImpl.java | 197 if (servProt.equals(ProtocolVersion.getByName(enabled[i]))) {
|
H A D | OpenSSLSocketImpl.java | 296 String keyType = CipherSuite.getByName(enabledCipherSuite).getServerKeyType();
|
/libcore/crypto/src/test/java/org/conscrypt/ |
H A D | CipherSuiteTest.java | 32 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 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 | 167 connect(InetAddress.getByName(aHost), aPort); 316 return InetAddress.getByName(proxyName);
|
H A D | URLStreamHandler.java | 327 return InetAddress.getByName(host);
|
H A D | InetAddress.java | 288 public static InetAddress getByName(String host) throws UnknownHostException { method in class:InetAddress
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
H A D | GeneralName.java | 655 return InetAddress.getByName(ip).getAddress();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
H A D | DatagramChannelTest.java | 1445 InetAddress.getByName("127.0.0.1").getAddress()[i]);
|