Home
last modified time | relevance | path

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

12

/base/powermgr/power_manager/services/native/test/unittest/src/
Dpower_mgr_client_test.cpp58 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);
84 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);
110 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);
136 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);
162 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);
188 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);
215 EXPECT_EQ(powerMgrClient.GetState(), PowerState::INACTIVE);
265 EXPECT_EQ(powerMgrClient.GetState(), PowerState::INACTIVE);
289 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);
343 EXPECT_EQ(powerMgrClient.GetState(), PowerState::AWAKE);
[all …]
Dpower_mgr_mock_test.cpp1328 EXPECT_EQ(PowerState::INACTIVE, pms->GetState());
1523 EXPECT_EQ(PowerState::INACTIVE, pms->GetState());
1525 EXPECT_EQ(PowerState::SLEEP, pms->GetState());
1554 EXPECT_EQ(PowerState::AWAKE, pms->GetState());
1583 EXPECT_EQ(PowerState::AWAKE, pms->GetState());
1616 EXPECT_EQ(PowerState::INACTIVE, pms->GetState());
1618 EXPECT_EQ(PowerState::SLEEP, pms->GetState());
1646 EXPECT_EQ(PowerState::INACTIVE, pms->GetState());
1674 EXPECT_EQ(PowerState::INACTIVE, pms->GetState());
1703 EXPECT_EQ(PowerState::SLEEP, pms->GetState());
[all …]
/base/theme/screenlock_mgr/test/unittest/
Dscreenlock_service_test.cpp106 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetInteractiveState();
153 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetInteractiveState();
178 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetScreenState();
203 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetScreenState();
228 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetInteractiveState();
253 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetInteractiveState();
278 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetScreenState();
306 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetScreenState();
323 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetCurrentUser();
328 retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetCurrentUser();
[all …]
/base/update/updater/services/ui/control/
Devent_listener.cpp132 if (event.GetState() == OHOS::InputDevice::STATE_PRESS) { in ProcessPowerKey()
134 } else if (event.GetState() == OHOS::InputDevice::STATE_RELEASE) { in ProcessPowerKey()
149 if (event.GetState() == OHOS::InputDevice::STATE_PRESS) { in ProcessPowerKey()
166 event.GetState() == OHOS::InputDevice::STATE_RELEASE) { in ProcessVolumeKey()
/base/powermgr/power_manager/test/systemtest/src/
Dpower_mgr_st_mock_test.cpp294 EXPECT_EQ(PowerState::INACTIVE, pms->GetState());
296 EXPECT_EQ(PowerState::SLEEP, pms->GetState());
324 EXPECT_EQ(PowerState::SLEEP, pms->GetState());
363 EXPECT_EQ(PowerState::SLEEP, pms->GetState());
398 EXPECT_EQ(PowerState::SLEEP, pms->GetState());
439 EXPECT_EQ(PowerState::SLEEP, pms->GetState());
478 EXPECT_EQ(PowerState::SLEEP, pms->GetState());
508 EXPECT_EQ(PowerState::INACTIVE, pms->GetState());
515 EXPECT_EQ(PowerState::AWAKE, pms->GetState());
551 EXPECT_EQ(PowerState::SLEEP, pms->GetState());
[all …]
Dpower_mgr_mock_system_test.cpp86 EXPECT_EQ(PowerState::AWAKE, pms->GetState());
/base/powermgr/thermal_manager/services/native/include/thermal_observer/
Distate_collection.h29 virtual std::string GetState() = 0;
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dreminder_request_test.cpp107 EXPECT_EQ(rrc->GetState(), 0) << "When init, state should be 0";
120 EXPECT_TRUE((rrc->GetState() & ReminderRequestTest::REMINDER_STATUS_SHOWING) == 0);
133 EXPECT_TRUE((rrc->GetState() & ReminderRequestTest::REMINDER_STATUS_SHOWING) == 0);
146 EXPECT_TRUE((rrc->GetState() & ReminderRequestTest::REMINDER_STATUS_SHOWING) == 0);
159 EXPECT_TRUE((rrc->GetState() & ReminderRequestTest::REMINDER_STATUS_SHOWING) != 0);
172 EXPECT_TRUE((rrc->GetState() & ReminderRequestTest::REMINDER_STATUS_SHOWING) != 0);
184 uint8_t stateBefore = rrc->GetState();
186 EXPECT_EQ(rrc->GetState(), stateBefore);
198 uint8_t stateBefore = rrc->GetState();
200 EXPECT_EQ(rrc->GetState(), stateBefore);
/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/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/powermgr/power_manager/test/fuzztest/power_fuzzer/
Dpower_fuzzer.cpp82 static void GetState(const uint8_t* data) in GetState() function
90 g_powerMgrClient.GetState(); in GetState()
270 GetState(data); in DoSomethingInterestingWithMyAPI()
/base/powermgr/power_manager/services/native/src/
Dpower_state_machine.cpp820 if (GetState() == PowerState::INACTIVE) { in SetDisplaySuspend()
946 .append(GetPowerStateString(GetState())) in DumpInfo()
949 controllerMap_.find(GetState())->second->lastReason_))) in DumpInfo()
951 .append(ToString(controllerMap_.find(GetState())->second->lastTime_)) in DumpInfo()
985 .append(GetPowerStateString(it->second->GetState())) in DumpInfo()
1024 if (!ignoreLock && !owner->CheckRunningLock(GetState())) { in TransitTo()
1033 owner->currentState_ = GetState(); in TransitTo()
1050 auto state = GetState(); in CheckState()
1085 .append(GetPowerStateString(GetState())) in RecordFailure()
/base/powermgr/power_manager/services/native/include/
Dpower_state_machine.h86 PowerState GetState() in GetState() function
139 PowerState GetState() in GetState() function
/base/update/updater/services/include/script/
Dscript_instruction.h40 int32_t GetState() in GetState() function
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestannex_fuzzer/
Dreminderrequestannex_fuzzer.cpp55 reminderRequest.GetState(); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/ans/src/
Dreminder_request.cpp163 ", state=" + GetState(state_) + in Dump()
236 …ANSR_LOGE("onClose, the state of reminder is incorrect, state:%{public}s", GetState(state_).c_str(… in OnClose()
361 …ANSR_LOGW("onSnooze, the state of reminder is incorrect, state: %{public}s", (GetState(state_)).c_… in OnSnooze()
381 …"start failed, the state of reminder is incorrect, state: %{public}s", (GetState(state_)).c_str()); in OnStart()
395 …ANSR_LOGW("onStop, the state of reminder is incorrect, state: %{public}s", (GetState(state_)).c_st… in OnStop()
404 ANSR_LOGW("onTerminate, the state of reminder is %{public}s", (GetState(state_)).c_str()); in OnTerminate()
777 uint8_t ReminderRequest::GetState() const in GetState() function in OHOS::Notification::ReminderRequest
1216 std::string ReminderRequest::GetState(const uint8_t state) const in GetState() function in OHOS::Notification::ReminderRequest
1366 reminderId_, GetState(oldState).c_str(), GetState(state_).c_str(), function.c_str()); in SetState()
1572 values.PutInt(STATE, reminder->GetState()); in AppendValuesBucket()
/base/powermgr/power_manager/interfaces/innerkits/native/include/
Dpower_mgr_client.h93 PowerState GetState();
Dipower_mgr.h88 virtual PowerState GetState() = 0;
/base/powermgr/display_manager/service/native/include/
Dscreen_controller.h51 DisplayState GetState();
/base/account/os_account/services/accountmgr/src/account_iam/
Daccount_iam_callback.cpp105 IAMState state = InnerAccountIAMManager::GetInstance().GetState(userId_); in OnResult()
173 IAMState state = InnerAccountIAMManager::GetInstance().GetState(userId_); in OnResult()
217 IAMState state = InnerAccountIAMManager::GetInstance().GetState(userId_); in OnResult()
/base/account/os_account/services/accountmgr/test/unittest/account_iam_callback_test/
Daccount_iam_callback_test.cpp355 IAMState state = InnerAccountIAMManager::GetInstance().GetState(TEST_USER_ID);
380 IAMState state = InnerAccountIAMManager::GetInstance().GetState(TEST_USER_ID);
452 IAMState state = InnerAccountIAMManager::GetInstance().GetState(TEST_USER_ID);
476 IAMState state = InnerAccountIAMManager::GetInstance().GetState(TEST_USER_ID);
/base/powermgr/power_manager/services/native/test/unittest/src/mock/
Dpower_mock_parcel_test.cpp72 powerMgrClient.GetState();
207 auto state = sptrProxy->GetState();

12