/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | Inet6AddressTest.java | 43 addr = InetAddress.getByName(addrName); in test_isMulticastAddress() 48 addr = InetAddress.getByName(addrName); in test_isMulticastAddress() 61 addr = InetAddress.getByName(addrName); in test_isMulticastAddress() 67 addr = InetAddress.getByName(addrName); in test_isMulticastAddress() 80 addr = InetAddress.getByName(addrName); in test_isMulticastAddress() 85 addr = InetAddress.getByName(addrName); in test_isMulticastAddress() 98 addr = InetAddress.getByName(addrName); in test_isAnyLocalAddress() 105 addr = InetAddress.getByName(addrName); in test_isAnyLocalAddress() 112 addr = InetAddress.getByName(addrName); in test_isAnyLocalAddress() 125 InetAddress addr = InetAddress.getByName(addrName); in test_isLoopbackAddress() [all …]
|
D | Inet4AddressTest.java | 40 InetAddress addr = InetAddress.getByName(addrName); in test_isMulticastAddress() 45 addr = InetAddress.getByName(addrName); in test_isMulticastAddress() 50 addr = InetAddress.getByName(addrName); in test_isMulticastAddress() 58 assertTrue(InetAddress.getByName("0.0.0.0").isAnyLocalAddress()); in test_isAnyLocalAddress() 59 assertFalse(InetAddress.getByName("127.0.0.1").isAnyLocalAddress()); in test_isAnyLocalAddress() 68 InetAddress addr = InetAddress.getByName(addrName); in test_isLoopbackAddress() 74 addr = InetAddress.getByName(addrName); in test_isLoopbackAddress() 80 addr = InetAddress.getByName(addrName); in test_isLoopbackAddress() 96 InetAddress addr = InetAddress.getByName(addrName); in test_isLinkLocalAddress() 111 InetAddress addr = InetAddress.getByName(addrName); in test_isSiteLocalAddress() [all …]
|
D | InetAddressTest.java | 42 InetAddress.getByName("1.2.3.4hello"); in test_getByName_exceptionContainsUsefulMessage() 50 InetAddress ia1 = InetAddress.getByName("localhost"); in test_equalsLjava_lang_Object() 51 InetAddress ia2 = InetAddress.getByName("::1"); in test_equalsLjava_lang_Object() 61 InetAddress ia = InetAddress.getByName("127.0.0.1"); in test_getAddress() 120 InetAddress ia2 = InetAddress.getByName("127.0.0.1"); in test_getByNameLjava_lang_String() 123 InetAddress i = InetAddress.getByName("1.2.3"); in test_getByNameLjava_lang_String() 125 i = InetAddress.getByName("1.2"); in test_getByNameLjava_lang_String() 127 i = InetAddress.getByName(String.valueOf(0xffffffffL)); in test_getByNameLjava_lang_String() 135 assertEquals("1.2.3.4", InetAddress.getByName("1.2.3.4").getHostAddress()); in test_getHostAddress() 136 assertEquals("::1", InetAddress.getByName("::1").getHostAddress()); in test_getHostAddress() [all …]
|
D | InetAddressThreadTest.java | 85 InetAddress ia = InetAddress.getByName(lookupName); in run() 134 InetAddress lookup1 = InetAddress.getByName("localhost"); in test_getHostName() 136 InetAddress lookup2 = InetAddress.getByName("localhost"); in test_getHostName()
|
D | NetworkInterfaceTest.java | 203 NetworkInterface.getByName(null)); in test_getByNameLjava_lang_String() 209 NetworkInterface.getByName("8not a name4")); in test_getByNameLjava_lang_String() 218 networkInterface1, NetworkInterface.getByName(theName)); in test_getByNameLjava_lang_String() 229 networkInterface2, NetworkInterface.getByName(theName)); in test_getByNameLjava_lang_String()
|
D | DatagramSocketImplTest.java | 42 InetAddress localhost = InetAddress.getByName("localhost"); //$NON-NLS-1$ in test_connect()
|
D | MulticastSocketTest.java | 40 return InetAddress.getByName(s); in lookup() 274 mss.joinGroup(new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0), null); in test_joinGroup_non_multicast_address_IPv4() 287 mss.joinGroup(new InetSocketAddress(InetAddress.getByName("::1"), 0), null); in test_joinGroup_non_multicast_address_IPv6() 512 mss.leaveGroup(new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0), null); in test_leaveGroup_non_multicast_address_IPv4() 525 mss.leaveGroup(new InetSocketAddress(InetAddress.getByName("::1"), 0), null); in test_leaveGroup_non_multicast_address_IPv6()
|
D | DatagramSocketTest.java | 137 inetAddress = InetAddress.getByName("FE80:0000:0000:0000:020D:60FF:FE0F:A776%4"); in test_connectLjava_net_InetAddressI() 328 inetAddress = InetAddress.getByName("FE80:0000:0000:0000:020D:60FF:FE0F:A776%4"); in test_disconnect() 340 …assertEquals(InetAddress.getByName(InetAddress.getLocalHost().getHostName()), ds.getLocalAddress()… in test_getLocalAddress() 494 InetAddress i = InetAddress.getByName("127.0.0.1"); in testArchivedHarmonyRegressions()
|
D | DatagramPacketTest.java | 151 InetAddress ia = InetAddress.getByName("127.0.0.1"); in test_setAddressLjava_net_InetAddress()
|
D | SocketTest.java | 249 InetAddress address = InetAddress.getByName("localhost"); in test_bindLjava_net_SocketAddress_Proxy() 715 client.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalAddress() 767 client.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalSocketAddress() 773 client.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalSocketAddress()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | InetAddressTest.java | 139 assertFalse(InetAddress.getByName("127.0.0.1").isLinkLocalAddress()); in test_isLinkLocalAddress() 140 assertFalse(InetAddress.getByName("::ffff:127.0.0.1").isLinkLocalAddress()); in test_isLinkLocalAddress() 141 assertTrue(InetAddress.getByName("169.254.1.2").isLinkLocalAddress()); in test_isLinkLocalAddress() 143 assertFalse(InetAddress.getByName("fec0::").isLinkLocalAddress()); in test_isLinkLocalAddress() 144 assertTrue(InetAddress.getByName("fe80::").isLinkLocalAddress()); in test_isLinkLocalAddress() 148 assertFalse(InetAddress.getByName("239.254.255.255").isMCSiteLocal()); in test_isMCSiteLocalAddress() 149 assertTrue(InetAddress.getByName("239.255.0.0").isMCSiteLocal()); in test_isMCSiteLocalAddress() 150 assertTrue(InetAddress.getByName("239.255.255.255").isMCSiteLocal()); in test_isMCSiteLocalAddress() 151 assertFalse(InetAddress.getByName("240.0.0.0").isMCSiteLocal()); in test_isMCSiteLocalAddress() 153 assertFalse(InetAddress.getByName("ff06::").isMCSiteLocal()); in test_isMCSiteLocalAddress() [all …]
|
D | InetSocketAddressTest.java | 59 InetAddress ia = InetAddress.getByName(validIPAddresses[i]); in test_ConstructorLInetAddressI() 69 new InetSocketAddress(InetAddress.getByName("localhost"), 65536); in test_ConstructorLInetAddressI() 75 new InetSocketAddress(InetAddress.getByName("localhost"), -1); in test_ConstructorLInetAddressI() 106 InetAddress localhost = InetAddress.getByName("localhost"); in test_equals() 121 InetAddress ia = InetAddress.getByName(validIPAddresses[i]); in test_getAddress() 130 InetAddress localhost = InetAddress.getByName("localhost"); in test_hashCode()
|
D | NetworkInterfaceTest.java | 34 NetworkInterface lo = NetworkInterface.getByName("lo"); in testIPv6() 75 NetworkInterface lo = NetworkInterface.getByName("lo"); in testLoopback() 82 NetworkInterface eth0 = NetworkInterface.getByName("eth0"); in testLoopback()
|
D | OldDatagramPacketTest.java | 49 …DatagramPacket packet = new DatagramPacket(bytes, 6, InetAddress.getByName("localhost"), ss.getLoc… in test_getPort()
|
D | OldSocketTest.java | 104 socket = new Socket(InetAddress.getByName(null), sport); in test_ConstructorLjava_lang_StringI() 254 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalAddress() 681 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalSocketAddress() 689 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalSocketAddress() 892 InetAddress address = InetAddress.getByName("localhost"); in test_bindLjava_net_SocketAddress_Proxy() 949 .getByName(Support_Configuration.ResolvedNotExistingHost), in test_connectLjava_net_SocketAddress() 1168 …SocketAddress nonReachableAddress = new InetSocketAddress(InetAddress.getByName(Support_Configurat… in test_connectLjava_net_SocketAddressI()
|
D | OldURLStreamHandlerTest.java | 62 assertEquals(InetAddress.getByName("localhost"), handler.getHostAddress(url3)); in test_getHostAddress()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | DatagramChannelTest.java | 106 test_bind_any(InetAddress.getByName("0.0.0.0")); in test_bind_any_IPv4() 110 test_bind_any(InetAddress.getByName("::")); in test_bind_any_IPv6() 128 test_bind(InetAddress.getByName("127.0.0.1")); in test_bind_loopback_IPv4() 132 test_bind(InetAddress.getByName("::1")); in test_bind_loopback_IPv6()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | DnsBenchmark.java | 46 InetAddress.getByName(hosts[i % hosts.length]); in timeDns()
|
D | SSLSocketBenchmark.java | 50 this.host = InetAddress.getByName(url.getHost()); in WebSite()
|
/libcore/luni/src/main/java/java/net/ |
D | InetSocketAddress.java | 105 addr = InetAddress.getByName(hostname); in InetSocketAddress()
|
D | NetworkInterface.java | 104 public static NetworkInterface getByName(String interfaceName) throws SocketException { in getByName() method in NetworkInterface 284 return NetworkInterface.getByName(name); in getByIndex()
|
D | Inet6Address.java | 239 return (scope_ifname_set && ifname != null) ? NetworkInterface.getByName(ifname) : null; in getScopedInterface()
|
D | PlainSocketImpl.java | 158 connect(InetAddress.getByName(aHost), aPort); in connect() 313 return InetAddress.getByName(proxyName); in socksGetServerAddress()
|
D | URLStreamHandler.java | 329 return InetAddress.getByName(host); in getHostAddress()
|
D | InetAddress.java | 304 public static InetAddress getByName(String host) throws UnknownHostException { in getByName() method in InetAddress
|