/libcore/ojluni/src/main/java/java/net/ |
D | Inet4Address.java | 172 inet.holder().address = holder().getAddress(); in writeReplace() 193 return ((holder().getAddress() & 0xf0000000) == 0xe0000000); in isMulticastAddress() 202 return holder().getAddress() == 0; in isAnyLocalAddress() 213 byte[] byteAddr = getAddress(); in isLoopbackAddress() 228 int address = holder().getAddress(); in isLinkLocalAddress() 244 int address = holder().getAddress(); in isSiteLocalAddress() 261 byte[] byteAddr = getAddress(); in isMCGlobal() 288 int address = holder().getAddress(); in isMCLinkLocal() 303 int address = holder().getAddress(); in isMCSiteLocal() 318 int address = holder().getAddress(); in isMCOrgLocal() [all …]
|
D | MulticastSocket.java | 404 checkAddress(((InetSocketAddress)mcastaddr).getAddress(), "joinGroup"); in joinGroup() 407 security.checkMulticast(((InetSocketAddress)mcastaddr).getAddress()); in joinGroup() 410 if (!((InetSocketAddress)mcastaddr).getAddress().isMulticastAddress()) { in joinGroup() 451 checkAddress(((InetSocketAddress)mcastaddr).getAddress(), "leaveGroup"); in leaveGroup() 454 security.checkMulticast(((InetSocketAddress)mcastaddr).getAddress()); in leaveGroup() 457 if (!((InetSocketAddress)mcastaddr).getAddress().isMulticastAddress()) { in leaveGroup() 673 checkAddress(p.getAddress(), "send"); in send() 682 if (p.getAddress().isMulticastAddress()) { in send() 683 security.checkMulticast(p.getAddress(), ttl); in send() 685 security.checkConnect(p.getAddress().getHostAddress(), in send() [all …]
|
D | SocksSocketImpl.java | 264 if (!(endpoint.getAddress() instanceof Inet4Address)) { in connectV4() 271 out.write(endpoint.getAddress().getAddress()); in connectV4() 346 security.checkConnect(epoint.getAddress().getHostAddress(), in connect() 497 } else if (epoint.getAddress() instanceof Inet6Address) { in connect() 499 out.write(epoint.getAddress().getAddress()); in connect() 504 out.write(epoint.getAddress().getAddress()); in connect() 1055 return external_address.getAddress(); in getInetAddress()
|
D | DatagramSocket.java | 406 InetAddress iaddr = epoint.getAddress(); in bind() 519 connectInternal(epoint.getAddress(), epoint.getPort()); in connect() 689 checkAddress (p.getAddress(), "send"); in send() 699 if (p.getAddress().isMulticastAddress()) { in send() 700 security.checkMulticast(p.getAddress()); in send() 702 security.checkConnect(p.getAddress().getHostAddress(), in send() 708 packetAddress = p.getAddress(); in send() 781 peekAd = peekPacket.getAddress().getHostAddress(); in receive() 825 peekAddress = peekPacket.getAddress(); in receive()
|
D | DatagramPacket.java | 206 public synchronized InetAddress getAddress() { in getAddress() method in DatagramPacket 343 setAddress(addr.getAddress()); in setSocketAddress() 356 return new InetSocketAddress(getAddress(), getPort()); in getSocketAddress()
|
D | InterfaceAddress.java | 64 for (byte b : netmask.getAddress()) { in countPrefixLength() 76 public InetAddress getAddress() { in getAddress() method in InterfaceAddress
|
D | InetAddress.java | 250 int getAddress() { in getAddress() method in InetAddress.InetAddressHolder 336 return new Inet4Address(holder().getHostName(), holder().getAddress()); in readResolve() 656 host = nameService.getHostByAddr(addr.getAddress()); in getHostFromNameService() 690 public byte[] getAddress() { in getAddress() method in InetAddress
|
D | InetSocketAddress.java | 75 private InetAddress getAddress() { in getAddress() method in InetSocketAddress.InetSocketAddressHolder 370 public final InetAddress getAddress() { in getAddress() method in InetSocketAddress 371 return holder.getAddress(); in getAddress()
|
D | PlainDatagramSocketImpl.java | 120 if (p.getData() == null || p.getAddress() == null) { in send() 125 InetAddress address = connected ? null : p.getAddress(); in send() 132 i.holder().address = p.getAddress().holder().address; in peek()
|
/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() 353 byte[] iaAddresss = initAddr.getAddress(); 354 byte[] deIAAddresss = desrAddr.getAddress();
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | ServerSocketChannelTest.java | 100 assertTrue(boundAddress.getAddress().isAnyLocalAddress()); in bind_nullBindsToAll() 101 assertFalse(boundAddress.getAddress().isLinkLocalAddress()); in bind_nullBindsToAll() 102 assertFalse(boundAddress.getAddress().isLoopbackAddress()); in bind_nullBindsToAll() 172 assertFalse(boundAddress.getAddress().isAnyLocalAddress()); in bind_loopback() 173 assertFalse(boundAddress.getAddress().isLinkLocalAddress()); in bind_loopback() 174 assertTrue(boundAddress.getAddress().isLoopbackAddress()); in bind_loopback() 216 ((InetSocketAddress)(ssc.getLocalAddress())).getAddress()); in bind_socketAddress()
|
D | DatagramChannelTest.java | 147 assertTrue(actualAddress.getAddress().isAnyLocalAddress()); in test_bind_any() 181 assertEquals(bindAddress, actualAddress.getAddress()); in test_bind() 220 assertEquals(socketAddress.getAddress(), in test_bind() 221 ((InetSocketAddress)(channel.getLocalAddress())).getAddress()); in test_bind() 255 assertEquals(socketAddress.getAddress(), in test_getRemoteAddress() 256 ((InetSocketAddress) (clientChannel.getRemoteAddress())).getAddress()); in test_getRemoteAddress()
|
/libcore/ojluni/src/test/java/net/InetSocketAddress/ |
D | ToString.java | 57 addr = isa.getAddress().toString(); 58 if (isa.getAddress() instanceof Inet6Address) {
|
/libcore/ojluni/src/test/java/net/Socks/ |
D | SocksServer.java | 309 InetAddress iadd = addr.getAddress(); in doConnect() 315 out.write(iadd.getAddress()); in doConnect() 321 out.write(iadd.getAddress()); in doConnect() 361 out.write(bad.getAddress().getAddress()); in doBind() 371 out.write(bad.getAddress().getAddress()); in doBind()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | IPAddressName.java | 161 address = InetAddress.getByName(name).getAddress(); in parseIPv4() 167 (name.substring(slashNdx+1)).getAddress(); in parseIPv4() 171 (name.substring(0, slashNdx)).getAddress(); in parseIPv4() 191 address = InetAddress.getByName(name).getAddress(); in parseIPv6() 195 (name.substring(0, slashNdx)).getAddress(); in parseIPv6()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | DatagramSocketAdaptor.java | 129 ? Net.asInetSocketAddress(dc.remoteAddress()).getAddress() in getInetAddress() 149 if (p.getAddress() == null) { in send() 155 p.setAddress(isa.getAddress()); in send() 232 InetAddress result = ((InetSocketAddress)local).getAddress(); in getLocalAddress() 238 return new InetSocketAddress(0).getAddress(); in getLocalAddress()
|
D | Net.java | 108 InetAddress addr = isa.getAddress(); in checkAddress() 184 sm.checkConnect(addr.getAddress().getHostAddress(), -1); in getRevealedLocalAddress() 227 byte[] addr = ia.getAddress(); 259 return ia.getAddress(); 264 byte[] ip4address = ia.getAddress();
|
D | DatagramChannelImpl.java | 398 isa.getAddress().getHostAddress(), in receive() 471 InetAddress ia = isa.getAddress(); in send() 566 rem, target.getAddress(), target.getPort()); in sendFromNativeBuffer() 726 InetAddress addr = isa.getAddress(); in bind() 735 Net.bind(family, fd, isa.getAddress(), isa.getPort()); in bind() 769 sm.checkConnect(isa.getAddress().getHostAddress(), in connect() 773 isa.getAddress(), in connect() 782 cachedSenderInetAddress = isa.getAddress(); in connect() 822 sm.checkConnect(isa.getAddress().getHostAddress(), in disconnect()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | InetSocketAddress.java | 83 public final java.net.InetAddress getAddress() { in getAddress() method in InetSocketAddress 150 private java.net.InetAddress getAddress() { in getAddress() method in InetSocketAddress.InetSocketAddressHolder
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | SocketTest.java | 187 assertEquals(inLocalAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses() 188 assertEquals(inRemoteAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses() 189 assertEquals(outLocalAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses() 190 assertEquals(outRemoteAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses() 221 assertTrue(inLocalAddressAfterClose.getAddress().isAnyLocalAddress()); in checkSocketLocalAndRemoteAddresses() 226 assertTrue(outLocalAddressAfterClose.getAddress().isAnyLocalAddress()); in checkSocketLocalAndRemoteAddresses() 449 assertTrue(localAddressAfterClose.getAddress().isAnyLocalAddress()); in testStateAfterClose() 694 return Arrays.compare(lhs.getAddress(), rhs.getAddress());
|
D | DatagramSocketTest.java | 50 assertEquals(ds.getLocalAddress(), socketAddress.getAddress()); in testInitialState() 213 InetAddress packetAddr = p.getAddress(); in testAddressSameIfUnchanged() 218 InetAddress newPacketAddr = p.getAddress(); in testAddressSameIfUnchanged()
|
D | InetSocketAddressTest.java | 123 assertEquals(ia, isa.getAddress()); in test_getAddress() 126 assertNotNull(isa.getAddress()); in test_getAddress()
|