Searched refs:SuspendSource (Results 1 – 7 of 7) sorted by relevance
37 class SuspendSource {42 SuspendSource(SuspendDeviceType reason, uint32_t action, uint32_t delay) in SuspendSource() function48 ~SuspendSource() = default;78 void PutSource(SuspendSource& source);79 std::vector<SuspendSource> GetSourceList();82 std::vector<SuspendSource> sourceList_;
102 std::vector<SuspendSource> sourceList_;122 const static std::shared_ptr<SuspendMonitor> CreateMonitor(SuspendSource& source);156 explicit SuspendMonitor(const SuspendSource& source) in SuspendMonitor()171 explicit PowerKeySuspendMonitor(SuspendSource& source) : SuspendMonitor(source) {} in PowerKeySuspendMonitor()186 explicit TimeoutSuspendMonitor(SuspendSource& source) : SuspendMonitor(source) {} in TimeoutSuspendMonitor()195 explicit LidSuspendMonitor(SuspendSource& source) : SuspendMonitor(source) {} in LidSuspendMonitor()203 explicit SwitchSuspendMonitor(SuspendSource& source) : SuspendMonitor(source) {} in SwitchSuspendMonitor()
177 Json::Value actionValue = valueObj[SuspendSource::ACTION_KEY]; in ParseSourcesProc()178 Json::Value delayValue = valueObj[SuspendSource::DELAY_KEY]; in ParseSourcesProc()191 SuspendSource suspendSource = SuspendSource(suspendDeviceType, action, delayMs); in ParseSourcesProc()
55 void SuspendSources::PutSource(SuspendSource& source) in PutSource()61 std::vector<SuspendSource> SuspendSources::GetSourceList() in GetSourceList()
218 std::vector<SuspendSource> updateSourceList = sources->GetSourceList(); in UpdateSuspendSources()614 const std::shared_ptr<SuspendMonitor> SuspendMonitor::CreateMonitor(SuspendSource& source) in RegisterSettingsObserver()
60 vector<SuspendSource>::iterator itb = pmsTest_->suspendController_->sourceList_.begin(); in TestPowerSuspend()61 vector<SuspendSource>::iterator ite = pmsTest_->suspendController_->sourceList_.end(); in TestPowerSuspend()62 vector<SuspendSource>::iterator it = itb; in TestPowerSuspend()
153 SuspendSource source(SuspendDeviceType::SUSPEND_DEVICE_REASON_STR, 1, 0);