Home
last modified time | relevance | path

Searched refs:LOOPBACK (Results 1 – 20 of 20) 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.java384 assertTrue(Inet4Address.LOOPBACK.equals(Inet4Address.LOOPBACK)); in test_equals()
396 assertEquals("127.0.0.1", Inet4Address.LOOPBACK.getHostAddress()); in test_getHostAddress()
563 createSet(Inet4Address.LOOPBACK, Inet6Address.LOOPBACK); in test_getByName_v6loopback()
588 createSet(Inet4Address.LOOPBACK, Inet6Address.LOOPBACK); in test_getAllByName_null()
596 assertEquals("ip6-localhost", getHostStringWithoutReverseDns(Inet6Address.LOOPBACK)); in test_loopbackConstantsPreInitializedNames()
597 assertEquals("localhost", getHostStringWithoutReverseDns(Inet4Address.LOOPBACK)); in test_loopbackConstantsPreInitializedNames()
DSocketTest.java89 Set.of(Inet4Address.LOOPBACK, Inet6Address.LOOPBACK);
737 if (udpConnectSucceeded(v4sock, Inet4Address.LOOPBACK) &&
738 udpConnectSucceeded(v6sock, Inet6Address.LOOPBACK)) {
DNetworkInterfaceTest.java64 expected.add(Inet4Address.LOOPBACK); in testIPv6()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DMembershipKeyTest.java43 private final InetAddress sourceAddress = Inet4Address.LOOPBACK;
109 .bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)) in check_drop()
175 .bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)) in test_blockWithJoinWithoutSource()
197 key.block(Inet6Address.LOOPBACK); in test_block_Exception()
224 .bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)) in test_unblockWithJoinWithoutSource()
DDatagramChannelTest.java217 InetSocketAddress socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind()
230 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, in test_bind()
238 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind()
247 InetSocketAddress socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_getRemoteAddress()
265 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/mmodule/java/net/
DInet4Address.annotated.java74 public static final java.net.InetAddress LOOPBACK; field in Inet4Address
75 static { LOOPBACK = null; }
DInet6Address.annotated.java79 public static final java.net.InetAddress LOOPBACK; field in Inet6Address
80 static { LOOPBACK = null; }
/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/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.java676 s.send(new DatagramPacket(packet, 0, packet.length, Inet4Address.LOOPBACK, in test_PacketSocketAddress()
686 s.send(new DatagramPacket(packet, 0, packet.length, Inet6Address.LOOPBACK, in test_PacketSocketAddress()
702 assertArrayEquals(Inet6Address.LOOPBACK.getAddress(), sourceAddress); in test_PacketSocketAddress()
705 assertArrayEquals(Inet6Address.LOOPBACK.getAddress(), destAddress); in test_PacketSocketAddress()
/libcore/api/
Dmodule-lib-current.txt416 field public static final java.net.InetAddress LOOPBACK;
421 field public static final java.net.InetAddress LOOPBACK;