/ohos5.0/base/powermgr/power_manager/services/native/src/ |
H A D | power_state_machine.cpp | 93 PowerStateMachine::~PowerStateMachine() in ~PowerStateMachine() 98 bool PowerStateMachine::Init() in Init() 113 void PowerStateMachine::InitTransitMap() in InitTransitMap() 218 void PowerStateMachine::InitState() in InitState() 232 void PowerStateMachine::EmplaceAwake() in EmplaceAwake() 304 void PowerStateMachine::EmplaceDoze() in EmplaceDoze() 315 void PowerStateMachine::EmplaceSleep() in EmplaceSleep() 344 void PowerStateMachine::EmplaceDim() in EmplaceDim() 393 void PowerStateMachine::onSuspend() in onSuspend() 398 void PowerStateMachine::onWakeup() in onWakeup() [all …]
|
H A D | power_mgr_service.cpp | 297 powerStateMachine_ = std::make_shared<PowerStateMachine>(pms); in PowerStateMachineInit() 586 powerStateMachine_->CancelDelayTimer(PowerStateMachine::CHECK_USER_ACTIVITY_TIMEOUT_MSG); in OnStop() 587 powerStateMachine_->CancelDelayTimer(PowerStateMachine::CHECK_USER_ACTIVITY_OFF_TIMEOUT_MSG); in OnStop() 811 powerStateMachine_->CancelDelayTimer(PowerStateMachine::CHECK_USER_ACTIVITY_TIMEOUT_MSG); in RebootDeviceForDeprecated() 812 powerStateMachine_->CancelDelayTimer(PowerStateMachine::CHECK_USER_ACTIVITY_OFF_TIMEOUT_MSG); in RebootDeviceForDeprecated() 840 powerStateMachine_->CancelDelayTimer(PowerStateMachine::CHECK_USER_ACTIVITY_TIMEOUT_MSG); in ShutDownDevice() 841 powerStateMachine_->CancelDelayTimer(PowerStateMachine::CHECK_USER_ACTIVITY_OFF_TIMEOUT_MSG); in ShutDownDevice()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/ |
H A D | power_state_machine.cpp | 23 void PowerStateMachine::Init(PowerDevice &pd) in Init() 66 case PowerStateMachine::MSG_PM_SET_SNIFF: { in Dispatch() 100 case PowerStateMachine::MSG_PM_SET_ACTIVE: { in Dispatch() 104 case PowerStateMachine::MSG_PM_SET_SNIFF: { in Dispatch() 146 case PowerStateMachine::MSG_PM_SET_ACTIVE: { in Dispatch() 151 case PowerStateMachine::MSG_PM_SET_SNIFF: { in Dispatch() 204 case PowerStateMachine::MSG_PM_SET_SNIFF: { in Dispatch() 219 case PowerStateMachine::MSG_PM_SET_ACTIVE: { in Dispatch() 253 case PowerStateMachine::MSG_PM_SET_ACTIVE: { in Dispatch() 257 case PowerStateMachine::MSG_PM_SET_SNIFF: { in Dispatch() [all …]
|
H A D | power_state_machine.h | 36 class PowerStateMachine : public utility::StateMachine { 50 PowerStateMachine(){}; in PowerStateMachine() function 57 ~PowerStateMachine() = default; 76 …PowerState(const std::string &name, PowerStateMachine &psm, PowerDevice &pd) : State(name, psm), p… in PowerState() 84 …PowerState(const std::string &name, PowerStateMachine &psm, PowerDevice &pd, utility::StateMachine… in PowerState() 107 PowerActiveState(PowerStateMachine &psm, PowerDevice &pd) : PowerState(ACTIVE_STATE, psm, pd){}; in PowerActiveState() 149 …PowerActiveActivingState(PowerStateMachine &psm, PowerDevice &pd, utility::StateMachine::State &fs… in PowerActiveActivingState() 173 …PowerActiveSniffingState(PowerStateMachine &psm, PowerDevice &pd, utility::StateMachine::State &fs… in PowerActiveSniffingState() 196 PowerSniffState(PowerStateMachine &psm, PowerDevice &pd) : PowerState(SNIFF_STATE, psm, pd){}; in PowerSniffState() 219 …PowerSniffActivingState(PowerStateMachine &psm, PowerDevice &pd, utility::StateMachine::State &fst… in PowerSniffActivingState() [all …]
|
H A D | power_device.cpp | 35 std::unique_ptr<PowerStateMachine> psm_ = nullptr; 51 pimpl->psm_ = std::make_unique<PowerStateMachine>(); in PowerDevice() 96 utility::Message msg(PowerStateMachine::MSG_PM_SET_ACTIVE); in SetActiveMode() 146 utility::Message msg(PowerStateMachine::MSG_PM_MODE_CHANGE_ACTIVE); in ModeChangeCallBack() 156 utility::Message msg(PowerStateMachine::MSG_PM_MODE_CHANGE_SNIFF); in ModeChangeCallBack() 169 utility::Message msg(PowerStateMachine::MSG_PM_SET_SUBRATING_COMPLETE); in SniffSubratingCompleteCallback() 282 utility::Message msg(PowerStateMachine::MSG_PM_SET_SNIFF); in DelayTimeoutCallback()
|
/ohos5.0/base/powermgr/power_manager/test/unittest/src/ |
H A D | native_power_state_machine_test.cpp | 69 auto stateMachine = std::make_shared<PowerStateMachine>(pmsTest); 105 auto stateMachine = std::make_shared<PowerStateMachine>(pmsTest); 150 auto stateMachine = std::make_shared<PowerStateMachine>(pmsTest); 152 int32_t powermsEvent = PowerStateMachine::CHECK_USER_ACTIVITY_OFF_TIMEOUT_MSG; 194 auto stateMachine = std::make_shared<PowerStateMachine>(pmsTest); 250 auto stateMachine = std::make_shared<PowerStateMachine>(pmsTest); 253 auto stateMachineController = std::make_shared<PowerStateMachine::StateController>( 270 auto stateMachineController2 = std::make_shared<PowerStateMachine::StateController>( 287 auto stateMachine = std::make_shared<PowerStateMachine>(nullptr); 291 auto stateMachineController = std::make_shared<PowerStateMachine::StateController>( [all …]
|
H A D | power_getcontroller_mock_test.cpp | 55 std::shared_ptr<PowerStateMachine> stateMachine = g_service->GetPowerStateMachine();
|
H A D | power_mgr_service_native_test.cpp | 53 auto stateMachine = std::make_shared<PowerStateMachine>(g_pmsTest); in SetUp() 294 auto stateMachine = std::make_shared<PowerStateMachine>(g_pmsTest);
|
H A D | power_state_level_framework_test.cpp | 34 std::shared_ptr<PowerStateMachine> g_stateMachineTest;
|
/ohos5.0/base/powermgr/power_manager/services/native/include/ |
H A D | power_state_machine.h | 71 class PowerStateMachine : public std::enable_shared_from_this<PowerStateMachine> { 73 explicit PowerStateMachine(const wptr<PowerMgrService>& pms); 74 ~PowerStateMachine(); 206 …SettingStateFlag(PowerState state, std::shared_ptr<PowerStateMachine> owner, StateChangeReason rea… in SettingStateFlag() 209 std::shared_ptr<PowerStateMachine> stateMachine = owner_.lock(); in SettingStateFlag() 224 std::shared_ptr<PowerStateMachine> stateMachine = owner_.lock(); in ~SettingStateFlag() 233 std::weak_ptr<PowerStateMachine> owner_; 237 StateController(PowerState state, std::shared_ptr<PowerStateMachine> owner, in StateController() 264 std::weak_ptr<PowerStateMachine> owner_;
|
H A D | power_mgr_service.h | 184 std::shared_ptr<PowerStateMachine> GetPowerStateMachine() const in GetPowerStateMachine() 260 PowerStateMachine::onWakeup(); in MockSystemWakeup() 347 std::shared_ptr<PowerStateMachine> powerStateMachine_;
|
/ohos5.0/base/powermgr/power_manager/services/native/src/wakeup_action/ |
H A D | wakeup_action_controller.h | 35 …std::shared_ptr<ShutdownController>& shutdownController, std::shared_ptr<PowerStateMachine>& state… 48 std::shared_ptr<PowerStateMachine> stateMachine_;
|
H A D | wakeup_action_controller.cpp | 28 …std::shared_ptr<ShutdownController>& shutdownController, std::shared_ptr<PowerStateMachine>& state… in WakeupActionController()
|
/ohos5.0/base/powermgr/power_manager/services/native/src/screenoffpre/ |
H A D | screen_off_pre_controller.h | 31 explicit ScreenOffPreController(std::shared_ptr<PowerStateMachine>& stateMachine); 58 std::shared_ptr<PowerStateMachine> powerStateMachine_;
|
H A D | screen_off_pre_controller.cpp | 31 ScreenOffPreController::ScreenOffPreController(std::shared_ptr<PowerStateMachine>& stateMachine) in ScreenOffPreController()
|
/ohos5.0/base/powermgr/power_manager/services/native/src/suspend/ |
H A D | suspend_controller.h | 45 …std::shared_ptr<ShutdownController>& shutdownController, std::shared_ptr<PowerStateMachine>& state… 65 std::shared_ptr<PowerStateMachine> GetStateMachine() const in GetStateMachine() 105 std::shared_ptr<PowerStateMachine> stateMachine_;
|
H A D | suspend_controller.cpp | 48 …std::shared_ptr<ShutdownController>& shutdownController, std::shared_ptr<PowerStateMachine>& state… in SuspendController()
|
/ohos5.0/base/powermgr/power_manager/services/native/src/wakeup/ |
H A D | wakeup_controller.h | 43 explicit WakeupController(std::shared_ptr<PowerStateMachine>& stateMachine); 62 std::shared_ptr<PowerStateMachine> GetStateMachine() in GetStateMachine() 91 std::shared_ptr<PowerStateMachine> stateMachine_;
|
H A D | wakeup_controller.cpp | 51 WakeupController::WakeupController(std::shared_ptr<PowerStateMachine>& stateMachine) in WakeupController()
|
/ohos5.0/base/powermgr/power_manager/test/unittest/src/interface_test/ |
H A D | power_mgr_service_test.cpp | 464 …usleep((screenOffTime - screenOffTime / PowerStateMachine::OFF_TIMEOUT_FACTOR + STATE_WAIT_TIME_MS… 469 …usleep((screenOffTime - screenOffTime / PowerStateMachine::OFF_TIMEOUT_FACTOR + STATE_WAIT_TIME_MS… 472 usleep((screenOffTime / PowerStateMachine::OFF_TIMEOUT_FACTOR + STATE_OFF_WAIT_TIME_MS) *
|
/ohos5.0/base/powermgr/power_manager/services/native/src/runninglock/ |
H A D | running_lock_mgr.h | 37 class PowerStateMachine; variable
|
H A D | running_lock_mgr.cpp | 951 stateMachine->SetDelayTimer(delayTime, PowerStateMachine::CHECK_PROXIMITY_SCREEN_OFF_MSG); in OnClose()
|
/ohos5.0/base/powermgr/power_manager/test/systemtest/src/ |
H A D | power_mgr_st_mock_test.cpp | 580 std::shared_ptr<PowerStateMachine> stateMachine = pms->GetPowerStateMachine();
|