Home
last modified time | relevance | path

Searched refs:max_samples (Results 1 – 7 of 7) sorted by relevance

/system/netd/resolv/include/netd_resolv/
Dparams.h33 uint8_t max_samples; // max # samples taken into account for statistics member
/system/netd/resolv/
Dres_cache.cpp1701 params->max_samples = 0; in resolv_set_default_params()
1758 uint8_t old_max_samples = cache_info->params.max_samples; in resolv_set_nameservers_for_net()
1784 if (cache_info->params.max_samples != old_max_samples) { in resolv_set_nameservers_for_net()
1917 int max_samples) { in _res_cache_add_stats_sample_locked() argument
1923 if (stats->sample_count < max_samples) { in _res_cache_add_stats_sample_locked()
1926 if (++stats->sample_next >= max_samples) { in _res_cache_add_stats_sample_locked()
2016 const res_sample* sample, int max_samples) { in _resolv_cache_add_resolver_stats_sample() argument
2017 if (max_samples <= 0) return; in _resolv_cache_add_resolver_stats_sample()
2023 _res_cache_add_stats_sample_locked(&info->nsstats[ns], sample, max_samples); in _resolv_cache_add_resolver_stats_sample()
DResolverController.cpp236 res_params.max_samples = resolverParams.maxSamples; in setResolverConfiguration()
276 (*params)[IDnsResolver::RESOLVER_PARAMS_MAX_SAMPLES] = res_params.max_samples; in getResolverInfo()
354 params.max_samples, params.base_timeout_msec, params.retry_count); in dump()
Dresolv_private.h134 const res_sample* sample, int max_samples);
Dres_send.cpp578 params.max_samples); in res_nsend()
602 params.max_samples); in res_nsend()
Dlibnetd_resolv_test.cpp92 .max_samples = 8,
Dresolver_test.cpp133 .max_samples = in GetResolverInfo()
558 EXPECT_EQ(kDefaultParams[IDnsResolver::RESOLVER_PARAMS_MAX_SAMPLES], res_params.max_samples); in TEST_F()
1015 EXPECT_EQ(kDefaultParams[IDnsResolver::RESOLVER_PARAMS_MAX_SAMPLES], res_params.max_samples); in TEST_F()