Lines Matching refs:INetd
256 using android::net::INetd; in getDnsInfo()
257 static_assert(ResolverStats::STATS_SUCCESSES == INetd::RESOLVER_STATS_SUCCESSES && in getDnsInfo()
258 ResolverStats::STATS_ERRORS == INetd::RESOLVER_STATS_ERRORS && in getDnsInfo()
259 ResolverStats::STATS_TIMEOUTS == INetd::RESOLVER_STATS_TIMEOUTS && in getDnsInfo()
260 ResolverStats::STATS_INTERNAL_ERRORS == INetd::RESOLVER_STATS_INTERNAL_ERRORS && in getDnsInfo()
261 ResolverStats::STATS_RTT_AVG == INetd::RESOLVER_STATS_RTT_AVG && in getDnsInfo()
262 ResolverStats::STATS_LAST_SAMPLE_TIME == INetd::RESOLVER_STATS_LAST_SAMPLE_TIME && in getDnsInfo()
263 ResolverStats::STATS_USABLE == INetd::RESOLVER_STATS_USABLE && in getDnsInfo()
264 ResolverStats::STATS_COUNT == INetd::RESOLVER_STATS_COUNT, in getDnsInfo()
326 using android::net::INetd; in setResolverConfiguration()
327 if (params.size() != INetd::RESOLVER_PARAMS_COUNT) { in setResolverConfiguration()
347 res_params.sample_validity = params[INetd::RESOLVER_PARAMS_SAMPLE_VALIDITY]; in setResolverConfiguration()
348 res_params.success_threshold = params[INetd::RESOLVER_PARAMS_SUCCESS_THRESHOLD]; in setResolverConfiguration()
349 res_params.min_samples = params[INetd::RESOLVER_PARAMS_MIN_SAMPLES]; in setResolverConfiguration()
350 res_params.max_samples = params[INetd::RESOLVER_PARAMS_MAX_SAMPLES]; in setResolverConfiguration()
360 using android::net::INetd; in getResolverInfo()
371 params->resize(INetd::RESOLVER_PARAMS_COUNT); in getResolverInfo()
372 (*params)[INetd::RESOLVER_PARAMS_SAMPLE_VALIDITY] = res_params.sample_validity; in getResolverInfo()
373 (*params)[INetd::RESOLVER_PARAMS_SUCCESS_THRESHOLD] = res_params.success_threshold; in getResolverInfo()
374 (*params)[INetd::RESOLVER_PARAMS_MIN_SAMPLES] = res_params.min_samples; in getResolverInfo()
375 (*params)[INetd::RESOLVER_PARAMS_MAX_SAMPLES] = res_params.max_samples; in getResolverInfo()
436 using android::net::INetd; in addPrivateDnsServer()
439 return INetd::PRIVATE_DNS_BAD_FINGERPRINT; in addPrivateDnsServer()
443 return INetd::PRIVATE_DNS_BAD_FINGERPRINT; in addPrivateDnsServer()
447 return INetd::PRIVATE_DNS_BAD_FINGERPRINT; in addPrivateDnsServer()
451 return INetd::PRIVATE_DNS_UNKNOWN_ALGORITHM; in addPrivateDnsServer()
454 return INetd::PRIVATE_DNS_BAD_PORT; in addPrivateDnsServer()
458 return INetd::PRIVATE_DNS_BAD_ADDRESS; in addPrivateDnsServer()
467 return INetd::PRIVATE_DNS_SUCCESS; in addPrivateDnsServer()
471 using android::net::INetd; in removePrivateDnsServer()
474 return INetd::PRIVATE_DNS_BAD_ADDRESS; in removePrivateDnsServer()
481 return INetd::PRIVATE_DNS_SUCCESS; in removePrivateDnsServer()