Home
last modified time | relevance | path

Searched refs:getHostName (Results 1 – 25 of 31) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/net/
DInetSocketAddressTest.java66 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()
DInetAddressTest.java174 return a.getHostName().equals(b.getHostName()); in test_isReachable()
DOldSocketTest.java75 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()
DOldServerSocketTest.java109 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); in run()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/
DSocketFactoryTest.java63 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/
DInetSocketAddressTest.java35 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());
DInetAddressThreadTest.java67 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()
DInet4AddressTest.java325 assertEquals(initAddr.getHostName(), desrAddr.getHostName());
DInetAddressTest.java90 assertTrue(alias.getHostName().startsWith("localhost")); in test_getAllByNameLjava_lang_String()
374 assertEquals(initAddr.getHostName(), desrAddr.getHostName());
DSocketTest.java82 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/
DInetSocketAddress.java152 public final String getHostName() { in getHostName() method in InetSocketAddress
153 return (addr != null) ? addr.getHostName() : hostname; in getHostName()
DServerSocket.java273 .append(getInetAddress().getHostName()).append("/") in toString()
328 throw new SocketException("Host is unresolved: " + inetAddr.getHostName()); in bind()
DDatagramSocket.java479 throw new SocketException("Host is unresolved: " + inetAddr.getHostName()); in bind()
517 throw new SocketException("Host is unresolved: " + isa.getHostName()); in connect()
DSocket.java783 throw new UnknownHostException("Host is unresolved: " + inetAddr.getHostName()); in bind()
865 throw new UnknownHostException("Host is unresolved: " + inetAddr.getHostName()); in connect()
DPlainDatagramSocketImpl.java210 throw new SocketException("Host is unresolved: " + inetAddr.getHostName()); in connect()
DPlainSocketImpl.java309 proxyName = addr.getHostName(); in socksGetServerAddress()
DInetAddress.java335 public String getHostName() { in getHostName() method in InetAddress
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java193 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/
DSSLSocketTest.java141 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()
DSSLSessionTest.java55 assertEquals(InetAddress.getLocalHost().getHostName(), s.getPeerHost()); in test_getPeerHost()
/libcore/support/src/test/java/tests/http/
DMockWebServer.java89 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/
DServerSocketChannelTest.java174 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()
DDatagramChannelTest.java2450 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/
DTestSSLEnginePair.java90 SSLEngine client = c.clientContext.createSSLEngine(c.host.getHostName(), c.port); in connect()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java90 … address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex()); in bind()

12