Searched refs:dns (Results 1 - 6 of 6) sorted by relevance

/frameworks/base/core/java/android/net/
H A DDnsPinger.java73 //Invalidates old dns requests upon a cancel
79 * Async response packet for dns pings.
110 InetAddress dns; field in class:DnsPinger.DnsArg
114 dns = d;
145 InetAddress dnsAddress = dnsArg.dns;
253 loge("getDns::LinkProps has null dns - returning default");
263 * @param dns address of dns server to ping
267 public int pingDnsAsync(InetAddress dns, int timeout, int delay) { argument
270 new DnsArg(dns, mCurrentToke
[all...]
H A DLinkProperties.java35 * multiple dns servers but only one http proxy.
37 * Because it's a single network, the dns's
44 * the local network. The dns servers all return
115 public void addDns(InetAddress dns) { argument
116 if (dns != null) mDnses.add(dns);
161 String dns = "DnsAddresses: [";
162 for (InetAddress addr : mDnses) dns += addr.getHostAddress() + ",";
163 dns += "] ";
170 return ifaceName + linkAddresses + routes + dns
[all...]
/frameworks/base/core/java/android/os/
H A DINetworkManagementService.aidl172 void setDnsForwarders(in String[] dns);
/frameworks/base/services/java/com/android/server/
H A DConnectivityService.java345 // read our default dns server ip
346 String dns = Settings.Secure.getString(context.getContentResolver(),
348 if (dns == null || dns.length() == 0) {
349 dns = context.getResources().getString(
353 mDefaultDns = NetworkUtils.numericToInetAddress(dns);
355 loge("Error setting defaultDns using " + dns);
1021 // this gets used for per-pid dns when connected
1036 // add the pid-specific dns
1061 // this gets used for per-pid dns whe
[all...]
H A DNetworkManagementService.java822 public void setDnsForwarders(String[] dns) throws IllegalStateException { argument
826 String cmd = "tether dns set";
827 for (String s : dns) {
834 "Unable to communicate to native daemon for setting tether dns");
837 throw new IllegalStateException("Error resolving dns name", e);
846 "tether dns list", NetdResponseCode.TetherDnsFwdTgtListResult);
849 "Unable to communicate to native daemon for listing tether dns");
1441 "Error communicating with native daemon to set dns for interface", e);
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiConfigStore.java132 private static final String DNS_KEY = "dns";
1193 for (InetAddress dns : config.linkProperties.getDnses()) {
1194 linkProperties.addDns(dns);

Completed in 143 milliseconds