Home
last modified time | relevance | path

Searched refs:socketAddress (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DInetSocketAddressTest.java177 InetSocketAddress socketAddress = new InetSocketAddress(inetAddress, 1234); in test_getHostString_cachingBehavior() local
178 assertEquals("127.0.0.1", socketAddress.getHostString()); in test_getHostString_cachingBehavior()
179 assertEquals("localhost", socketAddress.getHostName()); in test_getHostString_cachingBehavior()
180 assertEquals("localhost", socketAddress.getHostString()); in test_getHostString_cachingBehavior()
183 socketAddress = new InetSocketAddress(inetAddress, 1234); in test_getHostString_cachingBehavior()
184 assertEquals("127.0.0.1", socketAddress.getHostString()); in test_getHostString_cachingBehavior()
185 assertEquals("localhost", socketAddress.getHostName()); in test_getHostString_cachingBehavior()
186 assertEquals("localhost", socketAddress.getHostString()); in test_getHostString_cachingBehavior()
DServerSocketConcurrentCloseTest.java186 private final SocketAddress socketAddress; field in ServerSocketConcurrentCloseTest.ClientRunnable
192 SocketAddress socketAddress, ServerRunnable serverRunnable) { in ClientRunnable() argument
193 this.socketAddress = socketAddress; in ClientRunnable()
203 socket.connect(socketAddress, /* timeout (msec) */ 10); in run()
DDatagramSocketTest.java47 InetSocketAddress socketAddress = (InetSocketAddress) ds.getLocalSocketAddress(); in testInitialState() local
48 assertEquals(ds.getLocalPort(), socketAddress.getPort()); in testInitialState()
49 assertEquals(ds.getLocalAddress(), socketAddress.getAddress()); in testInitialState()
DFtpURLConnectionTest.java396 SocketAddress socketAddress = serverSocket.getLocalSocketAddress(); in CountingProxy() local
397 proxy = new Proxy(Proxy.Type.HTTP, socketAddress); in CountingProxy()
398 String threadName = getClass().getSimpleName() + " @ " + socketAddress; in CountingProxy()
DOldSocketTest.java1931 InetSocketAddress socketAddress = new InetSocketAddress("unknownhost", 12345); in test_connect_unknownhost() local
1933 socket.connect(socketAddress); in test_connect_unknownhost()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DDatagramChannelTest.java197 InetSocketAddress socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind() local
199 channel.bind(socketAddress); in test_bind()
200 assertEquals(socketAddress.getAddress(), in test_bind()
205 channel.bind(socketAddress); in test_bind()
210 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, in test_bind()
213 dc.bind(socketAddress); in test_bind()
218 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind()
220 channel.bind(socketAddress); in test_bind()
226 InetSocketAddress socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_getRemoteAddress() local
229 serverChannel.bind(socketAddress); in test_getRemoteAddress()
[all …]
DSocketChannelTest.java309 InetSocketAddress socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind() local
311 sc.bind(socketAddress); in test_bind()
312 assertEquals(socketAddress.getAddress(), in test_bind()
317 sc.bind(socketAddress); in test_bind()
322 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, in test_bind()
325 sc1.bind(socketAddress); in test_bind()
331 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind()
333 sc.bind(socketAddress); in test_bind()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java692 SocketAddress socketAddress = Libcore.os.getsockname(fd); in getLocalInetSocketAddress() local
699 if ((socketAddress != null) && !(socketAddress instanceof InetSocketAddress)) { in getLocalInetSocketAddress()
701 + "to be an InetSocketAddress, got " + socketAddress.getClass()); in getLocalInetSocketAddress()
703 return (InetSocketAddress) socketAddress; in getLocalInetSocketAddress()