/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | InetAddressThreadTest.java | 68 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()
|
D | InetAddressTest.java | 124 assertEquals("1.2.0.3", i.getHostAddress()); in test_getByNameLjava_lang_String() 126 assertEquals("1.0.0.2", i.getHostAddress()); in test_getByNameLjava_lang_String() 128 assertEquals("255.255.255.255", i.getHostAddress()); in test_getByNameLjava_lang_String() 135 assertEquals("1.2.3.4", InetAddress.getByName("1.2.3.4").getHostAddress()); in test_getHostAddress() 136 assertEquals("::1", InetAddress.getByName("::1").getHostAddress()); in test_getHostAddress()
|
D | Inet6AddressTest.java | 778 assertEquals("::1", ia.getHostAddress().toLowerCase(Locale.US)); in test_getHostAddress_() 782 assertEquals("fe80::211:25ff:fef8:7cb1", ia.getHostAddress().toLowerCase(Locale.US)); in test_getHostAddress_()
|
D | SocketTest.java | 571 Socket client = new Socket(InetAddress.getLocalHost().getHostAddress(), in test_ConstructorLjava_lang_StringIZ()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | InetAddressTest.java | 218 assertEquals("::1", localhost6().getHostAddress()); in test_getHostAddress() 219 assertEquals("::1", InetAddress.getByName("::1").getHostAddress()); in test_getHostAddress() 221 assertEquals("127.0.0.1", Inet4Address.LOOPBACK.getHostAddress()); in test_getHostAddress() 224 assertEquals("127.0.0.1", InetAddress.getByName("::ffff:127.0.0.1").getHostAddress()); in test_getHostAddress() 227 assertEquals("224.0.0.0", aAddr.getHostAddress()); in test_getHostAddress() 243 String aString = aAddr.getHostAddress(); in test_getHostAddress() 253 assertEquals("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", aAddr.getHostAddress()); in test_getHostAddress() 262 aString = aAddr.getHostAddress(); in test_getHostAddress() 272 assertEquals("1:203:405:607:809:a0b:c0d:e0f", aAddr.getHostAddress()); in test_getHostAddress() 281 assertEquals("10:2030:4050:6070:8090:a0b0:c0d0:e0f0", aAddr.getHostAddress()); in test_getHostAddress()
|
D | OldURLStreamHandlerTest.java | 56 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()
|
D | InetSocketAddressTest.java | 108 isa2 = new InetSocketAddress(localhost.getHostAddress(), 80); in test_equals() 132 InetSocketAddress isa2 = new InetSocketAddress(localhost.getHostAddress(), 8080); in test_hashCode()
|
D | URLTest.java | 57 String address = inetAddress.getHostAddress(); in testEqualsDoesNotDoHostnameResolution()
|
D | URLConnectionTest.java | 1618 String hostName = ss.getLocalSocketAddress().getAddress().getHostAddress();
|
/libcore/luni/src/main/java/java/net/ |
D | InetAddress.java | 326 public String getHostAddress() { in getHostAddress() method in InetAddress 340 hostName = getHostAddress(); in getHostName() 353 return getHostAddress(); in getCanonicalHostName() 489 return (hostName == null ? "" : hostName) + "/" + getHostAddress(); in toString()
|
D | InetSocketAddress.java | 162 return (hostname != null) ? hostname : addr.getHostAddress(); in getHostString()
|
D | ServerSocket.java | 274 .append(getInetAddress().getHostAddress()).append( in toString()
|
D | URLStreamHandler.java | 323 protected InetAddress getHostAddress(URL url) { in getHostAddress() method in URLStreamHandler
|
D | PlainSocketImpl.java | 311 proxyName = addr.getAddress().getHostAddress(); in socksGetServerAddress()
|
/libcore/luni/src/main/java/libcore/net/url/ |
D | FtpURLConnection.java | 396 + controlSocket.getLocalAddress().getHostAddress().replace('.', in port()
|
/libcore/support/src/test/java/tests/http/ |
D | MockWebServer.java | 261 raw, raw.getInetAddress().getHostAddress(), raw.getPort(), true); in serveConnection()
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
D | GeneralName.java | 665 return InetAddress.getByAddress(null, ip).getHostAddress(); in ipBytesToStr()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SocketChannelTest.java | 495 assertEquals("127.0.0.1", socket.getLocalAddress().getHostAddress()); in testSocket_bind()
|