Home
last modified time | relevance | path

Searched refs:eventListeners_ (Results 1 – 8 of 8) sorted by relevance

/base/notification/common_event_service/frameworks/core/src/
Dcommon_event.cpp150 auto eventListener = eventListeners_.find(subscriber); in SubscribeCommonEvent()
151 if (eventListener != eventListeners_.end()) { in SubscribeCommonEvent()
152 eventListeners_.erase(eventListener); in SubscribeCommonEvent()
179 auto eventListener = eventListeners_.find(subscriber); in UnSubscribeCommonEvent()
180 if (eventListener != eventListeners_.end()) { in UnSubscribeCommonEvent()
184 eventListeners_.erase(eventListener); in UnSubscribeCommonEvent()
361 auto eventListener = eventListeners_.find(subscriber); in CreateCommonEventListener()
362 if (eventListener != eventListeners_.end()) { in CreateCommonEventListener()
367 if (eventListeners_.size() == SUBSCRIBER_MAX_SIZE) { in CreateCommonEventListener()
378 eventListeners_[subscriber] = listener; in CreateCommonEventListener()
[all …]
/base/account/os_account/services/accountmgr/test/unittest/app_account/
Dapp_account_test.cpp112 AppAccount::GetInstance().eventListeners_.clear(); in TearDown()
447 EXPECT_EQ(AppAccount::GetInstance().eventListeners_.size(), SUBSCRIBER_ZERO);
452 EXPECT_EQ(AppAccount::GetInstance().eventListeners_.size(), SUBSCRIBER_ONE);
457 EXPECT_EQ(AppAccount::GetInstance().eventListeners_.size(), SUBSCRIBER_ONE);
482 EXPECT_EQ(AppAccount::GetInstance().eventListeners_.size(), SUBSCRIBER_ZERO);
492 EXPECT_EQ(AppAccount::GetInstance().eventListeners_.size(), counter);
495 EXPECT_EQ(AppAccount::GetInstance().eventListeners_.size(), counter - 1);
/base/account/os_account/frameworks/osaccount/core/src/
Dos_account.cpp520 eventListeners_.erase(subscriber); in SubscribeOsAccount()
549 auto eventListener = eventListeners_.find(subscriber); in UnsubscribeOsAccount()
550 if (eventListener != eventListeners_.end()) { in UnsubscribeOsAccount()
554 eventListeners_.erase(eventListener); in UnsubscribeOsAccount()
706 auto eventListener = eventListeners_.find(subscriber); in CreateOsAccountEventListener()
707 if (eventListener != eventListeners_.end()) { in CreateOsAccountEventListener()
712 if (eventListeners_.size() == Constants::SUBSCRIBER_MAX_SIZE) { in CreateOsAccountEventListener()
723 eventListeners_[subscriber] = listener; in CreateOsAccountEventListener()
/base/account/os_account/frameworks/appaccount/native/src/
Dapp_account.cpp518 eventListeners_.erase(subscriber); in SubscribeAppAccount()
538 auto eventListener = eventListeners_.find(subscriber); in UnsubscribeAppAccount()
539 if (eventListener != eventListeners_.end()) { in UnsubscribeAppAccount()
543 eventListeners_.erase(eventListener); in UnsubscribeAppAccount()
636 auto eventListener = eventListeners_.find(subscriber); in CreateAppAccountEventListener()
637 if (eventListener != eventListeners_.end()) { in CreateAppAccountEventListener()
642 if (eventListeners_.size() == Constants::APP_ACCOUNT_SUBSCRIBER_MAX_SIZE) { in CreateAppAccountEventListener()
653 eventListeners_[subscriber] = listener; in CreateAppAccountEventListener()
/base/notification/common_event_service/frameworks/core/include/
Dcommon_event.h209 std::map<std::shared_ptr<CommonEventSubscriber>, sptr<CommonEventListener>> eventListeners_; variable
/base/account/os_account/frameworks/osaccount/core/include/
Dos_account.h98 std::map<std::shared_ptr<OsAccountSubscriber>, sptr<OsAccountEventListener>> eventListeners_; variable
/base/account/os_account/frameworks/appaccount/native/include/
Dapp_account.h127 std::map<std::shared_ptr<AppAccountSubscriber>, sptr<AppAccountEventListener>> eventListeners_; variable
/base/account/os_account/frameworks/appaccount/native/test/unittest/
Dapp_account_manager_test.cpp2155 … AppAccount::GetInstance().eventListeners_[appAccountSubscriberPtr] = appAccountEventListenerSptr;