/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/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());
|
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...] |
OldSocketTest.java | 27 import java.net.InetAddress; 76 s = new Socket(InetAddress.getLocalHost().getHostName(), sport); 106 socket = new Socket(InetAddress.getByName(null), sport); 107 InetAddress address = socket.getLocalAddress(); 117 int sport = startServer("Cons String,I,InetAddress,I"); 119 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, 120 InetAddress.getLocalHost(), portNumber); 147 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, true); 150 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, false); 154 // Test for method java.net.Socket(java.net.InetAddress, int [all...] |
URLConnectionTest.java | 38 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...] |
/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 | 40 import java.net.InetAddress; 609 clientInfo.mResolvedService.setHost(InetAddress.getByName(cooked[4])); [all...] |
ConnectivityService.java | 95 import java.net.InetAddress; 290 private InetAddress mDefaultDns; [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
SSLSocketTest.java | 22 import java.net.InetAddress; 61 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port) 64 int sport = startServer("Cons InetAddress,I"); 67 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport); 73 getSSLSocket(InetAddress.getLocalHost(), sport + 1); 80 getSSLSocket(InetAddress.getLocalHost(), invalidPort[i]); 88 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port, 89 * InetAddress clientAddress, int clientPort) 92 int sport = startServer("Cons InetAddress,I,InetAddress,I") [all...] |
/frameworks/base/core/java/android/app/ |
ActivityThread.java | 96 import java.net.InetAddress; 741 InetAddress.clearDnsCache(); [all...] |
/prebuilts/sdk/10/ |
android.jar | |
/prebuilts/sdk/11/ |
android.jar | |
/prebuilts/sdk/13/ |
android.jar | |
/prebuilts/sdk/16/ |
android.jar | |
/prebuilts/sdk/4/ |
android.jar | |
/prebuilts/sdk/5/ |
android.jar | |
/prebuilts/sdk/6/ |
android.jar | |