Searched refs:listenerPtr_ (Results 1 – 14 of 14) sorted by relevance
33 if (service->listenerPtr_ != nullptr) { in StatsWriteHiSysEvent()34 service->listenerPtr_->OnEvent(sysEvent); in StatsWriteHiSysEvent()
84 HiviewDFX::HiSysEventManager::RemoveListener(listenerPtr_); in OnStop()158 if (!listenerPtr_) { in AddHiSysEventListener()160 listenerPtr_ = std::make_shared<BatteryStatsListener>(); in AddHiSysEventListener()167 auto res = HiviewDFX::HiSysEventManager::AddListener(listenerPtr_, sysRules); in AddHiSysEventListener()
44 if (g_statsService->listenerPtr_ == nullptr) { in SetUpTestCase()45 g_statsService->listenerPtr_ = std::make_shared<BatteryStatsListener>(); in SetUpTestCase()55 g_statsService->listenerPtr_ = nullptr; in TearDownTestCase()
52 if (g_statsService->listenerPtr_ == nullptr) { in SetUpTestCase()53 g_statsService->listenerPtr_ = std::make_shared<BatteryStatsListener>(); in SetUpTestCase()69 g_statsService->listenerPtr_ = nullptr; in TearDownTestCase()
49 if (g_statsService->listenerPtr_ == nullptr) { in SetUpTestCase()50 g_statsService->listenerPtr_ = std::make_shared<BatteryStatsListener>(); in SetUpTestCase()61 g_statsService->listenerPtr_ = nullptr; in TearDownTestCase()
47 if (g_statsService->listenerPtr_ == nullptr) { in SetUpTestCase()48 g_statsService->listenerPtr_ = std::make_shared<BatteryStatsListener>(); in SetUpTestCase()58 g_statsService->listenerPtr_ = nullptr; in TearDownTestCase()
68 if (g_statsService->listenerPtr_ == nullptr) { in SetUpTestCase()69 g_statsService->listenerPtr_ = std::make_shared<BatteryStatsListener>(); in SetUpTestCase()82 g_statsService->listenerPtr_ = nullptr; in TearDownTestCase()
45 if (g_statsService->listenerPtr_ == nullptr) { in SetUpTestCase()46 g_statsService->listenerPtr_ = std::make_shared<BatteryStatsListener>(); in SetUpTestCase()56 g_statsService->listenerPtr_ = nullptr; in TearDownTestCase()
46 if (g_statsService->listenerPtr_ == nullptr) { in SetUpTestCase()47 g_statsService->listenerPtr_ = std::make_shared<BatteryStatsListener>(); in SetUpTestCase()57 g_statsService->listenerPtr_ = nullptr; in TearDownTestCase()
86 if (g_statsService->listenerPtr_ == nullptr) { in SetUpTestCase()87 g_statsService->listenerPtr_ = std::make_shared<BatteryStatsListener>(); in SetUpTestCase()97 g_statsService->listenerPtr_ = nullptr; in TearDownTestCase()
70 std::shared_ptr<HiviewDFX::HiSysEventListener> listenerPtr_; variable