Home
last modified time | relevance | path

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

12

/packages/modules/NetworkStack/common/moduleutils/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 dnsServers + ", gateways " + mGateways + in toString()
DDhcpAckPacket.java43 String dnsServers = " DNS servers: "; in toString() local
46 dnsServers += dnsServer.toString() + " "; in toString()
51 ", gateways " + mGateways + dnsServers + in toString()
DDhcpPacket.java917 List<Inet4Address> dnsServers = new ArrayList<>(); in decodeFullPacket() local
1123 dnsServers.add(readIpAddress(packet)); in decodeFullPacket()
1278 newPacket.mDnsServers = dnsServers; in decodeFullPacket()
1361 results.dnsServers.addAll(mDnsServers); in toDhcpResults()
1408 Inet4Address bcAddr, List<Inet4Address> gateways, List<Inet4Address> dnsServers, in buildOfferPacket() argument
1415 pkt.mDnsServers = dnsServers; in buildOfferPacket()
1436 Inet4Address bcAddr, List<Inet4Address> gateways, List<Inet4Address> dnsServers, in buildAckPacket() argument
1443 pkt.mDnsServers = dnsServers; in buildAckPacket()
/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("2001:db8::43")); in setUp()
54 mDhcpResults.dnsServers.add(parseNumericAddress("192.168.43.43")); in setUp()
DDhcpPacketTest.java318 ArrayList dnsServers = new ArrayList(); in assertDhcpResults() local
320 dnsServers.add(v4Address(dnsServerString)); in assertDhcpResults()
322 assertEquals(dnsServers, dhcpResults.dnsServers); in assertDhcpResults()
DDhcpServerTest.java382 Set<Inet4Address> dnsServers, Set<Inet4Address> excludedAddrs, LinkAddress serverAddr, in updateServingParams() argument
388 params.dnsServers = toIntArray(dnsServers); in updateServingParams()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiDnsPreferenceController.java44 String dnsServers = getWifiInfoProvider().getLinkProperties().getDnsServers().stream() in updateState() local
48 if (dnsServers == null) { in updateState()
51 preference.setDetailText(dnsServers); in updateState()
/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/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DAdvancedOptionsFlowInfo.java170 && mIpConfiguration.getStaticIpConfiguration().dnsServers == null) { in getInitialDns()
172 return mIpConfiguration.getStaticIpConfiguration().dnsServers.get(index); in getInitialDns()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DAdvancedOptionsFlowUtil.java142 staticConfig.dnsServers.add( in processIpSettings()
152 staticConfig.dnsServers.add( in processIpSettings()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DConfigDialog.java137 mDnsServers.setText(mProfile.dnsServers); in onCreate()
195 if (!mProfile.searchDomains.isEmpty() || !mProfile.dnsServers.isEmpty() || in onCreate()
490 profile.dnsServers = mDnsServers.getText().toString().trim(); in getProfile()
/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/4/android/net/dhcp/
DDhcpServingParamsParcel.aidl6 int[] dnsServers;
/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/2/android/net/dhcp/
DDhcpServingParamsParcel.aidl6 int[] dnsServers;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/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/src/android/net/dhcp/
DDhcpServingParamsParcel.aidl24 int[] dnsServers;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/dhcp/
DDhcpServingParamsParcel.aidl23 int[] dnsServers;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/
DInitialConfigurationParcelable.aidl22 String[] dnsServers;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/
DInitialConfigurationParcelable.aidl22 String[] dnsServers;

12