Searched refs:eventListeners_ (Results 1 – 8 of 8) sorted by relevance
150 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 …]
112 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);
520 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()
518 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()
209 std::map<std::shared_ptr<CommonEventSubscriber>, sptr<CommonEventListener>> eventListeners_; variable
98 std::map<std::shared_ptr<OsAccountSubscriber>, sptr<OsAccountEventListener>> eventListeners_; variable
127 std::map<std::shared_ptr<AppAccountSubscriber>, sptr<AppAccountEventListener>> eventListeners_; variable
2155 … AppAccount::GetInstance().eventListeners_[appAccountSubscriberPtr] = appAccountEventListenerSptr;