Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/net/
DInetAddressTest.java71 return (Inet6Address) InetAddress.getByAddress(LOOPBACK6_BYTES); in loopback6()
75 return (Inet6Address) InetAddress.getByAddress("localhost", LOOPBACK6_BYTES); in localhost6()
214 assertEquals(Inet6Address.getByAddress("1", bs, 1), Inet6Address.getByAddress("2", bs, 2)); in test_equals()
242 aAddr = Inet6Address.getByAddress(bAddr); in test_getHostAddress()
252 aAddr = Inet6Address.getByAddress(cAddr); in test_getHostAddress()
261 aAddr = Inet6Address.getByAddress(dAddr); in test_getHostAddress()
271 aAddr = Inet6Address.getByAddress(eAddr); in test_getHostAddress()
280 aAddr = Inet6Address.getByAddress(fAddr); in test_getHostAddress()
DInetSocketAddressTest.java155 InetAddress address = InetAddress.getByAddress(new byte[] { 127, 0, 0, 1 }); in test_getHostString()
DNetworkInterfaceTest.java39 …expected.add(Inet6Address.getByAddress("localhost", new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, … in testIPv6()
DOldSocketTest.java825 .getByAddress(Support_Configuration.nonLocalAddressBytes), in test_bindLjava_net_SocketAddress()
947 .getByAddress(theBytes), portNumber); in test_connectLjava_net_SocketAddress()
1167 …SocketAddress nonConnectableAddress = new InetSocketAddress(InetAddress.getByAddress(theBytes), 0); in test_connectLjava_net_SocketAddressI()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInet6AddressTest.java728 Inet6Address.getByAddress("123", null, 0); in test_getByAddressLString$BI()
735 Inet6Address.getByAddress("123", addr1, 0); in test_getByAddressLString$BI()
746 Inet6Address.getByAddress("123", addr2, 3); in test_getByAddressLString$BI()
747 Inet6Address.getByAddress("123", addr2, 0); in test_getByAddressLString$BI()
748 Inet6Address.getByAddress("123", addr2, -1); in test_getByAddressLString$BI()
755 Inet6Address.getByAddress("123", null, nif); in test_getByAddressLString$BLNetworkInterface()
762 Inet6Address.getByAddress("123", addr1, nif); in test_getByAddressLString$BLNetworkInterface()
772 Inet6Address.getByAddress("123", addr2, nif); in test_getByAddressLString$BLNetworkInterface()
777 InetAddress ia = InetAddress.getByAddress(ipAddress); in test_getHostAddress_()
781 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()
843 theSocket.connect(new InetSocketAddress(InetAddress.getByAddress(theBytes), 0)); in test_setBroadcastZ()
851 theSocket.connect(new InetSocketAddress(InetAddress.getByAddress(theBytes), 0)); in test_setBroadcastZ()
DNetworkInterfaceTest.java255 .getByAddress(addressBytes))); in test_getByInetAddressLjava_net_InetAddress()
DServerSocketTest.java438 .getByAddress(Support_Configuration.nonLocalAddressBytes), in test_bindLjava_net_SocketAddress()
522 .getByAddress(Support_Configuration.nonLocalAddressBytes), in test_bindLjava_net_SocketAddressI()
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/main/java/java/net/
DInet6Address.java85 public static Inet6Address getByAddress(String host, byte[] addr, int scope_id) in getByAddress() method in Inet6Address
115 public static Inet6Address getByAddress(String host, byte[] addr, in getByAddress() method in Inet6Address
118 Inet6Address address = Inet6Address.getByAddress(host, addr, 0); in getByAddress()
DInetAddress.java779 public static InetAddress getByAddress(byte[] ipAddress) throws UnknownHostException { in getByAddress() method in InetAddress
780 return getByAddress(null, ipAddress, 0); in getByAddress()
799 …public static InetAddress getByAddress(String hostName, byte[] ipAddress) throws UnknownHostExcept… in getByAddress() method in InetAddress
800 return getByAddress(hostName, ipAddress, 0); in getByAddress()
803 …private static InetAddress getByAddress(String hostName, byte[] ipAddress, int scopeId) throws Unk… in getByAddress() method in InetAddress
DPlainDatagramSocketImpl.java206 connectedAddress = InetAddress.getByAddress(inetAddr.getAddress()); in connect()
DPlainSocketImpl.java415 address = InetAddress.getByAddress(replyBytes); in socksBind()
/libcore/support/src/test/java/tests/net/
DStuckServer.java64 InetAddress testNet1 = InetAddress.getByAddress(new byte[] { (byte) 192, 0, 2, 0 }); in StuckServer()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java86 sc.connect(new InetSocketAddress(InetAddress.getByAddress(new byte[] { 0, 0, 0, 0 }), 0)); in test_56684()
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DGeneralName.java665 return InetAddress.getByAddress(null, ip).getHostAddress(); in ipBytesToStr()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java90 … address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex()); in bind()