Home
last modified time | relevance | path

Searched refs:GetState (Results 1 – 25 of 61) sorted by relevance

123

/base/powermgr/power_manager/test/unittest/src/
Dpower_state_level_framework_test.cpp77 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);
Dpower_mgr_client_test.cpp59 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 …]
Drunning_lock_mock_test.cpp504 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 …]
Dpower_suspend_test.cpp291 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);
Dpower_wakeup_test.cpp138 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()) ==
/base/powermgr/power_manager/test/systemtest/src/
Dpower_mgr_st_suspend_test.cpp73 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());
Dpower_mgr_st_mock_test.cpp236 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 …]
Dpower_mgr_shutdown_fast_test.cpp121 EXPECT_EQ(PowerState::INACTIVE, powerMgrClient.GetState());
139 EXPECT_EQ(PowerState::INACTIVE, powerMgrClient.GetState());
Dpower_mgr_mock_system_test.cpp86 EXPECT_EQ(PowerState::INACTIVE, pms->GetState());
/base/powermgr/power_manager/test/unittest/src/servicetest/
Dpowermgr_service_native_test.cpp166 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 …]
/base/theme/screenlock_mgr/test/unittest/
Dscreenlock_service_test.cpp105 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 …]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dreminder_request_test.cpp109 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 …]
/base/powermgr/thermal_manager/services/native/include/thermal_observer/
Distate_collection.h29 virtual std::string GetState() = 0;
/base/powermgr/thermal_manager/services/native/include/thermal_observer/state_machine/
Dscene_state_collection.h28 std::string GetState() override;
Dscreen_state_collection.h31 std::string GetState() override;
Dcharger_state_collection.h65 std::string GetState() override;
/base/powermgr/power_manager/services/native/src/
Drunning_lock_mgr.cpp105 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 …]
Dpower_state_machine.cpp841 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()
/base/powermgr/thermal_manager/services/native/src/thermal_observer/state_machine/
Dscene_state_collection.cpp42 std::string SceneStateCollection::GetState() in GetState() function in OHOS::PowerMgr::SceneStateCollection
Dscreen_state_collection.cpp49 std::string ScreenStateCollection::GetState() in GetState() function in OHOS::PowerMgr::ScreenStateCollection
/base/msdp/device_status/frameworks/js/napi/interaction/cooperate/include/
Djs_cooperate_manager.h37 …napi_value GetState(napi_env env, const std::string &deviceDescriptor, napi_value handle = nullptr…
Djs_cooperate_context.h37 static napi_value GetState(napi_env env, napi_callback_info info);
/base/powermgr/power_manager/services/native/include/
Drunning_lock_inner.h74 RunningLockState GetState() const in GetState() function
Dpower_state_machine.h90 PowerState GetState() in GetState() function
152 PowerState GetState() in GetState() function
/base/update/updater/services/ui/control/
Devent_listener.cpp169 if (event.GetState() == OHOS::InputDevice::STATE_PRESS) { in ProcessPowerKey()
188 event.GetState() == OHOS::InputDevice::STATE_RELEASE) { in ProcessVolumeKey()

123