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
192 new Inet6Address("::", new byte[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, 0);
195 public static final InetAddress LOOPBACK = new Inet6Address("ip6-localhost",
399 Inet6Address() { in Inet6Address() method in Inet6Address
408 Inet6Address(String hostName, byte addr[], int scope_id) { in Inet6Address() method in Inet6Address
414 Inet6Address(String hostName, byte addr[]) { in Inet6Address() method in Inet6Address
421 Inet6Address (String hostName, byte addr[], NetworkInterface nif) in Inet6Address() method in Inet6Address
428 Inet6Address (String hostName, byte addr[], String ifname) in Inet6Address() method in Inet6Address
455 public static Inet6Address getByAddress(String host, byte[] addr, in getByAddress()
465 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()
DInetSocketAddress.java202 addr == null ? Inet6Address.ANY : addr, in InetSocketAddress()
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.java27 import java.net.Inet6Address;
61 …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;
610 for (InetAddress addr : new InetAddress[]{ Inet4Address.LOOPBACK, Inet6Address.LOOPBACK }) {
630 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/main/java/libcore/net/
DInetAddressUtils.java21 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;
109 if (nextAddress instanceof Inet6Address && ipv6NetworkInterface == null) { in setUp()
1331 if (interfaceAddress.getAddress() instanceof Inet6Address) { in getLocalIpv6Address()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java34 import java.net.Inet6Address;
87 if (address instanceof Inet6Address) { in bind()
88 Inet6Address inet6Address = (Inet6Address) address; in bind()
97 … address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex()); in bind()
/libcore/ojluni/src/main/native/
DAndroid.bp62 "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.java40 import java.net.Inet6Address;
639 s.send(new DatagramPacket(packet, 0, packet.length, Inet6Address.LOOPBACK, in test_PacketSocketAddress()
655 assertArrayEquals(Inet6Address.LOOPBACK.getAddress(), sourceAddress); in test_PacketSocketAddress()
658 assertArrayEquals(Inet6Address.LOOPBACK.getAddress(), destAddress); in test_PacketSocketAddress()
710 assertEquals(Inet6Address.ANY, localSocketAddress.getAddress()); in test_socketFamilies()
715 assertEquals(Inet6Address.ANY, localSocketAddress.getAddress()); in test_socketFamilies()
/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