Home
last modified time | relevance | path

Searched refs:Inet6Address (Results 1 – 25 of 34) sorted by relevance

12

/libcore/ojluni/src/main/java/java/net/
DInet6Address.java178 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 …]
DInetAddress.java1061 } else if (addr.length == Inet6Address.INADDRSZ) { in getByAddress()
1067 return new Inet6Address(host, addr, scopeId); in getByAddress()
1638 return Inet6Address.LOOPBACK; in parseNumericAddress()
DInet6AddressImpl.java312 Inet6Address anyAddress = new Inet6Address(); in anyLocalAddress()
331 loopbackAddresses = new InetAddress[]{Inet6Address.LOOPBACK, Inet4Address.LOOPBACK}; in loopbackAddresses()
DNetworkInterface.java360 if (!(addr instanceof Inet4Address || addr instanceof Inet6Address)) { in getByInetAddress()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketTest.java26 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 …]
DInet6AddressTest.java22 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 …]
DInterfaceAddressTest.java21 import java.net.Inet6Address;
103 } else if (addr instanceof Inet6Address) { in test_getBroadcast()
DMulticastSocketTest.java31 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/
DInet6Address.java32 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/
DInet6Address.annotated.java32 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/
DInetAddressTest.java27 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()
374 assertEquals(Inet6Address.getByAddress("1", bs, 1), Inet6Address.getByAddress("2", bs, 2)); in test_equals()
403 aAddr = Inet6Address.getByAddress(bAddr); in test_getHostAddress()
413 aAddr = Inet6Address.getByAddress(cAddr); in test_getHostAddress()
422 aAddr = Inet6Address.getByAddress(dAddr); in test_getHostAddress()
432 aAddr = Inet6Address.getByAddress(eAddr); in test_getHostAddress()
[all …]
DNetworkInterfaceTest.java28 import java.net.Inet6Address;
64 …expected.add(Inet6Address.getByAddress("localhost", new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, … in testIPv6()
DSocketTest.java25 import java.net.Inet6Address;
609 for (InetAddress addr : new InetAddress[]{ Inet4Address.LOOPBACK, Inet6Address.LOOPBACK }) {
633 && addrs.contains(Inet4Address.LOOPBACK) && addrs.contains(Inet6Address.LOOPBACK));
DOldURLStreamHandlerTest.java20 import java.net.Inet6Address;
DOldSocketTest.java28 import java.net.Inet6Address;
267 s.getLocalAddress() instanceof Inet6Address); in test_getLocalAddress()
689 … ((InetSocketAddress) s.getLocalSocketAddress()).getAddress() instanceof Inet6Address); in test_getLocalSocketAddress()
696 … ((InetSocketAddress) s.getLocalSocketAddress()).getAddress() instanceof Inet6Address); in test_getLocalSocketAddress()
/libcore/luni/src/test/java/libcore/libcore/net/http/
DHttpURLConnectionFactoryTest.java32 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/luni/src/main/java/libcore/net/
DInetAddressUtils.java25 import java.net.Inet6Address;
/libcore/luni/src/test/java/libcore/java/nio/channels/
DMembershipKeyTest.java23 import java.net.Inet6Address;
196 key.block(Inet6Address.LOOPBACK); in test_block_Exception()
DDatagramChannelTest.java25 import java.net.Inet6Address;
285 || (!ipv4 && inetAddress instanceof Inet6Address)) { in getNonLoopbackNetworkInterfaceAddress()
DDatagramChannelMulticastTest.java23 import java.net.Inet6Address;
111 if (nextAddress instanceof Inet6Address && ipv6NetworkInterface == null) { in setUp()
1351 if (interfaceAddress.getAddress() instanceof Inet6Address) { in getLocalIpv6Address()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java34 import java.net.Inet6Address;
129 if (address instanceof Inet6Address) { in bind()
130 Inet6Address inet6Address = (Inet6Address) address; in bind()
139 … address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex()); in bind()
/libcore/ojluni/src/main/native/
DAndroid.bp70 "Inet6Address.c",
/libcore/ojluni/src/main/java/sun/nio/ch/
DNet.java109 if (!(addr instanceof Inet4Address || addr instanceof Inet6Address)) in checkAddress()
258 if (ia instanceof Inet6Address) {
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java43 import java.net.Inet6Address;
672 s.send(new DatagramPacket(packet, 0, packet.length, Inet6Address.LOOPBACK, in test_PacketSocketAddress()
688 assertArrayEquals(Inet6Address.LOOPBACK.getAddress(), sourceAddress); in test_PacketSocketAddress()
691 assertArrayEquals(Inet6Address.LOOPBACK.getAddress(), destAddress); in test_PacketSocketAddress()
837 if (loopbackAddr.getAddress() instanceof Inet6Address) {
838 Os.bind(recvFd, Inet6Address.ANY, loopbackAddr.getPort());
1086 assertEquals(Inet6Address.ANY, localSocketAddress.getAddress());
1091 assertEquals(Inet6Address.ANY, localSocketAddress.getAddress());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DDatagramChannelTest.java25 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()

12