Home
last modified time | relevance | path

Searched refs:LOOPBACK (Results 1 – 22 of 22) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketTest.java205 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()
249 ds.connect(Inet6Address.LOOPBACK, broken.getPort()); in testConnect_connectDisconnectConnectThenSendRecv()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DInetAddressTest.java370 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()
582 assertEquals("ip6-localhost", getHostStringWithoutReverseDns(Inet6Address.LOOPBACK)); in test_loopbackConstantsPreInitializedNames()
583 assertEquals("localhost", getHostStringWithoutReverseDns(Inet4Address.LOOPBACK)); in test_loopbackConstantsPreInitializedNames()
DSocketTest.java609 for (InetAddress addr : new InetAddress[]{ Inet4Address.LOOPBACK, Inet6Address.LOOPBACK }) {
633 && addrs.contains(Inet4Address.LOOPBACK) && addrs.contains(Inet6Address.LOOPBACK));
DNetworkInterfaceTest.java63 expected.add(Inet4Address.LOOPBACK); in testIPv6()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DMembershipKeyTest.java40 private InetAddress sourceAddress = Inet4Address.LOOPBACK;
108 .bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)) in check_drop()
174 .bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)) in test_blockWithJoinWithoutSource()
196 key.block(Inet6Address.LOOPBACK); in test_block_Exception()
223 .bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)) in test_unblockWithJoinWithoutSource()
DDatagramChannelTest.java197 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()
DSocketChannelTest.java309 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()
/libcore/ojluni/annotations/hiddenapi/java/net/
DInet4Address.java127 public static final java.net.InetAddress LOOPBACK; field in Inet4Address
130 LOOPBACK = null;
DInet6Address.java197 public static final java.net.InetAddress LOOPBACK; field in Inet6Address
200 LOOPBACK = null;
/libcore/ojluni/annotations/mmodule/java/net/
DInet4Address.annotated.java77 public static final java.net.InetAddress LOOPBACK; field in Inet4Address
78 static { LOOPBACK = null; }
DInet6Address.annotated.java81 public static final java.net.InetAddress LOOPBACK; field in Inet6Address
82 static { LOOPBACK = null; }
/libcore/luni/src/test/java/libcore/java/lang/
DSecurityManagerTest.java164 sm.checkMulticast(Inet4Address.LOOPBACK); in testCheckMulticast()
169 sm.checkMulticast(Inet4Address.LOOPBACK, (byte) 0); in testCheckMulticastWithTtl()
/libcore/ojluni/src/main/java/java/net/
DInet6AddressImpl.java331 loopbackAddresses = new InetAddress[]{Inet6Address.LOOPBACK, Inet4Address.LOOPBACK}; in loopbackAddresses()
DInet4Address.java118 public static final InetAddress LOOPBACK = field in Inet4Address
DInetAddress.java1638 return Inet6Address.LOOPBACK; in parseNumericAddress()
DInet6Address.java203 public static final InetAddress LOOPBACK = new Inet6Address("ip6-localhost", field in Inet6Address
/libcore/luni/src/test/java/libcore/libcore/net/http/
DHttpURLConnectionFactoryTest.java76 List.of(Inet4Address.ANY, Inet6Address.LOOPBACK); in testDns()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DDatagramChannelTest.java78 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()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java662 s.send(new DatagramPacket(packet, 0, packet.length, Inet4Address.LOOPBACK, in test_PacketSocketAddress()
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()
/libcore/mmodules/core_platform_api/api/stable_platform/
Dcurrent.txt412 field public static final java.net.InetAddress LOOPBACK;
417 field public static final java.net.InetAddress LOOPBACK;
/libcore/mmodules/core_platform_api/api/legacy_platform/
Dcurrent.txt412 field public static final java.net.InetAddress LOOPBACK;
417 field public static final java.net.InetAddress LOOPBACK;
/libcore/api/
Dmodule-lib-current.txt412 field public static final java.net.InetAddress LOOPBACK;
417 field public static final java.net.InetAddress LOOPBACK;