Home
last modified time | relevance | path

Searched refs:CallbackManager (Results 1 – 25 of 26) sorted by relevance

12

/base/useriam/user_auth_framework/frameworks/native/client/src/
Duser_auth_callback_service.cpp31 CallbackManager::CallbackAction action = [impl]() { in UserAuthCallbackService()
38 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in UserAuthCallbackService()
45 CallbackManager::CallbackAction action = [impl]() { in UserAuthCallbackService()
52 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in UserAuthCallbackService()
57 CallbackManager::GetInstance().RemoveCallback(reinterpret_cast<uintptr_t>(this)); in ~UserAuthCallbackService()
90 CallbackManager::CallbackAction action = [impl]() { in GetExecutorPropertyCallbackService()
97 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in GetExecutorPropertyCallbackService()
102 CallbackManager::GetInstance().RemoveCallback(reinterpret_cast<uintptr_t>(this)); in ~GetExecutorPropertyCallbackService()
118 CallbackManager::CallbackAction action = [impl]() { in SetExecutorPropertyCallbackService()
125 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in SetExecutorPropertyCallbackService()
[all …]
Duser_idm_callback_service.cpp31 CallbackManager::CallbackAction action = [impl]() { in IdmCallbackService()
38 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in IdmCallbackService()
43 CallbackManager::GetInstance().RemoveCallback(reinterpret_cast<uintptr_t>(this)); in ~IdmCallbackService()
70 CallbackManager::CallbackAction action = [impl]() { in IdmGetCredInfoCallbackService()
77 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in IdmGetCredInfoCallbackService()
82 CallbackManager::GetInstance().RemoveCallback(reinterpret_cast<uintptr_t>(this)); in ~IdmGetCredInfoCallbackService()
99 CallbackManager::CallbackAction action = [impl]() { in IdmGetSecureUserInfoCallbackService()
106 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in IdmGetSecureUserInfoCallbackService()
111 CallbackManager::GetInstance().RemoveCallback(reinterpret_cast<uintptr_t>(this)); in ~IdmGetSecureUserInfoCallbackService()
Dcallback_manager_impl.cpp29 class CallbackManagerImpl final : public CallbackManager, public NoCopyable {
36 friend class CallbackManager;
69 CallbackManager &CallbackManager::GetInstance() in GetInstance()
Dwidget_callback_service.cpp31 CallbackManager::CallbackAction action = [impl]() { in WidgetCallbackService()
38 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in WidgetCallbackService()
43 CallbackManager::GetInstance().RemoveCallback(reinterpret_cast<uintptr_t>(this)); in ~WidgetCallbackService()
Dco_auth_client_impl.cpp110 CallbackManager::GetInstance().OnServiceDeath(); in OnRemoteDied()
Duser_idm_client_impl.cpp300 CallbackManager::GetInstance().OnServiceDeath(); in OnRemoteDied()
Duser_auth_client_impl.cpp339 CallbackManager::GetInstance().OnServiceDeath(); in OnRemoteDied()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/callback/
Dcallback_manager.cpp38 CallbackManager& CallbackManager::GetInstance() in GetInstance()
40 static CallbackManager instance; in GetInstance()
44 CallbackManager::CallbackManager() : callbackDeathRecipient_(sptr<IRemoteObject::DeathRecipient>( in CallbackManager() function in OHOS::Security::AccessToken::CallbackManager
49 CallbackManager::~CallbackManager() in ~CallbackManager()
53 int32_t CallbackManager::AddCallback(const PermStateChangeScope& scopeRes, const sptr<IRemoteObject… in AddCallback()
78 int32_t CallbackManager::RemoveCallback(const sptr<IRemoteObject>& callback) in RemoveCallback()
102 bool CallbackManager::CalledAccordingToTokenIdLlist( in CalledAccordingToTokenIdLlist()
112 bool CallbackManager::CalledAccordingToPermLlist(const std::vector<std::string>& permList, const st… in CalledAccordingToPermLlist()
121 void CallbackManager::ExecuteCallbackAsync(AccessTokenID tokenID, const std::string& permName, int3… in ExecuteCallbackAsync()
Dperm_state_callback_death_recipient.cpp43 CallbackManager::GetInstance().RemoveCallback(object); in OnRemoteDied()
/base/update/updater/services/ui/control/
Dcallback_manager.cpp26 std::vector<CallbackCfg> CallbackManager::callbackCfgs_;
28 std::unordered_map<std::string, EventType> CallbackManager::evtTypes_ = {
33 bool CallbackManager::LoadCallbacks(const JsonNode &node) in LoadCallbacks()
52 bool CallbackManager::RegisterFunc(const std::string &name, Callback cb) in RegisterFunc()
61 std::unordered_map<std::string, Callback> &CallbackManager::GetFuncs() in GetFuncs()
67 void CallbackManager::Register(const CallbackCfg &cbCfg) in Register()
84 void CallbackManager::Init(bool hasFocus) in Init()
Dcallback_manager.h28 class CallbackManager {
45 CallbackManager::RegisterFunc(#name, Callback{&name, async}); \
/base/useriam/user_auth_framework/test/unittest/inner_api/src/
Dcallback_manager_impl_test.cpp55 CallbackManager::GetInstance().OnServiceDeath();
64 CallbackManager::GetInstance().OnServiceDeath();
73 CallbackManager::GetInstance().OnServiceDeath();
82 CallbackManager::GetInstance().OnServiceDeath();
91 CallbackManager::GetInstance().OnServiceDeath();
100 CallbackManager::GetInstance().OnServiceDeath();
109 CallbackManager::GetInstance().OnServiceDeath();
118 CallbackManager::GetInstance().OnServiceDeath();
/base/useriam/user_auth_framework/frameworks/native/client/inc/
Dcallback_manager.h28 class CallbackManager {
31 static CallbackManager &GetInstance();
32 virtual ~CallbackManager() = default;
/base/location/frameworks/js/napi/include/
Dcallback_manager.h24 class CallbackManager {
26 CallbackManager() = default;
27 virtual ~CallbackManager() = default;
42 std::map<napi_env, std::map<napi_ref, sptr<T>>> CallbackManager<T>::GetCallbackMap() in GetCallbackMap()
49 void CallbackManager<T>::DeleteCallbackByEnv(const napi_env& env) in DeleteCallbackByEnv()
61 bool CallbackManager<T>::IsCallbackInMap(const napi_env& env, const napi_value& handler) in IsCallbackInMap()
78 void CallbackManager<T>::AddCallback(const napi_env& env, const napi_ref& handlerRef, const sptr<T>… in AddCallback()
92 void CallbackManager<T>::DeleteCallback(const napi_env& env, const napi_value& handler) in DeleteCallback()
112 sptr<T> CallbackManager<T>::GetCallbackPtr(const napi_env& env, const napi_value& handler) in GetCallbackPtr()
129 bool CallbackManager<T>::RegCallback(const napi_env& env, const size_t argc, const napi_value* argv) in RegCallback()
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/include/callback/
Dcallback_manager.h46 class CallbackManager {
48 virtual ~CallbackManager();
49 CallbackManager();
50 static CallbackManager& GetInstance();
/base/msdp/device_status/services/native/include/
Ddevicestatus_msdp_client_impl.h32 using CallbackManager = std::function<int32_t(const Data&)>;
40 ErrCode RegisterImpl(const CallbackManager& callback);
76 DeviceStatusMsdpClientImpl::CallbackManager callBacksMgr_;
/base/powermgr/power_manager/services/native/include/
Dpower_mode_module.h47 class CallbackManager : public IRemoteObject::DeathRecipient {
65 sptr<CallbackManager> callbackMgr_;
/base/powermgr/power_manager/services/native/src/
Dpower_mode_module.cpp36 callbackMgr_ = new CallbackManager(); in PowerModeModule()
130 void PowerModeModule::CallbackManager::AddCallback(const sptr<IPowerModeCallback>& callback) in AddCallback()
143 void PowerModeModule::CallbackManager::RemoveCallback(const sptr<IPowerModeCallback>& callback) in RemoveCallback()
156 void PowerModeModule::CallbackManager::OnRemoteDied(const wptr<IRemoteObject>& remote) in OnRemoteDied()
163 void PowerModeModule::CallbackManager::WaitingCallback() in WaitingCallback()
/base/powermgr/power_manager/test/unittest/src/
Dpower_mode_module_native_test.cpp82 shared_ptr<PowerModeModule::CallbackManager> powerModeModuleManager =
83 make_shared<PowerModeModule::CallbackManager>();
/base/update/updater/services/ui/
Dupdater_ui_env.cpp72 CallbackManager::Init(UpdaterUiConfig::GetFocusCfg()); in InitEvts()
Dupdater_ui_config.cpp186 return CallbackManager::LoadCallbacks(node); in LoadCallbacks()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_manager.cpp412 CallbackManager::GetInstance().ExecuteCallbackAsync(tokenID, permissionName, changeType); in UpdateTokenPermissionState()
526 return CallbackManager::GetInstance().AddCallback(scope, callback); in AddPermStateChangeCallback()
531 return CallbackManager::GetInstance().RemoveCallback(callback); in RemovePermStateChangeCallback()
720CallbackManager::GetInstance().ExecuteCallbackAsync(tokenID, permissionList[i], changeTypeList[i]); in ClearUserGrantedPermissionState()
/base/location/frameworks/js/napi/source/
Dlocation_napi_event.cpp30 CallbackManager<LocationSwitchCallbackHost> g_switchCallbacks;
31 CallbackManager<LocatorCallbackHost> g_locationCallbacks;
32 CallbackManager<GnssStatusCallbackHost> g_gnssStatusInfoCallbacks;
33 CallbackManager<NmeaMessageCallbackHost> g_nmeaCallbacks;
34 CallbackManager<CachedLocationsCallbackHost> g_cachedLocationCallbacks;
35 CallbackManager<CountryCodeCallbackHost> g_countryCodeCallbacks;
36 CallbackManager<LocatingRequiredDataCallbackHost> g_locatingRequiredDataCallbacks;
/base/msdp/device_status/services/native/src/
Ddevicestatus_manager.cpp116 DeviceStatusMsdpClientImpl::CallbackManager callback = in InitDataCallback()
Ddevicestatus_msdp_client_impl.cpp239 ErrCode DeviceStatusMsdpClientImpl::RegisterImpl(const CallbackManager& callback) in RegisterImpl()

12