Home
last modified time | relevance | path

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

/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.java124 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()
DInet6AddressTest.java778 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_()
DSocketTest.java571 Socket client = new Socket(InetAddress.getLocalHost().getHostAddress(), in test_ConstructorLjava_lang_StringIZ()
/libcore/luni/src/test/java/libcore/java/net/
DInetAddressTest.java218 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()
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()
DURLTest.java57 String address = inetAddress.getHostAddress(); in testEqualsDoesNotDoHostnameResolution()
DURLConnectionTest.java1618 String hostName = ss.getLocalSocketAddress().getAddress().getHostAddress();
/libcore/luni/src/main/java/java/net/
DInetAddress.java326 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()
DInetSocketAddress.java162 return (hostname != null) ? hostname : addr.getHostAddress(); in getHostString()
DServerSocket.java274 .append(getInetAddress().getHostAddress()).append( in toString()
DURLStreamHandler.java323 protected InetAddress getHostAddress(URL url) { in getHostAddress() method in URLStreamHandler
DPlainSocketImpl.java311 proxyName = addr.getAddress().getHostAddress(); in socksGetServerAddress()
/libcore/luni/src/main/java/libcore/net/url/
DFtpURLConnection.java396 + controlSocket.getLocalAddress().getHostAddress().replace('.', in port()
/libcore/support/src/test/java/tests/http/
DMockWebServer.java261 raw, raw.getInetAddress().getHostAddress(), raw.getPort(), true); in serveConnection()
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DGeneralName.java665 return InetAddress.getByAddress(null, ip).getHostAddress(); in ipBytesToStr()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSocketChannelTest.java495 assertEquals("127.0.0.1", socket.getLocalAddress().getHostAddress()); in testSocket_bind()