/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...] |
/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/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. 132 public class InetAddress implements Serializable { 148 public static final InetAddress UNSPECIFIED = new InetAddress(AF_UNSPEC, null, null); 151 * Constructs an {@code InetAddress}. 155 InetAddress(int family, byte[] ipaddress, String hostName) { 162 * Compares this {@code InetAddress} instance against the specified address 172 if (!(obj instanceof InetAddress)) { [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...] |
/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/services/java/com/android/server/ |
ConnectivityService.java | 94 import java.net.InetAddress; 289 private InetAddress mDefaultDns; [all...] |
/frameworks/base/core/java/android/app/ |
ActivityThread.java | 91 import java.net.InetAddress; 722 InetAddress.clearDnsCache(); [all...] |
/prebuilt/sdk/10/ |
android.jar | |
/prebuilt/sdk/11/ |
android.jar | |
/prebuilt/sdk/13/ |
android.jar | |
/prebuilt/sdk/4/ |
android.jar | |
/prebuilt/sdk/5/ |
android.jar | |
/prebuilt/sdk/6/ |
android.jar | |
/prebuilt/sdk/7/ |
android.jar | |
/prebuilt/sdk/8/ |
android.jar | |
/prebuilt/sdk/9/ |
android.jar | |