Searched refs:GetState (Results 1 – 25 of 61) sorted by relevance
123
77 EXPECT_TRUE(g_stateMachineTest->GetState() == PowerState::AWAKE);92 EXPECT_TRUE(g_stateMachineTest->GetState() == PowerState::FREEZE);107 EXPECT_TRUE(g_stateMachineTest->GetState() == PowerState::INACTIVE);122 EXPECT_TRUE(g_stateMachineTest->GetState() == PowerState::STAND_BY);137 EXPECT_TRUE(g_stateMachineTest->GetState() == PowerState::DOZE);152 EXPECT_TRUE(g_stateMachineTest->GetState() == PowerState::SLEEP);167 EXPECT_TRUE(g_stateMachineTest->GetState() == PowerState::HIBERNATE);182 EXPECT_TRUE(g_stateMachineTest->GetState() == PowerState::SHUTDOWN);
59 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);85 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);111 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);137 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);163 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);189 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);288 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);344 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);396 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);454 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);[all …]
504 EXPECT_TRUE(backgroundLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE);509 … EXPECT_TRUE(backgroundLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_UNPROXIED_RESTORE);514 EXPECT_TRUE(backgroundLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE);634 EXPECT_TRUE(audioLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_DISABLE);635 EXPECT_TRUE(sportLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_DISABLE);640 EXPECT_TRUE(audioLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_UNPROXIED_RESTORE);641 EXPECT_TRUE(sportLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_UNPROXIED_RESTORE);646 EXPECT_TRUE(audioLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_DISABLE);647 EXPECT_TRUE(sportLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_DISABLE);692 EXPECT_TRUE(naviLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_DISABLE);[all …]
291 EXPECT_TRUE(pmsTest_->suspendController_->stateMachine_->GetState() != PowerState::AWAKE);300 uint32_t tmp = static_cast<uint32_t>(pmsTest_->suspendController_->stateMachine_->GetState());302 EXPECT_TRUE(pmsTest_->suspendController_->stateMachine_->GetState() == PowerState::FREEZE);328 EXPECT_TRUE(pmsTest_->suspendController_->stateMachine_->GetState() == PowerState::SLEEP);351 EXPECT_TRUE(pmsTest_->suspendController_->stateMachine_->GetState() == PowerState::SLEEP);374 EXPECT_TRUE(pmsTest_->suspendController_->stateMachine_->GetState() != PowerState::HIBERNATE);
138 EXPECT_TRUE(static_cast<uint32_t>(pmsTest_->wakeupController_->stateMachine_->GetState()) ==143 EXPECT_TRUE(static_cast<uint32_t>(pmsTest_->wakeupController_->stateMachine_->GetState()) ==149 EXPECT_TRUE(static_cast<uint32_t>(pmsTest_->wakeupController_->stateMachine_->GetState()) ==156 EXPECT_TRUE(static_cast<uint32_t>(pmsTest_->wakeupController_->stateMachine_->GetState()) ==
73 EXPECT_EQ(PowerState::SLEEP, pms->GetState());107 EXPECT_EQ(PowerState::SLEEP, pms->GetState());138 EXPECT_EQ(PowerState::SLEEP, pms->GetState());144 EXPECT_EQ(PowerState::SLEEP, pms->GetState());174 EXPECT_EQ(PowerState::SLEEP, pms->GetState());
236 EXPECT_EQ(PowerState::SLEEP, pms->GetState());271 EXPECT_EQ(PowerState::SLEEP, pms->GetState());304 EXPECT_EQ(PowerState::INACTIVE, pms->GetState());314 EXPECT_EQ(PowerState::AWAKE, pms->GetState());353 EXPECT_EQ(PowerState::SLEEP, pms->GetState());356 EXPECT_EQ(PowerState::AWAKE, pms->GetState());415 EXPECT_EQ(PowerState::AWAKE, pms->GetState());452 EXPECT_EQ(PowerState::INACTIVE, pms->GetState());484 EXPECT_EQ(PowerState::SLEEP, pms->GetState());520 EXPECT_EQ(PowerState::AWAKE, pms->GetState());[all …]
121 EXPECT_EQ(PowerState::INACTIVE, powerMgrClient.GetState());139 EXPECT_EQ(PowerState::INACTIVE, powerMgrClient.GetState());
86 EXPECT_EQ(PowerState::INACTIVE, pms->GetState());
166 EXPECT_EQ(g_powerMgrServiceProxy->GetState(), PowerState::AWAKE);189 EXPECT_EQ(g_powerMgrServiceProxy->GetState(), PowerState::AWAKE);253 EXPECT_EQ(g_powerMgrServiceProxy->GetState(), PowerState::AWAKE);286 EXPECT_EQ(g_powerMgrServiceProxy->GetState(), PowerState::AWAKE);317 EXPECT_EQ(g_powerMgrServiceProxy->GetState(), PowerState::AWAKE);544 EXPECT_EQ(g_powerMgrServiceProxy->GetState(), PowerState::AWAKE);562 EXPECT_EQ(g_powerMgrServiceProxy->GetState(), PowerState::AWAKE);580 EXPECT_EQ(g_powerMgrServiceProxy->GetState(), PowerState::AWAKE);598 EXPECT_EQ(g_powerMgrServiceProxy->GetState(), PowerState::AWAKE);616 EXPECT_EQ(g_powerMgrServiceProxy->GetState(), PowerState::AWAKE);[all …]
105 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetInteractiveState();145 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetInteractiveState();167 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetScreenState();189 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetScreenState();211 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetInteractiveState();233 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetInteractiveState();255 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetScreenState();280 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetScreenState();297 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetCurrentUser();302 retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetCurrentUser();[all …]
109 EXPECT_EQ(rrc->GetState(), 0) << "When init, state should be 0";122 EXPECT_TRUE((rrc->GetState() & ReminderRequestTest::REMINDER_STATUS_SHOWING) == 0);135 EXPECT_TRUE((rrc->GetState() & ReminderRequestTest::REMINDER_STATUS_SHOWING) == 0);148 EXPECT_TRUE((rrc->GetState() & ReminderRequestTest::REMINDER_STATUS_SHOWING) == 0);161 EXPECT_TRUE((rrc->GetState() & ReminderRequestTest::REMINDER_STATUS_SHOWING) != 0);174 EXPECT_TRUE((rrc->GetState() & ReminderRequestTest::REMINDER_STATUS_SHOWING) != 0);186 uint8_t stateBefore = rrc->GetState();188 EXPECT_EQ(rrc->GetState(), stateBefore);200 uint8_t stateBefore = rrc->GetState();202 EXPECT_EQ(rrc->GetState(), stateBefore);[all …]
29 virtual std::string GetState() = 0;
28 std::string GetState() override;
31 std::string GetState() override;
65 std::string GetState() override;
105 if (stateMachine->GetState() == PowerState::AWAKE) { in InitLocksTypeScreen()109 stateMachine->GetState()); in InitLocksTypeScreen()135 if (stateMachine->GetState() == PowerState::INACTIVE) { in InitLocksTypeBackground()139 stateMachine->GetState()); in InitLocksTypeBackground()280 if (lockInner->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE) { in Lock()321 if (lockInner->GetState() == RunningLockState::RUNNINGLOCK_STATE_DISABLE) { in UnLock()344 … if (lockInner == nullptr || lockInner->GetState() != RunningLockState::RUNNINGLOCK_STATE_ENABLE) { in IsUsed()378 if (lockinner->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE) { in ExistValidRunningLock()407 if (lockInner->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE && in CheckOverTime()522 RunningLockState lastState = lockInner->GetState(); in LockInnerByProxy()[all …]
841 if (GetState() == PowerState::INACTIVE) { in SetDisplaySuspend()965 .append(GetPowerStateString(GetState())) in AppendDumpInfo()992 .append(GetPowerStateString(it->second->GetState())) in AppendDumpInfo()1014 auto it = controllerMap_.find(GetState()); in DumpInfo()1039 if (!ignoreLock && !owner->CheckRunningLock(GetState())) { in TransitTo()1048 owner->currentState_ = GetState(); in TransitTo()1065 auto state = GetState(); in CheckState()1088 …if (GetState() == PowerState::SLEEP || currentState == PowerState::SLEEP || GetState() == PowerSta… in MatchState()1089 currentState == PowerState::HIBERNATE || GetState() == PowerState::SHUTDOWN || in MatchState()1145 .append(GetPowerStateString(GetState())) in RecordFailure()
42 std::string SceneStateCollection::GetState() in GetState() function in OHOS::PowerMgr::SceneStateCollection
49 std::string ScreenStateCollection::GetState() in GetState() function in OHOS::PowerMgr::ScreenStateCollection
37 …napi_value GetState(napi_env env, const std::string &deviceDescriptor, napi_value handle = nullptr…
37 static napi_value GetState(napi_env env, napi_callback_info info);
74 RunningLockState GetState() const in GetState() function
90 PowerState GetState() in GetState() function152 PowerState GetState() in GetState() function
169 if (event.GetState() == OHOS::InputDevice::STATE_PRESS) { in ProcessPowerKey()188 event.GetState() == OHOS::InputDevice::STATE_RELEASE) { in ProcessVolumeKey()