Home
last modified time | relevance | path

Searched refs:SuspendMonitor (Results 1 – 3 of 3) sorted by relevance

/base/powermgr/power_manager/services/native/src/suspend/
Dsuspend_controller.h35 class SuspendMonitor; variable
74 std::map<SuspendDeviceType, std::shared_ptr<SuspendMonitor>> monitorMap_;
84 class SuspendMonitor {
86 const static std::shared_ptr<SuspendMonitor> CreateMonitor(SuspendSource& source);
88 virtual ~SuspendMonitor() = default;
120 explicit SuspendMonitor(const SuspendSource& source) in SuspendMonitor() function
133 class PowerKeySuspendMonitor : public SuspendMonitor {
135 explicit PowerKeySuspendMonitor(SuspendSource& source) : SuspendMonitor(source) {} in PowerKeySuspendMonitor()
146 class TimeoutSuspendMonitor : public SuspendMonitor {
148 explicit TimeoutSuspendMonitor(SuspendSource& source) : SuspendMonitor(source) {} in TimeoutSuspendMonitor()
[all …]
Dsuspend_controller.cpp87 std::shared_ptr<SuspendMonitor> monitor = SuspendMonitor::CreateMonitor(*source); in Init()
139 std::shared_ptr<SuspendMonitor> monitor = SuspendMonitor::CreateMonitor(*source); in RegisterSettingsObserver()
357 const std::shared_ptr<SuspendMonitor> SuspendMonitor::CreateMonitor(SuspendSource& source) in CreateMonitor()
361 std::shared_ptr<SuspendMonitor> monitor = nullptr; in CreateMonitor()
364 …monitor = std::static_pointer_cast<SuspendMonitor>(std::make_shared<PowerKeySuspendMonitor>(source… in CreateMonitor()
367 …monitor = std::static_pointer_cast<SuspendMonitor>(std::make_shared<TimeoutSuspendMonitor>(source)… in CreateMonitor()
370 … monitor = std::static_pointer_cast<SuspendMonitor>(std::make_shared<LidSuspendMonitor>(source)); in CreateMonitor()
373 …monitor = std::static_pointer_cast<SuspendMonitor>(std::make_shared<SwitchSuspendMonitor>(source)); in CreateMonitor()
/base/powermgr/power_manager/test/unittest/src/
Dpower_suspend_test.cpp188 std::shared_ptr<SuspendMonitor> monitor = SuspendMonitor::CreateMonitor(source);