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

12

/dalvik/libcore/luni/src/main/java/java/net/
H A DInetSocketAddress.java69 hostname = addr.getHostName();
161 public final String getHostName() { method in class:InetSocketAddress
162 return (null != addr) ? addr.getHostName() : hostname;
H A DDatagramSocket.java167 security.checkConnect(anAddress.getHostName(), aPort);
239 security.checkConnect(anAddr.getHostName(), -1);
383 security.checkAccept(senderAddr.getHostName(),
458 security.checkConnect(packAddr.getHostName(), pack
639 "K0317", inetAddr.getHostName())); //$NON-NLS-1$
672 "K0317", inetAddr.getHostName())); //$NON-NLS-1$
684 security.checkConnect(inetAddr.getAddress().getHostName(),
H A DServerSocket.java347 .append(getInetAddress().getHostName()).append("/") //$NON-NLS-1$
405 "K0317", inetAddr.getHostName())); //$NON-NLS-1$
H A DSocket.java134 host = address.getHostName();
968 "K0317", inetAddr.getHostName())); //$NON-NLS-1$
H A DNetworkInterface.java188 security.checkConnect(element.getHostName(),
H A DMulticastSocket.java355 security.checkConnect(packAddr.getHostName(), pack.getPort());
H A DInetAddress.java47 * An {@code InetAddress} may have a hostname (accessible via {@code getHostName}), but may not,
347 public String getHostName() { method in class:InetAddress
H A DURL.java708 String pHostName = pAddress.isUnresolved() ? pAddress.getHostName()
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/
H A DHttpConfiguration.java66 this.hostName = iProxyAddr.getHostName();
87 this.hostName = iProxyAddr.getHostName();
109 public String getHostName() { method in class:HttpConfiguration
H A DHttpConnection.java54 String hostName = config.getHostName();
162 String hostName = config.getHostName();
H A DHttpURLConnectionImpl.java1260 return new SocketPermission(getHostName() + ":" + getHostPort(), "connect, resolve");
1613 private String getHostName() { method in class:HttpURLConnectionImpl
1617 hostName = ((InetSocketAddress) proxy.address()).getHostName();
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DInetSocketAddressTest.java60 assertNotNull(address.getHostName());
115 method = "getHostName",
153 //assertEquals(results[i], isa.getHostName());
161 assertEquals("0.0.0.0", isa.getHostName());
204 assertEquals("0.0.0.0", isa.getHostName());
241 assertEquals(isa.getHostName(), legalHostPortPairs[i].host);
294 assertEquals("HostName", init.getHostName(), desr.getHostName());
H A DInetAddressTest.java66 * the gethostbyname function to be called. getHostName will cause the
98 String correctName = testAddress.getHostName();
117 String hostName = ia.getHostName();
127 + ": getHostName() returned "
137 + ": getHostName() returned "
221 assertTrue(alias.getHostName().startsWith(
281 // ia2.getHostName().startsWith(Support_Configuration.InetTestAddress));
364 * @tests java.net.InetAddress#getHostName()
369 method = "getHostName",
373 // Test for method java.lang.String java.net.InetAddress.getHostName()
[all...]
H A DInet4AddressTest.java446 assertEquals(initAddr.getHostName(), desrAddr.getHostName());
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/
H A DSocketFactoryTest.java113 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport);
131 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i]);
141 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), portNumber);
285 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport,
307 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i],
316 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport,
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DOpenSSLSocketImpl.java261 super.getInetAddress().getHostName() == null) {
267 super.getInetAddress().getHostName(),
326 + getInetAddress().getHostName() + ".");
330 + getInetAddress().getHostName() + " failed.");
333 + getInetAddress().getHostName() + ".");
344 super.getInetAddress().getHostName(),
349 address.getHostName(), address.getPort(),
411 sslParameters, super.getInetAddress().getHostName(),
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/
H A DSSLSocketTest.java244 ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), sport);
257 ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), invalidPort[i]);
294 ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), sport,
310 ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), invalidPort[i],
319 ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), sport,
H A DSSLSessionTest.java89 assertEquals(s.getPeerHost(), InetAddress.getLocalHost().getHostName());
/dalvik/libcore/luni/src/test/java/tests/api/java/net/
H A DSocketTest.java130 s = new Socket(InetAddress.getLocalHost().getHostName(), sport);
178 new Socket(InetAddress.getLocalHost().getHostName(), sport);
205 s = new Socket(InetAddress.getLocalHost().getHostName(), sport,
333 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, true);
336 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, false);
341 new Socket(InetAddress.getLocalHost().getHostName(), sport, true);
397 s = new Socket(InetAddress.getLocalHost().getHostName(), sport,
404 new Socket(InetAddress.getLocalHost().getHostName(), sport,
614 s = new Socket(InetAddress.getLocalHost().getHostName(), sport,
733 s = new Socket(InetAddress.getLocalHost().getHostName(), spor
[all...]
H A DNetworkInterfaceTest.java91 .getHostName());
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/
H A DPlainDatagramSocketImpl.java372 throw new SocketException(Msg.getString("K0317", inetAddr.getHostName())); //$NON-NLS-1$
H A DPlainSocketImpl.java376 proxyName = addr.getHostName();
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/
H A DDatagramChannelImpl.java171 sm.checkConnect(inetSocketAddress.getAddress().getHostName(),
H A DSocketChannelImpl.java258 String hostName = normalAddr.getHostName();
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
H A DSecurityManagerTest.java481 s = new Socket(InetAddress.getLocalHost().getHostName(), 3132);

Completed in 227 milliseconds

12