/frameworks/base/core/java/android/net/ |
D | StaticIpConfiguration.java | 66 public final ArrayList<InetAddress> dnsServers; field in StaticIpConfiguration 73 dnsServers = new ArrayList<>(); in StaticIpConfiguration() 82 dnsServers.addAll(source.dnsServers); in StaticIpConfiguration() 90 dnsServers.clear(); in clear() 112 return dnsServers; in getDnsServers() 154 public @NonNull Builder setDnsServers(@NonNull Iterable<InetAddress> dnsServers) { in setDnsServers() argument 155 mDnsServers = dnsServers; in setDnsServers() 179 config.dnsServers.add(server); in build() 190 dnsServers.add(server); in addDnsServer() 232 for (InetAddress dns : dnsServers) { in toLinkProperties() [all …]
|
D | DhcpResults.java | 48 public final ArrayList<InetAddress> dnsServers = new ArrayList<>(); field in DhcpResults 80 .setDnsServers(dnsServers) in toStaticIpConfiguration() 89 dnsServers.addAll(source.getDnsServers()); in DhcpResults() 129 dnsServers.clear(); in clear() 233 dnsServers.add(InetAddresses.parseNumericAddress(addrString)); in addDns() 259 return dnsServers; in getDnsServers() 266 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 | 400 public void setDnsServers(@NonNull Collection<InetAddress> dnsServers) { in setDnsServers() argument 402 for (InetAddress dnsServer: dnsServers) { in setDnsServers() 513 public void setValidatedPrivateDnsServers(@NonNull Collection<InetAddress> dnsServers) { in setValidatedPrivateDnsServers() argument 515 for (InetAddress dnsServer: dnsServers) { in setValidatedPrivateDnsServers()
|
/frameworks/base/services/net/java/android/net/shared/ |
D | InitialConfiguration.java | 41 public final Set<InetAddress> dnsServers = new HashSet<>(); field in InitialConfiguration 58 configCopy.dnsServers.addAll(config.dnsServers); in copy() 67 join(", ", dnsServers)); in toString() 85 for (InetAddress addr : dnsServers) { in isValid() 152 p.dnsServers = toParcelableArray( in toStableParcelable() 153 dnsServers, IpConfigurationParcelableUtil::parcelAddress, String.class); in toStableParcelable() 166 config.dnsServers.addAll( in fromStableParcelable() 167 fromParcelableArray(p.dnsServers, IpConfigurationParcelableUtil::unparcelAddress)); in fromStableParcelable() 177 && dnsServers.equals(other.dnsServers); in equals()
|
/frameworks/base/tests/net/common/java/android/net/ |
D | StaticIpConfigurationTest.java | 61 assertEquals(0, s.dnsServers.size()); in checkEmpty() 72 s.dnsServers.add(DNS1); in makeTestObject() 73 s.dnsServers.add(DNS2); in makeTestObject() 74 s.dnsServers.add(DNS3); in makeTestObject() 112 s.dnsServers.add(DNS1); in testHashCodeAndEquals() 115 s.dnsServers.add(DNS2); in testHashCodeAndEquals() 118 s.dnsServers.add(DNS3); in testHashCodeAndEquals() 142 s.dnsServers.add(DNS3); in testHashCodeAndEquals() 174 s.dnsServers.add(DNS1); in testToLinkProperties() 178 s.dnsServers.add(DNS2); in testToLinkProperties() [all …]
|
/frameworks/base/services/net/java/android/net/dhcp/ |
D | DhcpServingParamsParcelExt.java | 88 public DhcpServingParamsParcelExt setDnsServers(@NonNull Set<Inet4Address> dnsServers) { in setDnsServers() argument 89 this.dnsServers = toIntArray(dnsServers); in setDnsServers() 98 public DhcpServingParamsParcelExt setDnsServers(@NonNull Inet4Address... dnsServers) { in setDnsServers() argument 99 return setDnsServers(Sets.newArraySet(dnsServers)); in setDnsServers()
|
D | DhcpServingParamsParcel.aidl | 24 int[] dnsServers;
|
/frameworks/base/core/java/com/android/internal/net/ |
D | VpnProfile.java | 67 public String dnsServers = ""; // 5 field in VpnProfile 95 dnsServers = in.readString(); in VpnProfile() 117 out.writeString(dnsServers); in writeToParcel() 153 profile.dnsServers = values[5]; in decode() 189 builder.append('\0').append(dnsServers); in encode() 239 return !TextUtils.isEmpty(dnsServers); in hasDns() 248 for (String dnsServer : dnsServers.split(" +")) { in areDnsAddressesNumeric()
|
D | VpnConfig.java | 96 public List<String> dnsServers; field in VpnConfig 158 out.writeStringList(dnsServers); in writeToParcel() 185 config.dnsServers = in.createStringArrayList(); 218 .append(", dns=").append(toString(dnsServers)) in toString()
|
/frameworks/base/tests/net/java/android/net/shared/ |
D | IpConfigurationParcelableUtilTest.java | 52 mDhcpResults.dnsServers.add(parseNumericAddress("2001:db8::43")); in setUp() 53 mDhcpResults.dnsServers.add(parseNumericAddress("192.168.43.43")); in setUp()
|
D | InitialConfigurationTest.java | 56 mConfig.dnsServers.addAll(Arrays.asList( in setUp() 78 assertNotEqualsAfterChange(c -> c.dnsServers.add(parseNumericAddress("2001:db8::49"))); in testEquals()
|
/frameworks/base/services/net/aidl/networkstack/3/android/net/dhcp/ |
D | DhcpServingParamsParcel.aidl | 23 int[] dnsServers;
|
/frameworks/base/services/net/aidl/networkstack/1/android/net/dhcp/ |
D | DhcpServingParamsParcel.aidl | 6 int[] dnsServers;
|
/frameworks/base/services/net/aidl/networkstack/2/android/net/dhcp/ |
D | DhcpServingParamsParcel.aidl | 6 int[] dnsServers;
|
/frameworks/base/services/net/aidl/networkstack/3/android/net/ |
D | InitialConfigurationParcelable.aidl | 22 String[] dnsServers;
|
/frameworks/base/services/net/aidl/networkstack/1/android/net/ |
D | InitialConfigurationParcelable.aidl | 5 String[] dnsServers;
|
/frameworks/base/services/net/aidl/networkstack/2/android/net/ |
D | InitialConfigurationParcelable.aidl | 5 String[] dnsServers;
|
/frameworks/base/services/net/java/android/net/ |
D | InitialConfigurationParcelable.aidl | 25 String[] dnsServers;
|
/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/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | XmlUtil.java | 725 if (staticIpConfiguration.dnsServers != null) { in writeStaticIpConfigurationToXml() 727 String[] dnsServers = new String[staticIpConfiguration.dnsServers.size()]; in writeStaticIpConfigurationToXml() local 729 for (InetAddress inetAddr : staticIpConfiguration.dnsServers) { in writeStaticIpConfigurationToXml() 730 dnsServers[dnsServerIdx++] = inetAddr.getHostAddress(); in writeStaticIpConfigurationToXml() 733 out, XML_TAG_DNS_SERVER_ADDRESSES, dnsServers); in writeStaticIpConfigurationToXml() 827 staticIpConfiguration.dnsServers.add(dnsServerAddress); in parseStaticIpConfigurationFromXml()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 872 if (mConfig.dnsServers != null) { in makeLinkProperties() 873 for (String dnsServer : mConfig.dnsServers) { in makeLinkProperties() 1834 if (!profile.dnsServers.isEmpty()) { in startLegacyVpnPrivileged() 1835 config.dnsServers = Arrays.asList(profile.dnsServers.split(" +")); in startLegacyVpnPrivileged() 2159 if (mConfig.dnsServers == null || mConfig.dnsServers.size() == 0) { in bringup() 2160 String dnsServers = parameters[3].trim(); in bringup() local 2161 if (!dnsServers.isEmpty()) { in bringup() 2162 mConfig.dnsServers = Arrays.asList(dnsServers.split(" ")); in bringup()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 247 staticIpConfig.dnsServers.add(getInetAddress(jsonConfig.getString("dns1"))); in getWifiConfiguration() 248 staticIpConfig.dnsServers.add(getInetAddress(jsonConfig.getString("dns2"))); in getWifiConfiguration()
|
/frameworks/base/tests/net/java/android/net/dhcp/ |
D | DhcpServingParamsParcelExtTest.java | 78 assertEquals(TEST_ADDRESS_SET_PARCELED, asSet(mParcel.dnsServers)); in testSetDnsServers()
|
/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()
|