Home
last modified time | relevance | path

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

123

/packages/modules/Connectivity/framework/src/android/net/
DStaticIpConfiguration.java66 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 Objects.requireNonNull(dnsServers); in setDnsServers()
156 mDnsServers = dnsServers; in setDnsServers()
181 config.dnsServers.add(server); in build()
193 dnsServers.add(server); in addDnsServer()
[all …]
/packages/modules/Connectivity/tests/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 …]
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/
DInitialConfiguration.java41 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()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServingParams.java69 public final Set<Inet4Address> dnsServers; field in DhcpServingParams
112 @NonNull Set<Inet4Address> dnsServers, @NonNull Set<Inet4Address> excludedAddrs, in DhcpServingParams() argument
117 this.dnsServers = dnsServers; in DhcpServingParams()
146 .setDnsServers(toInet4AddressSet(parcel.dnsServers)) in fromParcelableObject()
256 public Builder setDnsServers(@NonNull Set<Inet4Address> dnsServers) { in setDnsServers() argument
257 this.mDnsServers = dnsServers; in setDnsServers()
267 public Builder setDnsServers(@NonNull Inet4Address... dnsServers) { in setDnsServers() argument
268 return setDnsServers(makeArraySet(dnsServers)); in setDnsServers()
DDhcpOfferPacket.java42 String dnsServers = ", DNS servers: "; in toString() local
46 dnsServers += dnsServer + " "; in toString()
51 + ", mask " + mSubnetMask + dnsServers in toString()
DDhcpAckPacket.java43 String dnsServers = " DNS servers: "; in toString() local
46 dnsServers += dnsServer.toString() + " "; in toString()
51 + ", gateways " + mGateways + dnsServers in toString()
DDhcpPacket.java988 List<Inet4Address> dnsServers = new ArrayList<>(); in decodeFullPacket() local
1196 dnsServers.add(readIpAddress(packet)); in decodeFullPacket()
1360 newPacket.mDnsServers = dnsServers; in decodeFullPacket()
1445 results.dnsServers.addAll(mDnsServers); in toDhcpResults()
1512 Inet4Address bcAddr, List<Inet4Address> gateways, List<Inet4Address> dnsServers, in buildOfferPacket() argument
1519 pkt.mDnsServers = dnsServers; in buildOfferPacket()
1543 Inet4Address bcAddr, List<Inet4Address> gateways, List<Inet4Address> dnsServers, in buildOfferPacket() argument
1547 mac, timeout, netMask, bcAddr, gateways, dnsServers, dhcpServerIdentifier, in buildOfferPacket()
1557 Inet4Address bcAddr, List<Inet4Address> gateways, List<Inet4Address> dnsServers, in buildAckPacket() argument
1564 pkt.mDnsServers = dnsServers; in buildAckPacket()
[all …]
/packages/modules/Connectivity/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()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServingParamsTest.java86 final Set<Inet4Address> dnsServers = new HashSet<>(TEST_DNS_SERVERS); in testBuild_Immutable() local
91 .setDnsServers(dnsServers) in testBuild_Immutable()
98 dnsServers.add(addedAddr); in testBuild_Immutable()
103 assertEquals(TEST_DNS_SERVERS, params.dnsServers); in testBuild_Immutable()
182 parcel.dnsServers = toIntArray(TEST_DNS_SERVERS); in testFromParcelableObject()
194 assertEquals(params.dnsServers, parceled.dnsServers); in testFromParcelableObject()
DDhcpResultsParcelableUtilTest.java53 mDhcpResults.dnsServers.add(parseNumericAddress("8.8.8.8")); in setUp()
54 mDhcpResults.dnsServers.add(parseNumericAddress("192.168.43.43")); in setUp()
DDhcpServerTest.java382 Set<Inet4Address> dnsServers, Set<Inet4Address> excludedAddrs, LinkAddress serverAddr, in updateServingParams() argument
388 params.dnsServers = toIntArray(dnsServers); in updateServingParams()
DDhcpPacketTest.java325 ArrayList dnsServers = new ArrayList(); in assertDhcpResults() local
327 dnsServers.add(v4Address(dnsServerString)); in assertDhcpResults()
329 assertEquals(dnsServers, dhcpResults.dnsServers); in assertDhcpResults()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiDnsPreferenceController.java46 String dnsServers = null; in updateState() local
48 dnsServers = linkProperties.getDnsServers().stream() in updateState()
53 if (dnsServers == null) { in updateState()
56 preference.setDetailText(dnsServers); in updateState()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIpConfigurationTest.java48 private static final ArrayList<InetAddress> dnsServers = new ArrayList<>(); field in IpConfigurationTest
55 dnsServers.add(DNS1); in setUp()
56 dnsServers.add(DNS2); in setUp()
60 .setDnsServers(dnsServers) in setUp()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DAdvancedOptionsFlowUtil.java142 final ArrayList<InetAddress> dnsServers = new ArrayList<>(); in processIpSettings() local
146 dnsServers.add(InetAddresses.parseNumericAddress(dns1)); in processIpSettings()
155 dnsServers.add(InetAddresses.parseNumericAddress(dns2)); in processIpSettings()
161 staticIpBuilder.setDnsServers(dnsServers); in processIpSettings()
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DInitialConfigurationTest.java56 mConfig.dnsServers.addAll(Arrays.asList( in setUp()
78 assertNotEqualsAfterChange(c -> c.dnsServers.add(parseNumericAddress("2001:db8::49"))); in testEquals()
/packages/modules/Connectivity/tests/unit/java/com/android/internal/net/
DVpnProfileTest.java62 assertEquals("", p.dnsServers); in testDefaults()
89 p.dnsServers = "8.8.8.8"; in getSampleIkev2Profile()
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/3/android/net/dhcp/
DDhcpServingParamsParcel.aidl23 int[] dnsServers;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/dhcp/
DDhcpServingParamsParcel.aidl6 int[] dnsServers;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/dhcp/
DDhcpServingParamsParcel.aidl6 int[] dnsServers;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/2/android/net/dhcp/
DDhcpServingParamsParcel.aidl6 int[] dnsServers;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/5/android/net/dhcp/
DDhcpServingParamsParcel.aidl23 int[] dnsServers;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/8/android/net/dhcp/
DDhcpServingParamsParcel.aidl23 int[] dnsServers;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/dhcp/
DDhcpServingParamsParcel.aidl23 int[] dnsServers;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/dhcp/
DDhcpServingParamsParcel.aidl23 int[] dnsServers;

123