Home
last modified time | relevance | path

Searched refs:resolverParams (Results 1 – 20 of 20) sorted by relevance

/packages/modules/DnsResolver/
DResolverController.cpp186 int ResolverController::setResolverConfiguration(const ResolverParamsParcel& resolverParams) { in setResolverConfiguration() argument
189 if (!has_named_cache(resolverParams.netId)) { in setResolverConfiguration()
195 gResNetdCallbacks.get_network_context(resolverParams.netId, 0 /* uid */, &netcontext); in setResolverConfiguration()
198 std::vector<std::string> tlsServers = resolverParams.tlsServers; in setResolverConfiguration()
208 resolverParams.netId, netcontext.app_mark, tlsServers, resolverParams.tlsName, in setResolverConfiguration()
209 resolverParams.caCertificate); in setResolverConfiguration()
215 if (int err = resolv_stats_set_servers_for_dot(resolverParams.netId, tlsServers); err != 0) { in setResolverConfiguration()
220 res_params.sample_validity = resolverParams.sampleValiditySeconds; in setResolverConfiguration()
221 res_params.success_threshold = resolverParams.successThreshold; in setResolverConfiguration()
222 res_params.min_samples = resolverParams.minSamples; in setResolverConfiguration()
[all …]
DDnsResolverService.cpp191 const ResolverParamsParcel& resolverParams) { in setResolverConfiguration() argument
199 if (resolverParams.caCertificate.size() != 0 && uid != AID_ROOT) { in setResolverConfiguration()
208 .args(resolverParams.netId, resolverParams.servers, resolverParams.domains, in setResolverConfiguration()
209 resolverParams.sampleValiditySeconds, resolverParams.successThreshold, in setResolverConfiguration()
210 resolverParams.minSamples, resolverParams.maxSamples, in setResolverConfiguration()
211 resolverParams.baseTimeoutMsec, resolverParams.retryCount, in setResolverConfiguration()
212 resolverParams.tlsName, resolverParams.tlsServers); in setResolverConfiguration()
214 int res = gDnsResolv->resolverCtrl.setResolverConfiguration(resolverParams); in setResolverConfiguration()
DResolverController.h45 int setResolverConfiguration(const aidl::android::net::ResolverParamsParcel& resolverParams);
DDnsResolverService.h49 const aidl::android::net::ResolverParamsParcel& resolverParams) override;
/packages/modules/DnsResolver/tests/
Ddnsresolver_binder_test.cpp453 const auto resolverParams = DnsResponderClient::makeResolverParamsParcel( in TEST_F() local
455 ::ndk::ScopedAStatus status = mDnsResolver->setResolverConfiguration(resolverParams); in TEST_F()
461 mExpectedLogDataWithPacel.push_back(toSetResolverConfigurationLogData(resolverParams)); in TEST_F()
467 toSetResolverConfigurationLogData(resolverParams, td.expectedReturnCode)); in TEST_F()
474 auto resolverParams = DnsResponderClient::GetDefaultResolverParamsParcel(); in TEST_F() local
475 resolverParams.transportTypes = {IDnsResolver::TRANSPORT_WIFI, IDnsResolver::TRANSPORT_VPN}; in TEST_F()
476 ::ndk::ScopedAStatus status = mDnsResolver->setResolverConfiguration(resolverParams); in TEST_F()
478 mExpectedLogDataWithPacel.push_back(toSetResolverConfigurationLogData(resolverParams)); in TEST_F()
492 auto resolverParams = DnsResponderClient::GetDefaultResolverParamsParcel(); in TEST_F() local
493 ::ndk::ScopedAStatus status = mDnsResolver->setResolverConfiguration(resolverParams); in TEST_F()
[all …]
Dresolv_integration_test.cpp1322 auto resolverParams = DnsResponderClient::GetDefaultResolverParamsParcel(); in TEST_F() local
1327 resolverParams.resolverOptions = resolverOptions; in TEST_F()
1329 ASSERT_TRUE(mDnsClient.resolvService()->setResolverConfiguration(resolverParams).isOk()); in TEST_F()
1332 ->setResolverOptions(resolverParams.netId, resolverOptions) in TEST_F()
1407 auto resolverParams = DnsResponderClient::GetDefaultResolverParamsParcel(); in TEST_F() local
1411 resolverParams.resolverOptions = resolverOptions; in TEST_F()
1413 ASSERT_TRUE(mDnsClient.resolvService()->setResolverConfiguration(resolverParams).isOk()); in TEST_F()
1417 ->setResolverOptions(resolverParams.netId, resolverOptions) in TEST_F()
1452 auto resolverParams = DnsResponderClient::GetDefaultResolverParamsParcel(); in TEST_F() local
1457 resolverParams.resolverOptions = resolverOptions; in TEST_F()
[all …]
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.cpp126 const auto& resolverParams = in SetResolversForNetwork() local
128 const auto rv = mDnsResolvSrv->setResolverConfiguration(resolverParams); in SetResolversForNetwork()
137 const auto& resolverParams = makeResolverParamsParcel(TEST_NETID, params, servers, domains, in SetResolversWithTls() local
139 const auto rv = mDnsResolvSrv->setResolverConfiguration(resolverParams); in SetResolversWithTls()
144 bool DnsResponderClient::SetResolversFromParcel(const ResolverParamsParcel& resolverParams) { in SetResolversFromParcel() argument
145 const auto rv = mDnsResolvSrv->setResolverConfiguration(resolverParams); in SetResolversFromParcel()
Ddns_responder_client_ndk.h94 bool SetResolversFromParcel(const aidl::android::net::ResolverParamsParcel& resolverParams);
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/1/android/net/
DIDnsResolver.aidl5 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/2/android/net/
DIDnsResolver.aidl22 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/3/android/net/
DIDnsResolver.aidl5 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/4/android/net/
DIDnsResolver.aidl23 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/6/android/net/
DIDnsResolver.aidl23 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/7/android/net/
DIDnsResolver.aidl24 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/5/android/net/
DIDnsResolver.aidl23 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/current/android/net/
DIDnsResolver.aidl24 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/8/android/net/
DIDnsResolver.aidl24 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/9/android/net/
DIDnsResolver.aidl24 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
/packages/modules/DnsResolver/binder/android/net/
DIDnsResolver.aidl61 void setResolverConfiguration(in ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java6603 final ResolverParamsParcel resolverParams = mResolverParamsParcelCaptor.getValue(); in testDnsConfigurationTransTypesPushed() local
6604 assertContainsExactly(resolverParams.transportTypes, TRANSPORT_WIFI); in testDnsConfigurationTransTypesPushed()