Home
last modified time | relevance | path

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

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInetAddressThreadTest.java68 String correctAddress = testAddress.getHostAddress(); in run()
87 String hostAddress = ia.getHostAddress(); in run()
135 assertEquals("127.0.0.1", lookup1.getHostAddress()); in test_getHostName()
137 assertEquals("127.0.0.1", lookup2.getHostAddress()); in test_getHostName()
143 lookup1.getHostAddress(), lookup1, 1); in test_getHostName()
145 lookup2.getHostAddress(), lookup2, 1); in test_getHostName()
DInetAddressTest.java118 assertEquals("1.2.3.4", InetAddress.getByName("1.2.3.4").getHostAddress()); in test_getHostAddress()
119 assertEquals("::1", InetAddress.getByName("::1").getHostAddress()); in test_getHostAddress()
DInet6AddressTest.java736 assertEquals("::1", ia.getHostAddress().toLowerCase(Locale.US)); in test_getHostAddress_()
740 assertEquals("fe80::211:25ff:fef8:7cb1", ia.getHostAddress().toLowerCase(Locale.US)); in test_getHostAddress_()
/libcore/luni/src/test/java/libcore/java/net/
DInetAddressTest.java379 assertEquals("::1", localhost6().getHostAddress()); in test_getHostAddress()
380 assertEquals("::1", InetAddress.getByName("::1").getHostAddress()); in test_getHostAddress()
382 assertEquals("127.0.0.1", Inet4Address.LOOPBACK.getHostAddress()); in test_getHostAddress()
385 assertEquals("127.0.0.1", InetAddress.getByName("::ffff:127.0.0.1").getHostAddress()); in test_getHostAddress()
388 assertEquals("224.0.0.0", aAddr.getHostAddress()); in test_getHostAddress()
404 String aString = aAddr.getHostAddress(); in test_getHostAddress()
414 assertEquals("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", aAddr.getHostAddress()); in test_getHostAddress()
423 aString = aAddr.getHostAddress(); in test_getHostAddress()
433 assertEquals("1:203:405:607:809:a0b:c0d:e0f", aAddr.getHostAddress()); in test_getHostAddress()
442 assertEquals("10:2030:4050:6070:8090:a0b0:c0d0:e0f0", aAddr.getHostAddress()); in test_getHostAddress()
DOldURLStreamHandlerTest.java56 assertNull(handler.getHostAddress(url1)); in test_getHostAddress()
59 assertNull(handler.getHostAddress(url2)); in test_getHostAddress()
62 assertEquals(InetAddress.getByName("localhost"), handler.getHostAddress(url3)); in test_getHostAddress()
188 @Override public InetAddress getHostAddress(URL u) { in getHostAddress() method in OldURLStreamHandlerTest.MockURLStreamHandler
189 return super.getHostAddress(u); in getHostAddress()
DInetSocketAddressTest.java108 isa2 = new InetSocketAddress(localhost.getHostAddress(), 80); in test_equals()
132 InetSocketAddress isa2 = new InetSocketAddress(localhost.getHostAddress(), 8080); in test_hashCode()
/libcore/ojluni/src/main/java/java/net/
DDatagramSocket.java148 security.checkConnect(address.getHostAddress(), port); in connectInternal()
149 security.checkAccept(address.getHostAddress(), port); in connectInternal()
700 security.checkConnect(p.getAddress().getHostAddress(), in send()
779 peekAd = peekPacket.getAddress().getHostAddress(); in receive()
783 peekAd = adr.getHostAddress(); in receive()
893 s.checkConnect(in.getHostAddress(), -1); in getLocalAddress()
DInetAddress.java673 host = addr.getHostAddress(); in getHostFromNameService()
677 host = addr.getHostAddress(); in getHostFromNameService()
700 public String getHostAddress() { in getHostAddress() method in InetAddress
746 + "/" + getHostAddress(); in toString()
DServerSocket.java414 sm.checkConnect(in.getHostAddress(), -1); in getInetAddress()
551 security.checkAccept(si.getInetAddress().getHostAddress(), in implAccept()
DInet4Address.java358 public String getHostAddress() { in getHostAddress() method in Inet4Address
DNetworkInterface.java164 sec.checkConnect(addrs[j].getHostAddress(), -1); in getInetAddresses()
210 sec.checkConnect(bindings[j].getAddress().getHostAddress(), -1); in getInterfaceAddresses()
DMulticastSocket.java678 security.checkConnect(p.getAddress().getHostAddress(), in send()
/libcore/ojluni/src/main/java/sun/nio/ch/
DMembershipKeyImpl.java210 sb.append(group.getHostAddress()); in toString()
215 sb.append(source.getHostAddress()); in toString()
DUnixAsynchronousServerSocketChannelImpl.java246 sm.checkAccept(remote.getAddress().getHostAddress(), in finishAccept()
255 sm.checkAccept(remote.getAddress().getHostAddress(), in finishAccept()
DDatagramChannelImpl.java398 isa.getAddress().getHostAddress(), in receive()
483 sm.checkConnect(ia.getHostAddress(), in send()
769 sm.checkConnect(isa.getAddress().getHostAddress(), in connect()
822 sm.checkConnect(isa.getAddress().getHostAddress(), in disconnect()
DServerSocketChannelImpl.java270 sm.checkAccept(isa.getAddress().getHostAddress(), in accept()
/libcore/ojluni/src/main/java/sun/security/x509/
DIPAddressName.java264 name = InetAddress.getByAddress(host).getHostAddress(); in getName()
269 InetAddress.getByAddress(mask).getHostAddress(); in getName()
275 name = InetAddress.getByAddress(host).getHostAddress(); in getName()
/libcore/ojluni/annotations/hiddenapi/java/net/
DInet4Address.java95 public java.lang.String getHostAddress() { in getHostAddress() method in Inet4Address
DInet6Address.java160 public java.lang.String getHostAddress() { in getHostAddress() method in Inet6Address
DInetAddress.java117 public java.lang.String getHostAddress() { in getHostAddress() method in InetAddress
/libcore/ojluni/annotations/mmodule/java/net/
DInet4Address.annotated.java59 public java.lang.String getHostAddress() { throw new RuntimeException("Stub!"); } in getHostAddress() method in Inet4Address
DInet6Address.annotated.java66 public java.lang.String getHostAddress() { throw new RuntimeException("Stub!"); } in getHostAddress() method in Inet6Address
DInetAddress.annotated.java70 public java.lang.String getHostAddress() { throw new RuntimeException("Stub!"); } in getHostAddress() method in InetAddress
/libcore/luni/src/test/java/libcore/libcore/net/
DInetAddressUtilsTest.java86 assertEquals(expectedString, inetAddress.getHostAddress()); in parseNumericAddress()
/libcore/ojluni/annotations/sdk/nullability/java/net/
DInetAddress.annotated.java65 @libcore.util.Nullable public java.lang.String getHostAddress() { throw new RuntimeException("Stub!… in getHostAddress() method in InetAddress

12