Home
last modified time | relevance | path

Searched refs:pmsTest_ (Results 1 - 8 of 8) sorted by relevance

/base/powermgr/power_manager/test/unittest/src/interface_test/
H A 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(); in HWTEST_F() local
116 if (pmsTest_ == nullptr) { in HWTEST_F()
120 pmsTest_->Init(); in HWTEST_F()
121 pmsTest_->SuspendControllerInit(); in HWTEST_F()
122 pmsTest_->suspendController_->Init(); in HWTEST_F()
124 TestPowerSuspend(pmsTest_); in HWTEST_F()
H A Dpower_wakeup_parse_test.cpp60 void TestPowerWakeup(PowerMgrService* pmsTest_) in TestPowerWakeup() argument
62 vector<WakeupSource>::iterator itb = pmsTest_->wakeupController_->sourceList_.begin(); in TestPowerWakeup()
63 vector<WakeupSource>::iterator ite = pmsTest_->wakeupController_->sourceList_.end(); in TestPowerWakeup()
117 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); in HWTEST_F() local
118 if (pmsTest_ == nullptr) { in HWTEST_F()
122 pmsTest_->Init(); in HWTEST_F()
123 pmsTest_->WakeupControllerInit(); in HWTEST_F()
124 pmsTest_->wakeupController_->Init(); in HWTEST_F()
126 TestPowerWakeup(pmsTest_); in HWTEST_F()
H A Dpower_mgr_service_test.cpp80 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); in HWTEST_F() local
81 ASSERT_TRUE(pmsTest_ != nullptr) << "PowerMgrService02 fail to get PowerMgrService"; in HWTEST_F()
82 ASSERT_TRUE(!pmsTest_->IsServiceReady()) << "SetUpTestCase pmsTest_ is ready"; in HWTEST_F()
83 pmsTest_->OnStart(); in HWTEST_F()
84 ASSERT_TRUE(pmsTest_->IsServiceReady()) << "SetUpTestCase pmsTest_ is not ready"; in HWTEST_F()
85 pmsTest_->OnStop(); in HWTEST_F()
86 ASSERT_TRUE(!pmsTest_->IsServiceReady()) << "SetUpTestCase pmsTest_ sto in HWTEST_F()
439 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); HWTEST_F() local
574 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); HWTEST_F() local
608 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); HWTEST_F() local
[all...]
/base/powermgr/power_manager/test/unittest/src/
H A Dpower_screenon_mock_test.cpp85 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); in HWTEST_F() local
86 if (pmsTest_ == nullptr) { in HWTEST_F()
89 pmsTest_->Init(); in HWTEST_F()
90 pmsTest_->WakeupControllerInit(); in HWTEST_F()
91 pmsTest_->wakeupController_->stateMachine_->stateAction_->SetDisplayState(DisplayState::DISPLAY_OFF); in HWTEST_F()
92 pmsTest_->wakeupController_->ControlListener(WakeupDeviceType ::WAKEUP_DEVICE_POWER_BUTTON); in HWTEST_F()
93 EXPECT_TRUE(pmsTest_ != nullptr); in HWTEST_F()
H A Dpower_parsesources_mock_test.cpp64 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); in HWTEST_F() local
65 if (pmsTest_ == nullptr) { in HWTEST_F()
H A Drunning_lock_native_test.cpp290 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); in HWTEST_F() local
291 auto runningLockMgr = std::make_shared<RunningLockMgr>(pmsTest_); in HWTEST_F()
300 pmsTest_->powerStateMachine_->SetState(PowerState::INACTIVE, StateChangeReason::STATE_CHANGE_REASON_TIMEOUT); in HWTEST_F()
309 pmsTest_->powerStateMachine_->SetState(PowerState::FREEZE, StateChangeReason::STATE_CHANGE_REASON_TIMEOUT); in HWTEST_F()
322 auto stateMachine = pmsTest_->GetPowerStateMachine(); in HWTEST_F()
323 pmsTest_->powerStateMachine_ = nullptr; in HWTEST_F()
326 pmsTest_->powerStateMachine_ = stateMachine; in HWTEST_F()
327 EXPECT_TRUE(pmsTest_->powerStateMachine_ != nullptr); in HWTEST_F()
561 auto pmsTest_ = DelayedSpSingleton<PowerMgrService>::GetInstance(); in HWTEST_F() local
562 auto runningLockMgr = std::make_shared<RunningLockMgr>(pmsTest_); in HWTEST_F()
[all...]
/base/powermgr/power_manager/test/unittest/include/interface_test/
H A Drunning_lock_test.h58 static sptr<PowerMgrService> pmsTest_; member in OHOS::PowerMgr::RunningLockTest
/base/powermgr/power_manager/test/unittest/include/scenario_test/running_lock/
H A Drunning_lock_scenario_test.h58 static sptr<PowerMgrService> pmsTest_; member in OHOS::PowerMgr::RunningLockScenarioTest

Completed in 4 milliseconds