Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp130 return std::tie(a.sample_validity, a.success_threshold, a.min_samples, a.max_samples, in operator ==()
132 std::tie(b.sample_validity, b.success_threshold, b.min_samples, b.max_samples, in operator ==()
144 .max_samples = 8,
214 const res_sample& sample, int max_samples) { in cacheAddStats() argument
215 resolv_cache_add_resolver_stats_sample(netId, revision_id, ipsa, sample, max_samples); in cacheAddStats()
776 cacheAddStats(TEST_NETID, 1 /*revision_id*/, IPSockAddr(sin), sample, setup.params.max_samples); in TEST_F()
896 setup.params.max_samples); in TEST_F()
898 setup.params.max_samples); in TEST_F()
900 setup.params.max_samples); in TEST_F()
923 setup.params.max_samples); in TEST_F()
Dresolv_callback_unit_test.cpp130 .max_samples = 8, in SetResolvers()
Dresolv_test_utils.h458 params.maxSamples = res_params.max_samples;
Dresolv_gold_test.cpp255 .max_samples = 8,
Dresolv_unit_test.cpp148 .max_samples = 8,
Dresolv_integration_test.cpp705 EXPECT_EQ(resolverParams.maxSamples, resolvInfo.value().params.max_samples); in TEST_F()
1753 EXPECT_EQ(0U, resolvInfo.value().params.max_samples); in TEST_F()
/packages/modules/DnsResolver/
Dparams.h32 uint8_t max_samples; // max # samples taken into account for statistics member
Dres_cache.cpp1674 uint8_t old_max_samples = netconfig->params.max_samples; in resolv_set_nameservers()
1680 netconfig->params.max_samples = params.maxSamples; in resolv_set_nameservers()
1707 if (netconfig->params.max_samples != old_max_samples) { in resolv_set_nameservers()
1787 int max_samples) { in res_cache_add_stats_sample_locked() argument
1793 if (stats->sample_count < max_samples) { in res_cache_add_stats_sample_locked()
1796 if (++stats->sample_next >= max_samples) { in res_cache_add_stats_sample_locked()
1920 const res_sample& sample, int max_samples) { in resolv_cache_add_resolver_stats_sample() argument
1921 if (max_samples <= 0) return; in resolv_cache_add_resolver_stats_sample()
1930 res_cache_add_stats_sample_locked(&info->nsstats[ns], sample, max_samples); in resolv_cache_add_resolver_stats_sample()
Dresolv_cache.h134 const res_sample& sample, int max_samples);
DResolverController.cpp263 (*params)[IDnsResolver::RESOLVER_PARAMS_MAX_SAMPLES] = res_params.max_samples; in getResolverInfo()
345 params.max_samples, params.base_timeout_msec, params.retry_count); in dump()
Dres_send.cpp650 params.max_samples); in res_nsend()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.cpp107 .max_samples = in getResolverInfo()