Home
last modified time | relevance | path

Searched refs:monitorMap_ (Results 1 – 6 of 6) sorted by relevance

/base/powermgr/power_manager/services/native/src/suspend/
Dsuspend_controller.cpp93 monitorMap_.emplace(monitor->GetReason(), monitor); in Init()
109 if (monitorMap_.find(reason) != monitorMap_.end()) { in ExecSuspendMonitorByReason()
110 auto monitor = monitorMap_[reason]; in ExecSuspendMonitorByReason()
144 monitorMap_.emplace(monitor->GetReason(), monitor); in RegisterSettingsObserver()
161 for (auto monitor = monitorMap_.begin(); monitor != monitorMap_.end(); monitor++) { in Cancel()
164 monitorMap_.clear(); in Cancel()
181 … auto timeoutSuspendMonitor = monitorMap_.find(SuspendDeviceType::SUSPEND_DEVICE_REASON_TIMEOUT); in HandleEvent()
182 if (timeoutSuspendMonitor == monitorMap_.end()) { in HandleEvent()
Dsuspend_controller.h74 std::map<SuspendDeviceType, std::shared_ptr<SuspendMonitor>> monitorMap_; variable
/base/powermgr/power_manager/services/native/src/wakeup/
Dwakeup_controller.cpp89 monitorMap_.emplace(monitor->GetReason(), monitor); in Init()
107 for (auto monitor = monitorMap_.begin(); monitor != monitorMap_.end(); monitor++) { in Cancel()
110 monitorMap_.clear(); in Cancel()
135 monitorMap_.emplace(monitor->GetReason(), monitor); in RegisterSettingsObserver()
146 if (monitorMap_.find(reason) != monitorMap_.end()) { in ExecWakeupMonitorByReason()
147 auto monitor = monitorMap_[reason]; in ExecWakeupMonitorByReason()
Dwakeup_controller.h62 std::map<WakeupDeviceType, std::shared_ptr<WakeupMonitor>> monitorMap_; variable
/base/powermgr/power_manager/test/unittest/src/
Dpower_wakeup_test.cpp87 …auto monitor = pmsTest_->wakeupController_->monitorMap_[WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUT…
220 EXPECT_TRUE(pmsTest_->wakeupController_->monitorMap_.size() == 0);
Dpower_suspend_test.cpp120 …auto monitor = pmsTest_->suspendController_->monitorMap_[SuspendDeviceType ::SUSPEND_DEVICE_REASON…