Searched refs:SuspendController (Results 1 – 12 of 12) sorted by relevance
/base/powermgr/power_manager/test/unittest/src/ |
D | running_lock_hub_native_test.cpp | 50 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 …]
|
D | power_service_mock_test.cpp | 81 std::shared_ptr<SuspendController> suspendController = pms->GetSuspendController(); in Init() 162 std::shared_ptr<SuspendController> suspendController_ = 163 std::make_shared<SuspendController>(shutdownController, stateMachine);
|
D | power_getcontroller_mock_test.cpp | 130 std::shared_ptr<SuspendController> GetSuspendController() const in GetSuspendController() 174 std::shared_ptr<SuspendController> suspendController_ = nullptr;
|
D | power_suspend_test.cpp | 55 …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/ |
D | suspend_controller.cpp | 26 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 …]
|
D | suspend_controller.h | 34 class SuspendController : public ISuspendController { 36 SuspendController(); 37 ~SuspendController() override {}; in ~SuspendController()
|
/base/powermgr/power_manager/services/native/src/suspend/ |
D | suspend_controller.cpp | 41 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 …]
|
D | suspend_controller.h | 37 class SuspendController : public std::enable_shared_from_this<SuspendController> { 39 SuspendController( 41 ~SuspendController();
|
/base/powermgr/power_manager/services/native/include/ |
D | power_mgr_service.h | 115 std::shared_ptr<SuspendController> GetSuspendController() const in GetSuspendController() 163 std::shared_ptr<SuspendController> suspendController_ = nullptr;
|
/base/powermgr/power_manager/test/systemtest/src/ |
D | power_mgr_st_suspend_test.cpp | 40 void SuspendController::HandleAutoSleep(SuspendDeviceType reason) in HandleAutoSleep()
|
/base/powermgr/power_manager/services/native/src/ |
D | power_mgr_service.cpp | 213 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/ |
D | wakeup_controller.cpp | 403 std::shared_ptr<SuspendController> suspendController = pms->GetSuspendController(); in Init()
|