Home
last modified time | relevance | path

Searched refs:SuspendController (Results 1 – 12 of 12) sorted by relevance

/base/powermgr/power_manager/test/unittest/src/
Drunning_lock_hub_native_test.cpp50 auto sc = std::make_shared<Suspend::SuspendController>();
69 auto SuspendController = std::make_shared<Suspend::SuspendController>(); variable
70 SuspendController->Wakeup();
71 SuspendController->Suspend(RunningSuspendCallback, RunningSuspendCallback, false);
72 SuspendController->Suspend(RunningSuspendCallback, RunningSuspendCallback, false);
73 EXPECT_FALSE(SuspendController->suspend_->WriteWakeupCount("77"));
74 SuspendController->suspend_->wakeupCountFd = static_cast<UniqueFd>(FD);
75 EXPECT_TRUE(SuspendController->suspend_->WriteWakeupCount("77"));
76 SuspendController->suspend_->wakeupCountFd =
78 EXPECT_TRUE(SuspendController->suspend_->WriteWakeupCount("77"));
[all …]
Dpower_service_mock_test.cpp81 std::shared_ptr<SuspendController> suspendController = pms->GetSuspendController(); in Init()
162 std::shared_ptr<SuspendController> suspendController_ =
163 std::make_shared<SuspendController>(shutdownController, stateMachine);
Dpower_getcontroller_mock_test.cpp130 std::shared_ptr<SuspendController> GetSuspendController() const in GetSuspendController()
174 std::shared_ptr<SuspendController> suspendController_ = nullptr;
Dpower_suspend_test.cpp55 …explicit SuspendPowerStateCallback(std::shared_ptr<SuspendController> controller) : controller_(co… in SuspendPowerStateCallback()
71 std::weak_ptr<SuspendController> controller_;
/base/powermgr/power_manager/services/native/src/actions/default/suspend/
Dsuspend_controller.cpp26 bool SuspendController::AutoSuspend::started_ = false;
28 SuspendController::SuspendController() in SuspendController() function in OHOS::PowerMgr::Suspend::SuspendController
30 auto f = std::bind(&SuspendController::WaitingSuspendCondition, this); in SuspendController()
34 void SuspendController::AutoSuspend::AutoSuspendLoop() in AutoSuspendLoop()
70 void SuspendController::AutoSuspend::Start(SuspendCallback onSuspend, SuspendCallback onWakeup) in Start()
85 void SuspendController::AutoSuspend::Stop() in Stop()
96 bool SuspendController::AutoSuspend::SuspendEnter() in SuspendEnter()
116 std::string SuspendController::AutoSuspend::WaitWakeupCount() in WaitWakeupCount()
130 bool SuspendController::AutoSuspend::WriteWakeupCount(std::string wakeupCount) in WriteWakeupCount()
142 void SuspendController::Suspend(SuspendCallback onSuspend, SuspendCallback onWakeup, bool force) in Suspend()
[all …]
Dsuspend_controller.h34 class SuspendController : public ISuspendController {
36 SuspendController();
37 ~SuspendController() override {}; in ~SuspendController()
/base/powermgr/power_manager/services/native/src/suspend/
Dsuspend_controller.cpp41 SuspendController::SuspendController( in SuspendController() function in OHOS::PowerMgr::SuspendController
48 SuspendController::~SuspendController() in ~SuspendController()
56 …explicit SuspendPowerStateCallback(std::shared_ptr<SuspendController> controller) : controller_(co… in SuspendPowerStateCallback()
72 std::weak_ptr<SuspendController> controller_;
75 void SuspendController::Init() in Init()
90 …monitor->RegisterListener(std::bind(&SuspendController::ControlListener, this, std::placeholders::… in Init()
106 void SuspendController::ExecSuspendMonitorByReason(SuspendDeviceType reason) in ExecSuspendMonitorByReason()
121 void SuspendController::RegisterSettingsObserver() in RegisterSettingsObserver()
141 …monitor->RegisterListener(std::bind(&SuspendController::ControlListener, this, std::placeholders::… in RegisterSettingsObserver()
153 void SuspendController::Execute() in Execute()
[all …]
Dsuspend_controller.h37 class SuspendController : public std::enable_shared_from_this<SuspendController> {
39 SuspendController(
41 ~SuspendController();
/base/powermgr/power_manager/services/native/include/
Dpower_mgr_service.h115 std::shared_ptr<SuspendController> GetSuspendController() const in GetSuspendController()
163 std::shared_ptr<SuspendController> suspendController_ = nullptr;
/base/powermgr/power_manager/test/systemtest/src/
Dpower_mgr_st_suspend_test.cpp40 void SuspendController::HandleAutoSleep(SuspendDeviceType reason) in HandleAutoSleep()
/base/powermgr/power_manager/services/native/src/
Dpower_mgr_service.cpp213 std::shared_ptr<SuspendController> suspendController = pms->GetSuspendController(); in HallSensorCallback()
266 std::shared_ptr<SuspendController> suspendController = pms->GetSuspendController(); in SwitchSubscriberInit()
886 … suspendController_ = std::make_shared<SuspendController>(shutdownController_, powerStateMachine_); in SuspendControllerInit()
/base/powermgr/power_manager/services/native/src/wakeup/
Dwakeup_controller.cpp403 std::shared_ptr<SuspendController> suspendController = pms->GetSuspendController(); in Init()