Home
last modified time | relevance | path

Searched refs:sample_next (Results 1 – 4 of 4) sorted by relevance

/packages/modules/DnsResolver/
Dres_stats.cpp44 stats->sample_count = stats->sample_next = 0; in _res_stats_clear_samples()
99 if (stats->sample_next > 0) { in android_net_res_stats_aggregate()
100 last = stats->samples[stats->sample_next - 1].at; in android_net_res_stats_aggregate()
Dstats.h42 uint8_t sample_next; member
Dres_cache.cpp1734 LOG(INFO) << __func__ << ": adding sample to stats, next = " << unsigned(stats->sample_next) in res_cache_add_stats_sample_locked()
1736 stats->samples[stats->sample_next] = sample; in res_cache_add_stats_sample_locked()
1740 if (++stats->sample_next >= max_samples) { in res_cache_add_stats_sample_locked()
1741 stats->sample_next = 0; in res_cache_add_stats_sample_locked()
1748 netconfig->nsstats[i].sample_next = 0; in res_cache_clear_stats_locked()
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp113 if (std::tie(a.sample_count, a.sample_next) != std::tie(b.sample_count, b.sample_next)) { in operator ==()