Home
last modified time | relevance | path

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

/system/netd/resolv/
Dres_stats.cpp45 stats->sample_count = stats->sample_next = 0; in _res_stats_clear_samples()
100 if (stats->sample_next > 0) { in android_net_res_stats_aggregate()
101 last = stats->samples[stats->sample_next - 1].at; in android_net_res_stats_aggregate()
Dres_cache.cpp1862 cache_info->nsstats[i].sample_count = cache_info->nsstats[i].sample_next = 0; in free_nameservers_locked()
1920 LOG(INFO) << __func__ << ": adding sample to stats, next = " << unsigned(stats->sample_next) in _res_cache_add_stats_sample_locked()
1922 stats->samples[stats->sample_next] = *sample; in _res_cache_add_stats_sample_locked()
1926 if (++stats->sample_next >= max_samples) { in _res_cache_add_stats_sample_locked()
1927 stats->sample_next = 0; in _res_cache_add_stats_sample_locked()
1934 cache_info->nsstats->sample_count = cache_info->nsstats->sample_next = 0; in res_cache_clear_stats_locked()
/system/netd/resolv/include/netd_resolv/
Dstats.h43 uint8_t sample_next; member