Home
last modified time | relevance | path

Searched refs:getByName (Results 1 – 25 of 28) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInet6AddressTest.java43 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 …]
DInet4AddressTest.java40 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 …]
DInetAddressTest.java42 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 …]
DInetAddressThreadTest.java85 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()
DNetworkInterfaceTest.java203 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()
DDatagramSocketImplTest.java42 InetAddress localhost = InetAddress.getByName("localhost"); //$NON-NLS-1$ in test_connect()
DMulticastSocketTest.java40 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()
DDatagramSocketTest.java137 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()
DDatagramPacketTest.java151 InetAddress ia = InetAddress.getByName("127.0.0.1"); in test_setAddressLjava_net_InetAddress()
DSocketTest.java249 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/
DInetAddressTest.java139 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 …]
DInetSocketAddressTest.java59 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()
DNetworkInterfaceTest.java34 NetworkInterface lo = NetworkInterface.getByName("lo"); in testIPv6()
75 NetworkInterface lo = NetworkInterface.getByName("lo"); in testLoopback()
82 NetworkInterface eth0 = NetworkInterface.getByName("eth0"); in testLoopback()
DOldDatagramPacketTest.java49 …DatagramPacket packet = new DatagramPacket(bytes, 6, InetAddress.getByName("localhost"), ss.getLoc… in test_getPort()
DOldSocketTest.java104 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()
DOldURLStreamHandlerTest.java62 assertEquals(InetAddress.getByName("localhost"), handler.getHostAddress(url3)); in test_getHostAddress()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DDatagramChannelTest.java106 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/
DDnsBenchmark.java46 InetAddress.getByName(hosts[i % hosts.length]); in timeDns()
DSSLSocketBenchmark.java50 this.host = InetAddress.getByName(url.getHost()); in WebSite()
/libcore/luni/src/main/java/java/net/
DInetSocketAddress.java105 addr = InetAddress.getByName(hostname); in InetSocketAddress()
DNetworkInterface.java104 public static NetworkInterface getByName(String interfaceName) throws SocketException { in getByName() method in NetworkInterface
284 return NetworkInterface.getByName(name); in getByIndex()
DInet6Address.java239 return (scope_ifname_set && ifname != null) ? NetworkInterface.getByName(ifname) : null; in getScopedInterface()
DPlainSocketImpl.java158 connect(InetAddress.getByName(aHost), aPort); in connect()
313 return InetAddress.getByName(proxyName); in socksGetServerAddress()
DURLStreamHandler.java329 return InetAddress.getByName(host); in getHostAddress()
DInetAddress.java304 public static InetAddress getByName(String host) throws UnknownHostException { in getByName() method in InetAddress

12