Home
last modified time | relevance | path

Searched refs:getByAddress (Results 1 – 17 of 17) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInet6AddressTest.java729 Inet6Address.getByAddress("123", null, 0); in test_getByAddressLString$BI()
736 Inet6Address.getByAddress("123", addr1, 0); in test_getByAddressLString$BI()
747 Inet6Address.getByAddress("123", addr2, 3); in test_getByAddressLString$BI()
748 Inet6Address.getByAddress("123", addr2, 0); in test_getByAddressLString$BI()
749 Inet6Address.getByAddress("123", addr2, -1); in test_getByAddressLString$BI()
756 Inet6Address.getByAddress("123", null, nif); in test_getByAddressLString$BLNetworkInterface()
763 Inet6Address.getByAddress("123", addr1, nif); in test_getByAddressLString$BLNetworkInterface()
773 Inet6Address.getByAddress("123", addr2, nif); in test_getByAddressLString$BLNetworkInterface()
778 InetAddress ia = InetAddress.getByAddress(ipAddress); in test_getHostAddress_()
782 ia = InetAddress.getByAddress(ipAddress); in test_getHostAddress_()
[all …]
DInetAddressTest.java70 InetAddress address = InetAddress.getByAddress(origBytes); in test_getAddress()
262 InetAddress addr2 = InetAddress.getByAddress(new byte[] { 127, 0, 0, 1 }); in test_toString()
274 InetAddress addr = InetAddress.getByAddress(addressStr, ipAddress); in test_getByAddressLjava_lang_String$B()
275 addr = InetAddress.getByAddress(ipAddress); in test_getByAddressLjava_lang_String$B()
285 InetAddress addr = InetAddress.getByAddress(addressStr, ipAddress2); in test_getByAddressLjava_lang_String$B()
286 addr = InetAddress.getByAddress(ipAddress); in test_getByAddressLjava_lang_String$B()
437 InetAddress.getByAddress(null); in test_getByAddress()
DDatagramSocketTest.java309 InetAddress inetAddress = InetAddress.getByAddress(addressBytes); in testConnect_zeroAddress()
315 inetAddress = InetAddress.getByAddress(addressTestBytes); in testConnect_zeroAddress()
847 theSocket.connect(new InetSocketAddress(InetAddress.getByAddress(theBytes), 0)); in test_setBroadcastZ()
855 theSocket.connect(new InetSocketAddress(InetAddress.getByAddress(theBytes), 0)); in test_setBroadcastZ()
DServerSocketTest.java452 .getByAddress(Support_Configuration.nonLocalAddressBytes), in test_bindLjava_net_SocketAddress()
536 .getByAddress(Support_Configuration.nonLocalAddressBytes), in test_bindLjava_net_SocketAddressI()
DNetworkInterfaceTest.java255 .getByAddress(addressBytes))); in test_getByInetAddressLjava_net_InetAddress()
DSocketTest.java163 .getByAddress(Support_Configuration.nonLocalAddressBytes), 42); in test_bindLjava_net_SocketAddress()
323 .getByAddress(new byte[] { 0, 0, 0, 0 }), 42)); in test_connectLjava_net_SocketAddress()
421 .getByAddress(new byte[] { 0, 0, 0, 0 }), 0); in test_connectLjava_net_SocketAddressI()
/libcore/luni/src/test/java/libcore/java/net/
DInetAddressTest.java77 return (Inet6Address) InetAddress.getByAddress(LOOPBACK6_BYTES); in loopback6()
81 return (Inet6Address) InetAddress.getByAddress("ip6-localhost", LOOPBACK6_BYTES); in localhost6()
234 assertEquals(Inet6Address.getByAddress("1", bs, 1), Inet6Address.getByAddress("2", bs, 2)); in test_equals()
262 aAddr = Inet6Address.getByAddress(bAddr); in test_getHostAddress()
272 aAddr = Inet6Address.getByAddress(cAddr); in test_getHostAddress()
281 aAddr = Inet6Address.getByAddress(dAddr); in test_getHostAddress()
291 aAddr = Inet6Address.getByAddress(eAddr); in test_getHostAddress()
300 aAddr = Inet6Address.getByAddress(fAddr); in test_getHostAddress()
336 InetAddress inetAddress = InetAddress.getByAddress(LOOPBACK6_BYTES); in test_getHostNameCaches()
345 InetAddress inetAddress = InetAddress.getByAddress(LOOPBACK4_BYTES); in test_getByAddress_loopbackIpv4()
[all …]
DInetSocketAddressTest.java155 InetAddress.getByAddress("some host", new byte[] { 127, 0, 0, 1 }), in test_getHostString()
169 InetAddress address = InetAddress.getByAddress(new byte[] { 127, 0, 0, 1 }); in test_getHostString()
176 InetAddress inetAddress = InetAddress.getByAddress(new byte[] { 127, 0, 0, 1 }); in test_getHostString_cachingBehavior()
DNetworkInterfaceTest.java47 …expected.add(Inet6Address.getByAddress("localhost", new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, … in testIPv6()
DOldSocketTest.java824 .getByAddress(Support_Configuration.nonLocalAddressBytes), in test_bindLjava_net_SocketAddress()
937 …SocketAddress nonConnectableAddress = new InetSocketAddress(InetAddress.getByAddress(theBytes), 0); in test_connectLjava_net_SocketAddress()
1156 …SocketAddress nonConnectableAddress = new InetSocketAddress(InetAddress.getByAddress(theBytes), 0); in test_connectLjava_net_SocketAddressI()
/libcore/ojluni/src/main/java/java/net/
DInetAddress.java649 public static InetAddress getByAddress(String host, byte[] addr) throws UnknownHostException { in getByAddress() method in InetAddress
650 return getByAddress(host, addr, -1 /* scopeId */); in getByAddress()
654 private static InetAddress getByAddress(String host, byte[] addr, int scopeId) in getByAddress() method in InetAddress
786 public static InetAddress getByAddress(byte[] addr) in getByAddress() method in InetAddress
788 return getByAddress(null, addr); in getByAddress()
DInet6Address.java269 public static Inet6Address getByAddress(String host, byte[] addr, NetworkInterface nif) in getByAddress() method in Inet6Address
300 public static Inet6Address getByAddress(String host, byte[] addr, int scope_id) in getByAddress() method in Inet6Address
/libcore/ojluni/src/main/java/sun/security/x509/
DIPAddressName.java262 name = InetAddress.getByAddress(host).getHostAddress(); in getName()
267 InetAddress.getByAddress(mask).getHostAddress(); in getName()
273 name = InetAddress.getByAddress(host).getHostAddress(); in getName()
/libcore/support/src/test/java/tests/net/
DStuckServer.java40 UNREACHABLE_ADDRESS = InetAddress.getByAddress(new byte[] { (byte) 192, 0, 2, 0 });
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java78 sc.connect(new InetSocketAddress(InetAddress.getByAddress(new byte[] { in test_56684()
/libcore/ojluni/src/main/java/sun/nio/ch/
DNet.java299 return InetAddress.getByAddress(addr);
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java92 … address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex()); in bind()