Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DStaticIpConfigurationTest.java255 assertTrue(s.dnsServers.equals(s.getDnsServers())); in testBuilder()
256 assertEquals(1, s.getDnsServers().size()); in testBuilder()
257 assertEquals(DNS1, s.getDnsServers().get(0)); in testBuilder()
289 assertEquals(1, s.getDnsServers().size()); in testAddDnsServers()
290 assertEquals(DNS1, s.getDnsServers().get(0)); in testAddDnsServers()
294 assertEquals(3, s.getDnsServers().size()); in testAddDnsServers()
295 assertEquals(DNS2, s.getDnsServers().get(1)); in testAddDnsServers()
296 assertEquals(DNS3, s.getDnsServers().get(2)); in testAddDnsServers()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DAdvancedOptionsFlowInfo.java170 && mIpConfiguration.getStaticIpConfiguration().getDnsServers() != null) { in getInitialDns()
172 return mIpConfiguration.getStaticIpConfiguration().getDnsServers().get(index); in getInitialDns()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DLinkPropertiesUtils.java191 final Collection<InetAddress> leftDnses = left.getDnsServers(); in isIdenticalDnses()
192 final Collection<InetAddress> rightDnses = right.getDnsServers(); in isIdenticalDnses()
/packages/modules/Connectivity/tests/common/java/android/net/
DLinkPropertiesTest.java121 assertEquals(0, lp.getDnsServers().size()); in checkEmpty()
1038 assertEquals(strAddress, unparceled.getDnsServers().get(0).getHostAddress()); in testLinkLocalDnsServerParceling()
1063 assertEquals(2, lp.getDnsServers().size()); in testDnsServers()
1064 assertEquals(DNS1, lp.getDnsServers().get(0)); in testDnsServers()
1065 assertEquals(DNS2, lp.getDnsServers().get(1)); in testDnsServers()
1068 assertEquals(1, lp.getDnsServers().size()); in testDnsServers()
1069 assertEquals(DNS2, lp.getDnsServers().get(0)); in testDnsServers()
1072 assertEquals(2, lp.getDnsServers().size()); in testDnsServers()
1073 assertEquals(DNS2, lp.getDnsServers().get(0)); in testDnsServers()
1074 assertEquals(DNS6, lp.getDnsServers().get(1)); in testDnsServers()
/packages/modules/NetworkStack/src/android/net/
DDhcpResults.java90 dnsServers.addAll(source.getDnsServers()); in DhcpResults()
295 public List<InetAddress> getDnsServers() { in getDnsServers() method in DhcpResults
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiDnsPreferenceController.java48 dnsServers = linkProperties.getDnsServers().stream() in updateState()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java1435 assertNotEquals(0, lp.getDnsServers().size());
2015 assertEquals(0, lp.getDnsServers().size());
2233 assertEquals(1, lp.getDnsServers().size());
2234 assertTrue(lp.getDnsServers().contains(InetAddress.getByName(dnsServer)));
2243 assertEquals(2, lp.getDnsServers().size());
2244 assertTrue(lp.getDnsServers().contains(InetAddress.getByName(dnsServer)));
2245 assertTrue(lp.getDnsServers().contains(InetAddress.getByName(lowlifeDnsServer)));
2256 assertEquals(0, lp.getDnsServers().size());
2285 assertEquals(1, lp.getDnsServers().size());
2286 assertEquals(ROUTER_LINK_LOCAL, (Inet6Address) lp.getDnsServers().get(0));
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinator.java252 for (InetAddress dnsServer : lp.getDnsServers()) { in getIPv6OnlyLinkProperties()
DTethering.java1884 final Collection<InetAddress> dnses = lp.getDnsServers(); in setDnsForwarders()
/packages/modules/Connectivity/framework/src/android/net/
DStaticIpConfiguration.java101 public @NonNull List<InetAddress> getDnsServers() { in getDnsServers() method in StaticIpConfiguration
DLinkProperties.java420 public @NonNull List<InetAddress> getDnsServers() { in getDnsServers() method in LinkProperties
/packages/modules/NetworkStack/src/android/net/ip/
DIpReachabilityMonitor.java407 for (InetAddress dns : mLinkProperties.getDnsServers()) {
434 for (InetAddress dns : lp.getDnsServers()) {
DIpClient.java1865 addAllReachableDnsServers(newLp, netlinkLinkProperties.getDnsServers()); in assembleLinkProperties()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DIpConfigStore.java111 for (InetAddress inetAddr : staticIpConfiguration.getDnsServers()) { in writeConfig()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDnsManager.java381 paramsParcel.servers = makeStrings(lp.getDnsServers()); in sendDnsConfigurationForNetwork()
DNetworkDiagnostics.java230 for (InetAddress nameserver : mLinkProperties.getDnsServers()) { in NetworkDiagnostics()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java341 return lp.getDnsServers().size() == lp.getValidatedPrivateDnsServers().size(); in areAllPrivateDnsServersValidated()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java394 ni.mDnsAddresses = "DNS: " + nLink.getDnsServers().toString(); in getNetworkItem()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java938 .setDnsServers(staticIpConfiguration.getDnsServers()) in validateIpConfigFields()
1431 Iterator<InetAddress> dnsIterator = staticConfig.getDnsServers().iterator(); in showIpConfigFields()
DWifiConfigController2.java952 .setDnsServers(staticIpConfiguration.getDnsServers()) in validateIpConfigFields()
1470 Iterator<InetAddress> dnsIterator = staticConfig.getDnsServers().iterator(); in showIpConfigFields()
/packages/apps/Settings/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2.java855 String dnsServers = mLinkProperties.getDnsServers().stream() in refreshIpLayerInfo()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java1229 String[] dnsServers = new String[staticIpConfiguration.getDnsServers().size()]; in writeStaticIpConfigurationToXml()
1231 for (InetAddress inetAddr : staticIpConfiguration.getDnsServers()) { in writeStaticIpConfigurationToXml()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java398 lp.getDnsServers().stream().map(InetAddress::getHostAddress) in doProvisioningWithDefaultConfiguration()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt250 method @NonNull public java.util.List<java.net.InetAddress> getDnsServers();
512 method @NonNull public java.util.List<java.net.InetAddress> getDnsServers();
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java5127 for (InetAddress dns : dhcpResults.baseConfiguration.getDnsServers()) {

12