Home
last modified time | relevance | path

Searched refs:res_params (Results 1 – 2 of 2) sorted by relevance

/system/netd/server/
DResolverController.cpp163 __res_params res_params; in setResolverConfiguration() local
164 res_params.sample_validity = params[INetd::RESOLVER_PARAMS_SAMPLE_VALIDITY]; in setResolverConfiguration()
165 res_params.success_threshold = params[INetd::RESOLVER_PARAMS_SUCCESS_THRESHOLD]; in setResolverConfiguration()
166 res_params.min_samples = params[INetd::RESOLVER_PARAMS_MIN_SAMPLES]; in setResolverConfiguration()
167 res_params.max_samples = params[INetd::RESOLVER_PARAMS_MAX_SAMPLES]; in setResolverConfiguration()
170 &res_params); in setResolverConfiguration()
178 __res_params res_params; in getResolverInfo() local
180 int ret = getDnsInfo(netId, servers, domains, &res_params, &res_stats); in getResolverInfo()
189 (*params)[INetd::RESOLVER_PARAMS_SAMPLE_VALIDITY] = res_params.sample_validity; in getResolverInfo()
190 (*params)[INetd::RESOLVER_PARAMS_SUCCESS_THRESHOLD] = res_params.success_threshold; in getResolverInfo()
[all …]
/system/netd/tests/
Dnetd_test.cpp350 __res_params res_params; in TEST_F() local
352 ASSERT_TRUE(GetResolverInfo(&res_servers, &res_domains, &res_params, &res_stats)); in TEST_F()
357 res_params.sample_validity); in TEST_F()
359 res_params.success_threshold); in TEST_F()
360 EXPECT_EQ(mDefaultParams_Binder[INetd::RESOLVER_PARAMS_MIN_SAMPLES], res_params.min_samples); in TEST_F()
361 EXPECT_EQ(mDefaultParams_Binder[INetd::RESOLVER_PARAMS_MAX_SAMPLES], res_params.max_samples); in TEST_F()
618 __res_params res_params; in TEST_F() local
620 ASSERT_TRUE(GetResolverInfo(&res_servers, &res_domains, &res_params, &res_stats)); in TEST_F()
625 res_params.sample_validity); in TEST_F()
627 res_params.success_threshold); in TEST_F()
[all …]