Home
last modified time | relevance | path

Searched refs:eventListener (Results 1 – 25 of 53) sorted by relevance

123

/base/hiviewdfx/hisysevent/adapter/native/idl/src/
Dhisysevent_listener_proxy.cpp25 auto eventListener = GetEventListener(); in Handle() local
26 if (eventListener != nullptr) { in Handle()
27 eventListener->OnEvent(Str16ToStr8(domain), Str16ToStr8(eventName), in Handle()
47 auto eventListener = GetEventListener(); in OnRemoteDied() local
48 if (eventListener != nullptr) { in OnRemoteDied()
49 eventListener->OnServiceDied(); in OnRemoteDied()
55 return eventListener; in GetEventListener()
/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_subscribe_manager.cpp41 …td::shared_ptr<OsAccountSubscribeInfo> &subscribeInfoPtr, const sptr<IRemoteObject> &eventListener) in SubscribeOsAccount() argument
48 if (eventListener == nullptr) { in SubscribeOsAccount()
52 auto subscribeRecordPtr = std::make_shared<OsSubscribeRecord>(subscribeInfoPtr, eventListener); in SubscribeOsAccount()
58 eventListener->AddDeathRecipient(subscribeDeathRecipient_); in SubscribeOsAccount()
61 subscribeRecordPtr->eventListener_ = eventListener; in SubscribeOsAccount()
65 ErrCode OsAccountSubscribeManager::UnsubscribeOsAccount(const sptr<IRemoteObject> &eventListener) in UnsubscribeOsAccount() argument
67 if (eventListener == nullptr) { in UnsubscribeOsAccount()
73 eventListener->RemoveDeathRecipient(subscribeDeathRecipient_); in UnsubscribeOsAccount()
76 return RemoveSubscribeRecord(eventListener); in UnsubscribeOsAccount()
93 ErrCode OsAccountSubscribeManager::RemoveSubscribeRecord(const sptr<IRemoteObject> &eventListener) in RemoveSubscribeRecord() argument
[all …]
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_subscribe_manager.cpp45 …d::shared_ptr<AppAccountSubscribeInfo> &subscribeInfoPtr, const sptr<IRemoteObject> &eventListener, in SubscribeAppAccount() argument
53 if (eventListener == nullptr) { in SubscribeAppAccount()
79 subscribeRecordPtr->eventListener = eventListener; in SubscribeAppAccount()
84 eventListener->AddDeathRecipient(subscribeDeathRecipient_); in SubscribeAppAccount()
90 ErrCode AppAccountSubscribeManager::UnsubscribeAppAccount(const sptr<IRemoteObject> &eventListener) in UnsubscribeAppAccount() argument
92 if (eventListener == nullptr) { in UnsubscribeAppAccount()
98 eventListener->RemoveDeathRecipient(subscribeDeathRecipient_); in UnsubscribeAppAccount()
101 return RemoveSubscribeRecord(eventListener); in UnsubscribeAppAccount()
215 ErrCode AppAccountSubscribeManager::RemoveSubscribeRecord(const sptr<IRemoteObject> &eventListener) in RemoveSubscribeRecord() argument
217 if (eventListener == nullptr) { in RemoveSubscribeRecord()
[all …]
/base/theme/screenlock_mgr/frameworks/js/napi/src/
Dnapi_screenlock_ability.cpp181 EventListener *eventListener = reinterpret_cast<EventListener *>(data); in CompleteAsyncWork() local
182 if (eventListener == nullptr) { in CompleteAsyncWork()
185 if (eventListener->work != nullptr) { in CompleteAsyncWork()
186 napi_delete_async_work(env, eventListener->work); in CompleteAsyncWork()
188 delete eventListener; in CompleteAsyncWork()
195 EventListener *eventListener = reinterpret_cast<EventListener *>(data); in AsyncCallFunc() local
196 if (eventListener == nullptr) { in AsyncCallFunc()
200 sptr<ScreenlockCallback> callback = new (std::nothrow) ScreenlockCallback(*eventListener); in AsyncCallFunc()
203 if (eventListener->callbackRef != nullptr) { in AsyncCallFunc()
204 napi_delete_reference(env, eventListener->callbackRef); in AsyncCallFunc()
[all …]
Dscreenlock_system_ability_callback.cpp29 ScreenlockSystemAbilityCallback::ScreenlockSystemAbilityCallback(const EventListener &eventListener) in ScreenlockSystemAbilityCallback() argument
30 : eventListener_(eventListener) in ScreenlockSystemAbilityCallback()
/base/account/os_account/services/accountmgr/include/osaccount/
Dios_account_subscribe.h31 …Record(std::shared_ptr<OsAccountSubscribeInfo> subscribeInfoPtr, sptr<IRemoteObject> eventListener) in OsSubscribeRecord()
32 : subscribeInfoPtr_(subscribeInfoPtr), eventListener_(eventListener) in OsSubscribeRecord()
41 …hared_ptr<OsAccountSubscribeInfo> &subscribeInfoPtr, const sptr<IRemoteObject> &eventListener) = 0;
42 virtual ErrCode UnsubscribeOsAccount(const sptr<IRemoteObject> &eventListener) = 0;
Dos_account_subscribe_manager.h31 const sptr<IRemoteObject> &eventListener) override;
32 ErrCode UnsubscribeOsAccount(const sptr<IRemoteObject> &eventListener) override;
42 ErrCode RemoveSubscribeRecord(const sptr<IRemoteObject> &eventListener);
/base/theme/screenlock_mgr/test/fuzztest/screenlockmanager_fuzzer/
Dscreenlockmanager_fuzzer.cpp51 EventListener eventListener; in FuzzScreenlockManager() local
59 sptr<ScreenlockCallback> listener_ = new ScreenlockCallback(eventListener); in FuzzScreenlockManager()
68 EventListener eventListener; in UnlockFuzzTest() local
69 sptr<ScreenlockCallback> listener_ = new ScreenlockCallback(eventListener); in UnlockFuzzTest()
92 EventListener eventListener; in FuzzScreenlockAppManager() local
94 …tr<ScreenlockSystemAbilityCallback> listener_ = new ScreenlockSystemAbilityCallback(eventListener); in FuzzScreenlockAppManager()
/base/theme/screenlock_mgr/test/unittest/
Dscreenlock_notify_test_instance.cpp21 ScreenlockNotifyTestInstance::ScreenlockNotifyTestInstance(const EventListenerTest &eventListener) in ScreenlockNotifyTestInstance() argument
22 : systemEventlistener_(eventListener) in ScreenlockNotifyTestInstance()
Dscreenlock_callback_test.cpp22 ScreenLockSystemAbilityTest::ScreenLockSystemAbilityTest(const EventListenerTest &eventListener) in ScreenLockSystemAbilityTest() argument
35 ScreenlockCallbackTest::ScreenlockCallbackTest(const EventListenerTest &eventListener) in ScreenlockCallbackTest() argument
Dscreenlock_callback_test.h27 explicit ScreenLockSystemAbilityTest(const EventListenerTest &eventListener);
34 explicit ScreenlockCallbackTest(const EventListenerTest &eventListener);
Dscreenlock_notify_test_instance.h27 explicit ScreenlockNotifyTestInstance(const EventListenerTest &eventListener);
/base/account/os_account/services/accountmgr/test/mock/app_account/
Dmock_app_account_subscribe_manager.h27 …const sptr<IRemoteObject> &eventListener, const std::string &bundleName, const uint32_t &appIndex);
28 ErrCode UnsubscribeAppAccount(const sptr<IRemoteObject> &eventListener);
Dmock_inner_app_account_manager.h33 …eAppAccount(const AppAccountSubscribeInfo &subscribeInfo, const sptr<IRemoteObject> &eventListener,
35 ErrCode UnsubscribeAppAccount(const sptr<IRemoteObject> &eventListener);
Dmock_app_account_subscribe_manager.cpp37 …d::shared_ptr<AppAccountSubscribeInfo> &subscribeInfoPtr, const sptr<IRemoteObject> &eventListener, in SubscribeAppAccount() argument
63 …ode MockAppAccountSubscribeManager::UnsubscribeAppAccount(const sptr<IRemoteObject> &eventListener) in UnsubscribeAppAccount() argument
Dmock_inner_app_account_manager.cpp72 … const sptr<IRemoteObject> &eventListener, const std::string &bundleName, const uint32_t &appIndex) in SubscribeAppAccount() argument
95 ErrCode MockInnerAppAccountManager::UnsubscribeAppAccount(const sptr<IRemoteObject> &eventListener) in UnsubscribeAppAccount() argument
/base/notification/common_event_service/frameworks/core/src/
Dcommon_event.cpp150 auto eventListener = eventListeners_.find(subscriber); in SubscribeCommonEvent() local
151 if (eventListener != eventListeners_.end()) { in SubscribeCommonEvent()
152 eventListeners_.erase(eventListener); in SubscribeCommonEvent()
179 auto eventListener = eventListeners_.find(subscriber); in UnSubscribeCommonEvent() local
180 if (eventListener != eventListeners_.end()) { in UnSubscribeCommonEvent()
182 … if (commonEventProxy_->UnsubscribeCommonEvent(eventListener->second->AsObject()) == ERR_OK) { in UnSubscribeCommonEvent()
183 eventListener->second->Stop(); in UnSubscribeCommonEvent()
184 eventListeners_.erase(eventListener); in UnSubscribeCommonEvent()
361 auto eventListener = eventListeners_.find(subscriber); in CreateCommonEventListener() local
362 if (eventListener != eventListeners_.end()) { in CreateCommonEventListener()
[all …]
/base/account/os_account/services/accountmgr/include/appaccount/
Dapp_account_event_record.h27 sptr<IRemoteObject> eventListener; member
31 AppAccountSubscribeRecord() : subscribeInfoPtr(nullptr), eventListener(nullptr), appIndex(0) in AppAccountSubscribeRecord()
Dapp_account_subscribe_manager.h31 const sptr<IRemoteObject> &eventListener, const uid_t &uid,
33 ErrCode UnsubscribeAppAccount(const sptr<IRemoteObject> &eventListener);
53 ErrCode RemoveSubscribeRecord(const sptr<IRemoteObject> &eventListener);
/base/hiviewdfx/hisysevent/adapter/native/idl/include/
Dhisysevent_listener_proxy.h30 : eventListener(listener) {} in CallbackDeathRecipient()
38 std::shared_ptr<HiSysEventBaseListener> eventListener;
/base/telephony/state_registry/frameworks/js/napi/src/
Devent_listener_manager.cpp22 int32_t EventListenerManager::RegisterEventListener(EventListener &eventListener) in RegisterEventListener() argument
29 return handler->RegisterEventListener(eventListener); in RegisterEventListener()
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
Dinner_os_account_manager_test.cpp99 const sptr<IRemoteObject> eventListener = nullptr; variable
102 …rCode ret = IInnerOsAccountManager::GetInstance().SubscribeOsAccount(subscribeInfo, eventListener);
/base/theme/screenlock_mgr/frameworks/js/napi/include/
Dscreenlock_system_ability_callback.h29 explicit ScreenlockSystemAbilityCallback(const EventListener &eventListener);
Dscreenlock_callback.h26 explicit ScreenlockCallback(const EventListener &eventListener);
/base/msdp/device_status/frameworks/js/napi/src/
Ddevicestatus_event.cpp265 for (const auto &eventListener : iter.second) { in ClearEventMap() local
266 napi_status status = napi_delete_reference(env_, eventListener->onHandlerRef); in ClearEventMap()
273 for (const auto &eventListener : iter.second) { in ClearEventMap() local
274 napi_status status = napi_delete_reference(env_, eventListener->onHandlerRef); in ClearEventMap()
277 napi_delete_reference(env_, eventListener->onHandlerRef); in ClearEventMap()

123