Home
last modified time | relevance | path

Searched refs:onWakeup (Results 1 – 18 of 18) 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
74 onWakeup_ = onWakeup; in Start()
142 void SuspendController::Suspend(SuspendCallback onSuspend, SuspendCallback onWakeup, bool force) in Suspend() argument
150 if (onWakeup != nullptr) { in Suspend()
151 onWakeup(); 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.cpp139 const std::function<void()> onWakeup, bool force) 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 …(GoToSleep, uint32_t(std::function<void()> onSuspend, std::function<void()> onWakeup, bool force));
/base/powermgr/power_manager/test/systemtest/mock/
Dmock_state_action.h35 …(GoToSleep, uint32_t(std::function<void()> onSuspend, std::function<void()> onWakeup, bool force));
/base/powermgr/power_manager/services/native/include/actions/
Didevice_state_action.h49 const std::function<void()> onWakeup, bool force) = 0;
/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.h76 static void onWakeup();
Dpower_mgr_service.h156 PowerStateMachine::onWakeup(); in MockSystemWakeup()
/base/powermgr/power_manager/test/unittest/src/
Dpower_getcontroller_mock_test.cpp167 PowerStateMachine::onWakeup(); in MockSystemWakeup()
Dnative_power_state_machine_test.cpp70 stateMachine->onWakeup();
/base/powermgr/power_manager/test/fuzztest/power_fuzzer/
Dpower_fuzzer.cpp71 [[maybe_unused]] const std::function<void()> onWakeup, [[maybe_unused]] bool force) in GoToSleep() argument
/base/powermgr/power_manager/services/native/src/
Dpower_state_machine.cpp211 void PowerStateMachine::onWakeup() in onWakeup() function in OHOS::PowerMgr::PowerStateMachine
332 stateAction_->GoToSleep(onSuspend, onWakeup, true); in ForceSuspendDeviceInner()