Home
last modified time | relevance | path

Searched refs:sample_count (Results 1 – 5 of 5) sorted by relevance

/packages/modules/DnsResolver/
Dres_stats.cpp44 stats->sample_count = stats->sample_next = 0; in _res_stats_clear_samples()
57 for (int i = 0; i < stats->sample_count; ++i) { in android_net_res_stats_aggregate()
98 if (stats->sample_count > 0) { in android_net_res_stats_aggregate()
102 last = stats->samples[stats->sample_count - 1].at; in android_net_res_stats_aggregate()
Dresolv_cache_unit_test.cpp114 if (std::tie(a.sample_count, a.sample_next) != std::tie(b.sample_count, b.sample_next)) { in operator ==()
117 for (int i = 0; i < a.sample_count; i++) { in operator ==()
245 EXPECT_EQ(0U, stats[ns].sample_count) << msg; in expectCacheStats()
Dstats.h40 uint8_t sample_count; member
Dres_cache.cpp1703 << ", count = " << unsigned(stats->sample_count); in res_cache_add_stats_sample_locked()
1705 if (stats->sample_count < max_samples) { in res_cache_add_stats_sample_locked()
1706 ++stats->sample_count; in res_cache_add_stats_sample_locked()
1715 netconfig->nsstats[i].sample_count = 0; in res_cache_clear_stats_locked()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp946 int sample_count = 8; in TEST_F() local
947 const std::vector<int> params = {300, 25, sample_count, sample_count}; in TEST_F()
955 for (int i = 0; i < sample_count; ++i) { in TEST_F()