/libcore/luni/src/test/java/libcore/java/net/ |
D | InetSocketAddressTest.java | 66 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()
|
D | InetAddressTest.java | 260 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()
|
D | OldSocketTest.java | 82 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()
|
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() 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/ |
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 | 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 | InetAddressTest.java | 90 assertTrue(alias.getHostName().startsWith("localhost")); in test_getAllByNameLjava_lang_String() 358 assertEquals(initAddr.getHostName(), desrAddr.getHostName());
|
D | Inet4AddressTest.java | 325 assertEquals(initAddr.getHostName(), desrAddr.getHostName());
|
D | SocketTest.java | 84 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()
|
D | ServerSocketTest.java | 75 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); in run()
|
/libcore/ojluni/src/main/java/java/net/ |
D | InetAddress.java | 237 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()
|
D | SocksSocketImpl.java | 343 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()
|
D | Inet4Address.java | 171 inet.holder().hostName = holder().getHostName(); in writeReplace()
|
D | MulticastSocket.java | 578 return new NetworkInterface(addrs[0].getHostName(), 0, addrs); in getNetworkInterface()
|
D | AbstractPlainSocketImpl.java | 208 throw new UnknownHostException(addr.getHostName()); in connect()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | InetSocketAddress.java | 87 public final java.lang.String getHostName() { in getHostName() method in InetSocketAddress 154 private java.lang.String getHostName() { in getHostName() method in InetSocketAddress.InetSocketAddressHolder
|
D | InetAddress.java | 101 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/ |
D | InetSocketAddress.annotated.java | 49 public final java.lang.String getHostName() { throw new RuntimeException("Stub!"); } in getHostName() method in InetSocketAddress
|
D | InetAddress.annotated.java | 64 public java.lang.String getHostName() { throw new RuntimeException("Stub!"); } in getHostName() method in InetAddress
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | SocketChannelTest.java | 195 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/ |
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 | 2452 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/ |
D | InetAddress.annotated.java | 59 @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/ |
D | TestSSLEnginePair.java | 95 SSLEngine client = c.clientContext.createSSLEngine(c.host.getHostName(), c.port); in connect()
|