/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() 130 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport, in test_createSocket_InetAddressIInetAddressI() 131 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 | 176 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_bindLjava_net_SocketAddress() 182 new InetSocketAddress(InetAddress.getLocalHost(), portNumber), in test_bindLjava_net_SocketAddress() 188 .getLocalHost(), 0); in test_bindLjava_net_SocketAddress() 193 .getLocalHost(), sport); in test_bindLjava_net_SocketAddress() 199 new InetSocketAddress(InetAddress.getLocalHost(), portNumber), in test_bindLjava_net_SocketAddress() 217 theAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0); in test_bindLjava_net_SocketAddress() 262 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); in test_close() 335 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(), in test_connectLjava_net_SocketAddress() 345 .getLocalHost(), server.getLocalPort()); in test_connectLjava_net_SocketAddress() 364 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 | 75 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); in run() 167 s = new ServerSocket(0, 10, InetAddress.getLocalHost()); in test_ConstructorIILjava_net_InetAddress() 279 InetAddress addr = InetAddress.getLocalHost(); in test_getInetAddress() 414 .getLocalHost(), 0); in test_bindLjava_net_SocketAddress() 421 + (new InetSocketAddress(InetAddress.getLocalHost(), in test_bindLjava_net_SocketAddress() 425 .getLocalHost(), portNumber))); in test_bindLjava_net_SocketAddress() 433 .getLocalHost(), portNumber); in test_bindLjava_net_SocketAddress() 452 theAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0); in test_bindLjava_net_SocketAddress() 498 .getLocalHost(), 0); in test_bindLjava_net_SocketAddressI() 505 + (new InetSocketAddress(InetAddress.getLocalHost(), in test_bindLjava_net_SocketAddressI() [all …]
|
D | DatagramSocketTest.java | 126 try (DatagramSocket ds = new DatagramSocket(0, InetAddress.getLocalHost())) { in test_ConstructorILjava_net_InetAddress() argument 129 .getLocalHost(), ds.getLocalAddress()); in test_ConstructorILjava_net_InetAddress() 139 InetAddress.getLocalHost(), 0); in test_close() 151 InetAddress inetAddress = InetAddress.getLocalHost(); in test_connectLjava_net_InetAddressI() 170 InetAddress localHost = InetAddress.getLocalHost(); in testConnect_connectToSelf() 330 InetAddress inetAddress = InetAddress.getLocalHost(); in test_disconnect() 350 InetAddress local = InetAddress.getLocalHost(); in test_getLocalAddress() 352 assertEquals(InetAddress.getByName(InetAddress.getLocalHost().getHostName()), in test_getLocalAddress() 376 theSocket.connect(InetAddress.getLocalHost(), portNumber); in test_getPort() 617 new InetSocketAddress(InetAddress.getLocalHost(), 0))) { in test_ConstructorLjava_net_SocketAddress() [all …]
|
D | InetAddressTest.java | 132 .getLocalHost()); in test_getLocalHost() 133 assertTrue("Incorrect host returned", InetAddress.getLocalHost() in test_getLocalHost() 144 DatagramSocket dg = new DatagramSocket(0, InetAddress.getLocalHost()); in test_getLocalHost_extended() 145 assertEquals("Incorrect host returned", InetAddress.getLocalHost(), dg.getLocalAddress()); in test_getLocalHost_extended() 281 theAddress = InetAddress.getLocalHost(); in test_getCanonicalHostName()
|
D | MulticastSocketTest.java | 649 mss.setInterface(InetAddress.getLocalHost()); in test_setInterfaceLjava_net_InetAddress() 659 " expected: " + InetAddress.getLocalHost(), in test_setInterfaceLjava_net_InetAddress() 660 mss.getInterface().equals(InetAddress.getLocalHost())); in test_setInterfaceLjava_net_InetAddress() 892 InetSocketAddress addr = new InetSocketAddress(Inet4Address.getLocalHost(), 0); in test_setReuseAddressZ() 894 addr = new InetSocketAddress(Inet4Address.getLocalHost(), theSocket1.getLocalPort()); in test_setReuseAddressZ() 909 addr = new InetSocketAddress(Inet4Address.getLocalHost(), 0); in test_setReuseAddressZ() 911 addr = new InetSocketAddress(Inet4Address.getLocalHost(), theSocket1.getLocalPort()); in test_setReuseAddressZ() 920 addr = new InetSocketAddress(Inet4Address.getLocalHost(), 0); in test_setReuseAddressZ() 922 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 | 67 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport); in testConstructor_InetAddressI() 73 getSSLSocket(InetAddress.getLocalHost(), sport + 1); in testConstructor_InetAddressI() 80 getSSLSocket(InetAddress.getLocalHost(), invalidPort[i]); in testConstructor_InetAddressI() 94 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport, in testConstructor_InetAddressIInetAddressI() 95 InetAddress.getLocalHost(), 0); in testConstructor_InetAddressIInetAddressI() 101 getSSLSocket(InetAddress.getLocalHost(), 8081, InetAddress.getLocalHost(), 8082); in testConstructor_InetAddressIInetAddressI() 107 getSSLSocket(InetAddress.getLocalHost(), -1, InetAddress.getLocalHost(), sport + 1); in testConstructor_InetAddressIInetAddressI() 112 getSSLSocket(InetAddress.getLocalHost(), sport, InetAddress.getLocalHost(), -1); in testConstructor_InetAddressIInetAddressI() 118 getSSLSocket(InetAddress.getLocalHost(), Integer.MIN_VALUE, in testConstructor_InetAddressIInetAddressI() 119 InetAddress.getLocalHost(), sport + 1); in testConstructor_InetAddressIInetAddressI() [all …]
|
D | SSLServerSocketTest.java | 181 mySSLServerSocket ssl = new mySSLServerSocket(0, 0, InetAddress.getLocalHost()); in testConstructor_IIInetAddress() 185 new mySSLServerSocket(port_invalid[i], 1, InetAddress.getLocalHost()); in testConstructor_IIInetAddress() 192 new mySSLServerSocket(ssl.getLocalPort(), 0, InetAddress.getLocalHost()); in testConstructor_IIInetAddress()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldSocketTest.java | 79 s = new Socket(InetAddress.getLocalHost().getHostName(), sport); in test_ConstructorLjava_lang_StringI() 120 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_ConstructorLjava_lang_StringILjava_net_InetAddressI1() 121 InetAddress.getLocalHost(), 0); in test_ConstructorLjava_lang_StringILjava_net_InetAddressI1() 127 Socket s1 = new Socket(InetAddress.getLocalHost(), sport, null, 0); in test_ConstructorLjava_lang_StringILjava_net_InetAddressI2() 129 Socket s2 = new Socket(InetAddress.getLocalHost(), sport, null, s1.getLocalPort()); in test_ConstructorLjava_lang_StringILjava_net_InetAddressI2() 148 try (Socket s = new Socket(InetAddress.getLocalHost().getHostName(), sport, true)) { in test_ConstructorLjava_lang_StringIZ() 152 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, false); in test_ConstructorLjava_lang_StringIZ() 158 s = new Socket(InetAddress.getLocalHost(), sport); in test_ConstructorLjava_net_InetAddressI() 167 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_ConstructorLjava_net_InetAddressILjava_net_InetAddressI() 168 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 | 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 | OldAuthenticatorTest.java | 29 InetAddress addr = InetAddress.getLocalHost(); in test_setDefault() 37 addr = InetAddress.getLocalHost(); in test_setDefault()
|
D | OldUnixSocketTest.java | 45 InetAddress.getLocalHost(), pingServer.getLocalPort())); in test_getInputStream() 94 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(), in test_connectLjava_net_SocketAddressI()
|
D | DatagramSocketTest.java | 77 s.connect(InetAddress.getLocalHost(), port); in testPendingException() 120 s.connect(InetAddress.getLocalHost(), port); in test_b31218085() 134 SocketAddress validAddress = new InetSocketAddress(InetAddress.getLocalHost(), 9999); in testForceConnectToThrowSocketException()
|
D | SocketTest.java | 111 InetAddress host = InetAddress.getLocalHost(); in checkSocketLocalAndRemoteAddresses() 373 s.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0)); in testStateAfterClose() 461 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); in testSocketWithProxySet() 576 new SocketThatFailOnClose(InetAddress.getLocalHost(), 1); 584 new SocketThatFailOnClose(InetAddress.getLocalHost(), 1, null, 0); 592 new SocketThatFailOnClose(InetAddress.getLocalHost(), 1, true);
|
D | OldDatagramPacketTest.java | 28 … DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5, InetAddress.getLocalHost(), 1000); in test_getPort()
|
D | ServerSocketTest.java | 74 ss.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0)); in testStateAfterClose()
|
/libcore/luni/src/test/java/libcore/javax/net/ |
D | ServerSocketFactoryTest.java | 79 Socket socket = new Socket(InetAddress.getLocalHost(), serverSocket.getLocalPort()); in testSocket() 81 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(), 0 /* any free port */)); in test_socketChannel_read_close() 476 sc.connect(new InetSocketAddress(InetAddress.getLocalHost(), localPort)); in test_socketChannel_read_close() 491 ssc.socket().bind(new InetSocketAddress(InetAddress.getLocalHost(), 0 /* any free port */)); in test_socketChannel_read_write() 494 sc.connect(new InetSocketAddress(InetAddress.getLocalHost(), localPort)); in test_socketChannel_read_write()
|
D | FileChannelTest.java | 2594 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferFromLReadableByteChannelJJ_DatagramChannel() 2597 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferFromLReadableByteChannelJJ_DatagramChannel() 2636 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferFromLReadableByteChannelJJ_SocketChannel() 2941 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferToJJLWritableByteChannel_SocketChannel() 2944 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferToJJLWritableByteChannel_SocketChannel() 2999 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferToJJLWritableByteChannel_DatagramChannel() 3002 new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_transferToJJLWritableByteChannel_DatagramChannel()
|
/libcore/ojluni/src/test/java/net/Socket/ |
D | ShutdownInput.java | 48 InetAddress iaddr = InetAddress.getLocalHost(); in main()
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | InetAddress.annotated.java | 88 public static java.net.InetAddress getLocalHost() throws java.net.UnknownHostException { throw new … in getLocalHost() method in InetAddress
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | InetAddress.java | 162 public static java.net.InetAddress getLocalHost() throws java.net.UnknownHostException { in getLocalHost() method in InetAddress
|