/packages/modules/DnsResolver/ |
D | resolv_cache.h | 56 std::vector<std::string> resolv_cache_dump_subsampling_map(unsigned netid); 57 uint32_t resolv_cache_get_subsampling_denom(unsigned netid, int return_code); 67 ResolvCacheStatus resolv_cache_lookup(unsigned netid, const void* query, int querylen, void* answer, 72 int resolv_cache_add(unsigned netid, const void* query, int querylen, const void* answer, 76 void _resolv_cache_query_failed(unsigned netid, const void* query, int querylen, uint32_t flags); 79 std::vector<std::string> getCustomizedTableByName(const size_t netid, const char* hostname); 83 int resolv_set_nameservers(unsigned netid, const std::vector<std::string>& servers, 92 int resolv_create_cache_for_net(unsigned netid); 95 void resolv_delete_cache_for_net(unsigned netid); 98 int resolv_flush_cache_for_net(unsigned netid); [all …]
|
D | res_cache.cpp | 986 explicit NetConfig(unsigned netId) : netid(netId) { in NetConfig() 992 const unsigned netid; member 1013 static Cache* find_named_cache_locked(unsigned netid) REQUIRES(cache_mutex); 1061 void _resolv_cache_query_failed(unsigned netid, const void* query, int querylen, uint32_t flags) { in _resolv_cache_query_failed() argument 1072 Cache* cache = find_named_cache_locked(netid); in _resolv_cache_query_failed() 1188 static NetConfig* find_netconfig_locked(unsigned netid) REQUIRES(cache_mutex); 1190 ResolvCacheStatus resolv_cache_lookup(unsigned netid, const void* query, int querylen, void* answer, in resolv_cache_lookup() argument 1216 Cache* cache = find_named_cache_locked(netid); in resolv_cache_lookup() 1239 [netid, &cache, &key]() REQUIRES(cache_mutex) { in resolv_cache_lookup() 1241 cache = find_named_cache_locked(netid); in resolv_cache_lookup() [all …]
|
D | ResolverController.h | 39 void destroyNetworkCache(unsigned netid); 40 int createNetworkCache(unsigned netid); 41 int flushNetworkCache(unsigned netid);
|
D | res_send.cpp | 438 resolv_cache_lookup(statp->netid, buf, buflen, ans, anssiz, &anslen, flags); in res_nsend() 457 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend() 478 resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend() 483 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend() 490 int revision_id = resolv_cache_get_resolver_stats(statp->netid, ¶ms, stats, statp->nsaddrs); in res_nsend() 600 statp->netid, revision_id, serverSockAddr, sample, params.max_samples); in res_nsend() 602 resolv_stats_add(statp->netid, receivedServerAddr, dnsQueryEvent); in res_nsend() 611 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend() 620 resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend() 633 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend() [all …]
|
D | res_init.cpp | 98 statp->netid = netcontext->dns_netid; in res_init() 116 resOutput.netid = other.netid; in fromResState()
|
D | DnsTlsDispatcher.cpp | 122 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query() 126 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query() 133 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query() 137 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query()
|
D | DnsTlsTransport.cpp | 156 bool DnsTlsTransport::validate(const DnsTlsServer& server, unsigned netid, uint32_t mark) { in validate() argument 157 LOG(DEBUG) << "Beginning validation on " << netid; in validate() 210 LOG(DEBUG) << netid << " answer count: " << ancount; in validate()
|
D | DnsProxyListener.cpp | 106 bool checkAndClearUseLocalNameserversFlag(unsigned* netid) { in checkAndClearUseLocalNameserversFlag() argument 107 if (netid == nullptr || ((*netid) & NETID_USE_LOCAL_NAMESERVERS) == 0) { in checkAndClearUseLocalNameserversFlag() 110 *netid = (*netid) & ~NETID_USE_LOCAL_NAMESERVERS; in checkAndClearUseLocalNameserversFlag() 326 uint32_t getDnsEventSubsamplingRate(int netid, int returnCode) { in getDnsEventSubsamplingRate() argument 327 uint32_t subsampling_denom = resolv_cache_get_subsampling_denom(netid, returnCode); in getDnsEventSubsamplingRate()
|
D | getaddrinfo.cpp | 150 static struct addrinfo* getCustomHosts(const size_t netid, const char*, const struct addrinfo*); 151 static bool files_getaddrinfo(const size_t netid, const char* name, const addrinfo* pai, 1538 static struct addrinfo* getCustomHosts(const size_t netid, const char* _Nonnull name, in getCustomHosts() argument 1543 std::vector<std::string> hosts = getCustomizedTableByName(netid, name); in getCustomHosts() 1555 static bool files_getaddrinfo(const size_t netid, const char* name, const addrinfo* pai, in files_getaddrinfo() argument 1569 if ((p = getCustomHosts(netid, name, pai)) != nullptr) { in files_getaddrinfo()
|
D | stats.h | 49 int android_net_res_stats_get_info_for_net(unsigned netid, int* nscount,
|
D | DnsTlsTransport.h | 58 static bool validate(const DnsTlsServer& server, unsigned netid, uint32_t mark);
|
D | resolv_private.h | 101 unsigned netid; // NetId: cache key and socket mark member
|
D | resolv_cache_unit_test.cpp | 918 explicit ScopedCacheCreate(unsigned netid, const char* subsampling_map, in ScopedCacheCreate() argument 920 : mStoredNetId(netid), mStoredProperty(property) { in ScopedCacheCreate() 923 EXPECT_EQ(0, resolv_create_cache_for_net(netid)); in ScopedCacheCreate()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiAPITest.java | 43 private int netid; field in WifiAPITest 120 netid = Integer.parseInt(value.toString()); in onPreferenceClick() 126 mWifiManager.disableNetwork(netid); in onPreferenceClick() 145 netid = Integer.parseInt(value.toString()); in onPreferenceClick() 146 mWifiManager.enableNetwork(netid, false); in onPreferenceClick()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiAPITest.java | 43 private int netid; field in WifiAPITest 120 netid = Integer.parseInt(value.toString()); in onPreferenceClick() 126 mWifiManager.disableNetwork(netid); in onPreferenceClick() 145 netid = Integer.parseInt(value.toString()); in onPreferenceClick() 146 mWifiManager.enableNetwork(netid, false); in onPreferenceClick()
|
/packages/modules/DnsResolver/include/netd_resolv/ |
D | resolv.h | 77 typedef void (*get_network_context_callback)(unsigned netid, uid_t uid, 123 LIBNETD_RESOLV_PUBLIC bool resolv_has_nameservers(unsigned netid);
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 81 const addrinfo* hints, unsigned netid, unsigned mark, 3990 bool checkAndClearUseLocalNameserversFlag(unsigned* netid) { in checkAndClearUseLocalNameserversFlag() argument 3991 if (netid == nullptr || ((*netid) & NETID_USE_LOCAL_NAMESERVERS) == 0) { in checkAndClearUseLocalNameserversFlag() 3994 *netid = (*netid) & ~NETID_USE_LOCAL_NAMESERVERS; in checkAndClearUseLocalNameserversFlag()
|