Home
last modified time | relevance | path

Searched refs:pmsTest_ (Results 1 – 10 of 10) sorted by relevance

/base/powermgr/power_manager/test/unittest/src/
Dpower_suspend_test.cpp85 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
86 if (pmsTest_ == nullptr) {
90 pmsTest_->Init();
91 pmsTest_->SuspendControllerInit();
93 …sptr<SuspendPowerStateCallback> callback = new SuspendPowerStateCallback(pmsTest_->suspendControll…
112 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
113 if (pmsTest_ == nullptr) {
116 pmsTest_->Init();
117 pmsTest_->SuspendControllerInit();
118pmsTest_->suspendController_->ExecSuspendMonitorByReason(SuspendDeviceType ::SUSPEND_DEVICE_REASON…
[all …]
Dpower_wakeup_test.cpp79 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
80 if (pmsTest_ == nullptr) {
84 pmsTest_->Init();
85 pmsTest_->WakeupControllerInit();
86pmsTest_->wakeupController_->ExecWakeupMonitorByReason(WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUTT…
87 …auto monitor = pmsTest_->wakeupController_->monitorMap_[WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUT…
103 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
104 if (pmsTest_ == nullptr) {
107 pmsTest_->Init();
108 pmsTest_->WakeupControllerInit();
[all …]
Dpower_screenon_mock_test.cpp83 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
84 if (pmsTest_ == nullptr) {
87 pmsTest_->Init();
88 pmsTest_->WakeupControllerInit();
89pmsTest_->wakeupController_->stateMachine_->stateAction_->SetDisplayState(DisplayState::DISPLAY_OF…
90 pmsTest_->wakeupController_->ControlListener(WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUTTON);
91 EXPECT_TRUE(pmsTest_ != nullptr);
Dpower_suspend_parse_test.cpp58 void TestPowerSuspend(PowerMgrService* pmsTest_) in TestPowerSuspend() argument
60 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(); variable
116 if (pmsTest_ == nullptr) {
120 pmsTest_->Init();
121 pmsTest_->SuspendControllerInit();
122 pmsTest_->suspendController_->Init();
124 TestPowerSuspend(pmsTest_);
Dpower_wakeup_parse_test.cpp59 void TestPowerWakeup(PowerMgrService* pmsTest_) in TestPowerWakeup() argument
61 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(); variable
116 if (pmsTest_ == nullptr) {
120 pmsTest_->Init();
121 pmsTest_->WakeupControllerInit();
122 pmsTest_->wakeupController_->Init();
124 TestPowerWakeup(pmsTest_);
Dpower_mgr_service_test.cpp74 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
75 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 …]
Dpower_parsesources_mock_test.cpp63 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
64 if (pmsTest_ == nullptr) {
Drunning_lock_native_test.cpp314 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
315 auto runningLockMgr = std::make_shared<RunningLockMgr>(pmsTest_);
323pmsTest_->powerStateMachine_->SetState(PowerState::INACTIVE, StateChangeReason::STATE_CHANGE_REASO…
330pmsTest_->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(); variable
617 auto runningLockMgr = std::make_shared<RunningLockMgr>(pmsTest_);
Dpower_getcontroller_mock_test.cpp273 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); variable
274 if (pmsTest_ == nullptr) {
278 pmsTest_->Init();
/base/powermgr/power_manager/test/unittest/include/
Drunning_lock_test.h58 static sptr<PowerMgrService> pmsTest_; variable