/libcore/luni/src/test/java/libcore/java/net/ |
D | InetSocketAddressTest.java | 66 assertEquals("0.0.0.0", isa.getHostName()); in test_ConstructorLInetAddressI() 83 assertEquals("0.0.0.0", isa.getHostName()); in test_ConstructorI() 107 isa1 = new InetSocketAddress(localhost.getHostName(), 80); in test_equals() 131 InetSocketAddress isa1 = new InetSocketAddress(localhost.getHostName(), 8080); in test_hashCode() 152 assertEquals("some host", hasHostname.getHostName()); in test_getHostString() 158 assertEquals("localhost", noHostname.getHostName()); in test_getHostString()
|
D | InetAddressTest.java | 174 return a.getHostName().equals(b.getHostName()); in test_isReachable()
|
D | OldSocketTest.java | 75 s = new Socket(InetAddress.getLocalHost().getHostName(), sport); in test_ConstructorLjava_lang_StringI() 116 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_ConstructorLjava_lang_StringILjava_net_InetAddressI1() 144 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, true); in test_ConstructorLjava_lang_StringIZ() 147 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, false); in test_ConstructorLjava_lang_StringIZ() 162 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_ConstructorLjava_net_InetAddressILjava_net_InetAddressI() 264 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_getLocalPort() 340 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, null, 0); in test_getReceiveBufferSize() 365 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, null, 0); in test_getSendBufferSize() 583 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_toString() 1466 .getLocalHost().getHostName()); in test_setReuseAddressZ()
|
D | OldServerSocketTest.java | 109 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); in run()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ |
D | SocketFactoryTest.java | 63 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport); in test_createSocket_StringI() 75 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i]); in test_createSocket_StringI() 82 sf.createSocket(InetAddress.getLocalHost().getHostName(), s.getLocalPort()); in test_createSocket_StringI() 89 f.createSocket(InetAddress.getLocalHost().getHostName(), 8082); in test_createSocket_StringI() 177 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport, in test_createSocket_05() 190 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i], in test_createSocket_05() 196 sf.createSocket(InetAddress.getLocalHost().getHostName(), sport, in test_createSocket_05() 204 … sf.createSocket(InetAddress.getLocalHost().getHostName(), 8081, InetAddress.getLocalHost(), 8082); in test_createSocket_05() 217 s = sf.createSocket(InetAddress.getLocalHost().getHostName(), 8082); in test_getDefault() 222 …s = sf.createSocket(InetAddress.getLocalHost().getHostName(), 8081, InetAddress.getLocalHost(), 80… in test_getDefault()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | InetSocketAddressTest.java | 35 String localhostName = address.getHostName(); in test_ConstructorLjava_lang_StringI() 53 assertEquals(isa.getHostName(), legalHostPortPairs[i].host); in test_createUnresolvedLjava_lang_StringI() 102 assertEquals("HostName", init.getHostName(), desr.getHostName());
|
D | InetAddressThreadTest.java | 67 String correctName = testAddress.getHostName(); in run() 86 String hostName = ia.getHostName(); in run() 139 lookup1.getHostName(), lookup1, 0); in test_getHostName() 141 lookup2.getHostName(), lookup2, 0); in test_getHostName()
|
D | Inet4AddressTest.java | 325 assertEquals(initAddr.getHostName(), desrAddr.getHostName());
|
D | InetAddressTest.java | 90 assertTrue(alias.getHostName().startsWith("localhost")); in test_getAllByNameLjava_lang_String() 374 assertEquals(initAddr.getHostName(), desrAddr.getHostName());
|
D | SocketTest.java | 82 host = socket.getInetAddress().getHostName(); in run() 535 Socket client = new Socket(InetAddress.getLocalHost().getHostName(), in test_ConstructorLjava_lang_StringILjava_net_InetAddressI() 577 client = new Socket(InetAddress.getLocalHost().getHostName(), in test_ConstructorLjava_lang_StringIZ()
|
/libcore/luni/src/main/java/java/net/ |
D | InetSocketAddress.java | 152 public final String getHostName() { in getHostName() method in InetSocketAddress 153 return (addr != null) ? addr.getHostName() : hostname; in getHostName()
|
D | ServerSocket.java | 273 .append(getInetAddress().getHostName()).append("/") in toString() 328 throw new SocketException("Host is unresolved: " + inetAddr.getHostName()); in bind()
|
D | DatagramSocket.java | 479 throw new SocketException("Host is unresolved: " + inetAddr.getHostName()); in bind() 517 throw new SocketException("Host is unresolved: " + isa.getHostName()); in connect()
|
D | Socket.java | 783 throw new UnknownHostException("Host is unresolved: " + inetAddr.getHostName()); in bind() 865 throw new UnknownHostException("Host is unresolved: " + inetAddr.getHostName()); in connect()
|
D | PlainDatagramSocketImpl.java | 210 throw new SocketException("Host is unresolved: " + inetAddr.getHostName()); in connect()
|
D | PlainSocketImpl.java | 309 proxyName = addr.getHostName(); in socksGetServerAddress()
|
D | InetAddress.java | 335 public String getHostName() { in getHostName() method in InetAddress
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | SocketChannelTest.java | 193 assertEquals(bindAddr.getHostName(), actualAddr.getHostName()); in test_bind_socketStateSync() 219 assertEquals(bindAddr.getHostName(), actualAddr.getHostName()); in test_bind_socketObjectCreationAfterBind()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLSocketTest.java | 141 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), sport); in testConstructor_StringI() 154 getSSLSocket(InetAddress.getLocalHost().getHostName(), invalidPort[i]); in testConstructor_StringI() 175 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), sport, in testConstructor_StringIInetAddressI() 181 … getSSLSocket(InetAddress.getLocalHost().getHostName(), 8081, InetAddress.getLocalHost(), 8082); in testConstructor_StringIInetAddressI() 188 getSSLSocket(InetAddress.getLocalHost().getHostName(), invalidPort[i], in testConstructor_StringIInetAddressI() 194 getSSLSocket(InetAddress.getLocalHost().getHostName(), sport, in testConstructor_StringIInetAddressI()
|
D | SSLSessionTest.java | 55 assertEquals(InetAddress.getLocalHost().getHostName(), s.getPeerHost()); in test_getPeerHost()
|
/libcore/support/src/test/java/tests/http/ |
D | MockWebServer.java | 89 public String getHostName() { in getHostName() method in MockWebServer 90 return InetAddress.getLoopbackAddress().getHostName(); in getHostName() 94 return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(getHostName(), getPort())); in toProxyAddress() 104 ? new URL("https://" + getHostName() + ":" + getPort() + path) in getUrl() 105 : new URL("http://" + getHostName() + ":" + getPort() + path); in getUrl()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | ServerSocketChannelTest.java | 174 assertEquals(bindAddress.getHostName(), boundAddress.getHostName()); in test_bind_explicitPort() 193 assertEquals(bindAddr.getHostName(), actualAddr.getHostName()); in test_bind_socketSync() 214 assertEquals(bindAddr.getHostName(), actualAddr.getHostName()); in test_bind_socketSyncAfterBind()
|
D | DatagramChannelTest.java | 2450 assertEquals(bindAddress.getHostName(), boundAddress.getHostName()); in test_bind_explicitPort() 2471 assertEquals(bindAddr.getHostName(), actualAddr.getHostName()); in test_bind_socketSync() 2497 assertEquals(bindAddr.getHostName(), actualAddr.getHostName()); in test_bind_socketSyncAfterBind()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLEnginePair.java | 90 SSLEngine client = c.clientContext.createSSLEngine(c.host.getHostName(), c.port); in connect()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 90 … address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex()); in bind()
|