Home
last modified time | relevance | path

Searched refs:numericToInetAddress (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataCallResponseTest.java39 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testParcel()
40 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_DNS)), in testParcel()
41 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_GATEWAY)), in testParcel()
56 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testEquals()
57 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_DNS)), in testEquals()
58 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_GATEWAY)), in testEquals()
63 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testEquals()
64 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_DNS)), in testEquals()
65 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_GATEWAY)), in testEquals()
73 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testEquals()
[all …]
DCellularDataServiceTest.java68 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress("10.0.2.15"), 32)), in testConvertDataCallResult()
69 Arrays.asList(NetworkUtils.numericToInetAddress("10.0.2.3")), in testConvertDataCallResult()
70 Arrays.asList(NetworkUtils.numericToInetAddress("10.0.2.15"), in testConvertDataCallResult()
71 NetworkUtils.numericToInetAddress("fe80::2")), in testConvertDataCallResult()
92 Arrays.asList(NetworkUtils.numericToInetAddress("fd00:976a::9"), in testConvertDataCallResult()
93 NetworkUtils.numericToInetAddress("fd00:976a::10")), in testConvertDataCallResult()
94 Arrays.asList(NetworkUtils.numericToInetAddress("fe80::4c61:1832:7b28:d36c"), in testConvertDataCallResult()
95 NetworkUtils.numericToInetAddress("1.2.3.4")), in testConvertDataCallResult()
DDataConnectionTest.java327 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testModemSuggestRetry()
328 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_DNS)), in testModemSuggestRetry()
329 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_GATEWAY)), in testModemSuggestRetry()
336 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testModemSuggestRetry()
337 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_DNS)), in testModemSuggestRetry()
338 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_GATEWAY)), in testModemSuggestRetry()
344 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testModemSuggestRetry()
345 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_DNS)), in testModemSuggestRetry()
346 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_GATEWAY)), in testModemSuggestRetry()
356 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testModemNotSuggestRetry()
[all …]
DDcControllerTest.java135 Arrays.asList(new LinkAddress(NetworkUtils.numericToInetAddress(FAKE_ADDRESS), 0)), in testDataDormant()
136 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_DNS)), in testDataDormant()
137 Arrays.asList(NetworkUtils.numericToInetAddress(FAKE_GATEWAY)), in testDataDormant()
/frameworks/base/tests/net/java/android/net/
DLinkPropertiesTest.java50 private static InetAddress ADDRV4 = NetworkUtils.numericToInetAddress("75.208.6.1");
51 private static InetAddress ADDRV6 = NetworkUtils.numericToInetAddress(
53 private static InetAddress DNS1 = NetworkUtils.numericToInetAddress("75.208.7.1");
54 private static InetAddress DNS2 = NetworkUtils.numericToInetAddress("69.78.7.1");
55 private static InetAddress DNS6 = NetworkUtils.numericToInetAddress("2001:4860:4860::8888");
56 private static InetAddress GATEWAY1 = NetworkUtils.numericToInetAddress("75.208.8.1");
57 private static InetAddress GATEWAY2 = NetworkUtils.numericToInetAddress("69.78.8.1");
58 private static InetAddress GATEWAY61 = NetworkUtils.numericToInetAddress("fe80::6:0000:613");
59 private static InetAddress GATEWAY62 = NetworkUtils.numericToInetAddress("fe80::6:2222");
69 return NetworkUtils.numericToInetAddress(addrString); in Address()
[all …]
DLinkAddressTest.java60 private static final InetAddress V4_ADDRESS = NetworkUtils.numericToInetAddress(V4);
61 private static final InetAddress V6_ADDRESS = NetworkUtils.numericToInetAddress(V6);
123 assertEquals(NetworkUtils.numericToInetAddress("127.0.0.1"), ipv4Loopback.getAddress()); in testConstructors()
126 assertEquals(NetworkUtils.numericToInetAddress("::1"), ipv6Loopback.getAddress()); in testConstructors()
/frameworks/base/core/java/android/net/
DDhcpResults.java148 Inet4Address addr = (Inet4Address) NetworkUtils.numericToInetAddress(addrString); in setIpAddress()
159 gateway = NetworkUtils.numericToInetAddress(addrString); in setGateway()
170 dnsServers.add(NetworkUtils.numericToInetAddress(addrString)); in addDns()
181 serverAddress = (Inet4Address) NetworkUtils.numericToInetAddress(addrString); in setServerAddress()
DKeepalivePacketData.java145 srcAddress = NetworkUtils.numericToInetAddress(in.readString()); in KeepalivePacketData()
146 dstAddress = NetworkUtils.numericToInetAddress(in.readString()); in KeepalivePacketData()
DNetworkUtils.java207 public static InetAddress numericToInetAddress(String addrString) in numericToInetAddress() method in NetworkUtils
337 return numericToInetAddress(String.format(Locale.US, "%s:%s:%s:%s:%s:%s:%s:%s", in hexToInet6Address()
DIpSecTransform.java315 NetworkUtils.numericToInetAddress(mConfig.getSourceAddress()), in startNattKeepalive()
317 NetworkUtils.numericToInetAddress(mConfig.getDestinationAddress())); in startNattKeepalive()
DProxy.java205 if (NetworkUtils.numericToInetAddress(host).isLoopbackAddress()) { in isLocalHost()
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java287 NetworkUtils.numericToInetAddress(in.readUTF()), in.readInt()); in readIpConfigurations()
299 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); in readIpConfigurations()
308 NetworkUtils.numericToInetAddress(in.readUTF()), in readIpConfigurations()
312 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); in readIpConfigurations()
324 NetworkUtils.numericToInetAddress(in.readUTF())); in readIpConfigurations()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DIpConfigStoreTest.java81 staticIpConfiguration.dnsServers.add(NetworkUtils.numericToInetAddress(DNS_IP_ADDR_1)); in staticIpMultiNetworks()
82 staticIpConfiguration.dnsServers.add(NetworkUtils.numericToInetAddress(DNS_IP_ADDR_2)); in staticIpMultiNetworks()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java100 InetAddress addrV4 = NetworkUtils.numericToInetAddress("75.208.6.1"); in createProvisionedLinkProperties()
101 InetAddress dns1 = NetworkUtils.numericToInetAddress("75.208.7.1"); in createProvisionedLinkProperties()
103 InetAddress gateway1 = NetworkUtils.numericToInetAddress("75.208.8.1"); in createProvisionedLinkProperties()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DCellularDataService.java262 InetAddress ia = NetworkUtils.numericToInetAddress(address); in convertDataCallResult()
285 ia = NetworkUtils.numericToInetAddress(dns); in convertDataCallResult()
305 ia = NetworkUtils.numericToInetAddress(gateway); in convertDataCallResult()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java491 NetworkUtils.numericToInetAddress(linkAddressString), linkPrefixLength); in parseIpConfigurationFromXml()
500 InetAddress gateway = NetworkUtils.numericToInetAddress(gatewayAddressString); in parseIpConfigurationFromXml()
511 NetworkUtils.numericToInetAddress(dnsServerAddressString); in parseIpConfigurationFromXml()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DTetheringTest.java252 NetworkUtils.numericToInetAddress("10.0.0.1"), TEST_MOBILE_IFNAME)); in buildMobileUpstreamState()
256 prop.addDnsServer(NetworkUtils.numericToInetAddress("2001:db8::2")); in buildMobileUpstreamState()
258 new LinkAddress(NetworkUtils.numericToInetAddress("2001:db8::"), in buildMobileUpstreamState()
261 NetworkUtils.numericToInetAddress("2001:db8::1"), TEST_MOBILE_IFNAME)); in buildMobileUpstreamState()
268 NetworkUtils.numericToInetAddress("192.0.0.1"), TEST_XLAT_MOBILE_IFNAME)); in buildMobileUpstreamState()
/frameworks/base/services/core/java/com/android/server/connectivity/
DKeepaliveTracker.java341 srcAddress = NetworkUtils.numericToInetAddress(srcAddrString); in startNattKeepalive()
342 dstAddress = NetworkUtils.numericToInetAddress(dstAddrString); in startNattKeepalive()
DNetworkDiagnostics.java89 private static final InetAddress TEST_DNS4 = NetworkUtils.numericToInetAddress("8.8.8.8");
90 private static final InetAddress TEST_DNS6 = NetworkUtils.numericToInetAddress(
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java179 NetworkUtils.numericToInetAddress(linkAddress), linkPrefixLength); in generateIpConfig()
185 NetworkUtils.numericToInetAddress(gatewayAddress); in generateIpConfig()
192 NetworkUtils.numericToInetAddress(dnsServerAddress)); in generateIpConfig()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java770 NetworkUtils.numericToInetAddress(linkAddressString), in parseStaticIpConfigurationFromXml()
783 NetworkUtils.numericToInetAddress(gatewayAddressString); in parseStaticIpConfigurationFromXml()
796 NetworkUtils.numericToInetAddress(dnsServerAddressString); in parseStaticIpConfigurationFromXml()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DTetherInterfaceStateMachine.java225 InetAddress addr = NetworkUtils.numericToInetAddress(ipAsString); in configureIPv4()
261 byte[] bytes = NetworkUtils.numericToInetAddress(WIFI_HOST_IFACE_ADDR).getAddress(); in getRandomWifiIPv4Address()
/frameworks/base/media/java/android/media/
DMedia2HTTPConnection.java164 if (NetworkUtils.numericToInetAddress(host).isLoopbackAddress()) { in isLocalHost()
DMediaHTTPConnection.java169 if (NetworkUtils.numericToInetAddress(host).isLoopbackAddress()) { in isLocalHost()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1027 addr = NetworkUtils.numericToInetAddress(st.nextToken()); in getInterfaceConfig()
1343 cmd.appendArg(NetworkUtils.numericToInetAddress(s).getHostAddress()); in setDnsForwarders()
1459 NetworkUtils.numericToInetAddress(localAddr).getHostAddress(), in attachPppd()
1460 NetworkUtils.numericToInetAddress(remoteAddr).getHostAddress(), in attachPppd()
1461 NetworkUtils.numericToInetAddress(dns1Addr).getHostAddress(), in attachPppd()
1462 NetworkUtils.numericToInetAddress(dns2Addr).getHostAddress()); in attachPppd()

12