/libcore/ojluni/src/main/java/java/net/ |
D | Inet4Address.java | 88 class Inet4Address extends InetAddress { class 98 public static final InetAddress ANY = new Inet4Address(null, new byte[] { 0, 0, 0, 0 }); 102 new Inet4Address(null, new byte[] { (byte) 255, (byte) 255, 106 new Inet4Address("localhost", new byte[] { 127, 0, 0, 1 }); 119 Inet4Address() { in Inet4Address() method in Inet4Address 126 Inet4Address(String hostName, byte addr[]) { in Inet4Address() method in Inet4Address 140 Inet4Address(String hostName, int address) { in Inet4Address() method in Inet4Address 375 return (obj != null) && (obj instanceof Inet4Address) && in equals()
|
D | InterfaceAddress.java | 39 private Inet4Address broadcast = null; 50 InterfaceAddress(InetAddress address, Inet4Address broadcast, InetAddress netmask) { in InterfaceAddress()
|
D | InetAddress.java | 336 return new Inet4Address(holder().getHostName(), holder().getAddress()); in readResolve() 1059 if (addr.length == Inet4Address.INADDRSZ) { in getByAddress() 1060 return new Inet4Address(host, addr); in getByAddress() 1065 return new Inet4Address(host, newAddr); in getByAddress()
|
D | Inet6AddressImpl.java | 246 boolean isIPv4 = addr instanceof Inet4Address; in icmpEcho() 331 loopbackAddresses = new InetAddress[]{Inet6Address.LOOPBACK, Inet4Address.LOOPBACK}; in loopbackAddresses()
|
D | NetworkInterface.java | 360 if (!(addr instanceof Inet4Address || addr instanceof Inet6Address)) { in getByInetAddress() 471 binds.add(new InterfaceAddress(ifa.ifa_addr, (Inet4Address) ifa.ifa_broadaddr, in getAll()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | Inet4Address.java | 32 public final class Inet4Address extends java.net.InetAddress { class 35 Inet4Address() { in Inet4Address() method in Inet4Address 39 Inet4Address(java.lang.String hostName, byte[] addr) { in Inet4Address() method in Inet4Address 43 Inet4Address(java.lang.String hostName, int address) { in Inet4Address() method in Inet4Address
|
D | InterfaceAddress.java | 40 java.net.Inet4Address broadcast, in InterfaceAddress() 75 private java.net.Inet4Address broadcast;
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | MembershipKeyTest.java | 22 import java.net.Inet4Address; 40 private InetAddress sourceAddress = Inet4Address.LOOPBACK; 46 .bind(new InetSocketAddress(Inet4Address.ANY, PORT)); in init() 108 .bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)) in check_drop() 174 .bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)) in test_blockWithJoinWithoutSource() 190 key.block(Inet4Address.getByName("224.0.0.10")); in test_block_Exception() 210 key.unblock(Inet4Address.getByName("127.0.0.2")); in test_unblockWithJoinWithSource() 223 .bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)) in test_unblockWithJoinWithoutSource()
|
D | DatagramChannelTest.java | 24 import java.net.Inet4Address; 197 InetSocketAddress socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind() 210 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, in test_bind() 218 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind() 226 InetSocketAddress socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_getRemoteAddress() 243 channel.bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)); in test_open$java_net_ProtocolFamily() 284 if ( (ipv4 && inetAddress instanceof Inet4Address) in getNonLoopbackNetworkInterfaceAddress()
|
D | SocketChannelTest.java | 27 import java.net.Inet4Address; 309 InetSocketAddress socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind() 322 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, in test_bind() 331 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind()
|
D | DatagramChannelMulticastTest.java | 22 import java.net.Inet4Address; 111 } else if (nextAddress instanceof Inet4Address in setUp() 263 InetAddress groupAddress = Inet4Address.getByName("239.255.0." + i); in test_joinAnySource_processLimit() 285 InetAddress sourceAddress = Inet4Address.getByName("10.0.0." + i); in test_joinAnySource_blockLimit() 347 if (firstAddress instanceof Inet4Address) { in test_joinAnySource_networkInterfaces() 967 InetAddress sourceAddress = Inet4Address.getByAddress(new byte[] { 10, 0, 0, i}); in test_joinSourceSpecific_multipleSourceAddressLimit() 1322 if (interfaceAddress.getAddress() instanceof Inet4Address) { in getLocalIpv4Address()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | Inet4AddressTest.java | 21 import java.net.Inet4Address; 316 Inet4Address initAddr = (Inet4Address) initial; 317 Inet4Address desrAddr = (Inet4Address) deserialized; 334 SerializationTest.verifySelf(Inet4Address.getByName("localhost"), in testSerializationSelf() 343 SerializationTest.verifyGolden(this, Inet4Address in testSerializationCompatibility()
|
D | InetAddressTest.java | 23 import java.net.Inet4Address; 292 InetAddress ia = Inet4Address.getByName("127.0.0.1"); in test_isReachableI() 294 ia = Inet4Address.getByName("127.0.0.1"); in test_isReachableI() 308 InetAddress ia = Inet4Address.getByName("127.0.0.1"); in test_isReachableLjava_net_NetworkInterfaceII() 310 ia = Inet4Address.getByName("127.0.0.1"); in test_isReachableLjava_net_NetworkInterfaceII() 331 ia = Inet4Address.getByName("192.0.2.1"); in test_isReachableLjava_net_NetworkInterfaceII()
|
D | InterfaceAddressTest.java | 20 import java.net.Inet4Address; 101 if (addr instanceof Inet4Address) { in test_getBroadcast()
|
D | MulticastSocketTest.java | 30 import java.net.Inet4Address; 104 } else if (nextAddress instanceof Inet4Address in setUp() 410 if (firstAddress instanceof Inet4Address) { in joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() 863 InetSocketAddress addr = new InetSocketAddress(Inet4Address.getLocalHost(), 0); in setReuseAddressZ() 865 addr = new InetSocketAddress(Inet4Address.getLocalHost(), theSocket1.getLocalPort()); in setReuseAddressZ() 880 addr = new InetSocketAddress(Inet4Address.getLocalHost(), 0); in setReuseAddressZ() 882 addr = new InetSocketAddress(Inet4Address.getLocalHost(), theSocket1.getLocalPort()); in setReuseAddressZ() 891 addr = new InetSocketAddress(Inet4Address.getLocalHost(), 0); in setReuseAddressZ() 893 addr = new InetSocketAddress(Inet4Address.getLocalHost(), theSocket1.getLocalPort()); in setReuseAddressZ()
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | Inet4Address.annotated.java | 33 public final class Inet4Address extends java.net.InetAddress { class 35 Inet4Address() { throw new RuntimeException("Stub!"); } in Inet4Address() method in Inet4Address
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | Net.java | 109 if (!(addr instanceof Inet4Address || addr instanceof Inet6Address)) in checkAddress() 207 static Inet4Address anyInet4Address(final NetworkInterface interf) { in anyInet4Address() 208 return AccessController.doPrivileged(new PrivilegedAction<Inet4Address>() { in anyInet4Address() 209 public Inet4Address run() { in anyInet4Address() 213 if (addr instanceof Inet4Address) { in anyInet4Address() 214 return (Inet4Address)addr; in anyInet4Address() 226 if (ia instanceof Inet4Address) { 263 if (ia instanceof Inet4Address) {
|
D | DatagramChannelImpl.java | 246 Inet4Address target = Net.anyInet4Address(interf); in setOption() 254 Inet4Address target = Net.anyInet4Address(interf); in setOption() 727 if (!(addr instanceof Inet4Address)) in bind() 850 if (group instanceof Inet4Address) { in innerJoin() 911 Inet4Address target = Net.anyInet4Address(interf); in innerJoin()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | InetAddressTest.java | 26 import java.net.Inet4Address; 370 assertTrue(Inet4Address.LOOPBACK.equals(Inet4Address.LOOPBACK)); in test_equals() 382 assertEquals("127.0.0.1", Inet4Address.LOOPBACK.getHostAddress()); in test_getHostAddress() 549 createSet(Inet4Address.LOOPBACK, Inet6Address.LOOPBACK); in test_getByName_v6loopback() 574 createSet(Inet4Address.LOOPBACK, Inet6Address.LOOPBACK); in test_getAllByName_null() 583 assertEquals("localhost", getHostStringWithoutReverseDns(Inet4Address.LOOPBACK)); in test_loopbackConstantsPreInitializedNames()
|
D | ServerSocketTest.java | 20 import java.net.Inet4Address; 74 ss.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0)); in testStateAfterClose()
|
D | NetworkInterfaceTest.java | 26 import java.net.Inet4Address; 60 expected.add(Inet4Address.LOOPBACK); in testIPv6() 106 if (ia.getAddress() instanceof Inet4Address) { in testInterfaceProperties()
|
D | SocketTest.java | 24 import java.net.Inet4Address; 373 s.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0)); in testStateAfterClose() 610 for (InetAddress addr : new InetAddress[]{ Inet4Address.LOOPBACK, Inet6Address.LOOPBACK }) { 630 addrs.contains(Inet4Address.LOOPBACK) && addrs.contains(Inet6Address.LOOPBACK);
|
/libcore/luni/src/main/java/libcore/net/ |
D | InetAddressUtils.java | 20 import java.net.Inet4Address;
|
/libcore/ojluni/src/main/native/ |
D | Android.bp | 63 "Inet4Address.c",
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 33 import java.net.Inet4Address; 459 int level = (groupReq.gr_group instanceof Inet4Address) ? IPPROTO_IP : IPPROTO_IPV6; in setSocketOptionErrno()
|