HomeSort by relevance Sort by last modified time
    Searched refs:getHostName (Results 1 - 25 of 61) sorted by null

1 2 3

  /libcore/luni/src/test/java/libcore/java/net/
InetSocketAddressTest.java 62 //assertEquals(results[i], isa.getHostName());
66 assertEquals("0.0.0.0", isa.getHostName());
83 assertEquals("0.0.0.0", isa.getHostName());
107 isa1 = new InetSocketAddress(localhost.getHostName(), 80);
131 InetSocketAddress isa1 = new InetSocketAddress(localhost.getHostName(), 8080);
151 assertEquals("some host", hasHostname.getHostName());
153 // between getHostString and getHostName...
157 assertEquals("localhost", noHostname.getHostName());
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
InetAddressThreadTest.java 35 * the gethostbyname function to be called. getHostName will cause the
67 String correctName = testAddress.getHostName();
86 String hostName = ia.getHostName();
96 + ": getHostName() returned "
106 + ": getHostName() returned "
122 * @tests java.net.InetAddress#getHostName()
125 // Test for method java.lang.String java.net.InetAddress.getHostName()
139 lookup1.getHostName(), lookup1, 0);
141 lookup2.getHostName(), lookup2, 0);
InetSocketAddressTest.java 35 String localhostName = address.getHostName();
53 assertEquals(isa.getHostName(), legalHostPortPairs[i].host);
100 assertEquals("HostName", init.getHostName(), desr.getHostName());
Inet4AddressTest.java 325 assertEquals(initAddr.getHostName(), desrAddr.getHostName());
InetAddressTest.java 96 assertTrue(alias.getHostName().startsWith("localhost"));
380 assertEquals(initAddr.getHostName(), desrAddr.getHostName());
  /libcore/luni/src/main/java/java/net/
InetSocketAddress.java 155 public final String getHostName() {
156 return (addr != null) ? addr.getHostName() : hostname;
161 * Unlike {@link #getHostName}, this method will never cause a DNS lookup.
163 * @hide 1.7 - remember to add a link in the getHostName documentation!
ServerSocket.java 259 .append(getInetAddress().getHostName()).append("/")
311 throw new SocketException("Host is unresolved: " + inetAddr.getHostName());
DatagramSocket.java 458 throw new SocketException("Host is unresolved: " + inetAddr.getHostName());
485 throw new SocketException("Host is unresolved: " + isa.getHostName());
Socket.java 755 throw new UnknownHostException("Host is unresolved: " + inetAddr.getHostName());
825 throw new UnknownHostException("Host is unresolved: " + inetAddr.getHostName());
    [all...]
  /libcore/luni/src/test/java/tests/api/javax/net/
SocketFactoryTest.java 90 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport);
108 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i]);
118 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), portNumber);
244 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport,
266 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i],
275 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport,
  /external/apache-http/src/org/apache/http/protocol/
RequestTargetHost.java 82 targethost = new HttpHost(address.getHostName(), port);
  /frameworks/base/core/java/android/net/http/
HttpConnection.java 58 Socket sock = new Socket(mHost.getHostName(), mHost.getPort());
HttpsConnection.java 178 (mProxyHost.getHostName(), mProxyHost.getPort());
259 proxySock, mHost.getHostName(), mHost.getPort(), true);
293 mHost.getHostName(), mHost.getPort());
311 doHandshakeAndValidateServerCertificates(this, sslSock, mHost.getHostName());
  /frameworks/base/core/java/android/net/
Proxy.java 149 return ((InetSocketAddress)(proxy.address())).getHostName();
223 return new HttpHost(sa.getHostName(), sa.getPort(), "http");
295 return getProxy(mContext, target.getHostName());
301 return getPreferredHttpHost(mContext, target.getHostName());
307 HttpHost proxy = getPreferredHttpHost(mContext, target.getHostName());
  /external/apache-http/src/org/apache/http/impl/conn/
DefaultClientConnectionOperator.java 137 InetAddress[] addresses = InetAddress.getAllByName(target.getHostName());
166 target.getHostName(),
232 (conn.getSocket(), target.getHostName(), schm.resolvePort(target.getPort()), true);
ProxySelectorRoutePlanner.java 239 isa.getHostName() : isa.getAddress().getHostAddress();
  /external/mockwebserver/src/main/java/com/google/mockwebserver/
MockWebServer.java 85 public String getHostName() {
87 return InetAddress.getLocalHost().getHostName();
94 return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(getHostName(), getPort()));
104 ? new URL("https://" + getHostName() + ":" + getPort() + path)
105 : new URL("http://" + getHostName() + ":" + getPort() + path);
  /libcore/support/src/test/java/tests/http/
MockWebServer.java 88 public String getHostName() {
89 return InetAddress.getLoopbackAddress().getHostName();
93 return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(getHostName(), getPort()));
103 ? new URL("https://" + getHostName() + ":" + getPort() + path)
104 : new URL("http://" + getHostName() + ":" + getPort() + path);
  /external/apache-http/src/org/apache/http/
HttpHost.java 129 public String getHostName() {
  /external/apache-http/src/org/apache/http/client/utils/
URIUtils.java 136 target.getHostName(),
  /libcore/luni/src/test/java/tests/api/javax/net/ssl/
SSLSocketTest.java 144 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), sport);
157 getSSLSocket(InetAddress.getLocalHost().getHostName(), invalidPort[i]);
179 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), sport,
194 getSSLSocket(InetAddress.getLocalHost().getHostName(), invalidPort[i],
200 getSSLSocket(InetAddress.getLocalHost().getHostName(), sport,
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
ClientHandshakeImpl.java 92 session.setPeer(socketOwner.getInetAddress().getHostName(), socketOwner.getPort());
113 session.setPeer(socketOwner.getInetAddress().getHostName(), socketOwner.getPort());
563 host = socketOwner.getInetAddress().getHostName();
OpenSSLSocketImpl.java 199 super.getInetAddress().getHostName() == null) {
203 super.getInetAddress().getHostName(),
434 super.getInetAddress().getHostName(),
    [all...]
  /external/apache-http/src/org/apache/http/client/protocol/
RequestAddCookies.java 134 String hostName = targetHost.getHostName();
  /cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
TestResults.java 129 hostName = InetAddress.getLocalHost().getHostName();

Completed in 676 milliseconds

1 2 3