/libcore/luni/src/test/java/tests/api/javax/net/ |
H A D | SocketFactoryTest.java | 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, 132 InetAddress.getLocalHost(), [all...] |
H A D | ServerSocketFactoryTest.java | 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());
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
H A D | SSLSocketTest.java | 66 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport); 72 getSSLSocket(InetAddress.getLocalHost(), sport + 1); 79 getSSLSocket(InetAddress.getLocalHost(), invalidPort[i]); 93 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport, 94 InetAddress.getLocalHost(), 0); 100 getSSLSocket(InetAddress.getLocalHost(), 8081, InetAddress.getLocalHost(), 8082); 106 getSSLSocket(InetAddress.getLocalHost(), -1, InetAddress.getLocalHost(), sport + 1); 111 getSSLSocket(InetAddress.getLocalHost(), spor [all...] |
H A D | SSLServerSocketTest.java | 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());
|
H A D | SSLSessionTest.java | 54 assertEquals(InetAddress.getLocalHost().getHostName(), s.getPeerHost());
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldAuthenticatorTest.java | 29 InetAddress addr = InetAddress.getLocalHost(); 37 addr = InetAddress.getLocalHost();
|
H A D | OldSocketTest.java | 75 s = new Socket(InetAddress.getLocalHost().getHostName(), sport); 117 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, 118 InetAddress.getLocalHost(), 0); 144 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, true); 147 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, false); 153 s = new Socket(InetAddress.getLocalHost(), sport); 162 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, 163 InetAddress.getLocalHost(), 0); 169 s = new Socket(InetAddress.getLocalHost(), sport, true); 172 s = new Socket(InetAddress.getLocalHost(), spor [all...] |
H A D | OldDatagramSocketTest.java | 188 .getLocalHost()); 192 .getLocalAddress().equals(InetAddress.getLocalHost())); 212 .getLocalHost()); 227 .getLocalHost()); 242 .getLocalHost(), 0); 259 InetAddress inetAddress = InetAddress.getLocalHost(); 291 InetAddress localHost = InetAddress.getLocalHost(); 357 InetAddress inetAddress = InetAddress.getLocalHost(); 381 InetAddress localHost = InetAddress.getLocalHost(); 427 InetAddress inetAddress = InetAddress.getLocalHost(); [all...] |
H A D | OldAndroidDatagramTest.java | 71 packet.setAddress(InetAddress.getLocalHost()); 125 reflector = new Reflector(1234, InetAddress.getLocalHost()); 131 socket = new DatagramSocket(2345, InetAddress.getLocalHost()); 138 packet.setAddress(InetAddress.getLocalHost());
|
H A D | OldServerSocketTest.java | 58 .getLocalHost(), 0); 65 + (new InetSocketAddress(InetAddress.getLocalHost(), 69 .getLocalHost(), portNumber))); 77 .getLocalHost(), portNumber); 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());
|
H A D | OldUnixSocketTest.java | 40 InetAddress.getLocalHost(), pingServer.getLocalPort())); 89 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(),
|
H A D | OldDatagramPacketTest.java | 28 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5, InetAddress.getLocalHost(), 1000);
|
H A D | SocketTest.java | 87 InetAddress host = InetAddress.getLocalHost();
|
/libcore/luni/src/test/java/libcore/javax/net/ |
H A D | ServerSocketFactoryTest.java | 75 Socket socket = new Socket(InetAddress.getLocalHost(), serverSocket.getLocalPort()); 77 InetAddress.getLocalHost(), serverSocket.getLocalPort()));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
H A D | SinkChannelTest.java | 466 ssc.socket().bind(new InetSocketAddress(InetAddress.getLocalHost(),49999)); 475 sc.connect(new InetSocketAddress(InetAddress.getLocalHost(),49999)); 490 ssc.socket().bind(new InetSocketAddress(InetAddress.getLocalHost(),49999)); 492 sc.connect(new InetSocketAddress(InetAddress.getLocalHost(),49999));
|
H A D | FileChannelTest.java | 2496 new InetSocketAddress(InetAddress.getLocalHost(), 0)); 2499 new InetSocketAddress(InetAddress.getLocalHost(), 0)); 2538 new InetSocketAddress(InetAddress.getLocalHost(), 0)); 2843 new InetSocketAddress(InetAddress.getLocalHost(), 0)); 2846 new InetSocketAddress(InetAddress.getLocalHost(), 0)); 2901 new InetSocketAddress(InetAddress.getLocalHost(), 0)); 2904 new InetSocketAddress(InetAddress.getLocalHost(), 0));
|
H A D | SocketChannelTest.java | 2119 new InetSocketAddress(InetAddress.getLocalHost(), 0), 5); 2120 Socket client = new Socket(InetAddress.getLocalHost(), server.socket()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | TestSSLContext.java | 178 InetAddress host = InetAddress.getLocalHost();
|
/libcore/luni/src/main/java/java/net/ |
H A D | InetAddress.java | 363 public static InetAddress getLocalHost() throws UnknownHostException { method in class:InetAddress
|
H A D | PlainSocketImpl.java | 188 InetAddress normalAddr = anAddr.isAnyLocalAddress() ? InetAddress.getLocalHost() : anAddr;
|
/libcore/luni/src/main/java/java/nio/ |
H A D | SocketChannelImpl.java | 169 normalAddr = InetAddress.getLocalHost();
|
/libcore/support/src/test/java/libcore/java/security/ |
H A D | TestKeyStore.java | 473 return new X500Principal("CN=" + InetAddress.getLocalHost().getHostName());
|