/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ |
D | SocketFactoryTest.java | 63 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport); in test_createSocket_StringI() 75 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i]); in test_createSocket_StringI() 82 sf.createSocket(InetAddress.getLocalHost().getHostName(), s.getLocalPort()); in test_createSocket_StringI() 89 f.createSocket(InetAddress.getLocalHost().getHostName(), 8082); in test_createSocket_StringI() 100 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport); in test_createSocket_InetAddressI() 106 sf.createSocket(InetAddress.getLocalHost(), invalidPorts[i]); in test_createSocket_InetAddressI() 113 sf.createSocket(InetAddress.getLocalHost(), s.getLocalPort()); in test_createSocket_InetAddressI() 120 f.createSocket(InetAddress.getLocalHost(), 8081); in test_createSocket_InetAddressI() 131 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport, in test_createSocket_InetAddressIInetAddressI() 132 InetAddress.getLocalHost(), 0); in test_createSocket_InetAddressIInetAddressI() [all …]
|
D | ServerSocketFactoryTest.java | 89 ServerSocket ss = sf.createServerSocket(0, 0, InetAddress.getLocalHost()); in test_createServerSocket_IIInetAddress() 93 sf.createServerSocket(ss.getLocalPort(), 0, InetAddress.getLocalHost()); in test_createServerSocket_IIInetAddress() 101 sf.createServerSocket(Integer.MAX_VALUE, 0, InetAddress.getLocalHost()); in test_createServerSocket_IIInetAddress()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | SocketTest.java | 174 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_bindLjava_net_SocketAddress() 180 new InetSocketAddress(InetAddress.getLocalHost(), portNumber), in test_bindLjava_net_SocketAddress() 186 .getLocalHost(), 0); in test_bindLjava_net_SocketAddress() 191 .getLocalHost(), sport); in test_bindLjava_net_SocketAddress() 197 new InetSocketAddress(InetAddress.getLocalHost(), portNumber), in test_bindLjava_net_SocketAddress() 215 theAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0); in test_bindLjava_net_SocketAddress() 260 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); in test_close() 333 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(), in test_connectLjava_net_SocketAddress() 343 .getLocalHost(), server.getLocalPort()); in test_connectLjava_net_SocketAddress() 362 boundAddress = new InetSocketAddress(InetAddress.getLocalHost(), server in test_connectLjava_net_SocketAddress() [all …]
|
D | DatagramPacketTest.java | 70 InetAddress.getLocalHost(), 0); in test_Constructor$BIILjava_net_InetAddressI() 71 assertEquals("Wrong host", InetAddress.getLocalHost(), dp.getAddress()); in test_Constructor$BIILjava_net_InetAddressI() 83 InetAddress.getLocalHost(), 0); in test_Constructor$BILjava_net_InetAddressI() 84 assertEquals("Wrong address", InetAddress.getLocalHost(), dp in test_Constructor$BILjava_net_InetAddressI() 95 InetAddress.getLocalHost(), 0); in test_getAddress() 96 assertEquals("Incorrect address returned", InetAddress.getLocalHost(), in test_getAddress() 130 InetAddress.getLocalHost(), 1000); in test_getPort() 133 final InetAddress localhost = InetAddress.getLocalHost(); in test_getPort() 153 InetAddress.getLocalHost(), 0); in test_setAddressLjava_net_InetAddress() 192 InetAddress.getLocalHost(), 1000); in test_setPortI() [all …]
|
D | ServerSocketTest.java | 64 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); in run() 156 s = new ServerSocket(0, 10, InetAddress.getLocalHost()); in test_ConstructorIILjava_net_InetAddress() 264 InetAddress addr = InetAddress.getLocalHost(); in test_getInetAddress() 385 .getLocalHost(), 0); in test_bindLjava_net_SocketAddress() 392 + (new InetSocketAddress(InetAddress.getLocalHost(), in test_bindLjava_net_SocketAddress() 396 .getLocalHost(), portNumber))); in test_bindLjava_net_SocketAddress() 404 .getLocalHost(), portNumber); in test_bindLjava_net_SocketAddress() 423 theAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0); in test_bindLjava_net_SocketAddress() 469 .getLocalHost(), 0); in test_bindLjava_net_SocketAddressI() 476 + (new InetSocketAddress(InetAddress.getLocalHost(), in test_bindLjava_net_SocketAddressI() [all …]
|
D | DatagramSocketTest.java | 106 DatagramSocket ds = new DatagramSocket(0, InetAddress.getLocalHost()); in test_ConstructorILjava_net_InetAddress() 109 .getLocalHost(), ds.getLocalAddress()); in test_ConstructorILjava_net_InetAddress() 118 InetAddress.getLocalHost(), 0); in test_close() 130 InetAddress inetAddress = InetAddress.getLocalHost(); in test_connectLjava_net_InetAddressI() 146 InetAddress localHost = InetAddress.getLocalHost(); in testConnect_connectToSelf() 321 InetAddress inetAddress = InetAddress.getLocalHost(); in test_disconnect() 338 InetAddress local = InetAddress.getLocalHost(); in test_getLocalAddress() 340 …assertEquals(InetAddress.getByName(InetAddress.getLocalHost().getHostName()), ds.getLocalAddress()… in test_getLocalAddress() 360 theSocket.connect(InetAddress.getLocalHost(), portNumber); in test_getPort() 594 InetAddress.getLocalHost(), 0)); in test_ConstructorLjava_net_SocketAddress() [all …]
|
D | InetAddressTest.java | 149 .getLocalHost()); in test_getLocalHost() 150 assertTrue("Incorrect host returned", InetAddress.getLocalHost() in test_getLocalHost() 161 DatagramSocket dg = new DatagramSocket(0, InetAddress.getLocalHost()); in test_getLocalHost_extended() 162 assertEquals("Incorrect host returned", InetAddress.getLocalHost(), dg.getLocalAddress()); in test_getLocalHost_extended() 298 theAddress = InetAddress.getLocalHost(); in test_getCanonicalHostName()
|
D | MulticastSocketTest.java | 622 mss.setInterface(InetAddress.getLocalHost()); in test_setInterfaceLjava_net_InetAddress() 632 " expected: " + InetAddress.getLocalHost(), in test_setInterfaceLjava_net_InetAddress() 633 mss.getInterface().equals(InetAddress.getLocalHost())); in test_setInterfaceLjava_net_InetAddress() 865 InetSocketAddress addr = new InetSocketAddress(Inet4Address.getLocalHost(), 0); in test_setReuseAddressZ() 867 addr = new InetSocketAddress(Inet4Address.getLocalHost(), theSocket1.getLocalPort()); in test_setReuseAddressZ() 882 addr = new InetSocketAddress(Inet4Address.getLocalHost(), 0); in test_setReuseAddressZ() 884 addr = new InetSocketAddress(Inet4Address.getLocalHost(), theSocket1.getLocalPort()); in test_setReuseAddressZ() 893 addr = new InetSocketAddress(Inet4Address.getLocalHost(), 0); in test_setReuseAddressZ() 895 addr = new InetSocketAddress(Inet4Address.getLocalHost(), theSocket1.getLocalPort()); in test_setReuseAddressZ()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLSocketTest.java | 66 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport); in testConstructor_InetAddressI() 72 getSSLSocket(InetAddress.getLocalHost(), sport + 1); in testConstructor_InetAddressI() 79 getSSLSocket(InetAddress.getLocalHost(), invalidPort[i]); in testConstructor_InetAddressI() 93 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport, in testConstructor_InetAddressIInetAddressI() 94 InetAddress.getLocalHost(), 0); in testConstructor_InetAddressIInetAddressI() 100 getSSLSocket(InetAddress.getLocalHost(), 8081, InetAddress.getLocalHost(), 8082); in testConstructor_InetAddressIInetAddressI() 106 getSSLSocket(InetAddress.getLocalHost(), -1, InetAddress.getLocalHost(), sport + 1); in testConstructor_InetAddressIInetAddressI() 111 getSSLSocket(InetAddress.getLocalHost(), sport, InetAddress.getLocalHost(), -1); in testConstructor_InetAddressIInetAddressI() 117 getSSLSocket(InetAddress.getLocalHost(), Integer.MIN_VALUE, in testConstructor_InetAddressIInetAddressI() 118 InetAddress.getLocalHost(), sport + 1); in testConstructor_InetAddressIInetAddressI() [all …]
|
D | SSLServerSocketTest.java | 179 mySSLServerSocket ssl = new mySSLServerSocket(0, 0, InetAddress.getLocalHost()); in testConstructor_IIInetAddress() 183 new mySSLServerSocket(port_invalid[i], 1, InetAddress.getLocalHost()); in testConstructor_IIInetAddress() 190 new mySSLServerSocket(ssl.getLocalPort(), 0, InetAddress.getLocalHost()); in testConstructor_IIInetAddress()
|
D | SSLSessionTest.java | 55 assertEquals(InetAddress.getLocalHost().getHostName(), s.getPeerHost()); in test_getPeerHost()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldSocketTest.java | 75 s = new Socket(InetAddress.getLocalHost().getHostName(), sport); in test_ConstructorLjava_lang_StringI() 116 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_ConstructorLjava_lang_StringILjava_net_InetAddressI1() 117 InetAddress.getLocalHost(), 0); in test_ConstructorLjava_lang_StringILjava_net_InetAddressI1() 123 Socket s1 = new Socket(InetAddress.getLocalHost(), sport, null, 0); in test_ConstructorLjava_lang_StringILjava_net_InetAddressI2() 125 Socket s2 = new Socket(InetAddress.getLocalHost(), sport, null, s1.getLocalPort()); in test_ConstructorLjava_lang_StringILjava_net_InetAddressI2() 144 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, true); in test_ConstructorLjava_lang_StringIZ() 147 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, false); in test_ConstructorLjava_lang_StringIZ() 153 s = new Socket(InetAddress.getLocalHost(), sport); in test_ConstructorLjava_net_InetAddressI() 162 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_ConstructorLjava_net_InetAddressILjava_net_InetAddressI() 163 InetAddress.getLocalHost(), 0); in test_ConstructorLjava_net_InetAddressILjava_net_InetAddressI() [all …]
|
D | OldServerSocketTest.java | 58 .getLocalHost(), 0); in performancePreferenceTest() 65 + (new InetSocketAddress(InetAddress.getLocalHost(), in performancePreferenceTest() 69 .getLocalHost(), portNumber))); in performancePreferenceTest() 77 .getLocalHost(), portNumber); in performancePreferenceTest() 109 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); in run() 162 ServerSocket ss = new ServerSocket(0, 10, InetAddress.getLocalHost()); in test_ConstructorIILjava_net_InetAddress() 164 new ServerSocket(ss.getLocalPort(), 10, InetAddress.getLocalHost()); in test_ConstructorIILjava_net_InetAddress() 171 new ServerSocket(65536, 10, InetAddress.getLocalHost()); in test_ConstructorIILjava_net_InetAddress()
|
D | OldAuthenticatorTest.java | 29 InetAddress addr = InetAddress.getLocalHost(); in test_setDefault() 37 addr = InetAddress.getLocalHost(); in test_setDefault()
|
D | OldAndroidDatagramTest.java | 71 packet.setAddress(InetAddress.getLocalHost()); in run() 125 reflector = new Reflector(1234, InetAddress.getLocalHost()); in testDatagram() 131 socket = new DatagramSocket(2345, InetAddress.getLocalHost()); in testDatagram() 138 packet.setAddress(InetAddress.getLocalHost()); in testDatagram()
|
D | OldUnixSocketTest.java | 40 InetAddress.getLocalHost(), pingServer.getLocalPort())); in test_getInputStream() 89 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(), in test_connectLjava_net_SocketAddressI()
|
D | OldDatagramPacketTest.java | 28 … DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5, InetAddress.getLocalHost(), 1000); in test_getPort()
|
D | ServerSocketTest.java | 66 ss.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0)); in testStateAfterClose()
|
D | SocketTest.java | 88 InetAddress host = InetAddress.getLocalHost(); in checkSocketLocalAndRemoteAddresses() 341 s.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0)); in testStateAfterClose()
|
/libcore/luni/src/test/java/libcore/javax/net/ |
D | ServerSocketFactoryTest.java | 75 Socket socket = new Socket(InetAddress.getLocalHost(), serverSocket.getLocalPort()); in testSocket() 77 InetAddress.getLocalHost(), serverSocket.getLocalPort())); in testSocket()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SinkChannelTest.java | 466 ssc.socket().bind(new InetSocketAddress(InetAddress.getLocalHost(),49999)); in test_socketChannel_read_close() 475 sc.connect(new InetSocketAddress(InetAddress.getLocalHost(),49999)); in test_socketChannel_read_close() 490 ssc.socket().bind(new InetSocketAddress(InetAddress.getLocalHost(),49999)); in test_socketChannel_read_write() 492 sc.connect(new InetSocketAddress(InetAddress.getLocalHost(),49999)); in test_socketChannel_read_write()
|
D | FileChannelTest.java | 2496 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferFromLReadableByteChannelJJ_DatagramChannel() 2499 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferFromLReadableByteChannelJJ_DatagramChannel() 2538 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferFromLReadableByteChannelJJ_SocketChannel() 2843 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferToJJLWritableByteChannel_SocketChannel() 2846 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferToJJLWritableByteChannel_SocketChannel() 2901 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferToJJLWritableByteChannel_DatagramChannel() 2904 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferToJJLWritableByteChannel_DatagramChannel()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLContext.java | 185 InetAddress host = InetAddress.getLocalHost(); in create()
|
/libcore/luni/src/main/java/java/net/ |
D | PlainSocketImpl.java | 179 InetAddress normalAddr = anAddr.isAnyLocalAddress() ? InetAddress.getLocalHost() : anAddr; in connect()
|
D | InetAddress.java | 394 public static InetAddress getLocalHost() throws UnknownHostException { in getLocalHost() method in InetAddress
|