Home
last modified time | relevance | path

Searched refs:res_stats (Results 1 – 10 of 10) sorted by relevance

/packages/modules/DnsResolver/
Dstats.h36 struct res_stats { struct
46 void android_net_res_stats_aggregate(res_stats* stats, int* successes, int* errors, int* timeouts, argument
52 res_params* params, res_stats stats[MAXNS],
56 int android_net_res_stats_get_usable_servers(const res_params* params, res_stats stats[],
DResolverController.cpp97 res_stats res_stats[MAXNS]; in getDnsInfo() local
104 netId, &nscount, res_servers, &dcount, res_domains, params, res_stats, in getDnsInfo()
122 android_net_res_stats_get_usable_servers(params, res_stats, nscount, valid_servers); in getDnsInfo()
140 android_net_res_stats_aggregate(&res_stats[i], &cur_stats.successes, &cur_stats.errors, in getDnsInfo()
240 std::vector<ResolverStats> res_stats; in getResolverInfo() local
241 int ret = getDnsInfo(netId, servers, domains, &res_params, &res_stats, in getResolverInfo()
248 ResolverStats::encodeAll(res_stats, stats); in getResolverInfo()
Dres_stats.cpp43 void _res_stats_clear_samples(res_stats* stats) { in _res_stats_clear_samples()
48 void android_net_res_stats_aggregate(res_stats* stats, int* successes, int* errors, int* timeouts, in android_net_res_stats_aggregate()
111 static bool res_stats_usable_server(const res_params* params, res_stats* stats) { in res_stats_usable_server()
146 int android_net_res_stats_get_usable_servers(const res_params* params, res_stats stats[], in android_net_res_stats_get_usable_servers()
Dresolv_cache.h119 unsigned netid, res_params* params, res_stats stats[MAXNS],
Dres_cache.cpp1030 res_stats nsstats[MAXNS]{};
1730 static void res_cache_add_stats_sample_locked(res_stats* stats, const res_sample& sample, in res_cache_add_stats_sample_locked()
1761 res_params* params, struct res_stats stats[MAXNS], in android_net_res_stats_get_info_for_net()
1827 int resolv_cache_get_resolver_stats(unsigned netid, res_params* params, res_stats stats[MAXNS], in resolv_cache_get_resolver_stats()
DAndroid.bp173 "res_stats.cpp",
Dres_send.cpp485 res_stats stats[MAXNS]{}; in res_nsend()
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp67 std::vector<res_stats> stats;
112 bool operator==(const res_stats& a, const res_stats& b) { in operator ==()
220 res_stats stats[MAXNS]; in expectCacheStats()
854 const res_stats expectedStats[MAXNS] = { in TEST_F()
879 res_stats cacheStats[MAXNS]{}; in TEST_F()
889 const res_stats expectedStats2[MAXNS] = { in TEST_F()
Dresolv_stress_test.cpp88 std::vector<ResolverStats> res_stats; in RunGetAddrInfoStressTest() local
92 &res_tls_servers, &res_params, &res_stats, &wait_for_pending_req_timeout_count)); in RunGetAddrInfoStressTest()
Dresolv_integration_test.cpp341 std::vector<ResolverStats> res_stats; in expectStatsFromGetResolverInfo() local
346 &res_params, &res_stats, in expectStatsFromGetResolverInfo()
352 if (res_servers.size() != res_stats.size()) { in expectStatsFromGetResolverInfo()
354 res_servers.size(), res_stats.size()); in expectStatsFromGetResolverInfo()
377 EXPECT_EQ(res_stats[index].successes, stats.successes); in expectStatsFromGetResolverInfo()
378 EXPECT_EQ(res_stats[index].errors, stats.errors); in expectStatsFromGetResolverInfo()
379 EXPECT_EQ(res_stats[index].timeouts, stats.timeouts); in expectStatsFromGetResolverInfo()
380 EXPECT_EQ(res_stats[index].internal_errors, stats.internal_errors); in expectStatsFromGetResolverInfo()
383 EXPECT_LE(res_stats[index].successes, stats.successes); in expectStatsFromGetResolverInfo()
384 EXPECT_LE(res_stats[index].errors, stats.errors); in expectStatsFromGetResolverInfo()
[all …]