Home
last modified time | relevance | path

Searched refs:suspendController_ (Results 1 – 7 of 7) sorted by relevance

/base/powermgr/power_manager/test/unittest/src/
Dpower_suspend_test.cpp93 …<SuspendPowerStateCallback> callback = new SuspendPowerStateCallback(pmsTest_->suspendController_);
118 …pmsTest_->suspendController_->ExecSuspendMonitorByReason(SuspendDeviceType ::SUSPEND_DEVICE_REASON…
120 …auto monitor = pmsTest_->suspendController_->monitorMap_[SuspendDeviceType ::SUSPEND_DEVICE_REASON…
143 pmsTest_->suspendController_->RegisterSettingsObserver();
144 EXPECT_TRUE(pmsTest_->suspendController_ != nullptr);
165 pmsTest_->suspendController_->Execute();
166 EXPECT_TRUE(pmsTest_->suspendController_ != nullptr);
233 …pmsTest_->suspendController_->stateMachine_->stateAction_->SetDisplayState(DisplayState::DISPLAY_O…
234 pmsTest_->suspendController_->RecordPowerKeyDown();
236 …pmsTest_->suspendController_->stateMachine_->stateAction_->GetDisplayState() == DisplayState::DISP…
[all …]
Dpower_suspend_parse_test.cpp60 vector<SuspendSource>::iterator itb = pmsTest_->suspendController_->sourceList_.begin(); in TestPowerSuspend()
61 vector<SuspendSource>::iterator ite = pmsTest_->suspendController_->sourceList_.end(); in TestPowerSuspend()
122 pmsTest_->suspendController_->Init();
Dpower_service_mock_test.cpp162 std::shared_ptr<SuspendController> suspendController_ = variable
164 suspendController_->ControlListener(SuspendDeviceType::SUSPEND_DEVICE_REASON_POWER_KEY, 1, 0);
Dpower_getcontroller_mock_test.cpp174 std::shared_ptr<SuspendController> suspendController_ = nullptr; member in OHOS::PowerMgr::PowerMgrService
Dpower_wakeup_test.cpp154 pmsTest_->suspendController_->stateMachine_->controllerMap_.clear();
/base/powermgr/power_manager/services/native/src/
Dpower_mgr_service.cpp342 if (suspendController_) { in OnStop()
343 suspendController_->StopSleep(); in OnStop()
411 if (suspendController_) { in RebootDeviceForDeprecated()
412 suspendController_->StopSleep(); in RebootDeviceForDeprecated()
440 if (suspendController_) { in ShutDownDevice()
441 suspendController_->StopSleep(); in ShutDownDevice()
885 if (!suspendController_) { in SuspendControllerInit()
886suspendController_ = std::make_shared<SuspendController>(shutdownController_, powerStateMachine_); in SuspendControllerInit()
888 suspendController_->Init(); in SuspendControllerInit()
/base/powermgr/power_manager/services/native/include/
Dpower_mgr_service.h117 return suspendController_; in GetSuspendController()
163 std::shared_ptr<SuspendController> suspendController_ = nullptr; variable