Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/libcore/java/net/
DInetSocketAddressTest.java66 assertEquals("::", isa.getHostName()); in test_ConstructorLInetAddressI()
83 assertEquals("::", 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()
159 assertEquals("some host", hasHostnameAndAddress.getHostName()); in test_getHostString()
165 assertEquals("127.0.0.1", hostnameIsIp.getHostName()); in test_getHostString()
172 assertEquals("localhost", noHostname.getHostName()); in test_getHostString()
179 assertEquals("localhost", socketAddress.getHostName()); in test_getHostString_cachingBehavior()
185 assertEquals("localhost", socketAddress.getHostName()); in test_getHostString_cachingBehavior()
DInetAddressTest.java260 return a.getHostName().equals(b.getHostName()); in test_isReachable()
485 assertEquals("ip6-localhost", inetAddress.getHostName()); in test_getHostNameCaches()
589 assertEquals(expectedHostname, actual.getHostName()); in checkInetAddress()
DOldSocketTest.java82 s = new Socket(InetAddress.getLocalHost().getHostName(), sport); in test_ConstructorLjava_lang_StringI()
123 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_ConstructorLjava_lang_StringILjava_net_InetAddressI1()
151 try (Socket s = new Socket(InetAddress.getLocalHost().getHostName(), sport, true)) { in test_ConstructorLjava_lang_StringIZ()
155 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, false); in test_ConstructorLjava_lang_StringIZ()
170 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_ConstructorLjava_net_InetAddressILjava_net_InetAddressI()
274 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_getLocalPort()
348 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, null, 0); in test_getReceiveBufferSize()
372 try (Socket s = new Socket(InetAddress.getLocalHost().getHostName(), sport, null, 0)) { in test_getSendBufferSize()
588 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_toString()
1391 .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()
217 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport, in test_createSocket_05()
230 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i], in test_createSocket_05()
236 sf.createSocket(InetAddress.getLocalHost().getHostName(), sport, in test_createSocket_05()
244 … sf.createSocket(InetAddress.getLocalHost().getHostName(), 8081, InetAddress.getLocalHost(), 8082); in test_createSocket_05()
257 s = sf.createSocket(InetAddress.getLocalHost().getHostName(), 8082); in test_getDefault()
262 …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/
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()
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());
DInetAddressTest.java90 assertTrue(alias.getHostName().startsWith("localhost")); in test_getAllByNameLjava_lang_String()
358 assertEquals(initAddr.getHostName(), desrAddr.getHostName());
DInet4AddressTest.java325 assertEquals(initAddr.getHostName(), desrAddr.getHostName());
DSocketTest.java84 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()
DServerSocketTest.java75 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); in run()
/libcore/ojluni/src/main/java/java/net/
DInetAddress.java237 String getHostName() { in getHostName() method in InetAddress.InetAddressHolder
336 return new Inet4Address(holder().getHostName(), holder().getAddress()); in readResolve()
562 public String getHostName() { in getHostName() method in InetAddress
564 if (holder().getHostName() == null) { in getHostName()
567 return holder().getHostName(); in getHostName()
744 String hostName = holder().getHostName(); in toString()
DSocksSocketImpl.java343 security.checkConnect(epoint.getHostName(), in connect()
489 out.write(epoint.getHostName().length()); in connect()
491 out.write(epoint.getHostName().getBytes("ISO-8859-1")); in connect()
DInet4Address.java171 inet.holder().hostName = holder().getHostName(); in writeReplace()
DMulticastSocket.java578 return new NetworkInterface(addrs[0].getHostName(), 0, addrs); in getNetworkInterface()
DAbstractPlainSocketImpl.java208 throw new UnknownHostException(addr.getHostName()); in connect()
/libcore/ojluni/annotations/hiddenapi/java/net/
DInetSocketAddress.java87 public final java.lang.String getHostName() { in getHostName() method in InetSocketAddress
154 private java.lang.String getHostName() { in getHostName() method in InetSocketAddress.InetSocketAddressHolder
DInetAddress.java101 public java.lang.String getHostName() { in getHostName() method in InetAddress
276 java.lang.String getHostName() { in getHostName() method in InetAddress.InetAddressHolder
/libcore/ojluni/annotations/mmodule/java/net/
DInetSocketAddress.annotated.java49 public final java.lang.String getHostName() { throw new RuntimeException("Stub!"); } in getHostName() method in InetSocketAddress
DInetAddress.annotated.java64 public java.lang.String getHostName() { throw new RuntimeException("Stub!"); } in getHostName() method in InetAddress
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java195 assertEquals(bindAddr.getHostName(), actualAddr.getHostName()); in test_bind_socketStateSync()
221 assertEquals(bindAddr.getHostName(), actualAddr.getHostName()); in test_bind_socketObjectCreationAfterBind()
/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.java2452 assertEquals(bindAddress.getHostName(), boundAddress.getHostName()); in test_bind_explicitPort()
2473 assertEquals(bindAddr.getHostName(), actualAddr.getHostName()); in test_bind_socketSync()
2499 assertEquals(bindAddr.getHostName(), actualAddr.getHostName()); in test_bind_socketSyncAfterBind()
/libcore/ojluni/annotations/sdk/nullability/java/net/
DInetAddress.annotated.java59 @libcore.util.NonNull public java.lang.String getHostName() { throw new RuntimeException("Stub!"); } in getHostName() method in InetAddress
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLEnginePair.java95 SSLEngine client = c.clientContext.createSSLEngine(c.host.getHostName(), c.port); in connect()

12