/external/jmonkeyengine/engine/src/networking/com/jme3/network/ |
Network.java | 43 import java.net.InetAddress; 164 InetAddress remoteAddress = InetAddress.getByName(host); 181 connectToServer( InetAddress.getByName(host), port, remoteUdpPort ); 184 public void connectToServer( InetAddress address, int port, int remoteUdpPort ) throws IOException
|
/external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/ssl/ |
DefaultSSLSocketFactoryTest.java | 22 import java.net.InetAddress; 52 * Class under test for Socket createSocket(String, int, InetAddress, int) 57 f.createSocket("localhost", 0, InetAddress.getLocalHost(), 1); 66 * Class under test for Socket createSocket(InetAddress, int) 71 f.createSocket(InetAddress.getLocalHost(), 1); 80 * Class under test for Socket createSocket(InetAddress, int, InetAddress, 86 f.createSocket(InetAddress.getLocalHost(), 1, InetAddress
|
/libcore/luni/src/test/java/tests/api/javax/net/ |
ServerSocketFactoryTest.java | 26 import java.net.InetAddress; 89 ServerSocket ss = sf.createServerSocket(0, 0, InetAddress.getLocalHost()); 93 sf.createServerSocket(ss.getLocalPort(), 0, InetAddress.getLocalHost()); 101 sf.createServerSocket(Integer.MAX_VALUE, 0, InetAddress.getLocalHost()); 126 InetAddress address) throws IOException {
|
SocketFactoryTest.java | 26 import java.net.InetAddress; 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); 100 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport); 106 sf.createSocket(InetAddress.getLocalHost(), invalidPorts[i]); 113 sf.createSocket(InetAddress.getLocalHost(), s.getLocalPort()); 120 f.createSocket(InetAddress.getLocalHost(), 8081); 131 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldAndroidDatagramTest.java | 22 import java.net.InetAddress; 69 packet.setAddress(InetAddress.getLocalHost()); 86 public Reflector(int port, InetAddress address) { 123 reflector = new Reflector(1234, InetAddress.getLocalHost()); 129 socket = new DatagramSocket(2345, InetAddress.getLocalHost()); 136 packet.setAddress(InetAddress.getLocalHost());
|
OldServerSocketTest.java | 23 import java.net.InetAddress; 57 InetSocketAddress theAddress = new InetSocketAddress(InetAddress 65 + (new InetSocketAddress(InetAddress.getLocalHost(), 68 new InetSocketAddress(InetAddress 76 InetSocketAddress clAddress = new InetSocketAddress(InetAddress 109 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); 162 ServerSocket ss = new ServerSocket(0, 10, InetAddress.getLocalHost()); 164 new ServerSocket(ss.getLocalPort(), 10, InetAddress.getLocalHost()); 171 new ServerSocket(65536, 10, InetAddress.getLocalHost()); 346 protected void connect(InetAddress arg0, int arg1) throws IOException [all...] |
OldDatagramSocketTest.java | 29 import java.net.InetAddress; 92 public DatagramServer(int aPort, InetAddress address) 184 // Test for method java.net.DatagramSocket(int, java.net.InetAddress) 187 ds = new java.net.DatagramSocket(portNumber, InetAddress 192 .getLocalAddress().equals(InetAddress.getLocalHost())); 211 new java.net.DatagramSocket(8080, InetAddress 226 new java.net.DatagramSocket(1, InetAddress 241 dp = new DatagramPacket("Test String".getBytes(), 11, InetAddress 259 InetAddress inetAddress = InetAddress.getLocalHost() [all...] |
URLConnectionTest.java | 40 import java.net.InetAddress; [all...] |
/external/apache-harmony/auth/src/test/java/common/org/ietf/jgss/ |
ChannelBindingTest.java | 23 import java.net.InetAddress; 42 InetAddress addr1= InetAddress.getByAddress(new byte [] {127, 0, 0, 1}); 43 InetAddress addr2= InetAddress.getByAddress(new byte [] {127, 0, 0, 2}); 55 InetAddress addr= InetAddress.getByAddress(new byte [] {127, 0, 0, 1}); 57 assertEquals(InetAddress.getByAddress(new byte [] {127, 0, 0, 1}), 63 InetAddress addr1= InetAddress.getByAddress(new byte [] {127, 0, 0, 1}) [all...] |
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
SmtpSenderUnitTests.java | 35 import java.net.InetAddress; 254 mockTransport.setMockLocalAddress(InetAddress.getByName(LOCAL_ADDRESS));
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
Inet6AddressTest.java | 22 import java.net.InetAddress; 34 InetAddress addr = null; 43 addr = InetAddress.getByName(addrName); 48 addr = InetAddress.getByName(addrName); 61 addr = InetAddress.getByName(addrName); 67 addr = InetAddress.getByName(addrName); 80 addr = InetAddress.getByName(addrName); 85 addr = InetAddress.getByName(addrName); 94 InetAddress addr = null; 98 addr = InetAddress.getByName(addrName) [all...] |
DatagramSocketTest.java | 29 import java.net.InetAddress; 89 public DatagramServer(int aPort, InetAddress address) 115 * @tests java.net.DatagramSocket#DatagramSocket(int, java.net.InetAddress) 118 DatagramSocket ds = new DatagramSocket(0, InetAddress.getLocalHost()); 120 assertEquals("Created socket with incorrect address", InetAddress 130 InetAddress.getLocalHost(), 0); 142 InetAddress inetAddress = InetAddress.getLocalHost(); 143 ds.connect(inetAddress, 0) [all...] |
MulticastSocketTest.java | 25 import java.net.InetAddress; 47 private static InetAddress lookup(String s) { 49 return InetAddress.getByName(s); 59 private static InetAddress GOOD_IPv4 = lookup("224.0.0.3"); 60 private static InetAddress BAD_IPv4 = lookup("224.0.0.4"); 62 private static InetAddress GOOD_IPv6 = lookup("ff05::7:7"); 63 private static InetAddress BAD_IPv6 = lookup("ff05::7:8"); 75 private InetAddress groupAddr = null; 114 public MulticastServer(InetAddress anAddress, int aPort) throws java.io.IOException { 172 InetAddress firstAddress = (InetAddress) addresses.nextElement() [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
SSLServerSocketTest.java | 26 import java.net.InetAddress; 58 public mySSLServerSocket(int port, int backlog, InetAddress address) throws IOException{ 171 * javax.net.ssl.SSLServerSocket#SSLServerSocket(int port, int backlog, InetAddress address) 174 // A null InetAddress is okay. 179 mySSLServerSocket ssl = new mySSLServerSocket(0, 0, InetAddress.getLocalHost()); 183 new mySSLServerSocket(port_invalid[i], 1, InetAddress.getLocalHost()); 190 new mySSLServerSocket(ssl.getLocalPort(), 0, InetAddress.getLocalHost());
|
SSLSocketTest.java | 22 import java.net.InetAddress; 60 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port) 63 int sport = startServer("Cons InetAddress,I"); 66 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport); 72 getSSLSocket(InetAddress.getLocalHost(), sport + 1); 79 getSSLSocket(InetAddress.getLocalHost(), invalidPort[i]); 87 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port, 88 * InetAddress clientAddress, int clientPort) 91 int sport = startServer("Cons InetAddress,I,InetAddress,I") [all...] |
/external/guava/guava-tests/test/com/google/common/net/ |
InetAddressesTest.java | 25 import java.net.InetAddress; 129 InetAddress ipv4Addr = null; 131 ipv4Addr = InetAddress.getByName(ipStr); 138 InetAddress ipv6Addr = null; 140 ipv6Addr = InetAddress.getByName(ipStr); 154 InetAddress ipv6Addr = null; 156 ipv6Addr = InetAddress.getByName(eightColons[i]); 168 InetAddress ipv6Addr = InetAddress.getByName(ipString); 222 InetAddress ip = InetAddresses.forString(ipStr) [all...] |
/libcore/luni/src/main/java/java/net/ |
InetAddress.java | 48 * families, and should use {@code InetAddress}. 50 * <p>An {@code InetAddress} may have a hostname (accessible via {@code getHostName}), but may not, 51 * depending on how the {@code InetAddress} was created. 120 * InetAddress and by the C library, which meant that DNS TTLs could not be honored correctly. 126 public class InetAddress implements Serializable { 142 public static final InetAddress UNSPECIFIED = new InetAddress(AF_UNSPEC, null, null); 145 * Constructs an {@code InetAddress}. 149 InetAddress(int family, byte[] ipaddress, String hostName) { 156 * Compares this {@code InetAddress} instance against the specified addres [all...] |
PlainSocketImpl.java | 26 import java.net.InetAddress; 50 private static InetAddress lastConnectedAddress; 78 public PlainSocketImpl(FileDescriptor fd, int localport, InetAddress addr, int port) { 127 public void initRemoteAddressAndPort(InetAddress remoteAddress, int remotePort) { 149 @Override protected void bind(InetAddress address, int port) throws IOException { 167 connect(InetAddress.getByName(aHost), aPort); 171 protected void connect(InetAddress anAddr, int aPort) throws IOException { 187 private void connect(InetAddress anAddr, int aPort, int timeout) throws IOException { 188 InetAddress normalAddr = anAddr.isAnyLocalAddress() ? InetAddress.getLocalHost() : anAddr [all...] |
/frameworks/base/services/java/com/android/server/ |
NsdService.java | 41 import java.net.InetAddress; 507 clientInfo.mResolvedService.setHost(InetAddress.getByName(cooked[4])); [all...] |
ConnectivityService.java | 137 import java.net.InetAddress; 347 private InetAddress mDefaultDns; [all...] |
/frameworks/base/core/java/android/app/ |
ActivityThread.java | 104 import java.net.InetAddress; 789 InetAddress.clearDnsCache(); [all...] |
/prebuilts/sdk/10/ |
android.jar | |
/prebuilts/sdk/11/ |
android.jar | |
/prebuilts/sdk/13/ |
android.jar | |
/prebuilts/sdk/16/ |
android.jar | |