/frameworks/base/core/java/android/net/ |
D | StaticIpConfiguration.java | 68 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 …]
|
D | DhcpResults.java | 50 public final ArrayList<InetAddress> dnsServers = new ArrayList<>(); field in DhcpResults 85 .setDnsServers(dnsServers) in toStaticIpConfiguration() 94 dnsServers.addAll(source.getDnsServers()); in DhcpResults() 135 dnsServers.clear(); in clear() 246 dnsServers.add(InetAddresses.parseNumericAddress(addrString)); in addDns() 272 return dnsServers; in getDnsServers() 279 dnsServers.add(server); in addDnsServer()
|
D | VpnService.java | 636 if (mConfig.dnsServers == null) { in addDnsServer() 637 mConfig.dnsServers = new ArrayList<String>(); in addDnsServer() 639 mConfig.dnsServers.add(address.getHostAddress()); in addDnsServer()
|
D | LinkProperties.java | 408 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/ |
D | StaticIpConfigurationTest.java | 61 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 …]
|
D | LinkPropertiesTest.java | 1093 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/ |
D | DhcpServingParamsParcelExt.java | 90 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/ |
D | VpnProfile.java | 91 public String dnsServers = ""; // 5 field in VpnProfile 162 dnsServers = in.readString(); in VpnProfile() 213 out.writeString(dnsServers); in writeToParcel() 271 profile.dnsServers = values[5]; in decode() 324 builder.append(VALUE_DELIMITER).append(dnsServers); in encode() 409 return !TextUtils.isEmpty(dnsServers); in hasDns() 415 for (String dnsServer : dnsServers.split(" +")) { in areDnsAddressesNumeric() 442 key, type, server, username, password, dnsServers, searchDomains, routes, mppe, in hashCode() 462 && Objects.equals(dnsServers, other.dnsServers) in equals()
|
D | VpnConfig.java | 97 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/ |
D | IpConfigStoreTest.java | 82 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/tests/net/java/com/android/internal/net/ |
D | VpnProfileTest.java | 59 assertEquals("", p.dnsServers); in testDefaults() 86 p.dnsServers = "8.8.8.8"; in getSampleIkev2Profile()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 1031 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/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 253 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/ |
D | DhcpServingParamsParcelExtTest.java | 81 assertEquals(TEST_ADDRESS_SET_PARCELED, asSet(mParcel.dnsServers)); in testSetDnsServers()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | IpConfigStoreTestWriter.java | 71 for (InetAddress inetAddr : staticIpConfiguration.dnsServers) { in writeConfig()
|
D | WifiConfigurationTestUtil.java | 232 staticIpConfiguration.dnsServers.add( in generateIpConfig()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | IpConfigStore.java | 102 for (InetAddress inetAddr : staticIpConfiguration.dnsServers) { in writeConfig() 323 staticIpConfiguration.dnsServers.add( in readIpConfigurations()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | WifiEntry.java | 356 public List<String> dnsServers = new ArrayList<>(); field in WifiEntry.ConnectedInfo 683 mConnectedInfo.dnsServers = linkProperties.getDnsServers().stream() in updateLinkProperties()
|
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/ |
D | EthernetTrackerTest.java | 116 config.dnsServers.add(InetAddress.parseNumericAddress(dns)); in setDns()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | Tethering.java | 1588 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/net/wifi/service/java/com/android/server/wifi/util/ |
D | XmlUtil.java | 816 String[] dnsServers = new String[staticIpConfiguration.getDnsServers().size()]; in writeStaticIpConfigurationToXml() local 819 dnsServers[dnsServerIdx++] = inetAddr.getHostAddress(); in writeStaticIpConfigurationToXml() 822 out, XML_TAG_DNS_SERVER_ADDRESSES, dnsServers); in writeStaticIpConfigurationToXml()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 1495 String dnsServers[] = new String[2]; in setLinkProperties() local 1496 dnsServers[0] = SystemProperties.get(propertyPrefix + "dns1"); in setLinkProperties() 1497 dnsServers[1] = SystemProperties.get(propertyPrefix + "dns2"); in setLinkProperties() 1498 boolean okToUseSystemPropertyDns = isDnsOk(dnsServers); in setLinkProperties() 1535 for (String dnsAddr : dnsServers) { in setLinkProperties()
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetTracker.java | 601 ipConfig.dnsServers.addAll(dnsAddresses); in parseStaticIpConfiguration()
|
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 975 assertEquals(1, params.dnsServers.length); in assertDhcpServingParams() 976 assertEquals(params.serverAddr, params.dnsServers[0]); in assertDhcpServingParams()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 5093 Set<InetAddress> dnsServers = new HashSet<>(); in testLinkPropertiesWithPrivateDnsValidationEvents() local 5094 checkDnsServers(cbi.getLp(), dnsServers); in testLinkPropertiesWithPrivateDnsValidationEvents() local 5111 dnsServers.add(InetAddress.getByName("145.100.185.16")); in testLinkPropertiesWithPrivateDnsValidationEvents() 5112 checkDnsServers(cbi.getLp(), dnsServers); in testLinkPropertiesWithPrivateDnsValidationEvents() local 5135 checkDnsServers(cbi.getLp(), dnsServers); in testLinkPropertiesWithPrivateDnsValidationEvents() local 5147 checkDnsServers(cbi.getLp(), dnsServers); in testLinkPropertiesWithPrivateDnsValidationEvents() local 5160 dnsServers.remove(InetAddress.getByName("145.100.185.16")); in testLinkPropertiesWithPrivateDnsValidationEvents() 5161 checkDnsServers(cbi.getLp(), dnsServers); in testLinkPropertiesWithPrivateDnsValidationEvents() local 5182 private static void checkDnsServers(Object callbackObj, Set<InetAddress> dnsServers) { in checkDnsServers() argument 5185 assertEquals(dnsServers.size(), lp.getDnsServers().size()); in checkDnsServers() [all …]
|