Searched refs:subscriberPtr_ (Results 1 – 7 of 7) sorted by relevance
56 if (g_statsService->subscriberPtr_ == nullptr) { in SetUpTestCase()59 g_statsService->subscriberPtr_ = std::make_shared<BatteryStatsSubscriber>(subscribeInfo); in SetUpTestCase()70 g_statsService->subscriberPtr_ = nullptr; in TearDownTestCase()95 if (service->subscriberPtr_ != nullptr) { in PublishChangedEvent()96 g_statsService->subscriberPtr_->OnReceiveEvent(data); in PublishChangedEvent()
98 if (!OHOS::EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriberPtr_)) { in OnStop()158 if (!subscriberPtr_) { in SubscribeCommonEvent()159 subscriberPtr_ = std::make_shared<BatteryStatsSubscriber>(subscribeInfo); in SubscribeCommonEvent()161 result = CommonEventManager::SubscribeCommonEvent(subscriberPtr_); in SubscribeCommonEvent()
1442 : subscriberPtr_(subscriberPtr) in SystemAbilityListener()1452 if (subscriberPtr_ == nullptr) { in OnAddSystemAbility()1458 bool subscribeResult = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr_); in OnAddSystemAbility()1471 if (subscriberPtr_ == nullptr) { in OnRemoveSystemAbility()1476 bool subscribeResult = EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriberPtr_); in OnRemoveSystemAbility()1513 std::shared_ptr<CallBroadcastSubscriber> subscriberPtr_ = in BroadcastSubscriber() local1515 if (subscriberPtr_ == nullptr) { in BroadcastSubscriber()1550 new (std::nothrow) SystemAbilityListener(subscriberPtr_); in BroadcastSubscriber()
72 std::shared_ptr<EventFwk::CommonEventSubscriber> subscriberPtr_; variable
150 std::shared_ptr<CallBroadcastSubscriber> subscriberPtr_;
613 if (!OHOS::EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriberPtr_)) { in OnStop()1759 if (!subscriberPtr_) { in SubscribeCommonEvent()1760 subscriberPtr_ = std::make_shared<PowerCommonEventSubscriber>(subscribeInfo); in SubscribeCommonEvent()1762 bool result = CommonEventManager::SubscribeCommonEvent(subscriberPtr_); in SubscribeCommonEvent()
362 std::shared_ptr<EventFwk::CommonEventSubscriber> subscriberPtr_; variable