/base/hiviewdfx/hisysevent/adapter/native/idl/src/ |
H A 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/ |
H A D | distributed_account_subscribe_manager.cpp | 41 const DISTRIBUTED_ACCOUNT_SUBSCRIBE_TYPE type, const sptr<IRemoteObject> &eventListener) in SubscribeDistributedAccountEvent() 44 if (eventListener == nullptr) { in SubscribeDistributedAccountEvent() 49 auto it = std::find_if(subscribeRecords_.begin(), subscribeRecords_.end(), [&eventListener](const auto& record) { in SubscribeDistributedAccountEvent() 50 return record->eventListener_ == eventListener; in SubscribeDistributedAccountEvent() 57 auto subscribeRecordPtr = std::make_shared<DistributedSubscribeRecord>(eventListener); in SubscribeDistributedAccountEvent() 59 eventListener->AddDeathRecipient(subscribeDeathRecipient_); in SubscribeDistributedAccountEvent() 61 subscribeRecordPtr->eventListener_ = eventListener; in SubscribeDistributedAccountEvent() 68 const DISTRIBUTED_ACCOUNT_SUBSCRIBE_TYPE type, const sptr<IRemoteObject> &eventListener) in UnsubscribeDistributedAccountEvent() 71 if (eventListener == nullptr) { in UnsubscribeDistributedAccountEvent() 77 if ((*it)->eventListener_ == eventListener) { in UnsubscribeDistributedAccountEvent() 40 SubscribeDistributedAccountEvent( const DISTRIBUTED_ACCOUNT_SUBSCRIBE_TYPE type, const sptr<IRemoteObject> &eventListener) SubscribeDistributedAccountEvent() argument 67 UnsubscribeDistributedAccountEvent( const DISTRIBUTED_ACCOUNT_SUBSCRIBE_TYPE type, const sptr<IRemoteObject> &eventListener) UnsubscribeDistributedAccountEvent() argument 94 UnsubscribeDistributedAccountEvent( const sptr<IRemoteObject> &eventListener) UnsubscribeDistributedAccountEvent() argument [all...] |
/base/account/os_account/services/accountmgr/include/ |
H A D | idistributed_account_subscribe.h | 31 DistributedSubscribeRecord(sptr<IRemoteObject> eventListener) : eventListener_(eventListener) in DistributedSubscribeRecord() 40 const sptr<IRemoteObject> &eventListener) = 0; 42 const sptr<IRemoteObject> &eventListener) = 0; 43 virtual ErrCode UnsubscribeDistributedAccountEvent(const sptr<IRemoteObject> &eventListener) = 0;
|
H A D | distributed_account_subscribe_manager.h | 30 const sptr<IRemoteObject> &eventListener) override; 32 const sptr<IRemoteObject> &eventListener) override; 33 ErrCode UnsubscribeDistributedAccountEvent(const sptr<IRemoteObject> &eventListener) override;
|
/base/account/os_account/services/accountmgr/include/osaccount/ |
H A D | ios_account_subscribe.h | 31 OsSubscribeRecord(std::shared_ptr<OsAccountSubscribeInfo> subscribeInfoPtr, sptr<IRemoteObject> eventListener) in OsSubscribeRecord() 32 : subscribeInfoPtr_(subscribeInfoPtr), eventListener_(eventListener) in OsSubscribeRecord() 41 const std::shared_ptr<OsAccountSubscribeInfo> &subscribeInfoPtr, const sptr<IRemoteObject> &eventListener) = 0; 42 virtual ErrCode UnsubscribeOsAccount(const sptr<IRemoteObject> &eventListener) = 0; 44 const sptr<IRemoteObject> &eventListener) = 0;
|
H A D | os_account_subscribe_manager.h | 33 const sptr<IRemoteObject> &eventListener) override; 34 ErrCode UnsubscribeOsAccount(const sptr<IRemoteObject> &eventListener) override; 36 const sptr<IRemoteObject> &eventListener) override; 47 ErrCode RemoveSubscribeRecord(const sptr<IRemoteObject> &eventListener);
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | os_account_subscribe_manager.cpp | 40 const std::shared_ptr<OsAccountSubscribeInfo> &subscribeInfoPtr, const sptr<IRemoteObject> &eventListener) in SubscribeOsAccount() 47 if (eventListener == nullptr) { in SubscribeOsAccount() 48 ACCOUNT_LOGE("eventListener is nullptr"); in SubscribeOsAccount() 51 auto subscribeRecordPtr = std::make_shared<OsSubscribeRecord>(subscribeInfoPtr, eventListener); in SubscribeOsAccount() 57 eventListener->AddDeathRecipient(subscribeDeathRecipient_); in SubscribeOsAccount() 60 subscribeRecordPtr->eventListener_ = eventListener; in SubscribeOsAccount() 64 ErrCode OsAccountSubscribeManager::UnsubscribeOsAccount(const sptr<IRemoteObject> &eventListener) in UnsubscribeOsAccount() argument 66 if (eventListener == nullptr) { in UnsubscribeOsAccount() 67 ACCOUNT_LOGE("eventListener is nullptr"); in UnsubscribeOsAccount() 72 eventListener in UnsubscribeOsAccount() 39 SubscribeOsAccount( const std::shared_ptr<OsAccountSubscribeInfo> &subscribeInfoPtr, const sptr<IRemoteObject> &eventListener) SubscribeOsAccount() argument 92 RemoveSubscribeRecord(const sptr<IRemoteObject> &eventListener) RemoveSubscribeRecord() argument 112 GetSubscribeRecordInfo( const sptr<IRemoteObject> &eventListener) GetSubscribeRecordInfo() argument [all...] |
/base/account/os_account/services/accountmgr/src/appaccount/ |
H A D | app_account_subscribe_manager.cpp | 45 const std::shared_ptr<AppAccountSubscribeInfo> &subscribeInfoPtr, const sptr<IRemoteObject> &eventListener, in SubscribeAppAccount() 53 if (eventListener == nullptr) { in SubscribeAppAccount() 54 ACCOUNT_LOGE("eventListener is 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() 93 ACCOUNT_LOGE("eventListener is nullptr"); in UnsubscribeAppAccount() 98 eventListener in UnsubscribeAppAccount() 44 SubscribeAppAccount( const std::shared_ptr<AppAccountSubscribeInfo> &subscribeInfoPtr, const sptr<IRemoteObject> &eventListener, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) SubscribeAppAccount() argument 215 RemoveSubscribeRecord(const sptr<IRemoteObject> &eventListener) RemoveSubscribeRecord() argument [all...] |
/base/account/os_account/frameworks/ohosaccount/native/src/ |
H A D | ohos_account_kits_impl.cpp | 261 auto eventListener = eventListeners_.find(callback);
in UnsubscribeDistributedAccountEvent() local 262 if (eventListener == eventListeners_.end()) {
in UnsubscribeDistributedAccountEvent() 267 if (!(eventListener->second->IsTypeExist(type))) {
in UnsubscribeDistributedAccountEvent() 271 ErrCode result = accountProxy->UnsubscribeDistributedAccountEvent(type, eventListener->second->AsObject());
in UnsubscribeDistributedAccountEvent() 273 eventListener->second->DeleteType(type);
in UnsubscribeDistributedAccountEvent() 274 if (eventListener->second->GetTypeSize() == 0) {
in UnsubscribeDistributedAccountEvent() 275 eventListeners_.erase(eventListener);
in UnsubscribeDistributedAccountEvent() 291 auto eventListener = eventListeners_.find(callback);
in CreateDistributedAccountEventService() local 292 if (eventListener != eventListeners_.end()) {
in CreateDistributedAccountEventService() 293 subscribeListener = eventListener in CreateDistributedAccountEventService() [all...] |
/base/theme/screenlock_mgr/test/unittest/ |
H A D | screenlock_notify_test_instance.cpp | 21 ScreenlockNotifyTestInstance::ScreenlockNotifyTestInstance(const EventListenerTest &eventListener) in ScreenlockNotifyTestInstance() argument 22 : systemEventlistener_(eventListener) in ScreenlockNotifyTestInstance()
|
H A D | screenlock_callback_test.cpp | 22 ScreenLockSystemAbilityTest::ScreenLockSystemAbilityTest(const EventListenerTest &eventListener) in ScreenLockSystemAbilityTest() argument 35 ScreenlockCallbackTest::ScreenlockCallbackTest(const EventListenerTest &eventListener) in ScreenlockCallbackTest() argument
|
H A D | screenlock_callback_test.h | 27 explicit ScreenLockSystemAbilityTest(const EventListenerTest &eventListener); 34 explicit ScreenlockCallbackTest(const EventListenerTest &eventListener);
|
/base/account/os_account/services/accountmgr/test/mock/app_account/ |
H A 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);
|
H A D | mock_app_account_subscribe_manager.cpp | 37 const std::shared_ptr<AppAccountSubscribeInfo> &subscribeInfoPtr, const sptr<IRemoteObject> &eventListener, in SubscribeAppAccount() 63 ErrCode MockAppAccountSubscribeManager::UnsubscribeAppAccount(const sptr<IRemoteObject> &eventListener) in UnsubscribeAppAccount() argument 36 SubscribeAppAccount( const std::shared_ptr<AppAccountSubscribeInfo> &subscribeInfoPtr, const sptr<IRemoteObject> &eventListener, const std::string &bundleName, const uint32_t &appIndex) SubscribeAppAccount() argument
|
H A D | mock_inner_app_account_manager.h | 33 ErrCode SubscribeAppAccount(const AppAccountSubscribeInfo &subscribeInfo, const sptr<IRemoteObject> &eventListener, 35 ErrCode UnsubscribeAppAccount(const sptr<IRemoteObject> &eventListener);
|
H A D | mock_inner_app_account_manager.cpp | 72 const sptr<IRemoteObject> &eventListener, const std::string &bundleName, const uint32_t &appIndex) in SubscribeAppAccount() 95 ErrCode MockInnerAppAccountManager::UnsubscribeAppAccount(const sptr<IRemoteObject> &eventListener) in UnsubscribeAppAccount() argument 71 SubscribeAppAccount(const AppAccountSubscribeInfo &subscribeInfo, const sptr<IRemoteObject> &eventListener, const std::string &bundleName, const uint32_t &appIndex) SubscribeAppAccount() argument
|
/base/theme/screenlock_mgr/test/fuzztest/screenlockmanager_fuzzer/ |
H A 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 sptr<ScreenlockSystemAbilityCallback> listener_ = new ScreenlockSystemAbilityCallback(eventListener); in FuzzScreenlockAppManager()
|
/base/theme/screenlock_mgr/frameworks/js/napi/src/ |
H A D | napi_screenlock_ability.cpp | 208 EventListener *eventListener = reinterpret_cast<EventListener *>(data); in CompleteAsyncWork() local 209 if (eventListener == nullptr) { in CompleteAsyncWork() 212 if (eventListener->work != nullptr) { in CompleteAsyncWork() 213 napi_delete_async_work(env, eventListener->work); in CompleteAsyncWork() 215 delete eventListener; in CompleteAsyncWork() 222 EventListener *eventListener = reinterpret_cast<EventListener *>(data); in AsyncCallFunc() 223 if (eventListener == nullptr) { in AsyncCallFunc() 227 sptr<ScreenlockCallback> callback = new (std::nothrow) ScreenlockCallback(*eventListener); in AsyncCallFunc() 230 if (eventListener->callbackRef != nullptr) { in AsyncCallFunc() 231 napi_delete_reference(env, eventListener in AsyncCallFunc() 270 EventListener *eventListener = nullptr; NAPI_Lock() local 319 EventListener *eventListener = nullptr; NAPI_UnlockScreen() local 362 EventListener *eventListener = nullptr; NAPI_Unlock() local [all...] |
/base/account/os_account/services/accountmgr/include/appaccount/ |
H A D | app_account_event_record.h | 27 sptr<IRemoteObject> eventListener; member 31 AppAccountSubscribeRecord() : subscribeInfoPtr(nullptr), eventListener(nullptr), appIndex(0) in AppAccountSubscribeRecord()
|
H A 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/ |
H A D | hisysevent_listener_proxy.h | 30 : eventListener(listener) {} in CallbackDeathRecipient() 38 std::shared_ptr<HiSysEventBaseListener> eventListener; member in OHOS::HiviewDFX::CallbackDeathRecipient
|
/base/telephony/state_registry/frameworks/js/napi/src/ |
H A D | event_listener_manager.cpp | 22 int32_t EventListenerManager::RegisterEventListener(EventListener &eventListener) in RegisterEventListener() argument 29 return handler->RegisterEventListener(eventListener); in RegisterEventListener()
|
/base/notification/common_event_service/frameworks/core/src/ |
H A D | common_event.cpp | 180 auto eventListener = eventListeners_.find(subscriber); in SubscribeCommonEvent() local 181 if (eventListener != eventListeners_.end()) { in SubscribeCommonEvent() 182 eventListeners_.erase(eventListener); in SubscribeCommonEvent() 209 auto eventListener = eventListeners_.find(subscriber); in UnSubscribeCommonEvent() local 210 if (eventListener != eventListeners_.end()) { in UnSubscribeCommonEvent() 212 if (proxy->UnsubscribeCommonEvent(eventListener->second->AsObject()) == ERR_OK) { in UnSubscribeCommonEvent() 213 eventListener->second->Stop(); in UnSubscribeCommonEvent() 214 eventListeners_.erase(eventListener); in UnSubscribeCommonEvent() 386 auto eventListener = eventListeners_.find(subscriber); in CreateCommonEventListener() local 387 if (eventListener ! in CreateCommonEventListener() [all...] |
/base/account/os_account/interfaces/innerkits/ohosaccount/native/include/ |
H A D | iaccount.h | 47 const sptr<IRemoteObject> &eventListener) = 0; 49 const sptr<IRemoteObject> &eventListener) = 0;
|
/base/account/os_account/services/accountmgr/test/mock/src/ |
H A D | mock_account_mgr_service.cpp | 70 const sptr<IRemoteObject> &eventListener) in SubscribeDistributedAccountEvent() 76 const sptr<IRemoteObject> &eventListener) in UnsubscribeDistributedAccountEvent() 69 SubscribeDistributedAccountEvent(const DISTRIBUTED_ACCOUNT_SUBSCRIBE_TYPE type, const sptr<IRemoteObject> &eventListener) SubscribeDistributedAccountEvent() argument 75 UnsubscribeDistributedAccountEvent(const DISTRIBUTED_ACCOUNT_SUBSCRIBE_TYPE type, const sptr<IRemoteObject> &eventListener) UnsubscribeDistributedAccountEvent() argument
|