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

1 2 3 4 5 6

  /libcore/luni/src/test/java/libcore/java/net/
InetSocketAddressTest.java 62 //assertEquals(results[i], isa.getHostName());
66 assertEquals("::", isa.getHostName());
83 assertEquals("::", isa.getHostName());
107 isa1 = new InetSocketAddress(localhost.getHostName(), 80);
131 InetSocketAddress isa1 = new InetSocketAddress(localhost.getHostName(), 8080);
152 assertEquals("some host", hasHostname.getHostName());
159 assertEquals("some host", hasHostnameAndAddress.getHostName());
165 assertEquals("127.0.0.1", hostnameIsIp.getHostName());
168 // between getHostString and getHostName...
172 assertEquals("localhost", noHostname.getHostName());
    [all...]
InetAddressTest.java 181 return a.getHostName().equals(b.getHostName());
343 assertEquals("ip6-localhost", inetAddress.getHostName());
436 assertEquals(expectedHostname, actual.getHostName());
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/
SocketFactoryTest.java 63 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport);
75 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i]);
82 sf.createSocket(InetAddress.getLocalHost().getHostName(), s.getLocalPort());
89 f.createSocket(InetAddress.getLocalHost().getHostName(), 8082);
217 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport,
230 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i],
236 sf.createSocket(InetAddress.getLocalHost().getHostName(), sport,
244 sf.createSocket(InetAddress.getLocalHost().getHostName(), 8081, InetAddress.getLocalHost(), 8082);
257 s = sf.createSocket(InetAddress.getLocalHost().getHostName(), 8082);
262 s = sf.createSocket(InetAddress.getLocalHost().getHostName(), 8081, InetAddress.getLocalHost(), 8082)
    [all...]
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
RecordingAuthenticator.java 41 + " site=" + getRequestingSite().getHostName()
  /libcore/harmony-tests/src/test/java/org/apache/harmony/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 * 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);
102 assertEquals("HostName", init.getHostName(), desr.getHostName());
  /external/sl4a/ScriptingLayer/src/com/googlecode/android_scripting/interpreter/
InterpreterProcess.java 73 String result = mProxy.getAddress().getHostName();
76 return SimpleServer.getPublicInetAddress().getHostName();
  /libcore/ojluni/src/main/java/java/net/
InetSocketAddress.java 79 private String getHostName() {
83 return addr.getHostName();
91 if (addr.holder().getHostName() != null)
92 return addr.holder().getHostName();
356 public final String getHostName() {
357 return holder.getHostName();
InetAddress.java 198 String getHostName() {
269 return new Inet4Address(holder().getHostName(), holder().getAddress());
478 public String getHostName() {
479 if (holder().getHostName() == null) {
482 return holder().getHostName();
622 String hostName = holder().getHostName();
    [all...]
Inet4Address.java 146 inet.holder().hostName = holder().getHostName();
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
HttpOverHttp2Test.java 51 assertEquals(server.getHostName() + ":" + server.getPort(), request.getHeader(hostHeader));
75 assertEquals(server.getHostName() + ":" + server.getPort(), request.getHeader(hostHeader));
RecordingProxySelector.java 48 String.format("%s %s:%d %s", uri, socketAddress.getHostName(), socketAddress.getPort(),
  /external/apache-http/android/src/android/net/http/
HttpConnection.java 54 Socket sock = new Socket(mHost.getHostName(), mHost.getPort());
HttpsConnection.java 174 (mProxyHost.getHostName(), mProxyHost.getPort());
255 proxySock, mHost.getHostName(), mHost.getPort(), true);
289 mHost.getHostName(), mHost.getPort());
307 doHandshakeAndValidateServerCertificates(this, sslSock, mHost.getHostName());
  /external/apache-http/src/org/apache/http/protocol/
RequestTargetHost.java 87 targethost = new HttpHost(address.getHostName(), port);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
SSLSocketTest.java 140 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), sport);
153 getSSLSocket(InetAddress.getLocalHost().getHostName(), invalidPort[i]);
174 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), sport,
180 getSSLSocket(InetAddress.getLocalHost().getHostName(), 8081, InetAddress.getLocalHost(), 8082);
187 getSSLSocket(InetAddress.getLocalHost().getHostName(), invalidPort[i],
193 getSSLSocket(InetAddress.getLocalHost().getHostName(), sport,
  /libcore/ojluni/src/main/java/sun/net/www/protocol/mailto/
MailToURLConnection.java 73 host = InetAddress.getLocalHost().getHostName();
  /external/apache-http/src/org/apache/http/impl/conn/
DefaultClientConnectionOperator.java 142 InetAddress[] addresses = InetAddress.getAllByName(target.getHostName());
171 target.getHostName(),
242 (conn.getSocket(), target.getHostName(), schm.resolvePort(target.getPort()), true);
  /libcore/support/src/test/java/tests/http/
MockWebServer.java 89 public String getHostName() {
90 return InetAddress.getLoopbackAddress().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);
  /external/mockwebserver/src/main/java/com/google/mockwebserver/
MockWebServer.java 105 public String getHostName() {
107 return InetAddress.getLocalHost().getHostName();
114 return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(getHostName(), getPort()));
125 ? new URL("https://" + getHostName() + ":" + getPort() + path)
126 : new URL("http://" + getHostName() + ":" + getPort() + path);
138 String hostName = getHostName();
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
ServerSocketChannelTest.java 174 assertEquals(bindAddress.getHostName(), boundAddress.getHostName());
193 assertEquals(bindAddr.getHostName(), actualAddr.getHostName());
214 assertEquals(bindAddr.getHostName(), actualAddr.getHostName());
  /external/apache-http/src/org/apache/http/
HttpHost.java 134 public String getHostName() {
  /external/apache-http/src/org/apache/http/client/utils/
URIUtils.java 141 target.getHostName(),
  /external/jmdns/src/javax/jmdns/
JmDNS.java 152 public abstract String getHostName();
  /libcore/luni/src/test/java/libcore/java/nio/channels/
SocketChannelTest.java 186 assertEquals(bindAddr.getHostName(), actualAddr.getHostName());
212 assertEquals(bindAddr.getHostName(), actualAddr.getHostName());

Completed in 7361 milliseconds

1 2 3 4 5 6