/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | IkeTestBase.java | 61 (Inet4Address) (InetAddresses.parseNumericAddress("192.0.2.100")); 63 (Inet4Address) (InetAddresses.parseNumericAddress("198.51.100.100")); 65 (Inet6Address) (InetAddresses.parseNumericAddress("2001:db8::100")); 67 (Inet6Address) (InetAddresses.parseNumericAddress("2001:db8:255::100")); 69 static final InetAddress PCSCF_IPV4_ADDRESS_1 = InetAddresses.parseNumericAddress("192.0.2.1"); 70 static final InetAddress PCSCF_IPV4_ADDRESS_2 = InetAddresses.parseNumericAddress("192.0.2.2"); 72 InetAddresses.parseNumericAddress("2001:DB8::1"); 74 InetAddresses.parseNumericAddress("2001:DB8::2"); 80 InetAddresses.parseNumericAddress("0.0.0.0"), 81 InetAddresses.parseNumericAddress("255.255.255.255")); [all …]
|
D | IkeSessionDigitalSignatureTest.java | 124 InetAddresses.parseNumericAddress("192.168.0.212"), 125 InetAddresses.parseNumericAddress("192.168.0.212")); 131 InetAddresses.parseNumericAddress("192.168.0.223"), 132 InetAddresses.parseNumericAddress("192.168.0.223"));
|
D | IkeSessionTestBase.java | 90 InetAddresses.parseNumericAddress("8.8.8.8"); 92 InetAddresses.parseNumericAddress("8.8.4.4"); 95 InetAddresses.parseNumericAddress("198.51.100.10"); 99 InetAddresses.parseNumericAddress("2001:db8::2"); 117 InetAddresses.parseNumericAddress("10.138.0.2"), 118 InetAddresses.parseNumericAddress("10.138.0.2")); 127 InetAddresses.parseNumericAddress("192.0.2.1").getAddress(); 129 InetAddresses.parseNumericAddress("198.51.100.1").getAddress(); 134 InetAddresses.parseNumericAddress("2a00:1000::0").getAddress(); 136 InetAddresses.parseNumericAddress("2404:6800:4004:820::2004").getAddress();
|
D | IkeSessionMschapV2Test.java | 137 InetAddresses.parseNumericAddress("192.168.0.212"), 138 InetAddresses.parseNumericAddress("192.168.0.212")); 144 InetAddresses.parseNumericAddress("192.168.0.223"), 145 InetAddresses.parseNumericAddress("192.168.0.223"));
|
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/ |
D | InitialConfigurationTest.java | 19 import static android.net.InetAddresses.parseNumericAddress; 53 new LinkAddress(parseNumericAddress("192.168.45.45"), 16), in setUp() 54 new LinkAddress(parseNumericAddress("2001:db8::45"), 33))); in setUp() 56 new IpPrefix(parseNumericAddress("192.168.46.46"), 17), in setUp() 57 new IpPrefix(parseNumericAddress("2001:db8::46"), 34))); in setUp() 59 parseNumericAddress("192.168.47.47"), in setUp() 60 parseNumericAddress("2001:db8::47"))); in setUp() 78 new LinkAddress(parseNumericAddress("192.168.47.47"), 24))); in testEquals() 80 new IpPrefix(parseNumericAddress("192.168.46.46"), 32))); in testEquals() 81 assertNotEqualsAfterChange(c -> c.dnsServers.add(parseNumericAddress("2001:db8::49"))); in testEquals()
|
D | ProvisioningConfigurationTest.java | 19 import static android.net.InetAddresses.parseNumericAddress; 99 new LinkAddress(parseNumericAddress("192.168.42.42"), 24)); in makeTestProvisioningConfiguration() 102 new LinkAddress(parseNumericAddress("2001:db8::42"), 90); in makeTestProvisioningConfiguration() 133 new LinkAddress(parseNumericAddress("192.168.42.42"), 24)); in makeTestProvisioningConfigurationParcelable() 137 new LinkAddress(parseNumericAddress("2001:db8::42"), 90); in makeTestProvisioningConfigurationParcelable() 257 new LinkAddress(parseNumericAddress("192.168.47.47"), 16))); in testEquals() 260 new LinkAddress(parseNumericAddress("2001:db8::47"), 64)); in testEquals()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsRecordRepositoryTest.kt | 19 import android.net.InetAddresses.parseNumericAddress in <lambda>() 75 LinkAddress(parseNumericAddress("192.0.2.111"), 24), in <lambda>() 76 LinkAddress(parseNumericAddress("2001:db8::111"), 64), in <lambda>() 77 LinkAddress(parseNumericAddress("2001:db8::222"), 64)) in <lambda>() 99 hostAddresses = listOf(parseNumericAddress("2001:db8::1"), parseNumericAddress("2001:db8::2")) in <lambda>() 106 hostAddresses = listOf(parseNumericAddress("2001:db8::3"), parseNumericAddress("2001:db8::4")) in <lambda>() 111 hostAddresses = listOf(parseNumericAddress("2001:db8::1")) in <lambda>() 244 val src = InetSocketAddress(parseNumericAddress("192.0.2.123"), 5353) in testAddAndUpdates() 565 assertContentEquals(expectedV6, getReverseDnsAddress(parseNumericAddress("2001:db8::1"))) in testGetReverseDnsAddress() 567 assertContentEquals(expectedV4, getReverseDnsAddress(parseNumericAddress("192.0.2.123"))) in testGetReverseDnsAddress() [all …]
|
D | MdnsPacketTest.kt | 66 assertEquals(InetAddresses.parseNumericAddress("192.0.2.123"), in makeFlags() 68 assertEquals(InetAddresses.parseNumericAddress("2001:db8::123"), in makeFlags() 70 assertEquals(InetAddresses.parseNumericAddress("2001:db8::456"), in makeFlags() 72 assertEquals(InetAddresses.parseNumericAddress("2001:db8::789"), in makeFlags()
|
D | MdnsInterfaceAdvertiserTest.kt | 19 import android.net.InetAddresses.parseNumericAddress in <lambda>() 62 private val TEST_ADDRS = listOf(LinkAddress(parseNumericAddress("2001:db8::123"), 64)) in <lambda>() 198 parseNumericAddress("192.0.2.23"), in testAddRemoveServiceWithCustomHost_restartProbingForProbingServices() 199 parseNumericAddress("2001:db8::1")) in testAddRemoveServiceWithCustomHost_restartProbingForProbingServices() 227 parseNumericAddress("192.0.2.23"), in testAddRemoveServiceWithCustomHost_restartAnnouncingForProbedServices() 228 parseNumericAddress("2001:db8::1")) in testAddRemoveServiceWithCustomHost_restartAnnouncingForProbedServices() 254 parseNumericAddress("192.0.2.23"), in testAddMoreAddressesForCustomHost_restartAnnouncingForProbedServices() 255 parseNumericAddress("2001:db8::1")) in testAddMoreAddressesForCustomHost_restartAnnouncingForProbedServices() 314 val src = InetSocketAddress(parseNumericAddress("2001:db8::456"), MdnsConstants.MDNS_PORT) in testReplyToQuery() 341 val src = InetSocketAddress(parseNumericAddress("2001:db8::456"), MdnsConstants.MDNS_PORT) in testReplyToQuery_TruncatedBitSet() [all …]
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | ConnectivityUtilsTest.java | 19 import static android.net.InetAddresses.parseNumericAddress; 38 assertTrue(isIPv6ULA(parseNumericAddress("fc00::"))); in testIsIPv6ULA() 39 assertTrue(isIPv6ULA(parseNumericAddress("fc00::1"))); in testIsIPv6ULA() 40 assertTrue(isIPv6ULA(parseNumericAddress("fc00:1234::5678"))); in testIsIPv6ULA() 41 assertTrue(isIPv6ULA(parseNumericAddress("fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"))); in testIsIPv6ULA() 43 assertFalse(isIPv6ULA(parseNumericAddress("fe00::"))); in testIsIPv6ULA() 44 assertFalse(isIPv6ULA(parseNumericAddress("2480:1248::123:456"))); in testIsIPv6ULA()
|
D | DnsSvcbPacketTest.java | 284 assertEquals(Arrays.asList(InetAddresses.parseNumericAddress("4.3.2.1")), in testDnsSvcbRecord_svcParamIpv4Hint() 300 assertEquals(Arrays.asList(InetAddresses.parseNumericAddress("2001:db8::1")), in testDnsSvcbRecord_svcParamIpv6Hint() 348 InetAddresses.parseNumericAddress("1.2.3.4"), in testDnsSvcbRecord() 349 InetAddresses.parseNumericAddress("6.7.8.9"), in testDnsSvcbRecord() 350 InetAddresses.parseNumericAddress("2001:db8::1")), record.getAddresses()); in testDnsSvcbRecord() 364 .addRdata(InetAddresses.parseNumericAddress("1.2.3.4").getAddress()) in testDnsSvcbRecord_invalidDnsRecord() 478 InetAddresses.parseNumericAddress("1.2.3.4"), in testDnsSvcbPacket() 479 InetAddresses.parseNumericAddress("6.7.8.9"), in testDnsSvcbPacket() 480 InetAddresses.parseNumericAddress("2001:db8::1"), in testDnsSvcbPacket() 483 InetAddresses.parseNumericAddress("4.3.2.1"), in testDnsSvcbPacket() [all …]
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/ |
D | InetDiagSocketTest.java | 318 new InetSocketAddress(InetAddresses.parseNumericAddress("2001:db8::1"), 43031), in testInetDiagReqV2TcpInet6Destroy() 319 new InetSocketAddress(InetAddresses.parseNumericAddress("2001:db8::2"), 38415), in testInetDiagReqV2TcpInet6Destroy() 389 new InetSocketAddress(InetAddresses.parseNumericAddress("2001:db8::1"), 43031), in assertInetDiagMsg1() 390 new InetSocketAddress(InetAddresses.parseNumericAddress("2001:db8::2"), 38415), in assertInetDiagMsg1() 455 new InetSocketAddress(InetAddresses.parseNumericAddress("2001:db8::3"), 43077), in assertInetDiagMsg2() 456 new InetSocketAddress(InetAddresses.parseNumericAddress("2001:db8::4"), 443), in assertInetDiagMsg2() 678 InetAddresses.parseNumericAddress("127.0.0.1"), in testIsLoopback() 679 InetAddresses.parseNumericAddress("192.0.2.1"), in testIsLoopback() 683 InetAddresses.parseNumericAddress("192.0.2.1"), in testIsLoopback() 684 InetAddresses.parseNumericAddress("127.7.7.7"), in testIsLoopback() [all …]
|
D | ConntrackMessageTest.java | 171 assertEquals(InetAddress.parseNumericAddress("192.168.43.209"), in testConntrackParseIPv4TcpTimeoutUpdate() 173 assertEquals(InetAddress.parseNumericAddress("23.211.13.26"), in testConntrackParseIPv4TcpTimeoutUpdate() 220 assertEquals(InetAddress.parseNumericAddress("100.96.167.146"), in testConntrackParseIPv4UdpTimeoutUpdate() 222 assertEquals(InetAddress.parseNumericAddress("216.58.197.10"), in testConntrackParseIPv4UdpTimeoutUpdate() 314 assertEquals(InetAddress.parseNumericAddress("192.168.80.12"), in testParseCtNew() 316 assertEquals(InetAddress.parseNumericAddress("140.112.8.116"), in testParseCtNew() 322 assertEquals(InetAddress.parseNumericAddress("140.112.8.116"), in testParseCtNew() 324 assertEquals(InetAddress.parseNumericAddress("100.81.179.1"), in testParseCtNew()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | QosSocketFilterTest.java | 53 final InetAddress addressA = InetAddresses.parseNumericAddress("1.2.3.4"); in testPortExactMatch() 54 final InetAddress addressB = InetAddresses.parseNumericAddress("1.2.3.4"); in testPortExactMatch() 61 final InetAddress addressA = InetAddresses.parseNumericAddress("1.2.3.4"); in testPortLessThanStart() 62 final InetAddress addressB = InetAddresses.parseNumericAddress("1.2.3.4"); in testPortLessThanStart() 69 final InetAddress addressA = InetAddresses.parseNumericAddress("1.2.3.4"); in testPortGreaterThanEnd() 70 final InetAddress addressB = InetAddresses.parseNumericAddress("1.2.3.4"); in testPortGreaterThanEnd() 77 final InetAddress addressA = InetAddresses.parseNumericAddress("1.2.3.4"); in testPortBetweenStartAndEnd() 78 final InetAddress addressB = InetAddresses.parseNumericAddress("1.2.3.4"); in testPortBetweenStartAndEnd() 85 final InetAddress addressA = InetAddresses.parseNumericAddress("1.2.3.4"); in testAddressesDontMatch() 86 final InetAddress addressB = InetAddresses.parseNumericAddress("1.2.3.5"); in testAddressesDontMatch() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/ |
D | ChildSessionParamsTest.java | 53 InetAddress.parseNumericAddress("192.0.2.100"), in ChildSessionParamsTest() 54 InetAddress.parseNumericAddress("192.0.2.101")); in ChildSessionParamsTest() 59 InetAddress.parseNumericAddress("192.0.2.200"), in ChildSessionParamsTest() 60 InetAddress.parseNumericAddress("192.0.2.255")); in ChildSessionParamsTest() 139 final InetAddress tsStartAddress = InetAddresses.parseNumericAddress("0.0.0.0"); in getExpectedDefaultIpv4Ts() 140 final InetAddress tsEndAddress = InetAddresses.parseNumericAddress("255.255.255.255"); in getExpectedDefaultIpv4Ts() 146 final InetAddress tsStartAddress = InetAddresses.parseNumericAddress("::"); in getExpectedDefaultIpv6Ts() 147 final InetAddress tsEndAddress = InetAddresses.parseNumericAddress( in getExpectedDefaultIpv6Ts()
|
D | IkeTrafficSelectorTest.java | 42 InetAddresses.parseNumericAddress("192.0.2.100"); 44 InetAddresses.parseNumericAddress("192.0.3.101"); 50 InetAddresses.parseNumericAddress("192.0.4.100"); 52 InetAddresses.parseNumericAddress("192.0.4.102"); 55 InetAddresses.parseNumericAddress("::"); 57 InetAddresses.parseNumericAddress("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"); 313 InetAddress inet6Address = InetAddresses.parseNumericAddress("0:2001:0:db8::1"); in testBuildIkeTrafficSelectorWithMismatchedAddressType() 389 InetAddresses.parseNumericAddress( in testIpv6TsContains()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | DnsManagerTest.java | 159 InetAddress.parseNumericAddress("4.4.4.4"), "", in testTrackedValidationUpdates() 184 InetAddress.parseNumericAddress("6.6.6.6"), in testTrackedValidationUpdates() 185 InetAddress.parseNumericAddress("2001:db8:66:66::1") in testTrackedValidationUpdates() 199 InetAddress.parseNumericAddress("6.6.6.6"), "strictmode.com", in testTrackedValidationUpdates() 203 assertEquals(Arrays.asList(InetAddress.parseNumericAddress("6.6.6.6")), in testTrackedValidationUpdates() 208 InetAddress.parseNumericAddress("2001:db8:66:66::1"), "strictmode.com", in testTrackedValidationUpdates() 213 InetAddress.parseNumericAddress("2001:db8:66:66::1"), in testTrackedValidationUpdates() 214 InetAddress.parseNumericAddress("6.6.6.6")), in testTrackedValidationUpdates() 231 InetAddress.parseNumericAddress("3.3.3.3"), "", in testIgnoreUntrackedValidationUpdates() 245 InetAddress.parseNumericAddress("3.3.3.3"), "", in testIgnoreUntrackedValidationUpdates() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/ |
D | IpReachabilityMonitorTest.kt | 25 import android.net.InetAddresses.parseNumericAddress in <lambda>() 103 private val TEST_IPV4_GATEWAY = parseNumericAddress("192.168.222.3") as Inet4Address in <lambda>() 104 private val TEST_IPV6_GATEWAY = parseNumericAddress("2001:db8::1") as Inet6Address in <lambda>() 110 private val TEST_IPV4_GATEWAY_DNS = parseNumericAddress("192.168.222.100") as Inet4Address in <lambda>() 116 private val TEST_IPV6_LINKLOCAL_GATEWAY = parseNumericAddress("fe80::1") as Inet6Address in <lambda>() 117 private val TEST_IPV6_LINKLOCAL_SCOPED_GATEWAY = parseNumericAddress("fe80::1%21") as Inet6Address in <lambda>() 118 private val TEST_IPV6_LINKLOCAL_GATEWAY2 = parseNumericAddress("fe80::2") as Inet6Address in <lambda>() 119 private val TEST_IPV6_LINKLOCAL_SCOPED_GATEWAY2 = parseNumericAddress("fe80::2%22") as Inet6Address in <lambda>() 122 private val TEST_IPV4_DNS = parseNumericAddress("192.168.222.1") as Inet4Address in <lambda>() 123 private val TEST_IPV6_DNS = parseNumericAddress("2001:db8::321") as Inet6Address in <lambda>() [all …]
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkStateSnapshotTest.kt | 21 import android.net.InetAddresses.parseNumericAddress 38 private val TEST_IPV4_GATEWAY = parseNumericAddress("192.168.222.3") as Inet4Address 39 private val TEST_IPV6_GATEWAY = parseNumericAddress("2001:db8::1") as Inet6Address 49 addRoute(RouteInfo(IpPrefix(parseNumericAddress("0.0.0.0"), 0), TEST_IPV4_GATEWAY)) in <lambda>() 50 addRoute(RouteInfo(IpPrefix(parseNumericAddress("::"), 0), TEST_IPV6_GATEWAY)) in <lambda>()
|
D | TcpKeepalivePacketDataTest.kt | 19 import android.net.InetAddresses.parseNumericAddress in <lambda>() 35 srcAddress: InetAddress = parseNumericAddress("192.0.2.123"), in <lambda>() 37 dstAddress: InetAddress = parseNumericAddress("192.0.2.231"), in <lambda>() 59 assertNotEquals(makeData(srcAddress = parseNumericAddress("192.0.2.124")), makeData()) in <lambda>() 61 assertNotEquals(makeData(dstAddress = parseNumericAddress("192.0.2.232")), makeData()) in <lambda>()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpResultsParcelableUtilTest.java | 19 import static android.net.InetAddresses.parseNumericAddress; 56 mDhcpResults.ipAddress = new LinkAddress(parseNumericAddress("192.168.42.19"), 25); in setUp() 57 mDhcpResults.gateway = parseNumericAddress("192.168.42.42"); in setUp() 58 mDhcpResults.dnsServers.add(parseNumericAddress("8.8.8.8")); in setUp() 59 mDhcpResults.dnsServers.add(parseNumericAddress("192.168.43.43")); in setUp() 61 mDhcpResults.serverAddress = (Inet4Address) parseNumericAddress("192.168.44.44"); in setUp()
|
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/ |
D | ServiceDiscoveryTest.java | 19 import static android.net.InetAddresses.parseNumericAddress; 229 ftd.setSrpHostAddresses(List.of((Inet6Address) parseNumericAddress("2001:db8::1"))); in advertisingProxy_srpClientUpdatesService_updatedServiceResolvableByMdns() 240 (Inet6Address) parseNumericAddress("2001:db8::1"), in advertisingProxy_srpClientUpdatesService_updatedServiceResolvableByMdns() 241 (Inet6Address) parseNumericAddress("2001:db8::2"))); in advertisingProxy_srpClientUpdatesService_updatedServiceResolvableByMdns() 264 parseNumericAddress("2001:db8::1"), parseNumericAddress("2001:db8::2")); in advertisingProxy_srpClientUpdatesService_updatedServiceResolvableByMdns() 287 (Inet6Address) parseNumericAddress("2001:db8::1"), in advertisingProxy_srpClientUnregistersService_serviceIsNotDiscoverableByMdns() 288 (Inet6Address) parseNumericAddress("2001:db8::2"))); in advertisingProxy_srpClientUnregistersService_serviceIsNotDiscoverableByMdns() 342 info.setHostAddresses(List.of(parseNumericAddress("2001::1"))); in discoveryProxy_multipleClientsBrowseAndResolveServiceOverMdns() 392 .containsExactly(parseNumericAddress("2001::1")); in discoveryProxy_multipleClientsBrowseAndResolveServiceOverMdns() 415 srpClient.setSrpHostAddresses(List.of((Inet6Address) parseNumericAddress("2001::1"))); in discoveryProxy_browseAndResolveServiceAtSrpServer() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeTsPayloadTest.java | 43 (Inet4Address) InetAddresses.parseNumericAddress("192.0.2.100"); 45 (Inet4Address) InetAddresses.parseNumericAddress("192.0.3.101"); 50 (Inet4Address) InetAddresses.parseNumericAddress("192.0.4.100"); 52 (Inet4Address) InetAddresses.parseNumericAddress("192.0.4.102"); 117 (Inet4Address) InetAddresses.parseNumericAddress("192.0.2.200"), in testContains()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | InetAddressesTest.java | 84 public void parseNumericAddress(String address, String expectedString) { in parseNumericAddress() method in InetAddressesTest 85 InetAddress inetAddress = InetAddresses.parseNumericAddress(address); in parseNumericAddress() 93 InetAddress inetAddress = InetAddresses.parseNumericAddress(address); in test_parseNonNumericAddress() 104 InetAddress inetAddress = InetAddresses.parseNumericAddress(null); in test_parseNumericAddress_null()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | NetworkStackConstants.java | 138 (Inet6Address) InetAddresses.parseNumericAddress("ff02::1"); 140 (Inet6Address) InetAddresses.parseNumericAddress("ff02::2"); 142 (Inet6Address) InetAddresses.parseNumericAddress("ff02::3"); 245 (Inet6Address) InetAddresses.parseNumericAddress("ff02::1:2");
|