Home
last modified time | relevance | path

Searched refs:onSuspend (Results 1 – 15 of 15) sorted by relevance

/base/powermgr/power_manager/services/native/src/actions/default/suspend/
Dsuspend_controller.cpp70 void SuspendController::AutoSuspend::Start(SuspendCallback onSuspend, SuspendCallback onWakeup) in Start() argument
73 onSuspend_ = onSuspend; in Start()
142 void SuspendController::Suspend(SuspendCallback onSuspend, SuspendCallback onWakeup, bool force) in Suspend() argument
146 if (onSuspend != nullptr) { in Suspend()
147 onSuspend(); in Suspend()
155 suspend_->Start(onSuspend, onWakeup); in Suspend()
Dsuspend_controller.h39 void Suspend(SuspendCallback onSuspend, SuspendCallback onWakeup, bool force) override;
52 void Start(SuspendCallback onSuspend, SuspendCallback onWakeup);
Disuspend_controller.h30 virtual void Suspend(SuspendCallback onSuspend, SuspendCallback onWakeup, bool force) = 0;
/base/powermgr/power_manager/services/native/src/actions/default/display/
Ddefault_device_state_action.cpp54 const std::function<void()> onSuspend, const std::function<void()> onWakeup, bool force) in GoToSleep() argument
56 SystemSuspendController::GetInstance().Suspend(onSuspend, onWakeup, force); in GoToSleep()
Ddefault_device_state_action.h36 …uint32_t GoToSleep(std::function<void()> onSuspend, std::function<void()> onWakeup, bool force) ov…
Ddevice_state_action.cpp138 uint32_t DeviceStateAction::GoToSleep(const std::function<void()> onSuspend, in GoToSleep() argument
141 SystemSuspendController::GetInstance().Suspend(onSuspend, onWakeup, force); in GoToSleep()
Ddevice_state_action.h37 …uint32_t GoToSleep(std::function<void()> onSuspend, std::function<void()> onWakeup, bool force) ov…
/base/powermgr/power_manager/test/mock/action/
Dmock_state_action.h35 …MOCK_METHOD3(GoToSleep, uint32_t(std::function<void()> onSuspend, std::function<void()> onWakeup, …
/base/powermgr/power_manager/test/systemtest/mock/
Dmock_state_action.h35 …MOCK_METHOD3(GoToSleep, uint32_t(std::function<void()> onSuspend, std::function<void()> onWakeup, …
/base/powermgr/power_manager/services/native/include/actions/
Didevice_state_action.h48 virtual uint32_t GoToSleep(const std::function<void()> onSuspend,
/base/powermgr/power_manager/services/native/src/actions/default/
Dsystem_suspend_controller.h35 …void Suspend(const std::function<void()>& onSuspend, const std::function<void()>& onWakeup, bool f…
Dsystem_suspend_controller.cpp100 const std::function<void()>& onSuspend, const std::function<void()>& onWakeup, bool force) in Suspend() argument
/base/powermgr/power_manager/services/native/include/
Dpower_state_machine.h75 static void onSuspend();
/base/powermgr/power_manager/test/fuzztest/power_fuzzer/
Dpower_fuzzer.cpp70 virtual uint32_t GoToSleep([[maybe_unused]] const std::function<void()> onSuspend, in GoToSleep() argument
/base/powermgr/power_manager/services/native/src/
Dpower_state_machine.cpp206 void PowerStateMachine::onSuspend() in onSuspend() function in OHOS::PowerMgr::PowerStateMachine
332 stateAction_->GoToSleep(onSuspend, onWakeup, true); in ForceSuspendDeviceInner()