/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | AsynchronousServerSocketChannelTest.java | 55 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 …]
|
D | DatagramChannelTest.java | 92 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()
|
D | AsynchronousSocketChannelTest.java | 62 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()
|
D | DatagramChannelMulticastTest.java | 135 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 …]
|
D | ServerSocketChannelTest.java | 216 ((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()
|
D | SocketChannelTest.java | 153 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/ |
D | OldAndroidDatagramTest.java | 169 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()
|
D | DatagramSocketTest.java | 46 assertTrue(ds.getLocalAddress().isAnyLocalAddress()); in testInitialState() 49 assertEquals(ds.getLocalAddress(), socketAddress.getAddress()); in testInitialState() 66 assertNull(ds.getLocalAddress()); in testStateAfterClose()
|
D | SocketTest.java | 80 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/ |
D | NetworkChannel.java | 104 SocketAddress getLocalAddress() throws IOException; in getLocalAddress() method
|
D | ServerSocketChannel.java | 290 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress() method in ServerSocketChannel
|
D | AsynchronousServerSocketChannel.java | 327 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress() method in AsynchronousServerSocketChannel
|
D | DatagramChannel.java | 590 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress() method in DatagramChannel
|
D | SocketChannel.java | 524 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress() method in SocketChannel
|
D | AsynchronousSocketChannel.java | 686 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress() method in AsynchronousSocketChannel
|
/libcore/ojluni/src/main/java/sun/net/ |
D | NetworkClient.java | 200 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/ |
D | DatagramSocketTest.java | 129 .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()
|
D | InetAddressTest.java | 134 .equals(dg.getLocalAddress())); in test_getLocalHost() 145 assertEquals("Incorrect host returned", InetAddress.getLocalHost(), dg.getLocalAddress()); in test_getLocalHost_extended()
|
D | SocketTest.java | 254 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/ |
D | MockServerSocketChannel.java | 75 public SocketAddress getLocalAddress() throws IOException { in getLocalAddress() method in MockServerSocketChannel
|
D | MockSocketChannel.java | 126 public SocketAddress getLocalAddress() throws IOException { in getLocalAddress() method in MockSocketChannel
|
D | MockDatagramChannel.java | 136 public SocketAddress getLocalAddress() throws IOException { in getLocalAddress() method in MockDatagramChannel
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | DatagramSocketAdaptor.java | 226 public InetAddress getLocalAddress() { in getLocalAddress() method in DatagramSocketAdaptor 248 SocketAddress local = dc.getLocalAddress(); in getLocalPort()
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | DatagramSocket.annotated.java | 70 public java.net.InetAddress getLocalAddress() { throw new RuntimeException("Stub!"); } in getLocalAddress() method in DatagramSocket
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | DatagramSocket.java | 127 public java.net.InetAddress getLocalAddress() { in getLocalAddress() method in DatagramSocket
|