Searched refs:privateDnsHost (Results 1 – 3 of 3) sorted by relevance
10572 @NonNull ComponentName admin, @NonNull String privateDnsHost) { in setGlobalPrivateDnsModeSpecifiedHost() argument10574 Preconditions.checkNotNull(privateDnsHost, "dns resolver is null"); in setGlobalPrivateDnsModeSpecifiedHost()10580 if (NetworkUtils.isWeaklyValidatedHostname(privateDnsHost)) { in setGlobalPrivateDnsModeSpecifiedHost()10581 if (!PrivateDnsConnectivityChecker.canConnectToPrivateDnsServer(privateDnsHost)) { in setGlobalPrivateDnsModeSpecifiedHost()10588 admin, PRIVATE_DNS_MODE_PROVIDER_HOSTNAME, privateDnsHost); in setGlobalPrivateDnsModeSpecifiedHost()
422 int setGlobalPrivateDns(in ComponentName admin, int mode, in String privateDnsHost); in setGlobalPrivateDns() argument
14137 public int setGlobalPrivateDns(@NonNull ComponentName who, int mode, String privateDnsHost) { in setGlobalPrivateDns() argument14149 if (!TextUtils.isEmpty(privateDnsHost)) { in setGlobalPrivateDns()14156 if (TextUtils.isEmpty(privateDnsHost) in setGlobalPrivateDns()14157 || !NetworkUtils.isWeaklyValidatedHostname(privateDnsHost)) { in setGlobalPrivateDns()14159 String.format("Provided hostname %s is not valid", privateDnsHost)); in setGlobalPrivateDns()14166 privateDnsHost); in setGlobalPrivateDns()