/packages/modules/DnsResolver/ |
D | ResolverController.cpp | 186 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 …]
|
D | DnsResolverService.cpp | 191 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()
|
D | ResolverController.h | 45 int setResolverConfiguration(const aidl::android::net::ResolverParamsParcel& resolverParams);
|
D | DnsResolverService.h | 49 const aidl::android::net::ResolverParamsParcel& resolverParams) override;
|
/packages/modules/DnsResolver/tests/ |
D | dnsresolver_binder_test.cpp | 453 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 …]
|
D | resolv_integration_test.cpp | 1322 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/ |
D | dns_responder_client_ndk.cpp | 126 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()
|
D | dns_responder_client_ndk.h | 94 bool SetResolversFromParcel(const aidl::android::net::ResolverParamsParcel& resolverParams);
|
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/1/android/net/ |
D | IDnsResolver.aidl | 5 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
|
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/2/android/net/ |
D | IDnsResolver.aidl | 22 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
|
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/3/android/net/ |
D | IDnsResolver.aidl | 5 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
|
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/4/android/net/ |
D | IDnsResolver.aidl | 23 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
|
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/6/android/net/ |
D | IDnsResolver.aidl | 23 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
|
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/7/android/net/ |
D | IDnsResolver.aidl | 24 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
|
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/5/android/net/ |
D | IDnsResolver.aidl | 23 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
|
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/current/android/net/ |
D | IDnsResolver.aidl | 24 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
|
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/8/android/net/ |
D | IDnsResolver.aidl | 24 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
|
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/9/android/net/ |
D | IDnsResolver.aidl | 24 void setResolverConfiguration(in android.net.ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
|
/packages/modules/DnsResolver/binder/android/net/ |
D | IDnsResolver.aidl | 61 void setResolverConfiguration(in ResolverParamsParcel resolverParams); in setResolverConfiguration() argument
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 6603 final ResolverParamsParcel resolverParams = mResolverParamsParcelCaptor.getValue(); in testDnsConfigurationTransTypesPushed() local 6604 assertContainsExactly(resolverParams.transportTypes, TRANSPORT_WIFI); in testDnsConfigurationTransTypesPushed()
|