Home
last modified time | relevance | path

Searched refs:shutdownController_ (Results 1 – 5 of 5) sorted by relevance

/base/powermgr/power_manager/services/native/src/
Dpower_mgr_service.cpp98 if (!shutdownController_) { in Init()
99 shutdownController_ = std::make_shared<ShutdownController>(); in Init()
249 bool isShuttingDown = shutdownController_->IsShuttingDown(); in CheckDialogAndShuttingDown()
415 shutdownController_->Reboot(reason); in RebootDeviceForDeprecated()
445 shutdownController_->Shutdown(reason); in ShutDownDevice()
457 if (shutdownController_->IsShuttingDown()) { in SuspendDevice()
541 if (shutdownController_->IsShuttingDown()) { in ForceSuspendDevice()
802 shutdownController_->AddCallback(callback, priority); in RegisterShutdownCallback()
811 shutdownController_->RemoveCallback(callback); in UnRegisterShutdownCallback()
821 shutdownController_->AddCallback(callback, priority); in RegisterShutdownCallback()
[all …]
/base/powermgr/power_manager/services/native/include/
Dpower_mgr_service.h146 shutdownController_->EnableMock(powerAction, shutdownState); in EnableMock()
160 return shutdownController_; in GetShutdownController()
211 std::shared_ptr<ShutdownController> shutdownController_; variable
/base/powermgr/power_manager/test/unittest/src/
Dpower_getcontroller_mock_test.cpp157 shutdownController_->EnableMock(powerAction, shutdownState); in EnableMock()
171 return shutdownController_; in GetShutdownController()
223 std::shared_ptr<ShutdownController> shutdownController_; member in OHOS::PowerMgr::PowerMgrService
/base/powermgr/power_manager/services/native/src/suspend/
Dsuspend_controller.h75 std::shared_ptr<ShutdownController> shutdownController_; variable
Dsuspend_controller.cpp44 shutdownController_ = shutdownController; in SuspendController()
354 shutdownController_->Shutdown(std::to_string(static_cast<uint32_t>(reason))); in HandleShutdown()