Searched refs:SuspendMonitor (Results 1 – 3 of 3) sorted by relevance
35 class SuspendMonitor; variable74 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() function133 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 …]
87 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()
188 std::shared_ptr<SuspendMonitor> monitor = SuspendMonitor::CreateMonitor(source);