Home
last modified time | relevance | path

Searched refs:WakeupDeviceType (Results 1 – 25 of 59) sorted by relevance

123

/base/powermgr/power_manager/services/native/src/wakeup/
Dwakeup_sources.cpp23 WakeupDeviceType WakeupSources::mapWakeupDeviceType(const std::string& key, uint32_t click) in mapWakeupDeviceType()
26 return WakeupDeviceType::WAKEUP_DEVICE_POWER_BUTTON; in mapWakeupDeviceType()
30 return WakeupDeviceType::WAKEUP_DEVICE_MOUSE; in mapWakeupDeviceType()
34 return WakeupDeviceType::WAKEUP_DEVICE_KEYBOARD; in mapWakeupDeviceType()
38 return WakeupDeviceType::WAKEUP_DEVICE_PEN; in mapWakeupDeviceType()
42 return WakeupDeviceType::WAKEUP_DEVICE_TOUCHPAD; in mapWakeupDeviceType()
46 return WakeupDeviceType::WAKEUP_DEVICE_LID; in mapWakeupDeviceType()
50 return WakeupDeviceType::WAKEUP_DEVICE_SWITCH; in mapWakeupDeviceType()
55 return WakeupDeviceType::WAKEUP_DEVICE_SINGLE_CLICK; in mapWakeupDeviceType()
57 return WakeupDeviceType::WAKEUP_DEVICE_DOUBLE_CLICK; in mapWakeupDeviceType()
[all …]
Dwakeup_controller.cpp51 eventHandleMap_.emplace(WakeupDeviceType::WAKEUP_DEVICE_KEYBOARD, 0); in WakeupController()
52 eventHandleMap_.emplace(WakeupDeviceType::WAKEUP_DEVICE_MOUSE, 0); in WakeupController()
53 eventHandleMap_.emplace(WakeupDeviceType::WAKEUP_DEVICE_TOUCHPAD, 0); in WakeupController()
54 eventHandleMap_.emplace(WakeupDeviceType::WAKEUP_DEVICE_PEN, 0); in WakeupController()
55 eventHandleMap_.emplace(WakeupDeviceType::WAKEUP_DEVICE_TOUCH_SCREEN, 0); in WakeupController()
56 eventHandleMap_.emplace(WakeupDeviceType::WAKEUP_DEVICE_SINGLE_CLICK, 0); in WakeupController()
143 void WakeupController::ExecWakeupMonitorByReason(WakeupDeviceType reason) in ExecWakeupMonitorByReason()
167 void WakeupController::ControlListener(WakeupDeviceType reason) in ControlListener()
192 …PowerState::AWAKE, stateMachine_->GetReasonByWakeType(static_cast<WakeupDeviceType>(reason)), true… in ControlListener()
241 WakeupDeviceType wakeupType = WakeupDeviceType::WAKEUP_DEVICE_UNKNOWN; in OnInputEvent()
[all …]
Dwakeup_controller.h34 using WakeupListener = std::function<void(WakeupDeviceType)>;
44 void ExecWakeupMonitorByReason(WakeupDeviceType reason);
51 WakeupDeviceType GetLastReason() const in GetLastReason()
55 bool CheckEventReciveTime(WakeupDeviceType wakeupType);
58 void ControlListener(WakeupDeviceType reason);
62 std::map<WakeupDeviceType, std::shared_ptr<WakeupMonitor>> monitorMap_;
63 std::map<WakeupDeviceType, int64_t> eventHandleMap_;
65 WakeupDeviceType wakeupReason_ {0};
91 WakeupDeviceType GetReason() const in GetReason()
112 WakeupDeviceType reason_;
Dwakeup_sources.h34 …WakeupSource(WakeupDeviceType reason, bool enable, uint32_t click) : reason_(reason), enable_(enab… in WakeupSource()
39 WakeupDeviceType GetReason() const in GetReason()
55 WakeupDeviceType reason_;
75 static WakeupDeviceType mapWakeupDeviceType(const std::string& key, uint32_t click);
Dwakeup_source_parser.cpp123 WakeupDeviceType wakeupDeviceType = WakeupDeviceType::WAKEUP_DEVICE_UNKNOWN; in ParseSourcesProc()
141 if (wakeupDeviceType == WakeupDeviceType::WAKEUP_DEVICE_UNKNOWN) { in ParseSourcesProc()
/base/powermgr/power_manager/test/unittest/src/
Dpower_wakeup_parse_test.cpp66 if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_POWER_BUTTON) { in TestPowerWakeup()
70 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_KEYBOARD) { in TestPowerWakeup()
74 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_TOUCH_SCREEN) { in TestPowerWakeup()
81 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_TOUCHPAD) { in TestPowerWakeup()
85 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_PEN) { in TestPowerWakeup()
89 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_LID) { in TestPowerWakeup()
93 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_SWITCH) { in TestPowerWakeup()
97 } else if (it->GetReason() == WakeupDeviceType::WAKEUP_DEVICE_MOUSE) { in TestPowerWakeup()
Dnative_power_state_machine_test.cpp181 WakeupDeviceType type = WakeupDeviceType::WAKEUP_DEVICE_APPLICATION;
183 type = WakeupDeviceType::WAKEUP_DEVICE_POWER_BUTTON;
185 type = WakeupDeviceType::WAKEUP_DEVICE_WAKE_KEY;
187 type = WakeupDeviceType::WAKEUP_DEVICE_HDMI;
189 type = WakeupDeviceType::WAKEUP_DEVICE_GESTURE;
191 type = WakeupDeviceType::WAKEUP_DEVICE_CAMERA_LAUNCH;
193 type = WakeupDeviceType::WAKEUP_DEVICE_WAKE_MOTION;
195 type = WakeupDeviceType::WAKEUP_DEVICE_LID;
197 type = WakeupDeviceType::WAKEUP_DEVICE_DOUBLE_CLICK;
199 type = WakeupDeviceType::WAKEUP_DEVICE_KEYBOARD;
[all …]
Dpower_wakeup_test.cpp86 …pmsTest_->wakeupController_->ExecWakeupMonitorByReason(WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUTT…
87 …auto monitor = pmsTest_->wakeupController_->monitorMap_[WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUT…
133 pmsTest_->wakeupController_->ControlListener(WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUTTON);
137 pmsTest_->wakeupController_->ControlListener(WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUTTON);
142 pmsTest_->wakeupController_->ControlListener(WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUTTON);
148 pmsTest_->wakeupController_->ControlListener(WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUTTON);
155 pmsTest_->wakeupController_->ControlListener(WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUTTON);
193 WakeupSource source1(WakeupDeviceType::WAKEUP_DEVICE_SINGLE_CLICK, 1, 0);
197 WakeupSource source2(WakeupDeviceType::WAKEUP_DEVICE_MAX, 1, 0);
199 …EXPECT_TRUE(static_cast<uint32_t>(source2.reason_) == static_cast<uint32_t>(WakeupDeviceType::WAKE…
Dpower_mgr_client_test.cpp257 int32_t wakeupReason = (static_cast<int32_t>(WakeupDeviceType::WAKEUP_DEVICE_MAX)) + 1;
258 WakeupDeviceType abnormaltype = WakeupDeviceType(wakeupReason);
708 powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_UNKNOWN);
730 powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_POWER_BUTTON);
752 powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_APPLICATION);
774 powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_PLUGGED_IN);
796 powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_GESTURE);
818 powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_CAMERA_LAUNCH);
840 powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_WAKE_KEY);
862 powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_WAKE_MOTION);
[all …]
/base/powermgr/powermgr_lite/interfaces/innerkits/
Dpower_manage.h50 } WakeupDeviceType; typedef
66 void WakeupDevice(WakeupDeviceType reason, const char* details);
/base/powermgr/power_manager/test/unittest/src/servicetest/
Dpowermgr_service_native_test.cpp227 int32_t wakeupReason = (static_cast<int32_t>(WakeupDeviceType::WAKEUP_DEVICE_MAX)) + 1;
228 WakeupDeviceType abnormaltype = WakeupDeviceType(wakeupReason);
561 g_powerMgrServiceProxy->WakeupDevice(GetTickCount(), WakeupDeviceType::WAKEUP_DEVICE_UNKNOWN);
579 …g_powerMgrServiceProxy->WakeupDevice(GetTickCount(), WakeupDeviceType::WAKEUP_DEVICE_POWER_BUTTON);
597 … g_powerMgrServiceProxy->WakeupDevice(GetTickCount(), WakeupDeviceType::WAKEUP_DEVICE_PLUGGED_IN);
615 g_powerMgrServiceProxy->WakeupDevice(GetTickCount(), WakeupDeviceType::WAKEUP_DEVICE_GESTURE);
633 …g_powerMgrServiceProxy->WakeupDevice(GetTickCount(), WakeupDeviceType::WAKEUP_DEVICE_CAMERA_LAUNCH…
651 g_powerMgrServiceProxy->WakeupDevice(GetTickCount(), WakeupDeviceType::WAKEUP_DEVICE_WAKE_KEY);
669 … g_powerMgrServiceProxy->WakeupDevice(GetTickCount(), WakeupDeviceType::WAKEUP_DEVICE_WAKE_MOTION);
687 g_powerMgrServiceProxy->WakeupDevice(GetTickCount(), WakeupDeviceType::WAKEUP_DEVICE_HDMI);
[all …]
/base/powermgr/power_manager/test/unittest/include/servicetest/
Dpowermgr_service_test_proxy.h54 …PowerErrors WakeupDevice(int64_t callTimeMs, WakeupDeviceType reason = WakeupDeviceType::WAKEUP_DE…
/base/powermgr/power_manager/interfaces/inner_api/native/include/
Dpower_mgr_client.h62 PowerErrors WakeupDevice(WakeupDeviceType reason = WakeupDeviceType::WAKEUP_DEVICE_APPLICATION,
/base/powermgr/powermgr_lite/frameworks/include/
Dpower_manage_intf_define.h35 void (*WakeupDeviceFunc)(IUnknown *iUnknown, WakeupDeviceType reason, const char* details)
/base/powermgr/power_manager/services/native/src/
Dpower_state_machine.cpp249 …pid_t pid, int64_t callTimeMs, WakeupDeviceType type, const std::string& details, const std::strin… in WakeupDeviceInner()
252 if (type > WakeupDeviceType::WAKEUP_DEVICE_MAX) { in WakeupDeviceInner()
877 StateChangeReason PowerStateMachine::GetReasonByWakeType(WakeupDeviceType type) in GetReasonByWakeType()
882 case WakeupDeviceType::WAKEUP_DEVICE_POWER_BUTTON: in GetReasonByWakeType()
885 case WakeupDeviceType::WAKEUP_DEVICE_WAKE_KEY: in GetReasonByWakeType()
888 case WakeupDeviceType::WAKEUP_DEVICE_APPLICATION: in GetReasonByWakeType()
891 case WakeupDeviceType::WAKEUP_DEVICE_PLUGGED_IN: // fall through in GetReasonByWakeType()
892 case WakeupDeviceType::WAKEUP_DEVICE_HDMI: in GetReasonByWakeType()
895 case WakeupDeviceType::WAKEUP_DEVICE_GESTURE: in GetReasonByWakeType()
898 case WakeupDeviceType::WAKEUP_DEVICE_CAMERA_LAUNCH: in GetReasonByWakeType()
[all …]
/base/powermgr/power_manager/test/systemtest/src/
Dpower_mgr_shutdown_fast_test.cpp62 …powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_APPLICATION, std::string("test call Se… in SetUp()
68 …powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_APPLICATION, std::string("test call Te… in TearDown()
/base/telephony/call_manager/services/call/call_state_observer/include/
Dproximity_sensor.h29 void StartUp(PowerMgr::WakeupDeviceType operationType, std::string wakeupReason);
/base/powermgr/power_manager/test/mock/action/
Dmock_state_action.h30 MOCK_METHOD4(Wakeup, void(int64_t callTimeMs, WakeupDeviceType type,
/base/telephony/call_manager/services/call/call_state_observer/src/
Dproximity_sensor.cpp30 void ProximitySensor::StartUp(PowerMgr::WakeupDeviceType operationType, std::string wakeupReason) in StartUp()
/base/powermgr/power_manager/services/native/src/actions/default/display/
Ddefault_device_state_action.cpp33 int64_t callTimeMs, WakeupDeviceType type, const string& details, const string& pkgName) in Wakeup()
Ddefault_device_state_action.h29 void Wakeup(int64_t callTimeMs, WakeupDeviceType type, const std::string& details,
/base/powermgr/power_manager/test/systemtest/mock/
Dmock_state_action.h30 MOCK_METHOD4(Wakeup, void(int64_t callTimeMs, WakeupDeviceType type,
/base/powermgr/power_manager/services/native/include/actions/
Didevice_state_action.h42 virtual void Wakeup(int64_t callTimeMs, WakeupDeviceType type, const std::string& details,
/base/powermgr/powermgr_lite/services/src/power/small/
Dpower_manage_feature_impl.c111 WakeupDeviceType reason = (WakeupDeviceType)ret; in WakeupInvoke()
/base/powermgr/powermgr_lite/services/include/
Dpower_manage_feature.h38 void OnWakeupDevice(IUnknown *iUnknown, WakeupDeviceType reason, const char* details);

123