Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DStaticIpConfiguration.java68 public final ArrayList<InetAddress> dnsServers; field in StaticIpConfiguration
75 dnsServers = new ArrayList<>(); in StaticIpConfiguration()
84 dnsServers.addAll(source.dnsServers); in StaticIpConfiguration()
92 dnsServers.clear(); in clear()
114 return dnsServers; in getDnsServers()
156 public @NonNull Builder setDnsServers(@NonNull Iterable<InetAddress> dnsServers) { in setDnsServers() argument
157 Preconditions.checkNotNull(dnsServers); in setDnsServers()
158 mDnsServers = dnsServers; in setDnsServers()
183 config.dnsServers.add(server); in build()
195 dnsServers.add(server); in addDnsServer()
[all …]
DDhcpResults.java49 public final ArrayList<InetAddress> dnsServers = new ArrayList<>(); field in DhcpResults
84 .setDnsServers(dnsServers) in toStaticIpConfiguration()
93 dnsServers.addAll(source.getDnsServers()); in DhcpResults()
134 dnsServers.clear(); in clear()
245 dnsServers.add(InetAddresses.parseNumericAddress(addrString)); in addDns()
271 return dnsServers; in getDnsServers()
278 dnsServers.add(server); in addDnsServer()
DVpnService.java636 if (mConfig.dnsServers == null) { in addDnsServer()
637 mConfig.dnsServers = new ArrayList<String>(); in addDnsServer()
639 mConfig.dnsServers.add(address.getHostAddress()); in addDnsServer()
DLinkProperties.java408 public void setDnsServers(@NonNull Collection<InetAddress> dnsServers) { in setDnsServers() argument
410 for (InetAddress dnsServer: dnsServers) { in setDnsServers()
539 public void setValidatedPrivateDnsServers(@NonNull Collection<InetAddress> dnsServers) { in setValidatedPrivateDnsServers() argument
541 for (InetAddress dnsServer: dnsServers) { in setValidatedPrivateDnsServers()
/frameworks/base/tests/net/common/java/android/net/
DStaticIpConfigurationTest.java61 assertEquals(0, s.dnsServers.size()); in checkEmpty()
68 s.dnsServers.add(DNS1); in makeTestObject()
69 s.dnsServers.add(DNS2); in makeTestObject()
70 s.dnsServers.add(DNS3); in makeTestObject()
108 s.dnsServers.add(DNS1); in testHashCodeAndEquals()
111 s.dnsServers.add(DNS2); in testHashCodeAndEquals()
114 s.dnsServers.add(DNS3); in testHashCodeAndEquals()
138 s.dnsServers.add(DNS3); in testHashCodeAndEquals()
170 s.dnsServers.add(DNS1); in testToLinkProperties()
174 s.dnsServers.add(DNS2); in testToLinkProperties()
[all …]
DLinkPropertiesTest.java1093 final List<InetAddress> dnsServers = Arrays.asList(DNS1, DNS2); in testDnsServers() local
1094 lp.setDnsServers(dnsServers); in testDnsServers()
/frameworks/base/packages/Tethering/src/android/net/dhcp/
DDhcpServingParamsParcelExt.java90 public DhcpServingParamsParcelExt setDnsServers(@NonNull Set<Inet4Address> dnsServers) { in setDnsServers() argument
91 this.dnsServers = toIntArray(dnsServers); in setDnsServers()
100 public DhcpServingParamsParcelExt setDnsServers(@NonNull Inet4Address... dnsServers) { in setDnsServers() argument
101 return setDnsServers(newArraySet(dnsServers)); in setDnsServers()
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java92 public String dnsServers = ""; // 5 field in VpnProfile
163 dnsServers = in.readString(); in VpnProfile()
214 out.writeString(dnsServers); in writeToParcel()
272 profile.dnsServers = values[5]; in decode()
325 builder.append(VALUE_DELIMITER).append(dnsServers); in encode()
410 return !TextUtils.isEmpty(dnsServers); in hasDns()
416 for (String dnsServer : dnsServers.split(" +")) { in areDnsAddressesNumeric()
443 key, type, server, username, password, dnsServers, searchDomains, routes, mppe, in hashCode()
463 && Objects.equals(dnsServers, other.dnsServers) in equals()
DVpnConfig.java97 public List<String> dnsServers; field in VpnConfig
163 out.writeStringList(dnsServers); in writeToParcel()
190 config.dnsServers = in.createStringArrayList();
223 .append(", dns=").append(toString(dnsServers)) in toString()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DIpConfigStoreTest.java82 staticIpConfiguration.dnsServers.add(NetworkUtils.numericToInetAddress(DNS_IP_ADDR_1)); in staticIpMultiNetworks()
83 staticIpConfiguration.dnsServers.add(NetworkUtils.numericToInetAddress(DNS_IP_ADDR_2)); in staticIpMultiNetworks()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1031 if (mConfig.dnsServers != null) {
1032 for (String dnsServer : mConfig.dnsServers) {
2046 if (!profile.dnsServers.isEmpty()) {
2047 config.dnsServers = Arrays.asList(profile.dnsServers.split(" +"));
2305 if (mConfig.dnsServers == null) mConfig.dnsServers = new ArrayList<>();
2306 mConfig.dnsServers.clear();
2307 mConfig.dnsServers.addAll(dnsAddrStrings);
2780 if (mConfig.dnsServers == null || mConfig.dnsServers.size() == 0) {
2781 String dnsServers = parameters[3].trim();
2782 if (!dnsServers.isEmpty()) {
[all …]
/frameworks/base/tests/net/java/com/android/internal/net/
DVpnProfileTest.java59 assertEquals("", p.dnsServers); in testDefaults()
86 p.dnsServers = "8.8.8.8"; in getSampleIkev2Profile()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java793 if (staticIpConfiguration.dnsServers != null) { in writeStaticIpConfigurationToXml()
795 String[] dnsServers = new String[staticIpConfiguration.dnsServers.size()]; in writeStaticIpConfigurationToXml() local
797 for (InetAddress inetAddr : staticIpConfiguration.dnsServers) { in writeStaticIpConfigurationToXml()
798 dnsServers[dnsServerIdx++] = inetAddr.getHostAddress(); in writeStaticIpConfigurationToXml()
801 out, XML_TAG_DNS_SERVER_ADDRESSES, dnsServers); in writeStaticIpConfigurationToXml()
895 staticIpConfiguration.dnsServers.add(dnsServerAddress); in parseStaticIpConfigurationFromXml()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java253 staticIpConfig.dnsServers.add(getInetAddress(jsonConfig.getString("dns1"))); in getWifiConfiguration()
254 staticIpConfig.dnsServers.add(getInetAddress(jsonConfig.getString("dns2"))); in getWifiConfiguration()
/frameworks/base/packages/Tethering/tests/unit/src/android/net/dhcp/
DDhcpServingParamsParcelExtTest.java81 assertEquals(TEST_ADDRESS_SET_PARCELED, asSet(mParcel.dnsServers)); in testSetDnsServers()
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java103 for (InetAddress inetAddr : staticIpConfiguration.dnsServers) { in writeConfig()
324 staticIpConfiguration.dnsServers.add( in readIpConfigurations()
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/
DEthernetTrackerTest.java116 config.dnsServers.add(InetAddress.parseNumericAddress(dns)); in setDns()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DTethering.java1588 final String[] dnsServers; in setDnsForwarders() local
1590 dnsServers = new String[dnses.size()]; in setDnsForwarders()
1593 dnsServers[i++] = dns.getHostAddress(); in setDnsForwarders()
1596 dnsServers = mConfig.defaultIPv4DNS; in setDnsForwarders()
1600 mNetd.tetherDnsSet(netId, dnsServers); in setDnsForwarders()
1603 network, Arrays.toString(dnsServers))); in setDnsForwarders()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java1513 String dnsServers[] = new String[2]; in setLinkProperties() local
1514 dnsServers[0] = SystemProperties.get(propertyPrefix + "dns1"); in setLinkProperties()
1515 dnsServers[1] = SystemProperties.get(propertyPrefix + "dns2"); in setLinkProperties()
1516 boolean okToUseSystemPropertyDns = isDnsOk(dnsServers); in setLinkProperties()
1553 for (String dnsAddr : dnsServers) { in setLinkProperties()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java519 staticIpConfiguration.dnsServers.add(dnsServerAddress); in parseIpConfigurationFromXml()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java601 ipConfig.dnsServers.addAll(dnsAddresses); in parseStaticIpConfiguration()
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java1006 assertEquals(1, params.dnsServers.length); in assertDhcpServingParams()
1007 assertEquals(params.serverAddr, params.dnsServers[0]); in assertDhcpServingParams()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java5101 Set<InetAddress> dnsServers = new HashSet<>(); in testLinkPropertiesWithPrivateDnsValidationEvents() local
5102 checkDnsServers(cbi.getLp(), dnsServers); in testLinkPropertiesWithPrivateDnsValidationEvents() local
5119 dnsServers.add(InetAddress.getByName("145.100.185.16")); in testLinkPropertiesWithPrivateDnsValidationEvents()
5120 checkDnsServers(cbi.getLp(), dnsServers); in testLinkPropertiesWithPrivateDnsValidationEvents() local
5143 checkDnsServers(cbi.getLp(), dnsServers); in testLinkPropertiesWithPrivateDnsValidationEvents() local
5155 checkDnsServers(cbi.getLp(), dnsServers); in testLinkPropertiesWithPrivateDnsValidationEvents() local
5168 dnsServers.remove(InetAddress.getByName("145.100.185.16")); in testLinkPropertiesWithPrivateDnsValidationEvents()
5169 checkDnsServers(cbi.getLp(), dnsServers); in testLinkPropertiesWithPrivateDnsValidationEvents() local
5190 private static void checkDnsServers(Object callbackObj, Set<InetAddress> dnsServers) { in checkDnsServers() argument
5193 assertEquals(dnsServers.size(), lp.getDnsServers().size()); in checkDnsServers()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java211 staticIpConfiguration.dnsServers.add( in generateIpConfig()
DClientModeImplTest.java1025 dhcpResults.baseConfiguration.dnsServers.add(InetAddresses.parseNumericAddress("8.8.8.8")); in connect()
2084 dhcpResults.baseConfiguration.dnsServers.add(InetAddresses.parseNumericAddress("8.8.8.8")); in disconnectFromNetworkWhenRemovedWhileObtainingIpAddr()

12