/libcore/ojluni/src/main/java/java/net/ |
D | Inet4Address.java | 172 inet.holder().address = holder().getAddress(); in writeReplace() 194 return ((holder().getAddress() & 0xf0000000) == 0xe0000000); in isMulticastAddress() 204 return holder().getAddress() == 0; in isAnyLocalAddress() 216 byte[] byteAddr = getAddress(); in isLoopbackAddress() 232 int address = holder().getAddress(); in isLinkLocalAddress() 249 int address = holder().getAddress(); in isSiteLocalAddress() 267 byte[] byteAddr = getAddress(); in isMCGlobal() 296 int address = holder().getAddress(); in isMCLinkLocal() 312 int address = holder().getAddress(); in isMCSiteLocal() 328 int address = holder().getAddress(); in isMCOrgLocal() [all …]
|
D | MulticastSocket.java | 398 checkAddress(((InetSocketAddress)mcastaddr).getAddress(), "joinGroup"); in joinGroup() 401 security.checkMulticast(((InetSocketAddress)mcastaddr).getAddress()); in joinGroup() 404 if (!((InetSocketAddress)mcastaddr).getAddress().isMulticastAddress()) { in joinGroup() 445 checkAddress(((InetSocketAddress)mcastaddr).getAddress(), "leaveGroup"); in leaveGroup() 448 security.checkMulticast(((InetSocketAddress)mcastaddr).getAddress()); in leaveGroup() 451 if (!((InetSocketAddress)mcastaddr).getAddress().isMulticastAddress()) { in leaveGroup() 666 checkAddress(p.getAddress(), "send"); in send() 675 if (p.getAddress().isMulticastAddress()) { in send() 676 security.checkMulticast(p.getAddress(), ttl); in send() 678 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() 1051 return external_address.getAddress(); in getInetAddress()
|
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 | DatagramSocket.java | 404 InetAddress iaddr = epoint.getAddress(); in bind() 517 connectInternal(epoint.getAddress(), epoint.getPort()); in connect() 687 checkAddress (p.getAddress(), "send"); in send() 697 if (p.getAddress().isMulticastAddress()) { in send() 698 security.checkMulticast(p.getAddress()); in send() 700 security.checkConnect(p.getAddress().getHostAddress(), in send() 706 packetAddress = p.getAddress(); in send() 779 peekAd = peekPacket.getAddress().getHostAddress(); in receive() 823 peekAddress = peekPacket.getAddress(); in receive()
|
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 | 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/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 | 135 assertTrue(actualAddress.getAddress().isAnyLocalAddress()); in test_bind_any() 164 assertEquals(bindAddress, actualAddress.getAddress()); in test_bind() 200 assertEquals(socketAddress.getAddress(), in test_bind() 201 ((InetSocketAddress)(channel.getLocalAddress())).getAddress()); in test_bind() 234 assertEquals(socketAddress.getAddress(), in test_getRemoteAddress() 235 ((InetSocketAddress) (clientChannel.getRemoteAddress())).getAddress()); in test_getRemoteAddress()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
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/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()
|
D | AsynchronousServerSocketChannelImpl.java | 161 NetHooks.beforeTcpBind(fd, isa.getAddress(), isa.getPort()); in bind() 162 Net.bind(fd, isa.getAddress(), isa.getPort()); in bind()
|
D | SocketAdaptor.java | 159 return ((InetSocketAddress)remote).getAddress(); in getInetAddress() 167 return Net.getRevealedLocalAddress(local).getAddress(); in getLocalAddress() 170 return new InetSocketAddress(0).getAddress(); in getLocalAddress()
|
/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
|
D | InterfaceAddress.java | 49 public java.net.InetAddress getAddress() { in getAddress() method in InterfaceAddress
|
D | Inet4Address.java | 91 public byte[] getAddress() { in getAddress() method in Inet4Address
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | SocketTest.java | 151 assertEquals(inLocalAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses() 152 assertEquals(inRemoteAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses() 153 assertEquals(outLocalAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses() 154 assertEquals(outRemoteAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses() 185 assertTrue(inLocalAddressAfterClose.getAddress().isAnyLocalAddress()); in checkSocketLocalAndRemoteAddresses() 190 assertTrue(outLocalAddressAfterClose.getAddress().isAnyLocalAddress()); in checkSocketLocalAndRemoteAddresses() 384 assertTrue(localAddressAfterClose.getAddress().isAnyLocalAddress()); in testStateAfterClose()
|
D | InetSocketAddressTest.java | 123 assertEquals(ia, isa.getAddress()); in test_getAddress() 126 assertNotNull(isa.getAddress()); in test_getAddress()
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | InetSocketAddress.annotated.java | 47 public final java.net.InetAddress getAddress() { throw new RuntimeException("Stub!"); } in getAddress() method in InetSocketAddress
|