Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
Dresolv_cache_unit_test.cpp125 return std::tie(a.sample_validity, a.success_threshold, a.min_samples, a.max_samples, in operator ==()
127 std::tie(b.sample_validity, b.success_threshold, b.min_samples, b.max_samples, in operator ==()
139 .max_samples = 8,
210 const res_sample& sample, int max_samples) { in cacheAddStats() argument
211 resolv_cache_add_resolver_stats_sample(netId, revision_id, ipsa, sample, max_samples); in cacheAddStats()
754 cacheAddStats(TEST_NETID, 1 /*revision_id*/, IPSockAddr(sin), sample, setup.params.max_samples); in TEST_F()
874 setup.params.max_samples); in TEST_F()
876 setup.params.max_samples); in TEST_F()
878 setup.params.max_samples); in TEST_F()
901 setup.params.max_samples); in TEST_F()
Dres_cache.cpp1605 uint8_t old_max_samples = netconfig->params.max_samples; in resolv_set_nameservers()
1618 if (netconfig->params.max_samples != old_max_samples) { in resolv_set_nameservers()
1699 int max_samples) { in res_cache_add_stats_sample_locked() argument
1705 if (stats->sample_count < max_samples) { in res_cache_add_stats_sample_locked()
1708 if (++stats->sample_next >= max_samples) { in res_cache_add_stats_sample_locked()
1826 const res_sample& sample, int max_samples) { in resolv_cache_add_resolver_stats_sample() argument
1827 if (max_samples <= 0) return; in resolv_cache_add_resolver_stats_sample()
1836 res_cache_add_stats_sample_locked(&info->nsstats[ns], sample, max_samples); in resolv_cache_add_resolver_stats_sample()
DResolverController.cpp230 res_params.max_samples = resolverParams.maxSamples; in setResolverConfiguration()
266 (*params)[IDnsResolver::RESOLVER_PARAMS_MAX_SAMPLES] = res_params.max_samples; in getResolverInfo()
346 params.max_samples, params.base_timeout_msec, params.retry_count); in dump()
Dparams.h32 uint8_t max_samples; // max # samples taken into account for statistics member
Dresolv_cache.h131 const res_sample& sample, int max_samples);
Dresolv_callback_unit_test.cpp127 .max_samples = 8, in SetResolvers()
Dres_send.cpp600 statp->netid, revision_id, serverSockAddr, sample, params.max_samples); in res_nsend()
Dresolv_unit_test.cpp143 .max_samples = 8,
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.cpp116 .max_samples = in GetResolverInfo()
/packages/modules/DnsResolver/tests/
Dresolv_gold_test.cpp255 .max_samples = 8,
Dresolv_integration_test.cpp625 EXPECT_EQ(kDefaultParams[IDnsResolver::RESOLVER_PARAMS_MAX_SAMPLES], res_params.max_samples); in TEST_F()
1341 EXPECT_EQ(kDefaultParams[IDnsResolver::RESOLVER_PARAMS_MAX_SAMPLES], res_params.max_samples); in TEST_F()