Home
last modified time | relevance | path

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

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInet6AddressTest.java44 addr = InetAddress.getByName(addrName); in test_isMulticastAddress()
49 addr = InetAddress.getByName(addrName); in test_isMulticastAddress()
62 addr = InetAddress.getByName(addrName); in test_isMulticastAddress()
68 addr = InetAddress.getByName(addrName); in test_isMulticastAddress()
81 addr = InetAddress.getByName(addrName); in test_isMulticastAddress()
86 addr = InetAddress.getByName(addrName); in test_isMulticastAddress()
99 addr = InetAddress.getByName(addrName); in test_isAnyLocalAddress()
106 addr = InetAddress.getByName(addrName); in test_isAnyLocalAddress()
113 addr = InetAddress.getByName(addrName); in test_isAnyLocalAddress()
126 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("ip6-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()
118 assertEquals("1.2.3.4", InetAddress.getByName("1.2.3.4").getHostAddress()); in test_getHostAddress()
119 assertEquals("::1", InetAddress.getByName("::1").getHostAddress()); in test_getHostAddress()
153 InetAddress ia2 = InetAddress.getByName("239.255.255.255"); in test_isMulticastAddress()
155 ia2 = InetAddress.getByName("localhost"); in test_isMulticastAddress()
163 InetAddress ia2 = InetAddress.getByName("239.255.255.255"); in test_isAnyLocalAddress()
165 ia2 = InetAddress.getByName("localhost"); in test_isAnyLocalAddress()
[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.java49 InetAddress localhost = InetAddress.getByName("localhost"); //$NON-NLS-1$ in test_connect()
DMulticastSocketTest.java57 return InetAddress.getByName(s); in lookup()
279 mss.joinGroup(new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0), null); in joinGroup_non_multicast_address_IPv4()
291 mss.joinGroup(new InetSocketAddress(InetAddress.getByName("::1"), 0), null); in joinGroup_non_multicast_address_IPv6()
529 mss.leaveGroup(new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0), null); in leaveGroup_non_multicast_address_IPv4()
541 mss.leaveGroup(new InetSocketAddress(InetAddress.getByName("::1"), 0), null); in leaveGroup_non_multicast_address_IPv6()
DDatagramSocketTest.java160 InetAddress.getByName("FE80:0000:0000:0000:020D:60FF:FE0F:A776%4"); in test_connectLjava_net_InetAddressI()
339 InetAddress.getByName("FE80:0000:0000:0000:020D:60FF:FE0F:A776%4"); in test_disconnect()
352 assertEquals(InetAddress.getByName(InetAddress.getLocalHost().getHostName()), in test_getLocalAddress()
517 InetAddress i = InetAddress.getByName("127.0.0.1"); in testArchivedHarmonyRegressions()
/libcore/luni/src/test/java/libcore/java/net/
DInetAddressTest.java223 assertFalse(InetAddress.getByName("127.0.0.1").isLinkLocalAddress()); in test_isLinkLocalAddress()
224 assertFalse(InetAddress.getByName("::ffff:127.0.0.1").isLinkLocalAddress()); in test_isLinkLocalAddress()
225 assertTrue(InetAddress.getByName("169.254.1.2").isLinkLocalAddress()); in test_isLinkLocalAddress()
227 assertFalse(InetAddress.getByName("fec0::").isLinkLocalAddress()); in test_isLinkLocalAddress()
228 assertTrue(InetAddress.getByName("fe80::").isLinkLocalAddress()); in test_isLinkLocalAddress()
233 assertFalse(InetAddress.getByName("239.254.255.255").isMCSiteLocal()); in test_isMCSiteLocalAddress()
234 assertTrue(InetAddress.getByName("239.255.0.0").isMCSiteLocal()); in test_isMCSiteLocalAddress()
235 assertTrue(InetAddress.getByName("239.255.255.255").isMCSiteLocal()); in test_isMCSiteLocalAddress()
236 assertFalse(InetAddress.getByName("240.0.0.0").isMCSiteLocal()); in test_isMCSiteLocalAddress()
238 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()
182 inetAddress = InetAddress.getByName("127.0.0.1"); in test_getHostString_cachingBehavior()
DMulticastSocketTest.java37 testGroupReceive(InetAddress.getByName("239.1.1.1")); in testGroupReceiveIPv4()
41 testGroupReceive(InetAddress.getByName("ff05::1:1")); in testGroupReceiveIPv6()
DNetworkInterfaceTest.java56 NetworkInterface lo = NetworkInterface.getByName("lo"); in testIPv6()
98 assertEquals(nif, NetworkInterface.getByName(nif.getName())); in testInterfaceProperties()
122 NetworkInterface lo = NetworkInterface.getByName("lo"); in testLoopback()
172 NetworkInterface lo = NetworkInterface.getByName("lo"); in testInterfaceRemoval()
DOldDatagramPacketTest.java49 …DatagramPacket packet = new DatagramPacket(bytes, 6, InetAddress.getByName("localhost"), ss.getLoc… in test_getPort()
DOldURLStreamHandlerTest.java62 assertEquals(InetAddress.getByName("localhost"), handler.getHostAddress(url3)); in test_getHostAddress()
/libcore/ojluni/src/main/java/sun/security/x509/
DIPAddressName.java161 address = InetAddress.getByName(name).getAddress(); in parseIPv4()
166 byte[] mask = InetAddress.getByName in parseIPv4()
170 byte[] host = InetAddress.getByName in parseIPv4()
191 address = InetAddress.getByName(name).getAddress(); in parseIPv6()
194 byte[] base = InetAddress.getByName in parseIPv6()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DMembershipKeyTest.java190 key.block(Inet4Address.getByName("224.0.0.10")); in test_block_Exception()
210 key.unblock(Inet4Address.getByName("127.0.0.2")); in test_unblockWithJoinWithSource()
256 return InetAddress.getByName("239.255.0.1"); in getMulticastAddress()
264 return NetworkInterface.getByName("lo"); in getNetworkInterface()
DDatagramChannelTest.java120 test_bind_any(InetAddress.getByName("0.0.0.0")); in test_bind_any_IPv4()
124 test_bind_any(InetAddress.getByName("::")); in test_bind_any_IPv6()
142 test_bind(InetAddress.getByName("127.0.0.1")); in test_bind_loopback_IPv4()
146 test_bind(InetAddress.getByName("::1")); in test_bind_loopback_IPv6()
/libcore/benchmarks/src/benchmarks/regression/
DDnsBenchmark.java43 InetAddress.getByName(hosts[i % hosts.length]); in timeDns()
DSSLSocketBenchmark.java50 this.host = InetAddress.getByName(url.getHost()); in WebSite()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java516 SocketAddress addrIpv4 = new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0); in testCrossFamilyBindConnectSendto()
517 SocketAddress addrIpv6 = new InetSocketAddress(InetAddress.getByName("::1"), 0); in testCrossFamilyBindConnectSendto()
601 NetworkInterface lo = NetworkInterface.getByName("lo"); in test_PacketSocketAddress()
673 checkByteBufferPositions_sendto_recvfrom(AF_INET, InetAddress.getByName("127.0.0.1")); in test_byteBufferPositions_sendto_recvfrom_af_inet()
677 checkByteBufferPositions_sendto_recvfrom(AF_INET6, InetAddress.getByName("::1")); in test_byteBufferPositions_sendto_recvfrom_af_inet6()
699 checkSendToSocketAddress(AF_INET, InetAddress.getByName("127.0.0.1")); in test_sendtoSocketAddress_af_inet()
703 checkSendToSocketAddress(AF_INET6, InetAddress.getByName("::1")); in test_sendtoSocketAddress_af_inet6()
708 Os.bind(fd, InetAddress.getByName("::"), 0); in test_socketFamilies()
713 Os.bind(fd, InetAddress.getByName("0.0.0.0"), 0); in test_socketFamilies()
718 Os.bind(fd, InetAddress.getByName("0.0.0.0"), 0); in test_socketFamilies()
[all …]
/libcore/ojluni/annotations/mmodule/java/net/
DInetAddress.annotated.java80 public static java.net.InetAddress getByName(java.lang.String host) throws java.net.UnknownHostExce… in getByName() method in InetAddress
/libcore/ojluni/src/main/java/java/net/
DNetworkInterface.java293 public static NetworkInterface getByName(String name) throws SocketException { in getByName() method in NetworkInterface
590 NetworkInterface ni = getByName(name); in getHardwareAddress()
DInet6Address.java509 NetworkInterface nif = NetworkInterface.getByName (ifname); in initstr()
639 scope_ifname = NetworkInterface.getByName(ifname); in readObject()
DInetSocketAddress.java235 addr = InetAddress.getByName(hostname); in InetSocketAddress()
/libcore/ojluni/annotations/hiddenapi/java/net/
DInetAddress.java143 public static java.net.InetAddress getByName(java.lang.String host) in getByName() method in InetAddress

12