Home
last modified time | relevance | path

Searched refs:subscriberPtr_ (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/base/powermgr/battery_statistics/test/unittest/src/servicetest/
H A Dstats_service_subscriber_test.cpp56 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()
/ohos5.0/base/powermgr/battery_statistics/services/native/src/
H A Dbattery_stats_service.cpp98 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()
/ohos5.0/base/telephony/call_manager/services/call/src/
H A Dcall_control_manager.cpp1442 : 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() local
1515 if (subscriberPtr_ == nullptr) { in BroadcastSubscriber()
1550 new (std::nothrow) SystemAbilityListener(subscriberPtr_); in BroadcastSubscriber()
/ohos5.0/base/powermgr/battery_statistics/services/native/include/
H A Dbattery_stats_service.h72 std::shared_ptr<EventFwk::CommonEventSubscriber> subscriberPtr_; variable
/ohos5.0/base/telephony/call_manager/services/call/include/
H A Dcall_control_manager.h150 std::shared_ptr<CallBroadcastSubscriber> subscriberPtr_;
/ohos5.0/base/powermgr/power_manager/services/native/src/
H A Dpower_mgr_service.cpp613 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()
/ohos5.0/base/powermgr/power_manager/services/native/include/
H A Dpower_mgr_service.h362 std::shared_ptr<EventFwk::CommonEventSubscriber> subscriberPtr_; variable