Home
last modified time | relevance | path

Searched refs:WakeupSource (Results 1 – 7 of 7) sorted by relevance

/base/powermgr/power_manager/services/native/src/wakeup/
Dwakeup_sources.h29 class WakeupSource {
34WakeupSource(WakeupDeviceType reason, bool enable, uint32_t click) : reason_(reason), enable_(enab… in WakeupSource() function
37 ~WakeupSource() = default;
77 void PutSource(WakeupSource& source);
78 std::vector<WakeupSource> GetSourceList();
81 std::vector<WakeupSource> sourceList_;
Dwakeup_controller.h61 std::vector<WakeupSource> sourceList_;
80 static std::shared_ptr<WakeupMonitor> CreateMonitor(WakeupSource& source);
107 explicit WakeupMonitor(WakeupSource& source) in WakeupMonitor()
118 explicit PowerkeyWakeupMonitor(WakeupSource& source) : WakeupMonitor(source) {} in PowerkeyWakeupMonitor()
129 explicit KeyboardWakeupMonitor(WakeupSource& source) : WakeupMonitor(source) {} in KeyboardWakeupMonitor()
137 explicit MousekeyWakeupMonitor(WakeupSource& source) : WakeupMonitor(source) {} in MousekeyWakeupMonitor()
145 explicit TouchpadWakeupMonitor(WakeupSource& source) : WakeupMonitor(source) {} in TouchpadWakeupMonitor()
153 explicit PenWakeupMonitor(WakeupSource& source) : WakeupMonitor(source) {} in PenWakeupMonitor()
161 explicit SingleClickWakeupMonitor(WakeupSource& source) : WakeupMonitor(source) {} in SingleClickWakeupMonitor()
169 explicit DoubleClickWakeupMonitor(WakeupSource& source) : WakeupMonitor(source) {} in DoubleClickWakeupMonitor()
[all …]
Dwakeup_source_parser.cpp125 Json::Value enableValue = valueObj[WakeupSource::ENABLE_KEY]; in ParseSourcesProc()
126 Json::Value clickValue = valueObj[WakeupSource::KEYS_KEY]; in ParseSourcesProc()
145 WakeupSource wakeupSource = WakeupSource(wakeupDeviceType, enable, click); in ParseSourcesProc()
Dwakeup_sources.cpp78 void WakeupSources::PutSource(WakeupSource& source) in PutSource()
84 std::vector<WakeupSource> WakeupSources::GetSourceList() in GetSourceList()
Dwakeup_controller.cpp124 std::vector<WakeupSource> updateSourceList = sources->GetSourceList(); in RegisterSettingsObserver()
339 std::shared_ptr<WakeupMonitor> WakeupMonitor::CreateMonitor(WakeupSource& source) in CreateMonitor()
/base/powermgr/power_manager/test/unittest/src/
Dpower_wakeup_parse_test.cpp61 vector<WakeupSource>::iterator itb = pmsTest_->wakeupController_->sourceList_.begin(); in TestPowerWakeup()
62 vector<WakeupSource>::iterator ite = pmsTest_->wakeupController_->sourceList_.end(); in TestPowerWakeup()
63 vector<WakeupSource>::iterator it = itb; in TestPowerWakeup()
Dpower_wakeup_test.cpp193 WakeupSource source1(WakeupDeviceType::WAKEUP_DEVICE_SINGLE_CLICK, 1, 0);
197 WakeupSource source2(WakeupDeviceType::WAKEUP_DEVICE_MAX, 1, 0);