Home
last modified time | relevance | path

Searched refs:getAddress (Results 1 – 25 of 39) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/nio/channels/
DServerSocketChannelTest.java84 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()
DDatagramChannelTest.java121 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/
DDatagramPacketTest.java71 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()
DInetSocketAddressTest.java52 assertNull(isa.getAddress()); in test_createUnresolvedLjava_lang_StringI()
104 assertEquals("Address", init.getAddress(), desr.getAddress());
DInterfaceAddressTest.java84 InetAddress addr1 = interfaceAddr.getAddress(); in test_getAddress()
86 InetAddress addr2 = anotherInterfaceAddr.getAddress(); in test_getAddress()
98 InetAddress addr = interfaceAddr.getAddress(); in test_getBroadcast()
DInetAddressTest.java63 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();
DDatagramSocketTest.java159 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()
DInet4AddressTest.java319 byte[] iaAddresss = initAddr.getAddress();
320 byte[] deIAAddresss = desrAddr.getAddress();
/libcore/luni/src/main/java/java/net/
DPlainDatagramSocketImpl.java134 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()
DDatagramPacket.java126 public synchronized InetAddress getAddress() { in getAddress() method in DatagramPacket
299 return new InetSocketAddress(getAddress(), getPort()); in getSocketAddress()
318 address = inetAddr.getAddress(); in setSocketAddress()
DDatagramSocket.java289 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()
DPlainSocketImpl.java95 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()
DInterfaceAddress.java110 public InetAddress getAddress() { in getAddress() method in InterfaceAddress
DMulticastSocket.java220 InetAddress groupAddr = ((InetSocketAddress) groupAddress).getAddress(); in checkJoinOrLeave()
250 InetAddress packAddr = packet.getAddress(); in send()
DInetSocketAddress.java143 public final InetAddress getAddress() { in getAddress() method in InetSocketAddress
DInet6Address.java130 if (ia.getAddress().length == 16) { in getByAddress()
DServerSocket.java327 if ((addr = inetAddr.getAddress()) == null) { in bind()
/libcore/luni/src/main/java/java/nio/
DDatagramChannelImpl.java126 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()
DSocketChannelImpl.java128 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/
DOsTest.java120 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/
DSocketTest.java128 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()
DInetSocketAddressTest.java123 assertEquals(ia, isa.getAddress()); in test_getAddress()
126 assertNotNull(isa.getAddress()); in test_getAddress()
DDatagramSocketTest.java37 assertEquals(ds.getLocalAddress(), socketAddress.getAddress()); in testInitialState()
DServerSocketTest.java72 assertEquals(boundAddress.getAddress(), ss.getInetAddress()); in testStateAfterClose()
DNetworkInterfaceTest.java86 if (ia.getAddress() instanceof Inet4Address) { in testLoopback()

12