Home
last modified time | relevance | path

Searched refs:gResNetdCallbacks (Results 1 – 6 of 6) sorted by relevance

/packages/modules/DnsResolver/
DDnsResolver.cpp40 using android::net::gResNetdCallbacks; in resolv_init()
41 gResNetdCallbacks.check_calling_permission = callbacks->check_calling_permission; in resolv_init()
42 gResNetdCallbacks.get_network_context = callbacks->get_network_context; in resolv_init()
43 gResNetdCallbacks.log = callbacks->log; in resolv_init()
45 gResNetdCallbacks.tagSocket = callbacks->tagSocket; in resolv_init()
46 gResNetdCallbacks.evaluate_domain_name = callbacks->evaluate_domain_name; in resolv_init()
58 if (!(gResNetdCallbacks.check_calling_permission && gResNetdCallbacks.get_network_context && in verifyCallbacks()
59 gResNetdCallbacks.log)) { in verifyCallbacks()
63 return gResNetdCallbacks.tagSocket != nullptr; in verifyCallbacks()
71 ResolverNetdCallbacks gResNetdCallbacks; variable
DDnsResolverService.cpp77 [](const std::string& msg) { gResNetdCallbacks.log(msg.c_str()); }); in DnsResolverService()
145 if (!gResNetdCallbacks.check_calling_permission) { in checkAnyPermission()
166 if (gResNetdCallbacks.check_calling_permission(permission)) { in checkAnyPermission()
201 gResNetdCallbacks.log(entry.returns(res).withAutomaticDuration().toString().c_str()); in setResolverConfiguration()
DDnsProxyListener.cpp140 if (gResNetdCallbacks.check_calling_permission(permission)) { in hasPermissionToBypassPrivateDns()
579 if (!gResNetdCallbacks.evaluate_domain_name) in evaluate_domain_name()
581 return gResNetdCallbacks.evaluate_domain_name(netcontext, host); in evaluate_domain_name()
829 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand()
885 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand()
1039 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand()
1087 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand()
1239 gResNetdCallbacks.get_network_context(netId, uid, &netcontext); in runCommand()
Dresolv_private.h173 if (android::net::gResNetdCallbacks.tagSocket != nullptr) { in resolv_tag_socket()
174 if (int err = android::net::gResNetdCallbacks.tagSocket(sock, TAG_SYSTEM_DNS, uid, pid)) { in resolv_tag_socket()
DResolverController.cpp178 gResNetdCallbacks.get_network_context(netId, uid, netcontext); in ResolverController()
206 gResNetdCallbacks.get_network_context(resolverParams.netId, 0 /* uid */, &netcontext); in setResolverConfiguration()
DDnsResolver.h49 extern ResolverNetdCallbacks gResNetdCallbacks;