Home
last modified time | relevance | path

Searched refs:getDnsServers (Results 1 – 25 of 38) sorted by relevance

12

/aosp12/packages/modules/Connectivity/tests/common/java/android/net/
H A DStaticIpConfigurationTest.java239 assertTrue(s.dnsServers.equals(s.getDnsServers())); in testBuilder()
240 assertEquals(1, s.getDnsServers().size()); in testBuilder()
241 assertEquals(DNS1, s.getDnsServers().get(0)); in testBuilder()
250 assertEquals(1, s.getDnsServers().size()); in testAddDnsServers()
251 assertEquals(DNS1, s.getDnsServers().get(0)); in testAddDnsServers()
255 assertEquals(3, s.getDnsServers().size()); in testAddDnsServers()
256 assertEquals(DNS2, s.getDnsServers().get(1)); in testAddDnsServers()
257 assertEquals(DNS3, s.getDnsServers().get(2)); in testAddDnsServers()
H A DLinkPropertiesTest.java112 assertEquals(0, lp.getDnsServers().size()); in checkEmpty()
1036 assertEquals(strAddress, unparceled.getDnsServers().get(0).getHostAddress()); in testLinkLocalDnsServerParceling()
1061 assertEquals(2, lp.getDnsServers().size()); in testDnsServers()
1062 assertEquals(DNS1, lp.getDnsServers().get(0)); in testDnsServers()
1063 assertEquals(DNS2, lp.getDnsServers().get(1)); in testDnsServers()
1066 assertEquals(1, lp.getDnsServers().size()); in testDnsServers()
1067 assertEquals(DNS2, lp.getDnsServers().get(0)); in testDnsServers()
1070 assertEquals(2, lp.getDnsServers().size()); in testDnsServers()
1071 assertEquals(DNS2, lp.getDnsServers().get(0)); in testDnsServers()
1072 assertEquals(DNS6, lp.getDnsServers().get(1)); in testDnsServers()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
H A DAdvancedOptionsFlowInfo.java170 && mIpConfiguration.getStaticIpConfiguration().getDnsServers() != null) { in getInitialDns()
172 return mIpConfiguration.getStaticIpConfiguration().getDnsServers().get(index); in getInitialDns()
/aosp12/frameworks/libs/net/common/framework/com/android/net/module/util/
H A DLinkPropertiesUtils.java173 final Collection<InetAddress> leftDnses = left.getDnsServers(); in isIdenticalDnses()
174 final Collection<InetAddress> rightDnses = right.getDnsServers(); in isIdenticalDnses()
/aosp12/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
H A DIpClientIntegrationTestCommon.java986 assertNotEquals(0, lp.getDnsServers().size());
1437 assertEquals(0, lp.getDnsServers().size());
1638 assertEquals(1, lp.getDnsServers().size());
1648 assertEquals(2, lp.getDnsServers().size());
1661 assertEquals(0, lp.getDnsServers().size());
1842 && x.getDnsServers().size() == 0));
2211 assertEquals(1, lease.getDnsServers().size());
2402 assertTrue(lp.getDnsServers().contains(SERVER_ADDR));
2437 && x.getDnsServers().size() == 1
2448 assertEquals(lp.getDnsServers().get(0), SERVER_ADDR);
[all …]
/aosp12/packages/modules/Connectivity/core/java/android/net/
H A DLinkProperties.java93 for (InetAddress i : source.getDnsServers()) mDnses.add(i); in LinkProperties()
281 public List<InetAddress> getDnsServers() { in getDnsServers() method in LinkProperties
568 Collection<InetAddress> targetDnses = target.getDnsServers(); in isIdenticalDnses()
721 for (InetAddress newAddress : target.getDnsServers()) { in compareDnses()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
H A DWifiDnsPreferenceController.java48 dnsServers = linkProperties.getDnsServers().stream() in updateState()
/aosp12/frameworks/base/core/java/android/net/
H A DDhcpResults.java95 dnsServers.addAll(source.getDnsServers()); in DhcpResults()
272 public List<InetAddress> getDnsServers() { in getDnsServers() method in DhcpResults
/aosp12/frameworks/base/tests/vcn/java/com/android/server/vcn/
H A DVcnGatewayConnectionConnectedStateTest.java325 assertEquals(Collections.singletonList(TEST_DNS_ADDR), lp.getDnsServers()); in testChildOpenedRegistersNetwork()
365 .equals(lp.getDnsServers())), in testInternalAndDnsAddressesChanged()
390 && Collections.singletonList(TEST_DNS_ADDR_2).equals(lp.getDnsServers()))); in testInternalAndDnsAddressesChanged()
/aosp12/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
H A DIPv6TetheringCoordinator.java251 for (InetAddress dnsServer : lp.getDnsServers()) { in getIPv6OnlyLinkProperties()
/aosp12/packages/modules/Connectivity/framework/src/android/net/
H A DStaticIpConfiguration.java111 public @NonNull List<InetAddress> getDnsServers() { in getDnsServers() method in StaticIpConfiguration
H A DLinkProperties.java415 public @NonNull List<InetAddress> getDnsServers() { in getDnsServers() method in LinkProperties
/aosp12/frameworks/base/services/core/java/com/android/server/net/
H A DIpConfigStore.java105 for (InetAddress inetAddr : staticIpConfiguration.getDnsServers()) { in writeConfig()
/aosp12/packages/modules/Connectivity/service/src/com/android/server/connectivity/
H A DDnsManager.java376 paramsParcel.servers = makeStrings(lp.getDnsServers()); in sendDnsConfigurationForNetwork()
H A DNetworkDiagnostics.java217 for (InetAddress nameserver : mLinkProperties.getDnsServers()) { in NetworkDiagnostics()
/aosp12/packages/modules/NetworkStack/src/android/net/ip/
H A DIpReachabilityMonitor.java320 for (InetAddress dns : lp.getDnsServers()) {
/aosp12/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
H A DWifiEntry.java933 mConnectedInfo.dnsServers = linkProperties.getDnsServers().stream() in updateLinkProperties()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/util/
H A DXmlUtil.java952 String[] dnsServers = new String[staticIpConfiguration.getDnsServers().size()]; in writeStaticIpConfigurationToXml()
954 for (InetAddress inetAddr : staticIpConfiguration.getDnsServers()) { in writeStaticIpConfigurationToXml()
/aosp12/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
H A DConnectivityFragment.java398 ni.mDnsAddresses = "DNS: " + nLink.getDnsServers().toString(); in getNetworkItem()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
H A DDataConnectionTest.java1064 assertEquals(response.getDnsAddresses().size(), linkProperties.getDnsServers().size()); in testSetLinkProperties()
1068 linkProperties.getDnsServers().get(i).getHostAddress())); in testSetLinkProperties()
/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
H A DIpClientTest.java275 lp.getDnsServers().stream().map(InetAddress::getHostAddress) in doProvisioningWithDefaultConfiguration()
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiConfigController.java907 .setDnsServers(staticIpConfiguration.getDnsServers()) in validateIpConfigFields()
1399 Iterator<InetAddress> dnsIterator = staticConfig.getDnsServers().iterator(); in showIpConfigFields()
H A DWifiConfigController2.java886 .setDnsServers(staticIpConfiguration.getDnsServers()) in validateIpConfigFields()
1378 Iterator<InetAddress> dnsIterator = staticConfig.getDnsServers().iterator(); in showIpConfigFields()
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/details2/
H A DWifiDetailPreferenceController2.java904 String dnsServers = mLinkProperties.getDnsServers().stream() in refreshIpLayerInfo()
/aosp12/packages/modules/Connectivity/services/core/java/com/android/server/
H A DConnectivityService.java2694 dnsDiff.added = newLp.getDnsServers(); in updateRoutes()
2918 Collection<InetAddress> dnses = p.getDnsServers(); in handleDnsConfigurationChange()
5637 Collection<InetAddress> dnses = newLp.getDnsServers(); in updateDnses()
5803 newNetwork.linkProperties.getDnsServers()); in handleConnectionValidated()

12