Home
last modified time | relevance | path

Searched refs:subscriberPtr_ (Results 1 - 9 of 9) sorted by relevance

/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()
/base/powermgr/battery_statistics/test/unittest/src/servicetest/
H A Dstats_service_subscriber_test.cpp60 if (g_statsService->subscriberPtr_ == nullptr) { in SetUpTestCase()
63 g_statsService->subscriberPtr_ = std::make_shared<BatteryStatsSubscriber>(subscribeInfo); in SetUpTestCase()
74 g_statsService->subscriberPtr_ = nullptr; in TearDownTestCase()
99 if (service->subscriberPtr_ != nullptr) { in PublishChangedEvent()
100 g_statsService->subscriberPtr_->OnReceiveEvent(data); in PublishChangedEvent()
/base/powermgr/thermal_manager/services/native/src/
H A Dthermal_service.cpp127 if (!subscriberPtr_) { in SubscribeCommonEvent()
128 subscriberPtr_ = std::make_shared<AirplaneCommonEventSubscriber>(subscribeInfo); in SubscribeCommonEvent()
130 result = CommonEventManager::SubscribeCommonEvent(subscriberPtr_); in SubscribeCommonEvent()
386 if (!OHOS::EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriberPtr_)) { in OnStop()
/base/powermgr/battery_statistics/services/native/include/
H A Dbattery_stats_service.h72 std::shared_ptr<EventFwk::CommonEventSubscriber> subscriberPtr_; member in OHOS::PowerMgr::final
/base/telephony/call_manager/services/call/src/
H A Dcall_control_manager.cpp1448 : subscriberPtr_(subscriberPtr) in SystemAbilityListener()
1458 if (subscriberPtr_ == nullptr) { in OnAddSystemAbility()
1463 bool subscribeResult = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr_); in OnAddSystemAbility()
1476 if (subscriberPtr_ == nullptr) { in OnRemoveSystemAbility()
1481 bool subscribeResult = EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriberPtr_); in OnRemoveSystemAbility()
1517 std::shared_ptr<CallBroadcastSubscriber> subscriberPtr_ = in BroadcastSubscriber() local
1519 if (subscriberPtr_ == nullptr) { in BroadcastSubscriber()
1520 TELEPHONY_LOGE("CallControlManager::BroadcastSubscriber subscriberPtr_ is nullptr"); in BroadcastSubscriber()
1554 new (std::nothrow) SystemAbilityListener(subscriberPtr_); in BroadcastSubscriber()
/base/powermgr/thermal_manager/services/native/include/
H A Dthermal_service.h218 std::shared_ptr<EventFwk::CommonEventSubscriber> subscriberPtr_; member in OHOS::PowerMgr::final
/base/telephony/call_manager/services/call/include/
H A Dcall_control_manager.h149 std::shared_ptr<CallBroadcastSubscriber> subscriberPtr_; member in OHOS::Telephony::CallControlManager::SystemAbilityListener
/base/powermgr/power_manager/services/native/src/
H A Dpower_mgr_service.cpp623 if (!OHOS::EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriberPtr_)) { in OnStop()
1869 if (!subscriberPtr_) { in SubscribeCommonEvent()
1870 subscriberPtr_ = std::make_shared<PowerCommonEventSubscriber>(subscribeInfo); in SubscribeCommonEvent()
1872 bool result = CommonEventManager::SubscribeCommonEvent(subscriberPtr_); in SubscribeCommonEvent()
/base/powermgr/power_manager/services/native/include/
H A Dpower_mgr_service.h358 std::shared_ptr<EventFwk::CommonEventSubscriber> subscriberPtr_ {nullptr};

Completed in 10 milliseconds