/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | Inet6AddressTest.java | 44 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 …]
|
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("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 …]
|
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 | 49 InetAddress localhost = InetAddress.getByName("localhost"); //$NON-NLS-1$ in test_connect()
|
D | MulticastSocketTest.java | 46 return InetAddress.getByName(s); in lookup() 280 mss.joinGroup(new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0), null); in test_joinGroup_non_multicast_address_IPv4() 293 mss.joinGroup(new InetSocketAddress(InetAddress.getByName("::1"), 0), null); in test_joinGroup_non_multicast_address_IPv6() 538 mss.leaveGroup(new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0), null); in test_leaveGroup_non_multicast_address_IPv4() 551 mss.leaveGroup(new InetSocketAddress(InetAddress.getByName("::1"), 0), null); in test_leaveGroup_non_multicast_address_IPv6()
|
D | DatagramSocketTest.java | 160 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/ |
D | InetAddressTest.java | 222 assertFalse(InetAddress.getByName("127.0.0.1").isLinkLocalAddress()); in test_isLinkLocalAddress() 223 assertFalse(InetAddress.getByName("::ffff:127.0.0.1").isLinkLocalAddress()); in test_isLinkLocalAddress() 224 assertTrue(InetAddress.getByName("169.254.1.2").isLinkLocalAddress()); in test_isLinkLocalAddress() 226 assertFalse(InetAddress.getByName("fec0::").isLinkLocalAddress()); in test_isLinkLocalAddress() 227 assertTrue(InetAddress.getByName("fe80::").isLinkLocalAddress()); in test_isLinkLocalAddress() 232 assertFalse(InetAddress.getByName("239.254.255.255").isMCSiteLocal()); in test_isMCSiteLocalAddress() 233 assertTrue(InetAddress.getByName("239.255.0.0").isMCSiteLocal()); in test_isMCSiteLocalAddress() 234 assertTrue(InetAddress.getByName("239.255.255.255").isMCSiteLocal()); in test_isMCSiteLocalAddress() 235 assertFalse(InetAddress.getByName("240.0.0.0").isMCSiteLocal()); in test_isMCSiteLocalAddress() 237 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() 182 inetAddress = InetAddress.getByName("127.0.0.1"); in test_getHostString_cachingBehavior()
|
D | MulticastSocketTest.java | 37 testGroupReceive(InetAddress.getByName("239.1.1.1")); in testGroupReceiveIPv4() 41 testGroupReceive(InetAddress.getByName("ff05::1:1")); in testGroupReceiveIPv6()
|
D | NetworkInterfaceTest.java | 54 NetworkInterface lo = NetworkInterface.getByName("lo"); in testIPv6() 96 assertEquals(nif, NetworkInterface.getByName(nif.getName())); in testInterfaceProperties() 114 NetworkInterface lo = NetworkInterface.getByName("lo"); in testLoopback() 164 NetworkInterface lo = NetworkInterface.getByName("lo"); in testInterfaceRemoval()
|
D | OldDatagramPacketTest.java | 49 …DatagramPacket packet = new DatagramPacket(bytes, 6, InetAddress.getByName("localhost"), ss.getLoc… in test_getPort()
|
D | OldURLStreamHandlerTest.java | 62 assertEquals(InetAddress.getByName("localhost"), handler.getHostAddress(url3)); in test_getHostAddress()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | IPAddressName.java | 161 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/ |
D | MembershipKeyTest.java | 190 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()
|
D | DatagramChannelTest.java | 120 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/ |
D | DnsBenchmark.java | 43 InetAddress.getByName(hosts[i % hosts.length]); in timeDns()
|
D | SSLSocketBenchmark.java | 50 this.host = InetAddress.getByName(url.getHost()); in WebSite()
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 476 SocketAddress addrIpv4 = new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0); in testCrossFamilyBindConnectSendto() 477 SocketAddress addrIpv6 = new InetSocketAddress(InetAddress.getByName("::1"), 0); in testCrossFamilyBindConnectSendto() 554 NetworkInterface lo = NetworkInterface.getByName("lo"); in test_PacketSocketAddress() 574 checkByteBufferPositions_sendto_recvfrom(AF_INET, InetAddress.getByName("127.0.0.1")); in test_byteBufferPositions_sendto_recvfrom_af_inet() 578 checkByteBufferPositions_sendto_recvfrom(AF_INET6, InetAddress.getByName("::1")); in test_byteBufferPositions_sendto_recvfrom_af_inet6() 600 checkSendToSocketAddress(AF_INET, InetAddress.getByName("127.0.0.1")); in test_sendtoSocketAddress_af_inet() 604 checkSendToSocketAddress(AF_INET6, InetAddress.getByName("::1")); in test_sendtoSocketAddress_af_inet6() 609 Os.bind(fd, InetAddress.getByName("::"), 0); in test_socketFamilies() 614 Os.bind(fd, InetAddress.getByName("0.0.0.0"), 0); in test_socketFamilies() 619 Os.bind(fd, InetAddress.getByName("0.0.0.0"), 0); in test_socketFamilies() [all …]
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | InetAddress.annotated.java | 80 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/ |
D | NetworkInterface.java | 284 public static NetworkInterface getByName(String name) throws SocketException { in getByName() method in NetworkInterface 550 NetworkInterface ni = getByName(name); in getHardwareAddress()
|
D | Inet6Address.java | 509 NetworkInterface nif = NetworkInterface.getByName (ifname); in initstr() 639 scope_ifname = NetworkInterface.getByName(ifname); in readObject()
|
D | InetSocketAddress.java | 235 addr = InetAddress.getByName(hostname); in InetSocketAddress()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | InetAddress.java | 143 public static java.net.InetAddress getByName(java.lang.String host) in getByName() method in InetAddress
|