/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | ServerSocketChannelTest.java | 84 assertTrue(boundAddress.getAddress().isAnyLocalAddress()); in test_bind_nullBindsToAll() 85 assertFalse(boundAddress.getAddress().isLinkLocalAddress()); in test_bind_nullBindsToAll() 86 assertFalse(boundAddress.getAddress().isLoopbackAddress()); in test_bind_nullBindsToAll() 110 assertFalse(boundAddress.getAddress().isAnyLocalAddress()); in test_bind_loopback() 111 assertFalse(boundAddress.getAddress().isLinkLocalAddress()); in test_bind_loopback() 112 assertTrue(boundAddress.getAddress().isLoopbackAddress()); in test_bind_loopback()
|
D | DatagramChannelTest.java | 121 assertTrue(actualAddress.getAddress().isAnyLocalAddress()); in test_bind_any() 150 assertEquals(bindAddress, actualAddress.getAddress()); in test_bind()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | DatagramPacketTest.java | 71 assertEquals("Wrong host", InetAddress.getLocalHost(), dp.getAddress()); in test_Constructor$BIILjava_net_InetAddressI() 85 .getAddress()); in test_Constructor$BILjava_net_InetAddressI() 97 dp.getAddress()); in test_getAddress() 155 assertEquals("Incorrect address returned", ia, dp.getAddress()); in test_setAddressLjava_net_InetAddress() 233 new InetSocketAddress(thePacket.getAddress(), thePacket in test_Constructor$BILjava_net_SocketAddress() 274 new InetSocketAddress(thePacket.getAddress(), thePacket in test_Constructor$BIILjava_net_SocketAddress() 335 new InetSocketAddress(thePacket.getAddress(), thePacket in test_setSocketAddressLjava_net_SocketAddress()
|
D | InetSocketAddressTest.java | 52 assertNull(isa.getAddress()); in test_createUnresolvedLjava_lang_StringI() 104 assertEquals("Address", init.getAddress(), desr.getAddress());
|
D | InterfaceAddressTest.java | 84 InetAddress addr1 = interfaceAddr.getAddress(); in test_getAddress() 86 InetAddress addr2 = anotherInterfaceAddr.getAddress(); in test_getAddress() 98 InetAddress addr = interfaceAddr.getAddress(); in test_getBroadcast()
|
D | InetAddressTest.java | 63 byte[] addr = ia.getAddress(); in test_getAddress() 72 byte[] newBytes = address.getAddress(); in test_getAddress() 369 byte[] iaAddresss = initAddr.getAddress(); 370 byte[] deIAAddresss = desrAddr.getAddress();
|
D | DatagramSocketTest.java | 159 assertEquals(localHost, receive.getAddress()); in testConnect_connectToSelf() 198 assertEquals(Inet6Address.LOOPBACK, receive.getAddress()); in testConnect_echoServer() 245 assertEquals(Inet6Address.LOOPBACK, receive.getAddress()); in testConnect_connectDisconnectConnectThenSendRecv() 272 assertEquals(Inet6Address.LOOPBACK, receive.getAddress()); in testConnect_connectDisconnectThenSendRecv() 300 assertEquals(Inet6Address.LOOPBACK, receive.getAddress()); in testConnect_connectTwice() 731 assertEquals(localAddress.getAddress(), theSocket.getLocalAddress()); in test_getLocalSocketAddress_late_bind() 739 assertEquals(localAddress1.getAddress(), s.getLocalAddress()); in test_getLocalSocketAddress_unbound() 750 … ((InetSocketAddress) s.getLocalSocketAddress()).getAddress() instanceof Inet6Address); in test_getLocalSocketAddress_ANY()
|
D | Inet4AddressTest.java | 319 byte[] iaAddresss = initAddr.getAddress(); 320 byte[] deIAAddresss = desrAddr.getAddress();
|
/libcore/luni/src/main/java/java/net/ |
D | PlainDatagramSocketImpl.java | 134 InetAddress groupAddr = ((InetSocketAddress) addr).getAddress(); in joinGroup() 147 InetAddress groupAddr = ((InetSocketAddress) addr).getAddress(); in leaveGroup() 158 sender.ipaddress = packet.getAddress().getAddress(); in peek() 183 InetAddress address = isNativeConnected ? null : packet.getAddress(); in send() 206 connectedAddress = InetAddress.getByAddress(inetAddr.getAddress()); in connect()
|
D | DatagramPacket.java | 126 public synchronized InetAddress getAddress() { in getAddress() method in DatagramPacket 299 return new InetSocketAddress(getAddress(), getPort()); in getSocketAddress() 318 address = inetAddr.getAddress(); in setSocketAddress()
|
D | DatagramSocket.java | 289 InetAddress packAddr = pack.getAddress(); in send() 477 addr = inetAddr.getAddress(); in bind() 516 if (isa.getAddress() == null) { in connect() 524 this.address = isa.getAddress(); in connect()
|
D | PlainSocketImpl.java | 95 newImpl.address = peerAddress.getAddress(); in accept() 311 proxyName = addr.getAddress().getHostAddress(); in socksGetServerAddress() 427 request.setIP(address.getAddress()); in socksSendRequest() 456 connect(inetAddr.getAddress(), inetAddr.getPort(), timeout); in connect()
|
D | InterfaceAddress.java | 110 public InetAddress getAddress() { in getAddress() method in InterfaceAddress
|
D | MulticastSocket.java | 220 InetAddress groupAddr = ((InetSocketAddress) groupAddress).getAddress(); in checkJoinOrLeave() 250 InetAddress packAddr = packet.getAddress(); in send()
|
D | InetSocketAddress.java | 143 public final InetAddress getAddress() { in getAddress() method in InetSocketAddress
|
D | Inet6Address.java | 130 if (ia.getAddress().length == 16) { in getByAddress()
|
D | ServerSocket.java | 327 if ((addr = inetAddr.getAddress()) == null) { in bind()
|
/libcore/luni/src/main/java/java/nio/ |
D | DatagramChannelImpl.java | 126 localAddress = localSocketAddress.getAddress(); in onBind() 149 InetAddress remoteAddress = inetSocketAddress.getAddress(); in connect() 258 if (receivePacket.getAddress() != null) { in receiveImpl() 279 if (receivePacket.getAddress() != null) { in receiveDirectImpl() 293 if (isa.getAddress() == null) { in send() 306 sendCount = IoBridge.sendto(fd, source, 0, isa.getAddress(), isa.getPort()); in send() 518 channelImpl.connectAddress.getAddress(), in DatagramSocketAdapter() 557 inetSocketAddress.getAddress(), inetSocketAddress.getPort(), in connect()
|
D | SocketChannelImpl.java | 128 addr = connectAddress.getAddress(); in socket() 157 localAddress = localSocketAddress.getAddress(); in onBind() 181 InetAddress normalAddr = inetSocketAddress.getAddress(); in connect() 241 socket.onConnect(connectAddress.getAddress(), connectAddress.getPort()); in onConnectStatusChanged() 275 InetAddress inetAddress = connectAddress.getAddress(); in finishConnect() 291 socket.onConnect(connectAddress.getAddress(), connectAddress.getPort()); in finishConnect() 510 onConnect(channel.connectAddress.getAddress(), channel.connectAddress.getPort()); in SocketAdapter()
|
/libcore/luni/src/test/java/libcore/io/ |
D | OsTest.java | 120 assertEquals(address, isa.getAddress()); in checkSockName() 126 assertEquals(0, isa.getAddress().getAddress().length); in checkNoName() 236 Libcore.os.connect(clientFd, address.getAddress(), address.getPort()); in test_byteBufferPositions_sendto_recvfrom() 245 int sent = Libcore.os.sendto(clientFd, input, 0, address.getAddress(), address.getPort()); in test_byteBufferPositions_sendto_recvfrom() 251 sent = Libcore.os.sendto(clientFd, input, 0, address.getAddress(), address.getPort()); in test_byteBufferPositions_sendto_recvfrom()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | SocketTest.java | 128 assertEquals(inLocalAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses() 129 assertEquals(inRemoteAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses() 130 assertEquals(outLocalAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses() 131 assertEquals(outRemoteAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses() 162 assertTrue(inLocalAddressAfterClose.getAddress().isAnyLocalAddress()); in checkSocketLocalAndRemoteAddresses() 167 assertTrue(outLocalAddressAfterClose.getAddress().isAnyLocalAddress()); in checkSocketLocalAndRemoteAddresses() 352 assertTrue(localAddressAfterClose.getAddress().isAnyLocalAddress()); in testStateAfterClose()
|
D | InetSocketAddressTest.java | 123 assertEquals(ia, isa.getAddress()); in test_getAddress() 126 assertNotNull(isa.getAddress()); in test_getAddress()
|
D | DatagramSocketTest.java | 37 assertEquals(ds.getLocalAddress(), socketAddress.getAddress()); in testInitialState()
|
D | ServerSocketTest.java | 72 assertEquals(boundAddress.getAddress(), ss.getInetAddress()); in testStateAfterClose()
|
D | NetworkInterfaceTest.java | 86 if (ia.getAddress() instanceof Inet4Address) { in testLoopback()
|