Lines Matching refs:resolverParams
186 int ResolverController::setResolverConfiguration(const ResolverParamsParcel& resolverParams) { in setResolverConfiguration() argument
189 if (!has_named_cache(resolverParams.netId)) { in setResolverConfiguration()
195 gResNetdCallbacks.get_network_context(resolverParams.netId, 0 /* uid */, &netcontext); in setResolverConfiguration()
198 std::vector<std::string> tlsServers = resolverParams.tlsServers; in setResolverConfiguration()
208 resolverParams.netId, netcontext.app_mark, tlsServers, resolverParams.tlsName, in setResolverConfiguration()
209 resolverParams.caCertificate); in setResolverConfiguration()
215 if (int err = resolv_stats_set_servers_for_dot(resolverParams.netId, tlsServers); err != 0) { in setResolverConfiguration()
220 res_params.sample_validity = resolverParams.sampleValiditySeconds; in setResolverConfiguration()
221 res_params.success_threshold = resolverParams.successThreshold; in setResolverConfiguration()
222 res_params.min_samples = resolverParams.minSamples; in setResolverConfiguration()
223 res_params.max_samples = resolverParams.maxSamples; in setResolverConfiguration()
224 res_params.base_timeout_msec = resolverParams.baseTimeoutMsec; in setResolverConfiguration()
225 res_params.retry_count = resolverParams.retryCount; in setResolverConfiguration()
227 return resolv_set_nameservers(resolverParams.netId, resolverParams.servers, in setResolverConfiguration()
228 resolverParams.domains, res_params, in setResolverConfiguration()
229 resolverParams.resolverOptions, resolverParams.transportTypes); in setResolverConfiguration()