Home
last modified time | relevance | path

Searched refs:getLocalAddress (Results 1 – 25 of 42) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousServerSocketChannelTest.java55 assertNull(assc.getLocalAddress()); in test_bind()
57 assertNotNull(assc.getLocalAddress()); in test_bind()
70 assertNull(assc.getLocalAddress()); in test_bind_null()
72 assertNotNull(assc.getLocalAddress()); in test_bind_null()
89 assertNull(assc.getLocalAddress()); in test_bind_unresolvedAddress()
101 assertNull(assc.getLocalAddress()); in test_bind_used()
114 s.connect(assc.getLocalAddress()); in test_futureAccept()
119 assertNotNull(asc.getLocalAddress()); in test_futureAccept()
120 assertEquals(asc.getLocalAddress(), s.getRemoteSocketAddress()); in test_futureAccept()
139 s.connect(assc.getLocalAddress()); in test_completionHandlerAccept()
[all …]
DDatagramChannelTest.java92 assertTrue(socket.getLocalAddress().isAnyLocalAddress()); in testInitialState()
201 ((InetSocketAddress)(channel.getLocalAddress())).getAddress()); in test_bind()
202 assertTrue(((InetSocketAddress)(channel.getLocalAddress())).getPort() > 0); in test_bind()
211 ((InetSocketAddress)(channel.getLocalAddress())).getPort()); in test_bind()
233 clientChannel.connect(serverChannel.getLocalAddress()); in test_getRemoteAddress()
236 assertEquals(((InetSocketAddress) (serverChannel.getLocalAddress())).getPort(), in test_getRemoteAddress()
DAsynchronousSocketChannelTest.java62 assertNull(asc.getLocalAddress()); in test_connect()
70 assertNotNull(asc.getLocalAddress()); in test_connect()
71 assertEquals(asc.getLocalAddress(), s.getRemoteSocketAddress()); in test_connect()
85 assertNull(asc.getLocalAddress()); in test_bind()
91 assertNotNull(asc.getLocalAddress()); in test_bind()
110 assertNull(asc.getLocalAddress()); in test_bind_unsupportedAddress()
126 assertNull(asc.getLocalAddress()); in test_bind_unresolvedAddress()
141 assertNull(asc.getLocalAddress()); in test_bind_usedAddress()
153 assertNotNull(asc.getLocalAddress()); in test_bind_null()
185 asc.getLocalAddress(); in test_close()
DDatagramChannelMulticastTest.java135 assertNull(dc.getLocalAddress()); in test_open()
142 assertNotNull(dc.getLocalAddress()); in test_bind_null()
148 dc.getLocalAddress(); in test_bind_null()
236 InetSocketAddress localAddress = (InetSocketAddress) receiverChannel.getLocalAddress(); in check_joinAnySource()
307 assertNull(dc.getLocalAddress()); in test_joinAnySource_doesNotCauseBind()
358 InetSocketAddress localAddress = (InetSocketAddress) dc.getLocalAddress(); in test_joinAnySource_networkInterfaces()
448 InetSocketAddress localAddress = (InetSocketAddress) dc.getLocalAddress(); in check_joinAnySource_multicastLoopOption()
771 InetSocketAddress sendingAddress = (InetSocketAddress) sendingChannel.getLocalAddress(); in check_block_filtersAsExpected()
778 (InetSocketAddress) receivingChannel.getLocalAddress(); in check_block_filtersAsExpected()
1077 InetSocketAddress sendingAddress = (InetSocketAddress) sendingChannel.getLocalAddress(); in check_joinSourceSpecific()
[all …]
DServerSocketChannelTest.java216 ((InetSocketAddress)(ssc.getLocalAddress())).getAddress()); in bind_socketAddress()
217 assertTrue(((InetSocketAddress)(ssc.getLocalAddress())).getPort() > 0); in bind_socketAddress()
221 ((InetSocketAddress)(ssc.getLocalAddress())).getPort())); in bind_socketAddress()
DSocketChannelTest.java153 assertTrue(socket.getLocalAddress().isAnyLocalAddress()); in test_open_initialState()
313 ((InetSocketAddress) (sc.getLocalAddress())).getAddress()); in test_bind()
314 assertTrue(((InetSocketAddress) (sc.getLocalAddress())).getPort() > 0); in test_bind()
323 ((InetSocketAddress) (sc.getLocalAddress())).getPort()); in test_bind()
/libcore/luni/src/test/java/libcore/java/net/
DOldAndroidDatagramTest.java169 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in test_54072_DatagramSocket()
171 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in test_54072_DatagramSocket()
173 assertNull(s.getLocalAddress()); in test_54072_DatagramSocket()
179 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in test_54072_DatagramChannel()
181 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in test_54072_DatagramChannel()
183 assertNull(s.getLocalAddress()); in test_54072_DatagramChannel()
DDatagramSocketTest.java46 assertTrue(ds.getLocalAddress().isAnyLocalAddress()); in testInitialState()
49 assertEquals(ds.getLocalAddress(), socketAddress.getAddress()); in testInitialState()
66 assertNull(ds.getLocalAddress()); in testStateAfterClose()
DSocketTest.java80 assertTrue(s.getLocalAddress().toString(), s.getLocalAddress().isLoopbackAddress()); in test_getLocalAddress_after_close()
87 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in test_getLocalAddress_after_close()
359 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in testInitialState()
380 assertTrue(s.getLocalAddress().isAnyLocalAddress()); in testStateAfterClose()
/libcore/ojluni/src/main/java/java/nio/channels/
DNetworkChannel.java104 SocketAddress getLocalAddress() throws IOException; in getLocalAddress() method
DServerSocketChannel.java290 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress() method in ServerSocketChannel
DAsynchronousServerSocketChannel.java327 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress() method in AsynchronousServerSocketChannel
DDatagramChannel.java590 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress() method in DatagramChannel
DSocketChannel.java524 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress() method in SocketChannel
DAsynchronousSocketChannel.java686 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress() method in AsynchronousSocketChannel
/libcore/ojluni/src/main/java/sun/net/
DNetworkClient.java200 protected InetAddress getLocalAddress() throws IOException { in getLocalAddress() method in NetworkClient
206 return serverSocket.getLocalAddress(); in getLocalAddress()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketTest.java129 .getLocalHost(), ds.getLocalAddress()); in test_ConstructorILjava_net_InetAddress()
353 ds.getLocalAddress()); in test_getLocalAddress()
359 s.getLocalAddress() instanceof Inet6Address); in test_getLocalAddress()
621 .getLocalHost(), ds.getLocalAddress()); in test_ConstructorLjava_net_SocketAddress()
758 assertEquals(localAddress.getAddress(), theSocket.getLocalAddress()); in test_getLocalSocketAddress_late_bind()
766 assertEquals(localAddress1.getAddress(), s.getLocalAddress()); in test_getLocalSocketAddress_unbound()
776 Inet6Address.ANY, s.getLocalAddress()); in test_getLocalSocketAddress_ANY()
779 assertEquals(Inet6Address.ANY, s.getLocalAddress()); in test_getLocalSocketAddress_ANY()
DInetAddressTest.java134 .equals(dg.getLocalAddress())); in test_getLocalHost()
145 assertEquals("Incorrect host returned", InetAddress.getLocalHost(), dg.getLocalAddress()); in test_getLocalHost_extended()
DSocketTest.java254 assertEquals(address, socket.getLocalAddress()); in test_bindLjava_net_SocketAddress_Proxy()
556 new Socket("127.0.0.1", serverPort, theSocket.getLocalAddress(), in test_ConstructorLjava_lang_StringILjava_net_InetAddressI()
716 assertTrue("Returned incorrect InetAddress", client.getLocalAddress() in test_getLocalAddress()
722 assertTrue(client.getLocalAddress().isAnyLocalAddress()); in test_getLocalAddress()
775 assertTrue(client.getLocalAddress().isAnyLocalAddress()); in test_getLocalSocketAddress()
1461 …InetSocketAddress localAddress1 = new InetSocketAddress(theSocket.getLocalAddress(), theSocket.get… in test_setReuseAddressZ()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DMockServerSocketChannel.java75 public SocketAddress getLocalAddress() throws IOException { in getLocalAddress() method in MockServerSocketChannel
DMockSocketChannel.java126 public SocketAddress getLocalAddress() throws IOException { in getLocalAddress() method in MockSocketChannel
DMockDatagramChannel.java136 public SocketAddress getLocalAddress() throws IOException { in getLocalAddress() method in MockDatagramChannel
/libcore/ojluni/src/main/java/sun/nio/ch/
DDatagramSocketAdaptor.java226 public InetAddress getLocalAddress() { in getLocalAddress() method in DatagramSocketAdaptor
248 SocketAddress local = dc.getLocalAddress(); in getLocalPort()
/libcore/ojluni/annotations/mmodule/java/net/
DDatagramSocket.annotated.java70 public java.net.InetAddress getLocalAddress() { throw new RuntimeException("Stub!"); } in getLocalAddress() method in DatagramSocket
/libcore/ojluni/annotations/hiddenapi/java/net/
DDatagramSocket.java127 public java.net.InetAddress getLocalAddress() { in getLocalAddress() method in DatagramSocket

12