OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:getHostName
(Results
1 - 25
of
89
) sorted by null
1
2
3
4
/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
());
InetAddressTest.java
165
return a.
getHostName
().equals(b.
getHostName
());
/libcore/luni/src/test/java/tests/api/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);
177
Socket s = sf.createSocket(InetAddress.getLocalHost().
getHostName
(), sport,
190
sf.createSocket(InetAddress.getLocalHost().
getHostName
(), invalidPorts[i],
196
sf.createSocket(InetAddress.getLocalHost().
getHostName
(), sport,
204
sf.createSocket(InetAddress.getLocalHost().
getHostName
(), 8081, InetAddress.getLocalHost(), 8082);
217
s = sf.createSocket(InetAddress.getLocalHost().
getHostName
(), 8082);
222
s = sf.createSocket(InetAddress.getLocalHost().
getHostName
(), 8081, InetAddress.getLocalHost(), 8082)
[
all
...]
/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
152
public final String
getHostName
() {
153
return (addr != null) ? addr.
getHostName
() : hostname;
158
* Unlike {@link #
getHostName
}, this method will never cause a DNS lookup.
ServerSocket.java
260
.append(getInetAddress().
getHostName
()).append("/")
312
throw new SocketException("Host is unresolved: " + inetAddr.
getHostName
());
DatagramSocket.java
452
throw new SocketException("Host is unresolved: " + inetAddr.
getHostName
());
479
throw new SocketException("Host is unresolved: " + isa.
getHostName
());
/frameworks/base/core/java/android/net/
Proxy.java
139
return ((InetSocketAddress)(proxy.address())).
getHostName
();
213
return new HttpHost(sa.
getHostName
(), sa.getPort(), "http");
285
return getProxy(mContext, target.
getHostName
());
291
return getPreferredHttpHost(mContext, target.
getHostName
());
297
HttpHost proxy = getPreferredHttpHost(mContext, target.
getHostName
());
/external/apache-http/src/org/apache/http/protocol/
RequestTargetHost.java
82
targethost = new HttpHost(address.
getHostName
(), port);
/external/okhttp/src/test/java/com/squareup/okhttp/internal/mockspdyserver/
MockSpdyServer.java
68
public String
getHostName
() {
70
return InetAddress.getLocalHost().
getHostName
();
85
return new URL("https://" +
getHostName
() + ":" + getPort() + path);
97
String hostName =
getHostName
();
/frameworks/base/core/java/android/net/http/
HttpConnection.java
58
Socket sock = new Socket(mHost.
getHostName
(), mHost.getPort());
HttpsConnection.java
179
(mProxyHost.
getHostName
(), mProxyHost.getPort());
260
proxySock, mHost.
getHostName
(), mHost.getPort(), true);
294
mHost.
getHostName
(), mHost.getPort());
312
doHandshakeAndValidateServerCertificates(this, sslSock, mHost.
getHostName
());
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
SSLSocketTest.java
141
SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost().
getHostName
(), sport);
154
getSSLSocket(InetAddress.getLocalHost().
getHostName
(), invalidPort[i]);
175
SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost().
getHostName
(), sport,
181
getSSLSocket(InetAddress.getLocalHost().
getHostName
(), 8081, InetAddress.getLocalHost(), 8082);
188
getSSLSocket(InetAddress.getLocalHost().
getHostName
(), invalidPort[i],
194
getSSLSocket(InetAddress.getLocalHost().
getHostName
(), sport,
/cts/tests/tests/net/src/android/net/cts/
DnsTest.java
210
String hostname = addr.
getHostName
();
217
String hostname = addr.
getHostName
();
229
String thisResult = new String("
getHostName
for " + numberOfAddrs + " took " +
/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);
/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
86
public String
getHostName
() {
88
return InetAddress.getLocalHost().
getHostName
();
95
return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(
getHostName
(), getPort()));
106
? new URL("https://" +
getHostName
() + ":" + getPort() + path)
107
: new URL("http://" +
getHostName
() + ":" + getPort() + path);
119
String hostName =
getHostName
();
/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
(),
/external/jmdns/src/javax/jmdns/
JmDNS.java
152
public abstract String
getHostName
();
/external/okhttp/src/test/java/com/squareup/okhttp/
ConnectionPoolTest.java
48
sslContext = new SslContextBuilder(InetAddress.getLocalHost().
getHostName
()).build();
74
httpAddress = new Address(httpServer.
getHostName
(), httpServer.getPort(), null, null,
76
httpSocketAddress = new InetSocketAddress(InetAddress.getByName(httpServer.
getHostName
()),
80
spdyAddress = new Address(spdyServer.
getHostName
(), spdyServer.getPort(),
83
spdySocketAddress = new InetSocketAddress(InetAddress.getByName(spdyServer.
getHostName
()),
/external/apache-http/src/org/apache/http/client/protocol/
RequestAddCookies.java
134
String hostName = targetHost.
getHostName
();
Completed in 1108 milliseconds
1
2
3
4