Searched refs:sample_next (Results 1 – 4 of 4) sorted by relevance
44 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()
42 uint8_t sample_next; member
1734 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()
113 if (std::tie(a.sample_count, a.sample_next) != std::tie(b.sample_count, b.sample_next)) { in operator ==()