Home
last modified time | relevance | path

Searched refs:PowerStateMachine (Results 1 – 23 of 23) sorted by relevance

/ohos5.0/base/powermgr/power_manager/services/native/src/
H A Dpower_state_machine.cpp93 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 Dpower_mgr_service.cpp297 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 Dpower_state_machine.cpp23 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 Dpower_state_machine.h36 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 Dpower_device.cpp35 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 Dnative_power_state_machine_test.cpp69 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 Dpower_getcontroller_mock_test.cpp55 std::shared_ptr<PowerStateMachine> stateMachine = g_service->GetPowerStateMachine();
H A Dpower_mgr_service_native_test.cpp53 auto stateMachine = std::make_shared<PowerStateMachine>(g_pmsTest); in SetUp()
294 auto stateMachine = std::make_shared<PowerStateMachine>(g_pmsTest);
H A Dpower_state_level_framework_test.cpp34 std::shared_ptr<PowerStateMachine> g_stateMachineTest;
/ohos5.0/base/powermgr/power_manager/services/native/include/
H A Dpower_state_machine.h71 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 Dpower_mgr_service.h184 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 Dwakeup_action_controller.h35 …std::shared_ptr<ShutdownController>& shutdownController, std::shared_ptr<PowerStateMachine>& state…
48 std::shared_ptr<PowerStateMachine> stateMachine_;
H A Dwakeup_action_controller.cpp28 …std::shared_ptr<ShutdownController>& shutdownController, std::shared_ptr<PowerStateMachine>& state… in WakeupActionController()
/ohos5.0/base/powermgr/power_manager/services/native/src/screenoffpre/
H A Dscreen_off_pre_controller.h31 explicit ScreenOffPreController(std::shared_ptr<PowerStateMachine>& stateMachine);
58 std::shared_ptr<PowerStateMachine> powerStateMachine_;
H A Dscreen_off_pre_controller.cpp31 ScreenOffPreController::ScreenOffPreController(std::shared_ptr<PowerStateMachine>& stateMachine) in ScreenOffPreController()
/ohos5.0/base/powermgr/power_manager/services/native/src/suspend/
H A Dsuspend_controller.h45 …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 Dsuspend_controller.cpp48 …std::shared_ptr<ShutdownController>& shutdownController, std::shared_ptr<PowerStateMachine>& state… in SuspendController()
/ohos5.0/base/powermgr/power_manager/services/native/src/wakeup/
H A Dwakeup_controller.h43 explicit WakeupController(std::shared_ptr<PowerStateMachine>& stateMachine);
62 std::shared_ptr<PowerStateMachine> GetStateMachine() in GetStateMachine()
91 std::shared_ptr<PowerStateMachine> stateMachine_;
H A Dwakeup_controller.cpp51 WakeupController::WakeupController(std::shared_ptr<PowerStateMachine>& stateMachine) in WakeupController()
/ohos5.0/base/powermgr/power_manager/test/unittest/src/interface_test/
H A Dpower_mgr_service_test.cpp464 …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 Drunning_lock_mgr.h37 class PowerStateMachine; variable
H A Drunning_lock_mgr.cpp951 stateMachine->SetDelayTimer(delayTime, PowerStateMachine::CHECK_PROXIMITY_SCREEN_OFF_MSG); in OnClose()
/ohos5.0/base/powermgr/power_manager/test/systemtest/src/
H A Dpower_mgr_st_mock_test.cpp580 std::shared_ptr<PowerStateMachine> stateMachine = pms->GetPowerStateMachine();