/packages/services/Iwlan/test/com/google/android/iwlan/epdg/ |
D | EpdgSelectorTest.java | 216 InetAddress expectedAddress = InetAddress.getByName(TEST_IP_ADDRESS); in testStaticMethodPass() 259 InetAddress expectedAddress = InetAddress.getByName(TEST_IP_ADDRESS); in testRoamStaticMethodPass() 292 assertTrue(testInetAddresses.contains(InetAddress.getByName(TEST_IP_ADDRESS_1))); in testPlmnResolutionMethodWithNoPlmnInCarrierConfig() 293 assertTrue(testInetAddresses.contains(InetAddress.getByName(TEST_IP_ADDRESS_2))); in testPlmnResolutionMethodWithNoPlmnInCarrierConfig() 332 assertEquals(InetAddress.getByName(TEST_IP_ADDRESS_7), testInetAddresses.get(0)); in testPlmnResolutionMethod() 333 assertEquals(InetAddress.getByName(TEST_IP_ADDRESS_6), testInetAddresses.get(1)); in testPlmnResolutionMethod() 334 assertEquals(InetAddress.getByName(TEST_IP_ADDRESS_3), testInetAddresses.get(2)); in testPlmnResolutionMethod() 335 assertEquals(InetAddress.getByName(TEST_IP_ADDRESS), testInetAddresses.get(3)); in testPlmnResolutionMethod() 336 assertEquals(InetAddress.getByName(TEST_IP_ADDRESS_4), testInetAddresses.get(4)); in testPlmnResolutionMethod() 337 assertEquals(InetAddress.getByName(TEST_IP_ADDRESS_1), testInetAddresses.get(5)); in testPlmnResolutionMethod() [all …]
|
D | TunnelLinkPropertiesTest.java | 48 mInternalAddressList.add(new LinkAddress(InetAddress.getByName(IP_ADDRESS), 3)); in createTestTunnelLinkProperties() 50 mInternalAddressList.add(new LinkAddress(InetAddress.getByName(IPV6_ADDRESS), 3)); in createTestTunnelLinkProperties() 52 mInternalAddressList.add(new LinkAddress(InetAddress.getByName(IP_ADDRESS), 3)); in createTestTunnelLinkProperties() 53 mInternalAddressList.add(new LinkAddress(InetAddress.getByName(IPV6_ADDRESS), 3)); in createTestTunnelLinkProperties() 55 mDNSAddressList.add(InetAddress.getByName(DNS_ADDRESS)); in createTestTunnelLinkProperties() 56 mPCSFAddressList.add(InetAddress.getByName(PSCF_ADDRESS)); in createTestTunnelLinkProperties() 71 mDNSAddressList.add(InetAddress.getByName(DNS_ADDRESS)); in testGetProtocolType_emptyInternalAddresses_returnsUnknown() 72 mPCSFAddressList.add(InetAddress.getByName(PSCF_ADDRESS)); in testGetProtocolType_emptyInternalAddresses_returnsUnknown()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/rtp/cts/ |
D | AudioStreamTest.java | 44 testRtpStream(InetAddress.getByName("127.0.0.1")); in testV4Stream() 48 testRtpStream(InetAddress.getByName("::1")); in testV6Stream() 52 AudioStream stream = new AudioStream(InetAddress.getByName("::1")); in testSetDtmfType() 75 AudioStream stream = new AudioStream(InetAddress.getByName("::1")); in testSetCodec() 92 AudioStream stream = new AudioStream(InetAddress.getByName("::1")); in testDoubleRelease()
|
/packages/modules/NetworkStack/tests/integration/signature/android/net/netlink/ |
D | InetDiagSocketIntegrationTest.java | 82 remoteAddress = InetAddress.getByName(to); in Connection() 84 localAddress = InetAddress.getByName(from); in Connection() 87 ? Inet4Address.getByName("localhost") : Inet6Address.getByName("::"); in Connection() 91 localhostAddress = Inet4Address.getByName("localhost"); in Connection() 94 localhostAddress = Inet6Address.getByName("::"); in Connection()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | InetAddressUtilsTest.java | 58 InetAddress ipv4 = InetAddress.getByName("192.0.2.1"); in testParcelUnparcelIpv4Address() 64 InetAddress ipv6 = InetAddress.getByName("2001:db8::1"); in testParcelUnparcelIpv6Address() 70 InetAddress ipv6 = InetAddress.getByName("fe80::1%42"); in testParcelUnparcelScopedIpv6Address() 100 final Inet4Address v4Addr = (Inet4Address) InetAddress.getByName("192.0.2.1"); in testV4MappedV6Address()
|
D | InterfaceParamsTest.java | 36 assertNull(InterfaceParams.getByName(null)); in testNullInterfaceReturnsNull() 41 assertNull(InterfaceParams.getByName("doesnotexist0")); in testNonExistentInterfaceReturnsNull() 46 final InterfaceParams ifParams = InterfaceParams.getByName("lo"); in testLoopback()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/ |
D | InetDiagSocketTest.java | 104 InetSocketAddress local = new InetSocketAddress(InetAddress.getByName("10.0.100.2"), in testInetDiagReqV2UdpInet4() 106 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.8.8"), in testInetDiagReqV2UdpInet4() 140 InetAddress.getByName("fe80::86c9:b2ff:fe6a:ed4b"), 42462); in testInetDiagReqV2TcpInet6() 141 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.8.8"), in testInetDiagReqV2TcpInet6() 177 InetAddress.getByName("1.2.3.4"), 12345); in testInetDiagReqV2TcpInetWithExt() 178 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.4.4"), in testInetDiagReqV2TcpInetWithExt() 186 InetAddress.getByName("fe80::86c9:b2ff:fe6a:ed4b"), 42462); in testInetDiagReqV2TcpInetWithExt() 187 remote = new InetSocketAddress(InetAddress.getByName("8.8.8.8"), in testInetDiagReqV2TcpInetWithExt() 223 InetAddress.getByName("fe80::fe6a:ed4b"), 12345); in testInetDiagReqV2TcpInet6NoIdSpecified() 224 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.4.4"), in testInetDiagReqV2TcpInet6NoIdSpecified()
|
D | ConntrackMessageTest.java | 90 (Inet4Address) InetAddress.getByName("192.168.43.209"), 44333, in makeIPv4TimeoutUpdateRequestTcp() 91 (Inet4Address) InetAddress.getByName("23.211.13.26"), 443, in makeIPv4TimeoutUpdateRequestTcp() 131 (Inet4Address) InetAddress.getByName("100.96.167.146"), 37069, in makeIPv4TimeoutUpdateRequestUdp() 132 (Inet4Address) InetAddress.getByName("216.58.197.10"), 443, in makeIPv4TimeoutUpdateRequestUdp()
|
D | NduseroptMessageTest.java | 106 InetAddress srcaddr = InetAddress.getByName("fe80::250:b6ff:feb7:c499%30"); in testParseWithinNetlinkMessage() 135 InetAddress srcaddr = InetAddress.getByName("fe80::250:b6ff:feb7:c499%30"); in testParseRdnssOptionWithinNetlinkMessage() 171 InetAddress srcaddr = InetAddress.getByName("fe80::250:b6ff:feb7:c499%30"); in testParseUnknownOptionWithinNetlinkMessage()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ipmemorystore/ |
D | ParcelableTests.java | 52 builder.setAssignedV4Address((Inet4Address) Inet4Address.getByName("1.2.3.4")); in testNetworkAttributesParceling() 61 builder.setAssignedV4Address((Inet4Address) Inet4Address.getByName("6.7.8.9")); in testNetworkAttributesParceling() 65 InetAddress.getByName("ACA1:652B:0911:DE8F:1200:115E:913B:AA2A"), in testNetworkAttributesParceling() 66 InetAddress.getByName("6.7.8.9"))); in testNetworkAttributesParceling()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | DnsManagerTest.java | 145 lp.addDnsServer(InetAddress.getByName("3.3.3.3")); in testTrackedValidationUpdates() 146 lp.addDnsServer(InetAddress.getByName("4.4.4.4")); in testTrackedValidationUpdates() 169 assertEquals(Arrays.asList(InetAddress.getByName("4.4.4.4")), in testTrackedValidationUpdates() 174 lp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("192.0.2.4"), in testTrackedValidationUpdates() 177 lp.addRoute(new RouteInfo((IpPrefix) null, InetAddress.getByName("2001:db8:1::1"), in testTrackedValidationUpdates() 223 lp.addDnsServer(InetAddress.getByName("3.3.3.3")); in testIgnoreUntrackedValidationUpdates() 334 lp.addDnsServer(InetAddress.getByName("3.3.3.3")); in testSendDnsConfiguration() 335 lp.addDnsServer(InetAddress.getByName("4.4.4.4")); in testSendDnsConfiguration()
|
D | MulticastRoutingCoordinatorServiceTest.kt | 93 val mSourceAddress = Inet6Address.getByName("2000::8888") as Inet6Address 94 val mGroupAddressScope5 = Inet6Address.getByName("ff05::1234") as Inet6Address 95 val mGroupAddressScope4 = Inet6Address.getByName("ff04::1234") as Inet6Address 96 val mGroupAddressScope3 = Inet6Address.getByName("ff03::1234") as Inet6Address 431 Inet6Address.getByName("ff05::" + Integer.toHexString(i)) as Inet6Address in testMulticastRouting_maxNumberOfMfcs() 435 Inet6Address.getByName("ff05::1" ) as Inet6Address, in testMulticastRouting_maxNumberOfMfcs()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeIdPayloadTest.java | 115 Inet4Address expectedAddr = (Inet4Address) Inet4Address.getByName(IPV4_ADDR_STRING); in testDecodeIpv4AddrIdPayload() 128 Inet6Address expectedAddr = (Inet6Address) Inet6Address.getByName(IPV6_ADDR_STRING); in testDecodeIpv6AddrIdPayload() 210 Inet4Address ipv4Address = (Inet4Address) Inet4Address.getByName(IPV4_ADDR_STRING); in testConstructAndEncodeIpv4AddrIdPayload() 223 Inet6Address ipv6Address = (Inet6Address) Inet6Address.getByName(IPV6_ADDR_STRING); in testConstructAndEncodeIpv6AddrIdPayload() 293 Inet4Address ipv4Address = (Inet4Address) InetAddress.getByName(IPV4_ADDR_STRING); in testPersistableBundleEncodeDecodeIpv4AddressId() 299 Inet6Address ipv6Address = (Inet6Address) InetAddress.getByName(IPV6_ADDR_STRING); in testPersistableBundleEncodeDecodeIpv6AddressId()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ipmemorystore/ |
D | IpMemoryStoreServiceTest.java | 420 (Inet4Address) Inet4Address.getByName("1.2.3.4"), LEASE_EXPIRY_NULL, 421 "cluster1", Arrays.asList(Inet6Address.getByName("0A1C:2E40:480A::1CA6")), 459 (Inet4Address) Inet4Address.getByName("1.2.3.4"), 476 new InetAddress[] {Inet6Address.getByName("0A1C:2E40:480A::1CA6")})); 590 new InetAddress[] {Inet6Address.getByName("8D56:9AF1::08EE:20F1")})); 594 na.setAssignedV4Address((Inet4Address) Inet4Address.getByName("1.2.3.4")); 596 new InetAddress[] {Inet6Address.getByName("0A1C:2E40:480A::1CA6")})); 604 na.setAssignedV4Address((Inet4Address) Inet4Address.getByName("5.6.7.8")); 636 na.setAssignedV4Address((Inet4Address) Inet4Address.getByName("1.2.3.4")); 703 (Inet4Address) Inet4Address.getByName("1.2.3.4"), LEASE_EXPIRY_NULL, [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | DnsTest.java | 202 InetAddress addr = InetAddress.getByName(URLS[urlIndex]); in skiptestDnsPerf() 207 InetAddress addr = InetAddress.getByName(URLS[urlIndex]); in skiptestDnsPerf() 227 InetAddress addr = InetAddress.getByName(url); in skiptestDnsPerf() 268 InetAddress exit = InetAddress.getByName("exitrightnow.com"); in skiptestDnsPerf()
|
D | IpSecBaseTest.java | 720 InetAddress local = InetAddress.getByName(addr); in testJavaTcpSocketPair() 732 InetAddress local = InetAddress.getByName(addr); in testJavaUdpSocketPair() 745 InetAddress local = InetAddress.getByName(addr); in testJavaUdpSocketPairUnconnected() 758 InetAddress local = InetAddress.getByName(addr); in testNativeTcpSocketPair() 771 InetAddress local = InetAddress.getByName(addr); in testNativeUdpSocketPair() 784 InetAddress local = InetAddress.getByName(addr); in testNativeUdpSocketPairUnconnected()
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsConstants.java | 58 addr = InetAddress.getByName(MDNS_IPV4_HOST_ADDRESS); in getMdnsIPv4Address() 71 addr = InetAddress.getByName(MDNS_IPV6_HOST_ADDRESS); in getMdnsIPv6Address()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | InterfaceParams.java | 52 public static InterfaceParams getByName(String name) { in getByName() method in InterfaceParams 92 return NetworkInterface.getByName(name); in getNetworkInterfaceByName()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | MulticastRoutingConfigTest.kt | 38 val address1 = Inet6Address.getByName("2000::8888") as Inet6Address 39 val address2 = Inet6Address.getByName("2000::9999") as Inet6Address
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | BpfUtils.java | 79 final InterfaceParams params = InterfaceParams.getByName(iface); in attachProgram() 120 final InterfaceParams params = InterfaceParams.getByName(iface); in detachProgram()
|
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/ |
D | P2pUtils.java | 56 return (Inet4Address) InetAddress.getByName(path.getHost()); in toInet4Address() 68 return NetworkInterface.getByName(name); in toNetworkInterface()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | DscpPolicyTracker.java | 156 netIface = NetworkInterface.getByName(iface); in getIfaceIndex() 332 NetworkInterface netIface = NetworkInterface.getByName(iface); in attachProgram() 348 NetworkInterface netIface = NetworkInterface.getByName(iface); in detachProgram()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsSocketTests.java | 73 InetAddress.getByName("224.0.0.251"), MdnsConstants.MDNS_PORT); in setUp() 75 InetAddress.getByName("FF02::FB"), MdnsConstants.MDNS_PORT); in setUp()
|
/packages/modules/Connectivity/Tethering/tests/mts/src/android/tethering/mts/ |
D | TetheringModuleTest.java | 92 NetworkInterface nif = NetworkInterface.getByName(wifiTetheringIface); in addressConflictTest() 120 nif = NetworkInterface.getByName(newIface.getInterface()); in addressConflictTest()
|
/packages/modules/Connectivity/thread/tests/utils/src/android/net/thread/utils/ |
D | TapTestNetworkTracker.java | 158 NetworkInterface.getByName(getInterfaceName()).getInterfaceAddresses(); in makeLinkAddresses() 173 if (NetworkInterface.getByName(interfaceName).getInterfaceAddresses().isEmpty()) { in hasUsableAddress()
|