/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; 51 * Class under test for Socket createSocket(String, int, InetAddress, int) 56 f.createSocket("localhost", 0, InetAddress.getLocalHost(), 1); 65 * Class under test for Socket createSocket(InetAddress, int) 70 f.createSocket(InetAddress.getLocalHost(), 1); 79 * Class under test for Socket createSocket(InetAddress, int, InetAddress, 85 f.createSocket(InetAddress.getLocalHost(), 1, InetAddress
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/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...] |
/cts/tests/tests/netlegacy22/api/src/android/net/cts/legacy/api22/ |
ConnectivityManagerLegacyTest.java | 36 import java.net.InetAddress; 83 byte[] addr = ((Inet4Address) InetAddress.getByName(addrString)).getAddress(); 90 d.connect(InetAddress.getByName(addrString), 7); 91 InetAddress localAddress = d.getLocalAddress();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/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...] |
MulticastSocketTest.java | 25 import java.net.InetAddress; 38 private static InetAddress lookup(String s) { 40 return InetAddress.getByName(s); 50 private static InetAddress GOOD_IPv4 = lookup("224.0.0.3"); 51 private static InetAddress BAD_IPv4 = lookup("224.0.0.4"); 52 private static InetAddress GOOD_IPv6 = lookup("ff05::7:7"); 53 private static InetAddress BAD_IPv6 = lookup("ff05::7:8"); 64 loopbackInterface = NetworkInterface.getByInetAddress(InetAddress.getLoopbackAddress()); 84 Enumeration<InetAddress> addresses = nextInterface.getInetAddresses(); 86 final InetAddress nextAddress = addresses.nextElement() [all...] |
DatagramSocketTest.java | 27 import java.net.InetAddress; 46 public DatagramServer(InetAddress address, boolean echo) 56 public DatagramServer(InetAddress address) throws IOException { 103 * java.net.DatagramSocket#DatagramSocket(int, java.net.InetAddress) 106 DatagramSocket ds = new DatagramSocket(0, InetAddress.getLocalHost()); 108 assertEquals("Created socket with incorrect address", InetAddress 118 InetAddress.getLocalHost(), 0); 130 InetAddress inetAddress = InetAddress.getLocalHost() [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldAndroidDatagramTest.java | 22 import java.net.InetAddress; 71 packet.setAddress(InetAddress.getLocalHost()); 88 public Reflector(int port, InetAddress address) { 125 reflector = new Reflector(1234, InetAddress.getLocalHost()); 131 socket = new DatagramSocket(2345, InetAddress.getLocalHost()); 138 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...] |
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
SmtpSenderUnitTests.java | 35 import java.net.InetAddress; 257 mockTransport.setMockLocalAddress(InetAddress.getByName(LOCAL_ADDRESS));
|
/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/harmony-tests/src/test/java/org/apache/harmony/tests/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...] |
/libcore/luni/src/main/java/java/net/ |
InetAddress.java | 46 * families, and should use {@code InetAddress}. 48 * <p>An {@code InetAddress} may have a hostname (accessible via {@code getHostName}), but may not, 49 * depending on how the {@code InetAddress} was created. 118 * InetAddress and by the C library, which meant that DNS TTLs could not be honored correctly. 124 public class InetAddress implements Serializable { 143 public static final InetAddress UNSPECIFIED = new InetAddress(AF_UNSPEC, null, null); 146 * Constructs an {@code InetAddress}. 150 InetAddress(int family, byte[] ipaddress, String hostName) { 157 * Compares this {@code InetAddress} instance against the specified addres [all...] |
PlainSocketImpl.java | 41 private static InetAddress lastConnectedAddress; 69 public PlainSocketImpl(FileDescriptor fd, int localport, InetAddress addr, int port) { 131 @Override protected void bind(InetAddress address, int port) throws IOException { 141 public void onBind(InetAddress localAddress, int localPort) { 158 connect(InetAddress.getByName(aHost), aPort); 162 protected void connect(InetAddress anAddr, int aPort) throws IOException { 178 private void connect(InetAddress anAddr, int aPort, int timeout) throws IOException { 179 InetAddress normalAddr = anAddr.isAnyLocalAddress() ? InetAddress.getLocalHost() : anAddr; 190 public void onConnect(InetAddress remoteAddress, int remotePort) [all...] |
/frameworks/base/services/core/java/com/android/server/ |
NsdService.java | 39 import java.net.InetAddress; 530 clientInfo.mResolvedService.setHost(InetAddress.getByName(cooked[4])); [all...] |
/frameworks/base/core/java/android/net/ |
ConnectivityManager.java | 49 import java.net.InetAddress; [all...] |
/frameworks/base/core/java/android/app/ |
ActivityThread.java | 119 import java.net.InetAddress; 857 InetAddress.clearDnsCache(); [all...] |
/external/robolectric/lib/main/ |
android.jar | |
/prebuilts/sdk/10/ |
android.jar | |
/prebuilts/sdk/11/ |
android.jar | |
/prebuilts/sdk/13/ |
android.jar | |
/prebuilts/sdk/16/ |
android.jar | |
/prebuilts/sdk/18/ |
android.jar | |