/base/powermgr/power_manager/services/native/src/wakeup/ |
D | wakeup_sources.cpp | 23 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 …]
|
D | wakeup_controller.cpp | 51 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 …]
|
D | wakeup_controller.h | 34 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_;
|
D | wakeup_sources.h | 34 …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);
|
D | wakeup_source_parser.cpp | 123 WakeupDeviceType wakeupDeviceType = WakeupDeviceType::WAKEUP_DEVICE_UNKNOWN; in ParseSourcesProc() 141 if (wakeupDeviceType == WakeupDeviceType::WAKEUP_DEVICE_UNKNOWN) { in ParseSourcesProc()
|
/base/powermgr/power_manager/test/unittest/src/ |
D | power_wakeup_parse_test.cpp | 66 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()
|
D | native_power_state_machine_test.cpp | 181 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 …]
|
D | power_wakeup_test.cpp | 86 …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…
|
D | power_mgr_client_test.cpp | 257 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/ |
D | power_manage.h | 50 } WakeupDeviceType; typedef 66 void WakeupDevice(WakeupDeviceType reason, const char* details);
|
/base/powermgr/power_manager/test/unittest/src/servicetest/ |
D | powermgr_service_native_test.cpp | 227 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/ |
D | powermgr_service_test_proxy.h | 54 …PowerErrors WakeupDevice(int64_t callTimeMs, WakeupDeviceType reason = WakeupDeviceType::WAKEUP_DE…
|
/base/powermgr/power_manager/interfaces/inner_api/native/include/ |
D | power_mgr_client.h | 62 PowerErrors WakeupDevice(WakeupDeviceType reason = WakeupDeviceType::WAKEUP_DEVICE_APPLICATION,
|
/base/powermgr/powermgr_lite/frameworks/include/ |
D | power_manage_intf_define.h | 35 void (*WakeupDeviceFunc)(IUnknown *iUnknown, WakeupDeviceType reason, const char* details)
|
/base/powermgr/power_manager/services/native/src/ |
D | power_state_machine.cpp | 249 …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/ |
D | power_mgr_shutdown_fast_test.cpp | 62 …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/ |
D | proximity_sensor.h | 29 void StartUp(PowerMgr::WakeupDeviceType operationType, std::string wakeupReason);
|
/base/powermgr/power_manager/test/mock/action/ |
D | mock_state_action.h | 30 MOCK_METHOD4(Wakeup, void(int64_t callTimeMs, WakeupDeviceType type,
|
/base/telephony/call_manager/services/call/call_state_observer/src/ |
D | proximity_sensor.cpp | 30 void ProximitySensor::StartUp(PowerMgr::WakeupDeviceType operationType, std::string wakeupReason) in StartUp()
|
/base/powermgr/power_manager/services/native/src/actions/default/display/ |
D | default_device_state_action.cpp | 33 int64_t callTimeMs, WakeupDeviceType type, const string& details, const string& pkgName) in Wakeup()
|
D | default_device_state_action.h | 29 void Wakeup(int64_t callTimeMs, WakeupDeviceType type, const std::string& details,
|
/base/powermgr/power_manager/test/systemtest/mock/ |
D | mock_state_action.h | 30 MOCK_METHOD4(Wakeup, void(int64_t callTimeMs, WakeupDeviceType type,
|
/base/powermgr/power_manager/services/native/include/actions/ |
D | idevice_state_action.h | 42 virtual void Wakeup(int64_t callTimeMs, WakeupDeviceType type, const std::string& details,
|
/base/powermgr/powermgr_lite/services/src/power/small/ |
D | power_manage_feature_impl.c | 111 WakeupDeviceType reason = (WakeupDeviceType)ret; in WakeupInvoke()
|
/base/powermgr/powermgr_lite/services/include/ |
D | power_manage_feature.h | 38 void OnWakeupDevice(IUnknown *iUnknown, WakeupDeviceType reason, const char* details);
|