/libcore/ojluni/src/main/java/java/net/ |
D | Inet6Address.java | 178 class Inet6Address extends InetAddress { class 196 new Inet6Address("::", new byte[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, 0); 203 public static final InetAddress LOOPBACK = new Inet6Address("ip6-localhost", 407 Inet6Address() { in Inet6Address() method in Inet6Address 416 Inet6Address(String hostName, byte addr[], int scope_id) { in Inet6Address() method in Inet6Address 422 Inet6Address(String hostName, byte addr[]) { in Inet6Address() method in Inet6Address 429 Inet6Address (String hostName, byte addr[], NetworkInterface nif) in Inet6Address() method in Inet6Address 436 Inet6Address (String hostName, byte addr[], String ifname) in Inet6Address() method in Inet6Address 463 public static Inet6Address getByAddress(String host, byte[] addr, in getByAddress() 473 if (addr.length == Inet6Address.INADDRSZ) { in getByAddress() [all …]
|
D | InetAddress.java | 1061 } else if (addr.length == Inet6Address.INADDRSZ) { in getByAddress() 1067 return new Inet6Address(host, addr, scopeId); in getByAddress() 1638 return Inet6Address.LOOPBACK; in parseNumericAddress()
|
D | Inet6AddressImpl.java | 312 Inet6Address anyAddress = new Inet6Address(); in anyLocalAddress() 331 loopbackAddresses = new InetAddress[]{Inet6Address.LOOPBACK, Inet4Address.LOOPBACK}; in loopbackAddresses()
|
D | InetSocketAddress.java | 112 if (addr instanceof Inet6Address) { in toString() 212 addr == null ? Inet6Address.ANY : addr, in InetSocketAddress()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | DatagramSocketTest.java | 26 import java.net.Inet6Address; 205 DatagramServer server = new DatagramServer(Inet6Address.LOOPBACK)) { in testConnect_echoServer() 208 ds.connect(Inet6Address.LOOPBACK, server.getPort()); in testConnect_echoServer() 220 assertEquals(Inet6Address.LOOPBACK, receive.getAddress()); in testConnect_echoServer() 227 DatagramServer s1 = new DatagramServer(Inet6Address.LOOPBACK); in testConnect_throwsOnAddressMismatch() 228 DatagramServer s2 = new DatagramServer(Inet6Address.LOOPBACK)) { in testConnect_throwsOnAddressMismatch() 230 ds.connect(Inet6Address.LOOPBACK, s1.getPort()); in testConnect_throwsOnAddressMismatch() 232 ds.send(new DatagramPacket(new byte[10], 10, Inet6Address.LOOPBACK, s2.getPort())); in testConnect_throwsOnAddressMismatch() 243 DatagramServer server = new DatagramServer(Inet6Address.LOOPBACK); in testConnect_connectDisconnectConnectThenSendRecv() 244 DatagramServer broken = new DatagramServer(Inet6Address.LOOPBACK, false)) { in testConnect_connectDisconnectConnectThenSendRecv() [all …]
|
D | Inet6AddressTest.java | 22 import java.net.Inet6Address; 655 Inet6Address addr = null; in test_isIPv4CompatibleAddress() 661 addr = (Inet6Address) InetAddress.getByName(addrName); in test_isIPv4CompatibleAddress() 672 addr = (Inet6Address) InetAddress.getByName(addrName); in test_isIPv4CompatibleAddress() 678 addr = (Inet6Address) InetAddress.getByName(addrName); in test_isIPv4CompatibleAddress() 686 Inet6Address.getByAddress("123", null, 0); in test_getByAddressLString$BI() 693 Inet6Address.getByAddress("123", addr1, 0); in test_getByAddressLString$BI() 704 Inet6Address.getByAddress("123", addr2, 3); in test_getByAddressLString$BI() 705 Inet6Address.getByAddress("123", addr2, 0); in test_getByAddressLString$BI() 706 Inet6Address.getByAddress("123", addr2, -1); in test_getByAddressLString$BI() [all …]
|
D | InterfaceAddressTest.java | 21 import java.net.Inet6Address; 103 } else if (addr instanceof Inet6Address) { in test_getBroadcast()
|
D | MulticastSocketTest.java | 31 import java.net.Inet6Address; 102 if (nextAddress instanceof Inet6Address && ipv6NetworkInterface == null) { in setUp() 638 if (theInterface instanceof Inet6Address) { in setInterfaceLjava_net_InetAddress()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | Inet6Address.java | 32 public final class Inet6Address extends java.net.InetAddress { class 35 Inet6Address() { in Inet6Address() method in Inet6Address 39 Inet6Address(java.lang.String hostName, byte[] addr, int scope_id) { in Inet6Address() method in Inet6Address 43 Inet6Address(java.lang.String hostName, byte[] addr) { in Inet6Address() method in Inet6Address 47 Inet6Address(java.lang.String hostName, byte[] addr, java.net.NetworkInterface nif) in Inet6Address() method in Inet6Address 52 Inet6Address(java.lang.String hostName, byte[] addr, java.lang.String ifname) in Inet6Address() method in Inet6Address 57 public static java.net.Inet6Address getByAddress( in getByAddress() 63 public static java.net.Inet6Address getByAddress( in getByAddress() 210 private final transient java.net.Inet6Address.Inet6AddressHolder holder6;
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | Inet6Address.annotated.java | 32 public final class Inet6Address extends java.net.InetAddress { class 34 Inet6Address() { throw new RuntimeException("Stub!"); } in Inet6Address() method in Inet6Address 36 public static java.net.Inet6Address getByAddress(java.lang.String host, byte[] addr, java.net.Netwo… in getByAddress() 38 public static java.net.Inet6Address getByAddress(java.lang.String host, byte[] addr, int scope_id) … in getByAddress()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | InetAddressTest.java | 27 import java.net.Inet6Address; 110 private static Inet6Address loopback6() throws Exception { in loopback6() 111 return (Inet6Address) InetAddress.getByAddress(LOOPBACK6_BYTES); in loopback6() 114 private static Inet6Address localhost6() throws Exception { in localhost6() 115 return (Inet6Address) InetAddress.getByAddress("ip6-localhost", LOOPBACK6_BYTES); in localhost6() 388 assertEquals(Inet6Address.getByAddress("1", bs, 1), Inet6Address.getByAddress("2", bs, 2)); in test_equals() 417 aAddr = Inet6Address.getByAddress(bAddr); in test_getHostAddress() 427 aAddr = Inet6Address.getByAddress(cAddr); in test_getHostAddress() 436 aAddr = Inet6Address.getByAddress(dAddr); in test_getHostAddress() 446 aAddr = Inet6Address.getByAddress(eAddr); in test_getHostAddress() [all …]
|
D | NetworkInterfaceTest.java | 28 import java.net.Inet6Address; 65 …expected.add(Inet6Address.getByAddress("localhost", new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, … in testIPv6()
|
D | SocketTest.java | 42 import java.net.Inet6Address; 89 Set.of(Inet4Address.LOOPBACK, Inet6Address.LOOPBACK); 738 udpConnectSucceeded(v6sock, Inet6Address.LOOPBACK)) {
|
D | OldURLStreamHandlerTest.java | 20 import java.net.Inet6Address;
|
/libcore/ojluni/src/test/java/net/InetSocketAddress/ |
D | ToString.java | 51 if (loopback instanceof Inet6Address) { 58 if (isa.getAddress() instanceof Inet6Address) { 65 if (ia instanceof Inet6Address) {
|
/libcore/ojluni/src/test/java/net/InetAddress/ |
D | B5087907.java | 58 if (addr instanceof Inet6Address) { in testB5087907() 71 assertTrue(lh instanceof Inet6Address); in testB5087907()
|
/libcore/luni/src/test/java/libcore/libcore/net/http/ |
D | HttpURLConnectionFactoryTest.java | 32 import java.net.Inet6Address; 74 final List<InetAddress> testHostAddresses2 = List.of(Inet6Address.ANY); in testDns() 76 List.of(Inet4Address.ANY, Inet6Address.LOOPBACK); in testDns()
|
/libcore/ojluni/src/test/java/net/Socks/ |
D | SocksIPv6Test.java | 43 import java.net.Inet6Address; 120 if (addr instanceof Inet6Address) { in ensureIPv6OnLoopback()
|
/libcore/luni/src/main/java/libcore/net/ |
D | InetAddressUtils.java | 25 import java.net.Inet6Address;
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | MembershipKeyTest.java | 23 import java.net.Inet6Address; 197 key.block(Inet6Address.LOOPBACK); in test_block_Exception()
|
D | DatagramChannelTest.java | 32 import java.net.Inet6Address; 309 || (!ipv4 && inetAddress instanceof Inet6Address)) { in getNonLoopbackNetworkInterfaceAddress()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 34 import java.net.Inet6Address; 128 if (address instanceof Inet6Address) { in bind() 129 Inet6Address inet6Address = (Inet6Address) address; in bind() 138 … address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex()); in bind()
|
/libcore/ojluni/src/main/native/ |
D | Android.bp | 69 "Inet6Address.c",
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | Net.java | 109 if (!(addr instanceof Inet4Address || addr instanceof Inet6Address)) in checkAddress() 258 if (ia instanceof Inet6Address) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | DatagramChannelTest.java | 25 import java.net.Inet6Address; 78 channel1.socket().bind(new InetSocketAddress(Inet6Address.LOOPBACK, 0)); in setUp() 79 channel2.socket().bind(new InetSocketAddress(Inet6Address.LOOPBACK, 0)); in setUp() 84 this.datagramSocket1 = new DatagramSocket(0, Inet6Address.LOOPBACK); in setUp() 85 this.datagramSocket2 = new DatagramSocket(0, Inet6Address.LOOPBACK); in setUp() 1291 assertEquals(senderAddr.getAddress(), Inet6Address.LOOPBACK); in receiveOnChannel1AndClose() 2530 dc.bind(new InetSocketAddress(Inet6Address.LOOPBACK, 0)); in test_concurrentShutdown()
|