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()
Dres_cache.cpp1702 LOG(INFO) << __func__ << ": adding sample to stats, next = " << unsigned(stats->sample_next) in res_cache_add_stats_sample_locked()
1704 stats->samples[stats->sample_next] = sample; in res_cache_add_stats_sample_locked()
1708 if (++stats->sample_next >= max_samples) { in res_cache_add_stats_sample_locked()
1709 stats->sample_next = 0; in res_cache_add_stats_sample_locked()
1716 netconfig->nsstats[i].sample_next = 0; in res_cache_clear_stats_locked()
Dstats.h42 uint8_t sample_next; member
Dresolv_cache_unit_test.cpp114 if (std::tie(a.sample_count, a.sample_next) != std::tie(b.sample_count, b.sample_next)) { in operator ==()