/base/hiviewdfx/hisysevent/adapter/native/idl/src/ |
D | hisysevent_listener_proxy.cpp | 25 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/ |
D | os_account_subscribe_manager.cpp | 41 …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/ |
D | app_account_subscribe_manager.cpp | 45 …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/ |
D | napi_screenlock_ability.cpp | 181 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 …]
|
D | screenlock_system_ability_callback.cpp | 29 ScreenlockSystemAbilityCallback::ScreenlockSystemAbilityCallback(const EventListener &eventListener) in ScreenlockSystemAbilityCallback() argument 30 : eventListener_(eventListener) in ScreenlockSystemAbilityCallback()
|
/base/account/os_account/services/accountmgr/include/osaccount/ |
D | ios_account_subscribe.h | 31 …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;
|
D | os_account_subscribe_manager.h | 31 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/ |
D | screenlockmanager_fuzzer.cpp | 51 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/ |
D | screenlock_notify_test_instance.cpp | 21 ScreenlockNotifyTestInstance::ScreenlockNotifyTestInstance(const EventListenerTest &eventListener) in ScreenlockNotifyTestInstance() argument 22 : systemEventlistener_(eventListener) in ScreenlockNotifyTestInstance()
|
D | screenlock_callback_test.cpp | 22 ScreenLockSystemAbilityTest::ScreenLockSystemAbilityTest(const EventListenerTest &eventListener) in ScreenLockSystemAbilityTest() argument 35 ScreenlockCallbackTest::ScreenlockCallbackTest(const EventListenerTest &eventListener) in ScreenlockCallbackTest() argument
|
D | screenlock_callback_test.h | 27 explicit ScreenLockSystemAbilityTest(const EventListenerTest &eventListener); 34 explicit ScreenlockCallbackTest(const EventListenerTest &eventListener);
|
D | screenlock_notify_test_instance.h | 27 explicit ScreenlockNotifyTestInstance(const EventListenerTest &eventListener);
|
/base/account/os_account/services/accountmgr/test/mock/app_account/ |
D | mock_app_account_subscribe_manager.h | 27 …const sptr<IRemoteObject> &eventListener, const std::string &bundleName, const uint32_t &appIndex); 28 ErrCode UnsubscribeAppAccount(const sptr<IRemoteObject> &eventListener);
|
D | mock_inner_app_account_manager.h | 33 …eAppAccount(const AppAccountSubscribeInfo &subscribeInfo, const sptr<IRemoteObject> &eventListener, 35 ErrCode UnsubscribeAppAccount(const sptr<IRemoteObject> &eventListener);
|
D | mock_app_account_subscribe_manager.cpp | 37 …d::shared_ptr<AppAccountSubscribeInfo> &subscribeInfoPtr, const sptr<IRemoteObject> &eventListener, in SubscribeAppAccount() argument 63 …ode MockAppAccountSubscribeManager::UnsubscribeAppAccount(const sptr<IRemoteObject> &eventListener) in UnsubscribeAppAccount() argument
|
D | mock_inner_app_account_manager.cpp | 72 … 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/ |
D | common_event.cpp | 150 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/ |
D | app_account_event_record.h | 27 sptr<IRemoteObject> eventListener; member 31 AppAccountSubscribeRecord() : subscribeInfoPtr(nullptr), eventListener(nullptr), appIndex(0) in AppAccountSubscribeRecord()
|
D | app_account_subscribe_manager.h | 31 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/ |
D | hisysevent_listener_proxy.h | 30 : eventListener(listener) {} in CallbackDeathRecipient() 38 std::shared_ptr<HiSysEventBaseListener> eventListener;
|
/base/telephony/state_registry/frameworks/js/napi/src/ |
D | event_listener_manager.cpp | 22 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/ |
D | inner_os_account_manager_test.cpp | 99 const sptr<IRemoteObject> eventListener = nullptr; variable 102 …rCode ret = IInnerOsAccountManager::GetInstance().SubscribeOsAccount(subscribeInfo, eventListener);
|
/base/theme/screenlock_mgr/frameworks/js/napi/include/ |
D | screenlock_system_ability_callback.h | 29 explicit ScreenlockSystemAbilityCallback(const EventListener &eventListener);
|
D | screenlock_callback.h | 26 explicit ScreenlockCallback(const EventListener &eventListener);
|
/base/msdp/device_status/frameworks/js/napi/src/ |
D | devicestatus_event.cpp | 265 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()
|