Home
last modified time | relevance | path

Searched refs:Inet4Address (Results 1 – 25 of 35) sorted by relevance

12

/libcore/ojluni/src/main/java/java/net/
DInet4Address.java88 class Inet4Address extends InetAddress { class
102 public static final InetAddress ANY = new Inet4Address(null, new byte[] { 0, 0, 0, 0 });
110 new Inet4Address(null, new byte[] { (byte) 255, (byte) 255,
119 new Inet4Address("localhost", new byte[] { 127, 0, 0, 1 });
132 Inet4Address() { in Inet4Address() method in Inet4Address
139 Inet4Address(String hostName, byte addr[]) { in Inet4Address() method in Inet4Address
153 Inet4Address(String hostName, int address) { in Inet4Address() method in Inet4Address
388 return (obj != null) && (obj instanceof Inet4Address) && in equals()
DInterfaceAddress.java39 private Inet4Address broadcast = null;
50 InterfaceAddress(InetAddress address, Inet4Address broadcast, InetAddress netmask) { in InterfaceAddress()
DInetAddress.java336 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()
DInet6AddressImpl.java246 boolean isIPv4 = addr instanceof Inet4Address; in icmpEcho()
331 loopbackAddresses = new InetAddress[]{Inet6Address.LOOPBACK, Inet4Address.LOOPBACK}; in loopbackAddresses()
DNetworkInterface.java360 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/
DInet4Address.java32 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
DInterfaceAddress.java40 java.net.Inet4Address broadcast, in InterfaceAddress()
75 private java.net.Inet4Address broadcast;
/libcore/luni/src/test/java/libcore/java/nio/channels/
DMembershipKeyTest.java22 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()
DDatagramChannelTest.java24 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()
DSocketChannelTest.java27 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()
DDatagramChannelMulticastTest.java22 import java.net.Inet4Address;
113 } else if (nextAddress instanceof Inet4Address in setUp()
265 InetAddress groupAddress = Inet4Address.getByName("239.255.0." + i); in test_joinAnySource_processLimit()
287 InetAddress sourceAddress = Inet4Address.getByName("10.0.0." + i); in test_joinAnySource_blockLimit()
349 if (firstAddress instanceof Inet4Address) { in test_joinAnySource_networkInterfaces()
976 InetAddress sourceAddress = Inet4Address.getByAddress(new byte[] { 10, 0, 0, i}); in test_joinSourceSpecific_multipleSourceAddressLimit()
1342 if (interfaceAddress.getAddress() instanceof Inet4Address) { in getLocalIpv4Address()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInet4AddressTest.java21 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()
DInetAddressTest.java23 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()
DInterfaceAddressTest.java20 import java.net.Inet4Address;
101 if (addr instanceof Inet4Address) { in test_getBroadcast()
DMulticastSocketTest.java30 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/luni/src/test/java/libcore/libcore/net/http/
DHttpURLConnectionFactoryTest.java31 import java.net.Inet4Address;
57 lookupResult.put("test.com", Inet4Address.ANY); in testOpenConnection()
73 final List<InetAddress> testHostAddresses1 = List.of(Inet4Address.ALL); in testDns()
76 List.of(Inet4Address.ANY, Inet6Address.LOOPBACK); in testDns()
/libcore/ojluni/annotations/mmodule/java/net/
DInet4Address.annotated.java33 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/
DNet.java109 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) {
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketTest.java20 import java.net.Inet4Address;
74 ss.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0)); in testStateAfterClose()
DInetAddressTest.java26 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()
DNetworkInterfaceTest.java27 import java.net.Inet4Address;
63 expected.add(Inet4Address.LOOPBACK); in testIPv6()
109 if (ia.getAddress() instanceof Inet4Address) { in testInterfaceProperties()
DSocketTest.java24 import java.net.Inet4Address;
373 s.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0)); in testStateAfterClose()
609 for (InetAddress addr : new InetAddress[]{ Inet4Address.LOOPBACK, Inet6Address.LOOPBACK }) {
633 && addrs.contains(Inet4Address.LOOPBACK) && addrs.contains(Inet6Address.LOOPBACK));
/libcore/luni/src/test/java/libcore/java/lang/
DSecurityManagerTest.java25 import java.net.Inet4Address;
164 sm.checkMulticast(Inet4Address.LOOPBACK); in testCheckMulticast()
169 sm.checkMulticast(Inet4Address.LOOPBACK, (byte) 0); in testCheckMulticastWithTtl()
/libcore/luni/src/main/java/libcore/net/
DInetAddressUtils.java24 import java.net.Inet4Address;
/libcore/ojluni/src/main/native/
DAndroid.bp71 "Inet4Address.c",

12