Home
last modified time | relevance | path

Searched refs:dnsServer (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/net/
DLinkProperties.java381 public boolean addDnsServer(@NonNull InetAddress dnsServer) { in addDnsServer() argument
382 if (dnsServer != null && !mDnses.contains(dnsServer)) { in addDnsServer()
383 mDnses.add(dnsServer); in addDnsServer()
398 public boolean removeDnsServer(@NonNull InetAddress dnsServer) { in removeDnsServer() argument
399 return mDnses.remove(dnsServer); in removeDnsServer()
410 for (InetAddress dnsServer: dnsServers) { in setDnsServers()
411 addDnsServer(dnsServer); in setDnsServers()
509 public boolean addValidatedPrivateDnsServer(@NonNull InetAddress dnsServer) { in addValidatedPrivateDnsServer() argument
510 if (dnsServer != null && !mValidatedPrivateDnses.contains(dnsServer)) { in addValidatedPrivateDnsServer()
511 mValidatedPrivateDnses.add(dnsServer); in addValidatedPrivateDnsServer()
[all …]
DStaticIpConfiguration.java256 for (InetAddress dnsServer : dnsServers) { in toString()
257 str.append(" ").append(dnsServer.getHostAddress()); in toString()
314 for (InetAddress dnsServer : dnsServers) { in writeToParcel()
315 InetAddressUtils.parcelInetAddress(dest, dnsServer, flags); in writeToParcel()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinator.java251 for (InetAddress dnsServer : lp.getDnsServers()) { in getIPv6OnlyLinkProperties()
252 if (isIPv6GlobalAddress(dnsServer)) { in getIPv6OnlyLinkProperties()
254 v6only.addDnsServer(dnsServer); in getIPv6OnlyLinkProperties()
/frameworks/base/packages/Tethering/src/android/net/ip/
DIpServer.java524 @NonNull final Inet4Address dnsServer, @NonNull LinkAddress serverAddr, in makeServingParams() argument
531 .setDnsServers(dnsServer) in makeServingParams()
722 final Inet6Address dnsServer = getLocalDnsIpFor(prefix); in updateUpstreamIPv6LinkProperties() local
723 if (dnsServer != null) { in updateUpstreamIPv6LinkProperties()
724 params.dnses.add(dnsServer); in updateUpstreamIPv6LinkProperties()
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java416 for (String dnsServer : dnsServers.split(" +")) { in areDnsAddressesNumeric()
417 InetAddress.parseNumericAddress(dnsServer); in areDnsAddressesNumeric()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1032 for (String dnsServer : mConfig.dnsServers) {
1033 InetAddress address = InetAddress.parseNumericAddress(dnsServer);