/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...] |
/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...] |
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
ServerSocketChannelTest.java | 20 import java.net.InetAddress; 98 Enumeration<InetAddress> inetAddresses = nic.getInetAddresses(); 111 ssc.socket().bind(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0)); 121 new InetSocketAddress(InetAddress.getLoopbackAddress(), boundAddress.getPort()); 129 Enumeration<InetAddress> inetAddresses = nic.getInetAddresses(); 144 ssc.bind(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0)); 145 assertEquals(InetAddress.getLoopbackAddress(), 150 ssc.bind(new InetSocketAddress(InetAddress.getLoopbackAddress(),
|
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
SmtpSenderUnitTests.java | 35 import java.net.InetAddress; 257 mockTransport.setMockLocalAddress(InetAddress.getByName(LOCAL_ADDRESS));
|
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/ |
ConnectivityManagerLegacyTest.java | 36 import java.net.InetAddress; 83 byte[] addr = ((Inet4Address) InetAddress.getByName(addrString)).getAddress(); 91 private List<InetAddress> getIpAddresses(int type) { 92 ArrayList<InetAddress> addresses = new ArrayList<>(); 109 for (InetAddress address : getIpAddresses(type)) { 129 d.connect(InetAddress.getByName(addrString), 7); 130 InetAddress localAddress = d.getLocalAddress();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
Inet6AddressTest.java | 23 import java.net.InetAddress; 35 InetAddress addr = null; 44 addr = InetAddress.getByName(addrName); 49 addr = InetAddress.getByName(addrName); 62 addr = InetAddress.getByName(addrName); 68 addr = InetAddress.getByName(addrName); 81 addr = InetAddress.getByName(addrName); 86 addr = InetAddress.getByName(addrName); 95 InetAddress addr = null; 99 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/ojluni/src/main/java/java/net/ |
InetAddress.java | 57 * InetAddress consists of an IP address and possibly its 127 * <p> The InetAddress class provides methods to resolve host names to 130 * <h4> InetAddress Caching </h4> 132 * The InetAddress class has a cache to store successful as well as 176 * @see java.net.InetAddress#getByAddress(byte[]) 177 * @see java.net.InetAddress#getByAddress(java.lang.String, byte[]) 178 * @see java.net.InetAddress#getAllByName(java.lang.String) 179 * @see java.net.InetAddress#getByName(java.lang.String) 180 * @see java.net.InetAddress#getLocalHost() 184 class InetAddress implements java.io.Serializable [all...] |
AbstractPlainSocketImpl.java | 118 InetAddress address = InetAddress.getByName(host); 142 protected void connect(InetAddress address, int port) throws IOException { 192 private void connectToAddress(InetAddress address, int port, int timeout) throws IOException { 194 doConnect(InetAddress.getLocalHost(), port, timeout); 326 synchronized void doConnect(InetAddress address, int port, int timeout) throws IOException { 360 protected synchronized void bind(InetAddress address, int lport) 429 void setAddress(InetAddress address) { 627 abstract void socketConnect(InetAddress address, int port, int timeout) 629 abstract void socketBind(InetAddress address, int port [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 | 21 import java.net.InetAddress; 59 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port) 62 int sport = startServer("Cons InetAddress,I"); 65 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport); 71 getSSLSocket(InetAddress.getLocalHost(), sport + 1); 78 getSSLSocket(InetAddress.getLocalHost(), invalidPort[i]); 86 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port, 87 * InetAddress clientAddress, int clientPort) 90 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...] |
/frameworks/base/services/core/java/com/android/server/ |
NsdService.java | 39 import java.net.InetAddress; 529 clientInfo.mResolvedService.setHost(InetAddress.getByName(cooked[4])); [all...] |
/frameworks/base/core/java/android/net/ |
ConnectivityManager.java | 59 import java.net.InetAddress; [all...] |
/frameworks/base/core/java/android/app/ |
ActivityThread.java | 131 import java.net.InetAddress; [all...] |
/external/robolectric/v1/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 | |