Home
last modified time | relevance | path

Searched refs:netid (Results 1 – 15 of 15) sorted by relevance

/packages/modules/DnsResolver/
Dresolv_cache.h53 std::vector<std::string> resolv_cache_dump_subsampling_map(unsigned netid);
54 uint32_t resolv_cache_get_subsampling_denom(unsigned netid, int return_code);
64 ResolvCacheStatus resolv_cache_lookup(unsigned netid, const void* query, int querylen, void* answer,
69 int resolv_cache_add(unsigned netid, const void* query, int querylen, const void* answer,
73 void _resolv_cache_query_failed(unsigned netid, const void* query, int querylen, uint32_t flags);
76 std::vector<std::string> getCustomizedTableByName(const size_t netid, const char* hostname);
80 int resolv_set_nameservers(unsigned netid, const std::vector<std::string>& servers,
86 int resolv_set_options(unsigned netid, const aidl::android::net::ResolverOptionsParcel& options);
89 int resolv_create_cache_for_net(unsigned netid);
92 void resolv_delete_cache_for_net(unsigned netid);
[all …]
Dres_cache.cpp1002 explicit NetConfig(unsigned netId) : netid(netId) { in NetConfig()
1016 LOG(WARNING) << __func__ << ": netid = " << netid in setOptions()
1024 const unsigned netid; member
1049 static Cache* find_named_cache_locked(unsigned netid) REQUIRES(cache_mutex);
1097 void _resolv_cache_query_failed(unsigned netid, const void* query, int querylen, uint32_t flags) { in _resolv_cache_query_failed() argument
1108 Cache* cache = find_named_cache_locked(netid); in _resolv_cache_query_failed()
1224 static NetConfig* find_netconfig_locked(unsigned netid) REQUIRES(cache_mutex);
1226 ResolvCacheStatus resolv_cache_lookup(unsigned netid, const void* query, int querylen, void* answer, in resolv_cache_lookup() argument
1252 Cache* cache = find_named_cache_locked(netid); in resolv_cache_lookup()
1275 [netid, &cache, &key]() REQUIRES(cache_mutex) { in resolv_cache_lookup()
[all …]
DDnsTlsDispatcher.cpp112 getOrderedAndUsableServerList(tlsServers, statp->netid, statp->_mark)); in query()
124 code = this->query(server, statp->netid, statp->_mark, query, ans, resplen, in query()
140 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query()
144 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query()
151 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query()
155 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query()
Dresolv_private.h92 : netid(netcontext->dns_netid), in ResState()
103 copy.netid = netid;
130 unsigned netid; // NetId: cache key and socket mark member
DResolverController.h39 void destroyNetworkCache(unsigned netid);
40 int createNetworkCache(unsigned netid);
41 int flushNetworkCache(unsigned netid);
Dres_send.cpp435 resolv_cache_lookup(statp->netid, buf, buflen, ans, anssiz, &anslen, flags); in res_nsend()
454 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend()
475 resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend()
480 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend()
487 int revision_id = resolv_cache_get_resolver_stats(statp->netid, &params, stats, statp->nsaddrs); in res_nsend()
597 statp->netid, revision_id, serverSockAddr, sample, params.max_samples); in res_nsend()
598 resolv_stats_add(statp->netid, receivedServerAddr, dnsQueryEvent); in res_nsend()
608 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend()
617 resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend()
630 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend()
[all …]
DDnsProxyListener.cpp89 bool checkAndClearUseLocalNameserversFlag(unsigned* netid) { in checkAndClearUseLocalNameserversFlag() argument
90 if (netid == nullptr || ((*netid) & NETID_USE_LOCAL_NAMESERVERS) == 0) { in checkAndClearUseLocalNameserversFlag()
93 *netid = (*netid) & ~NETID_USE_LOCAL_NAMESERVERS; in checkAndClearUseLocalNameserversFlag()
309 uint32_t getDnsEventSubsamplingRate(int netid, int returnCode) { in getDnsEventSubsamplingRate() argument
310 uint32_t subsampling_denom = resolv_cache_get_subsampling_denom(netid, returnCode); in getDnsEventSubsamplingRate()
Dgetaddrinfo.cpp149 static struct addrinfo* getCustomHosts(const size_t netid, const char*, const struct addrinfo*);
150 static bool files_getaddrinfo(const size_t netid, const char* name, const addrinfo* pai,
1536 static struct addrinfo* getCustomHosts(const size_t netid, const char* _Nonnull name, in getCustomHosts() argument
1541 std::vector<std::string> hosts = getCustomizedTableByName(netid, name); in getCustomHosts()
1553 static bool files_getaddrinfo(const size_t netid, const char* name, const addrinfo* pai, in files_getaddrinfo() argument
1567 if ((p = getCustomHosts(netid, name, pai)) != nullptr) { in files_getaddrinfo()
Dstats.h49 int android_net_res_stats_get_info_for_net(unsigned netid, int* nscount,
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiAPITest.java42 private int netid; field in WifiAPITest
119 netid = Integer.parseInt(value.toString()); in onPreferenceClick()
125 mWifiManager.disableNetwork(netid); in onPreferenceClick()
144 netid = Integer.parseInt(value.toString()); in onPreferenceClick()
145 mWifiManager.enableNetwork(netid, false); in onPreferenceClick()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DConfigurationMap.java109 public WifiConfiguration getForAllUsers(int netid) { in getForAllUsers() argument
110 return mPerID.get(netid); in getForAllUsers()
113 public WifiConfiguration getForCurrentUser(int netid) { in getForCurrentUser() argument
114 return mPerIDForCurrentUser.get(netid); in getForCurrentUser()
/packages/modules/DnsResolver/include/netd_resolv/
Dresolv.h77 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/
Dresolv_cache_unit_test.cpp917 explicit ScopedCacheCreate(unsigned netid, const char* subsampling_map, in ScopedCacheCreate() argument
919 : mStoredNetId(netid), mStoredProperty(property) { in ScopedCacheCreate()
922 EXPECT_EQ(0, resolv_create_cache_for_net(netid)); in ScopedCacheCreate()
Dresolv_integration_test.cpp98 const addrinfo* hints, unsigned netid, unsigned mark,
4155 bool checkAndClearUseLocalNameserversFlag(unsigned* netid) { in checkAndClearUseLocalNameserversFlag() argument
4156 if (netid == nullptr || ((*netid) & NETID_USE_LOCAL_NAMESERVERS) == 0) { in checkAndClearUseLocalNameserversFlag()
4159 *netid = (*netid) & ~NETID_USE_LOCAL_NAMESERVERS; in checkAndClearUseLocalNameserversFlag()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java5107 int netid = nai.network.getNetId(); in handleReportNetworkConnectivity() local
5108 log("reportNetworkConnectivity(" + netid + ", " + hasConnectivity + ") by " + uid); in handleReportNetworkConnectivity()