/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
DatagramSocketTest.java | 26 import java.net.Inet6Address; 182 final DatagramServer server = new DatagramServer(Inet6Address.LOOPBACK); 185 ds.connect(Inet6Address.LOOPBACK, server.getPort()); 198 assertEquals(Inet6Address.LOOPBACK, receive.getAddress()); 207 DatagramServer s1 = new DatagramServer(Inet6Address.LOOPBACK); 208 DatagramServer s2 = new DatagramServer(Inet6Address.LOOPBACK); 210 ds.connect(Inet6Address.LOOPBACK, s1.getPort()); 211 ds.send(new DatagramPacket(new byte[10], 10, Inet6Address.LOOPBACK, s2.getPort())); 226 final DatagramServer server = new DatagramServer(Inet6Address.LOOPBACK); 227 final DatagramServer broken = new DatagramServer(Inet6Address.LOOPBACK, false) [all...] |
Inet6AddressTest.java | 21 import java.net.Inet6Address; 654 Inet6Address addr = null; 660 addr = (Inet6Address) InetAddress.getByName(addrName); 671 addr = (Inet6Address) InetAddress.getByName(addrName); 677 addr = (Inet6Address) InetAddress.getByName(addrName); 728 Inet6Address.getByAddress("123", null, 0); 735 Inet6Address.getByAddress("123", addr1, 0); 746 Inet6Address.getByAddress("123", addr2, 3); 747 Inet6Address.getByAddress("123", addr2, 0); 748 Inet6Address.getByAddress("123", addr2, -1) [all...] |
InterfaceAddressTest.java | 21 import java.net.Inet6Address; 103 } else if (addr instanceof Inet6Address) {
|
/libcore/luni/src/main/java/java/net/ |
Inet6Address.java | 31 public final class Inet6Address extends InetAddress { 39 new Inet6Address(new byte[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, null, 0); 45 new Inet6Address(new byte[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }, 65 Inet6Address(byte[] ipaddress, String hostName, int scope_id) { 81 * @return the Inet6Address instance representing the IP address. 85 public static Inet6Address getByAddress(String host, byte[] addr, int scope_id) 94 return new Inet6Address(addr, host, scope_id); 109 * @return the Inet6Address instance representing the IP address. 115 public static Inet6Address getByAddress(String host, byte[] addr, 118 Inet6Address address = Inet6Address.getByAddress(host, addr, 0) [all...] |
NetworkInterface.java | 64 Arrays.asList(Inet6Address.ANY), Collections.<InterfaceAddress>emptyList()); 180 Inet6Address inet6Address = new Inet6Address(addressBytes, null, interfaceIndex); 181 addresses.add(inet6Address); 182 interfaceAddresses.add(new InterfaceAddress(inet6Address, prefixLength));
|
InterfaceAddress.java | 51 InterfaceAddress(Inet6Address address, short prefixLength) {
|
InetAddress.java | 44 * in practice you'll have an instance of either {@code Inet4Address} or {@code Inet6Address} (this 122 * @see Inet6Address 259 return new Inet6Address(bytes, hostName, 0); 514 return Inet6Address.LOOPBACK; 525 return new InetAddress[] { Inet6Address.LOOPBACK, Inet4Address.LOOPBACK }; 533 return Inet6Address.LOOPBACK; [all...] |
/external/guava/guava-tests/test/com/google/common/net/ |
InetAddressesTest.java | 24 import java.net.Inet6Address; 240 Inet6Address expected = (Inet6Address) InetAddresses.forString("3ffe:0:0:0:0:0:0:1"); 332 assertFalse(InetAddresses.isCompatIPv4Address((Inet6Address) ip)); 334 InetAddresses.getCompatIPv4Address((Inet6Address) ip); 351 assertTrue("checking '" + validCompatAddresses[i] + "'", ip instanceof Inet6Address); 353 InetAddresses.isCompatIPv4Address((Inet6Address) ip)); 355 InetAddresses.getCompatIPv4Address((Inet6Address) ip)); 361 * Verify that it is not possible to instantiate an Inet6Address 368 assertFalse(mapped instanceof Inet6Address); [all...] |
/libcore/luni/src/main/native/ |
NetworkUtilities.h | 20 // Convert from sockaddr_storage to Inet4Address (AF_INET), Inet6Address (AF_INET6), or 26 // an AF_UNIX sockaddr_un. An Inet6Address will be converted to an AF_INET6 sockaddr_in6. 34 // an AF_UNIX sockaddr_un. An Inet6Address will be converted to an AF_INET6 sockaddr_in6.
|
/external/jmdns/src/javax/jmdns/impl/ |
HostInfo.java | 10 import java.net.Inet6Address; 150 Inet6Address getInet6Address() { 151 if (this.getInetAddress() instanceof Inet6Address) { 152 return (Inet6Address) _address; 211 if ((this.getInetAddress() instanceof Inet4Address) || ((this.getInetAddress() instanceof Inet6Address) && (((Inet6Address) this.getInetAddress()).isIPv4CompatibleAddress()))) { 218 if (this.getInetAddress() instanceof Inet6Address) { 240 if ((this.getInetAddress() instanceof Inet6Address) && (((Inet6Address) this.getInetAddress()).isIPv4CompatibleAddress())) { 249 if (this.getInetAddress() instanceof Inet6Address) { [all...] |
ServiceInfoImpl.java | 11 import java.net.Inet6Address; 57 private final Set<Inet6Address> _ipv6Addresses; 202 this._ipv6Addresses = Collections.synchronizedSet(new LinkedHashSet<Inet6Address>()); 212 this._ipv6Addresses = Collections.synchronizedSet(new LinkedHashSet<Inet6Address>()); 224 Inet6Address[] ipv6Addresses = info.getInet6Addresses(); 225 for (Inet6Address address : ipv6Addresses) { 469 Inet6Address[] ip6Aaddresses = this.getInet6Addresses(); 492 void addAddress(Inet6Address addr) { 530 public Inet6Address getInet6Address() { 531 Inet6Address[] addresses = this.getInet6Addresses() [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
InetAddressTest.java | 20 import java.net.Inet6Address; 70 private static Inet6Address loopback6() throws Exception { 71 return (Inet6Address) InetAddress.getByAddress(LOOPBACK6_BYTES); 74 private static Inet6Address localhost6() throws Exception { 75 return (Inet6Address) InetAddress.getByAddress("localhost", LOOPBACK6_BYTES); 212 // http://b/4328294 - the scope id isn't included when comparing Inet6Address instances. 214 assertEquals(Inet6Address.getByAddress("1", bs, 1), Inet6Address.getByAddress("2", bs, 2)); 242 aAddr = Inet6Address.getByAddress(bAddr); 252 aAddr = Inet6Address.getByAddress(cAddr) [all...] |
NetworkInterfaceTest.java | 21 import java.net.Inet6Address; 39 expected.add(Inet6Address.getByAddress("localhost", new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }, null));
|
/external/guava/guava/src/com/google/common/net/ |
InetAddresses.java | 26 import java.net.Inet6Address; 50 * <p>When dealing with {@link Inet4Address} and {@link Inet6Address} 396 Preconditions.checkArgument(ip instanceof Inet6Address); 499 if (ip instanceof Inet6Address) { 541 if (retval instanceof Inet6Address) { 580 * {@link Inet6Address#isIPv4CompatibleAddress} in that it more 585 * @param ip {@link Inet6Address} to be examined for embedded IPv4 589 public static boolean isCompatIPv4Address(Inet6Address ip) { 606 * @param ip {@link Inet6Address} to be examined for an embedded 612 public static Inet4Address getCompatIPv4Address(Inet6Address ip) [all...] |
/cts/tests/tests/net/src/android/net/ipv6/cts/ |
PingTest.java | 30 import java.net.Inet6Address; 119 assertTrue(from.getAddress() instanceof Inet6Address); 120 Inet6Address fromAddress = (Inet6Address) from.getAddress();
|
/frameworks/base/core/java/android/net/ |
RouteInfo.java | 25 import java.net.Inet6Address; 92 * {@link Inet6Address}. 127 destination = new IpPrefix(Inet6Address.ANY, 0); 142 gateway = Inet6Address.ANY; 149 (destination.getAddress() instanceof Inet6Address && 150 (gateway instanceof Inet6Address == false))) { 182 * route <code>::/0</code> if gateway is an instance of {@link Inet6Address}. 264 (mDestination.getAddress() instanceof Inet6Address && 337 return isDefaultRoute() && mDestination.getAddress() instanceof Inet6Address;
|
NetworkUtils.java | 21 import java.net.Inet6Address; 303 ((left instanceof Inet6Address) && (right instanceof Inet6Address))); 307 * Convert a 32 char hex string into a Inet6Address. 309 * made into an Inet6Address
|
/frameworks/base/core/java/android/os/ |
CommonTimeUtils.java | 20 import java.net.Inet6Address; 258 if (a instanceof Inet6Address) { 260 Inet6Address v6 = (Inet6Address)a;
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
RtpStream.java | 21 import java.net.Inet6Address; 158 !(address instanceof Inet6Address && mLocalAddress instanceof Inet6Address)) {
|
/libcore/luni/src/main/java/libcore/io/ |
IoBridge.java | 33 import java.net.Inet6Address; 80 if (address instanceof Inet6Address) { 81 Inet6Address inet6Address = (Inet6Address) address; 82 if (inet6Address.getScopeId() == 0 && inet6Address.isLinkLocalAddress()) { 90 address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex());
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
DatagramChannelTest.java | 22 import java.net.Inet6Address; 167 || (!ipv4 && inetAddress instanceof Inet6Address)) {
|
/packages/services/Mms/src/com/android/mms/service/http/ |
NetworkAwareClientConnectionOperator.java | 39 import java.net.Inet6Address; 78 if (mShouldUseIpv6 && address instanceof Inet6Address) {
|
/packages/services/Mms/src/com/android/mms/service/ |
MmsRequest.java | 38 import java.net.Inet6Address; 257 address instanceof Inet6Address, 326 } else if (addr instanceof Inet6Address) { 351 && addr instanceof Inet6Address) {
|
/external/chromium_org/net/android/java/src/org/chromium/net/ |
AndroidNetworkLibrary.java | 17 import java.net.Inet6Address; 179 if (address instanceof Inet6Address && ipAddress.contains("%")) {
|
/cts/tests/tests/net/src/android/net/cts/ |
DnsTest.java | 24 import java.net.Inet6Address; 64 else if (addr instanceof Inet6Address) foundV6 = true; 82 else if (addr instanceof Inet6Address) foundV6 = true;
|