Home
last modified time | relevance | path

Searched refs:dnsServer (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Connectivity/framework/src/android/net/
DLinkProperties.java381 public boolean addDnsServer(@NonNull InetAddress dnsServer) { in addDnsServer() argument
382 if (dnsServer != null && !mDnses.contains(dnsServer)) { in addDnsServer()
383 mDnses.add(dnsServer); in addDnsServer()
397 public boolean removeDnsServer(@NonNull InetAddress dnsServer) { in removeDnsServer() argument
398 return mDnses.remove(dnsServer); in removeDnsServer()
409 for (InetAddress dnsServer: dnsServers) { in setDnsServers()
410 addDnsServer(dnsServer); in setDnsServers()
506 public boolean addValidatedPrivateDnsServer(@NonNull InetAddress dnsServer) { in addValidatedPrivateDnsServer() argument
507 if (dnsServer != null && !mValidatedPrivateDnses.contains(dnsServer)) { in addValidatedPrivateDnsServer()
508 mValidatedPrivateDnses.add(dnsServer); in addValidatedPrivateDnsServer()
[all …]
DStaticIpConfiguration.java265 for (InetAddress dnsServer : dnsServers) { in toString()
266 str.append(" ").append(dnsServer.getHostAddress()); in toString()
323 for (InetAddress dnsServer : dnsServers) { in writeToParcel()
324 InetAddressUtils.parcelInetAddress(dest, dnsServer, flags); in writeToParcel()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpOfferPacket.java45 for (Inet4Address dnsServer: mDnsServers) { in toString()
46 dnsServers += dnsServer + " "; in toString()
DDhcpAckPacket.java45 for (Inet4Address dnsServer: mDnsServers) { in toString()
46 dnsServers += dnsServer.toString() + " "; in toString()
DDhcpClient.java885 for (final String dnsServer : dnsServersList) { in acceptDhcpResults()
887 mDhcpLease.dnsServers.add(InetAddresses.parseNumericAddress(dnsServer)); in acceptDhcpResults()
889 Log.e(TAG, "Invalid default DNS server: " + dnsServer, e); in acceptDhcpResults()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinator.java252 for (InetAddress dnsServer : lp.getDnsServers()) { in getIPv6OnlyLinkProperties()
253 if (isIPv6GlobalAddress(dnsServer)) { in getIPv6OnlyLinkProperties()
255 v6only.addDnsServer(dnsServer); in getIPv6OnlyLinkProperties()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DChildSessionConfiguration.java356 public Builder addInternalDnsServer(@NonNull InetAddress dnsServer) { in addInternalDnsServer() argument
357 Objects.requireNonNull(dnsServer, "dnsServer was null"); in addInternalDnsServer()
358 mInternalDnsAddressList.add(dnsServer); in addInternalDnsServer()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java2221 final String dnsServer = "2001:4860:4860::64";
2226 ByteBuffer rdnss2 = buildRdnssOption(600, dnsServer);
2234 assertTrue(lp.getDnsServers().contains(InetAddress.getByName(dnsServer)));
2244 assertTrue(lp.getDnsServers().contains(InetAddress.getByName(dnsServer)));
2248 rdnss1 = buildRdnssOption(0, dnsServer);
3084 final Inet6Address dnsServer = ipv6Addr(IPV6_OFF_LINK_DNS_SERVER);
3090 return performDualStackProvisioning(ra, dnsServer);
3094 final InetAddress dnsServer) throws Exception {
3120 assertTrue(lp.getDnsServers().contains(dnsServer));
4297 private void prepareIpReachabilityMonitorAddressResolutionTest(final String dnsServer,
[all …]
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DIpServer.java584 @NonNull final Inet4Address dnsServer, @NonNull LinkAddress serverAddr, in makeServingParams() argument
594 .setDnsServers(dnsServer) in makeServingParams()
798 final Inet6Address dnsServer = getLocalDnsIpFor(prefix); in updateUpstreamIPv6LinkProperties() local
799 if (dnsServer != null) { in updateUpstreamIPv6LinkProperties()
800 params.dnses.add(dnsServer); in updateUpstreamIPv6LinkProperties()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp7039 : dnsServer(server), dnsAddr(addr) {} in DnsServerPair()
7040 std::shared_ptr<test::DNSResponder> dnsServer; member
7252 void expectDnsQueryCountsFn(std::shared_ptr<test::DNSResponder> dnsServer, in expectDnsQueryCountsFn() argument
7254 EXPECT_EQ(GetNumQueries(*dnsServer, host_name), count); in expectDnsQueryCountsFn()
7256 dnsServer->clearQueries(); in expectDnsQueryCountsFn()
7342 StartDns(*dnsSvPair->dnsServer, in setupDns()
7346 return dnsSvPair->dnsServer; in setupDns()
7451 StartDns(*dnsPair->dnsServer, {{host_name, ns_type::ns_t_a, "192.0.2.0"}, in TEST_F()
7474 EXPECT_EQ(GetNumQueries(*dnsPair->dnsServer, host_name), expectedQueries); in TEST_F()
7490 dnsPair->dnsServer->setResponseProbability(0.0); in TEST_F()
[all …]