Searched refs:pmsTest_ (Results 1 – 10 of 10) sorted by relevance
85 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable86 if (pmsTest_ == nullptr) {90 pmsTest_->Init();91 pmsTest_->SuspendControllerInit();93 …sptr<SuspendPowerStateCallback> callback = new SuspendPowerStateCallback(pmsTest_->suspendControll…112 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable113 if (pmsTest_ == nullptr) {116 pmsTest_->Init();117 pmsTest_->SuspendControllerInit();118 …pmsTest_->suspendController_->ExecSuspendMonitorByReason(SuspendDeviceType ::SUSPEND_DEVICE_REASON…[all …]
79 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable80 if (pmsTest_ == nullptr) {84 pmsTest_->Init();85 pmsTest_->WakeupControllerInit();86 …pmsTest_->wakeupController_->ExecWakeupMonitorByReason(WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUTT…87 …auto monitor = pmsTest_->wakeupController_->monitorMap_[WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUT…103 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable104 if (pmsTest_ == nullptr) {107 pmsTest_->Init();108 pmsTest_->WakeupControllerInit();[all …]
83 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable84 if (pmsTest_ == nullptr) {87 pmsTest_->Init();88 pmsTest_->WakeupControllerInit();89 …pmsTest_->wakeupController_->stateMachine_->stateAction_->SetDisplayState(DisplayState::DISPLAY_OF…90 pmsTest_->wakeupController_->ControlListener(WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUTTON);91 EXPECT_TRUE(pmsTest_ != nullptr);
58 void TestPowerSuspend(PowerMgrService* pmsTest_) in TestPowerSuspend() argument60 vector<SuspendSource>::iterator itb = pmsTest_->suspendController_->sourceList_.begin(); in TestPowerSuspend()61 vector<SuspendSource>::iterator ite = pmsTest_->suspendController_->sourceList_.end(); in TestPowerSuspend()115 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable116 if (pmsTest_ == nullptr) {120 pmsTest_->Init();121 pmsTest_->SuspendControllerInit();122 pmsTest_->suspendController_->Init();124 TestPowerSuspend(pmsTest_);
59 void TestPowerWakeup(PowerMgrService* pmsTest_) in TestPowerWakeup() argument61 vector<WakeupSource>::iterator itb = pmsTest_->wakeupController_->sourceList_.begin(); in TestPowerWakeup()62 vector<WakeupSource>::iterator ite = pmsTest_->wakeupController_->sourceList_.end(); in TestPowerWakeup()115 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable116 if (pmsTest_ == nullptr) {120 pmsTest_->Init();121 pmsTest_->WakeupControllerInit();122 pmsTest_->wakeupController_->Init();124 TestPowerWakeup(pmsTest_);
74 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable75 ASSERT_TRUE(pmsTest_ != nullptr) << "PowerMgrService02 fail to get PowerMgrService";76 ASSERT_TRUE(!pmsTest_->IsServiceReady()) << "SetUpTestCase pmsTest_ is ready";77 pmsTest_->OnStart();78 ASSERT_TRUE(pmsTest_->IsServiceReady()) << "SetUpTestCase pmsTest_ is not ready";79 pmsTest_->OnStop();80 ASSERT_TRUE(!pmsTest_->IsServiceReady()) << "SetUpTestCase pmsTest_ stop fail";81 pmsTest_->OnStart();82 ASSERT_TRUE(pmsTest_->IsServiceReady()) << "SetUpTestCase pmsTest_ is not ready";83 pmsTest_->OnStop();[all …]
63 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable64 if (pmsTest_ == nullptr) {
314 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable315 auto runningLockMgr = std::make_shared<RunningLockMgr>(pmsTest_);323 …pmsTest_->powerStateMachine_->SetState(PowerState::INACTIVE, StateChangeReason::STATE_CHANGE_REASO…330 …pmsTest_->powerStateMachine_->SetState(PowerState::FREEZE, StateChangeReason::STATE_CHANGE_REASON_…341 auto stateMachine = pmsTest_->GetPowerStateMachine();342 pmsTest_->powerStateMachine_ = nullptr;344 pmsTest_->powerStateMachine_ = stateMachine;345 EXPECT_TRUE(pmsTest_->powerStateMachine_ != nullptr);616 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable617 auto runningLockMgr = std::make_shared<RunningLockMgr>(pmsTest_);
273 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable274 if (pmsTest_ == nullptr) {278 pmsTest_->Init();
58 static sptr<PowerMgrService> pmsTest_; variable