Searched refs:privateDnsHost (Results 1 – 3 of 3) sorted by relevance
10596 @NonNull ComponentName admin, @NonNull String privateDnsHost) { in setGlobalPrivateDnsModeSpecifiedHost() argument10598 Preconditions.checkNotNull(privateDnsHost, "dns resolver is null"); in setGlobalPrivateDnsModeSpecifiedHost()10604 if (NetworkUtils.isWeaklyValidatedHostname(privateDnsHost)) { in setGlobalPrivateDnsModeSpecifiedHost()10605 if (!PrivateDnsConnectivityChecker.canConnectToPrivateDnsServer(privateDnsHost)) { in setGlobalPrivateDnsModeSpecifiedHost()10612 admin, PRIVATE_DNS_MODE_PROVIDER_HOSTNAME, privateDnsHost); in setGlobalPrivateDnsModeSpecifiedHost()
422 int setGlobalPrivateDns(in ComponentName admin, int mode, in String privateDnsHost); in setGlobalPrivateDns() argument
14125 public int setGlobalPrivateDns(@NonNull ComponentName who, int mode, String privateDnsHost) { in setGlobalPrivateDns() argument14137 if (!TextUtils.isEmpty(privateDnsHost)) { in setGlobalPrivateDns()14144 if (TextUtils.isEmpty(privateDnsHost) in setGlobalPrivateDns()14145 || !NetworkUtils.isWeaklyValidatedHostname(privateDnsHost)) { in setGlobalPrivateDns()14147 String.format("Provided hostname %s is not valid", privateDnsHost)); in setGlobalPrivateDns()14154 privateDnsHost); in setGlobalPrivateDns()