Home
last modified time | relevance | path

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

/ohos5.0/base/powermgr/power_manager/services/native/src/runninglock/
H A Drunning_lock_inner.h27 enum class RunningLockState : uint32_t { enum
81 void SetState(RunningLockState state) in SetState()
85 RunningLockState GetState() const in GetState()
91 return state_ == RunningLockState::RUNNINGLOCK_STATE_PROXIED || in IsProxied()
92 state_ == RunningLockState::RUNNINGLOCK_STATE_UNPROXIED_RESTORE; in IsProxied()
106 RunningLockState state_ = RunningLockState::RUNNINGLOCK_STATE_DISABLE;
H A Drunning_lock_mgr.cpp460 if (lockInner->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE) { in Lock()
479 lockInner->SetState(RunningLockState::RUNNINGLOCK_STATE_ENABLE); in Lock()
498 lockInner->SetState(RunningLockState::RUNNINGLOCK_STATE_DISABLE); in UnLock()
522 lockInner->SetState(RunningLockState::RUNNINGLOCK_STATE_DISABLE); in UnLock()
667 RunningLockState lastState = lockInner->GetState(); in LockInnerByProxy()
668 if (lastState == RunningLockState::RUNNINGLOCK_STATE_PROXIED) { in LockInnerByProxy()
669 lockInner->SetState(RunningLockState::RUNNINGLOCK_STATE_DISABLE); in LockInnerByProxy()
677 RunningLockState lastState = lockInner->GetState(); in UnlockInnerByProxy()
678 if (lastState == RunningLockState::RUNNINGLOCK_STATE_DISABLE) { in UnlockInnerByProxy()
682 if (lastState == RunningLockState::RUNNINGLOCK_STATE_PROXIED) { in UnlockInnerByProxy()
[all …]
/ohos5.0/base/powermgr/power_manager/test/unittest/src/
H A Drunning_lock_mock_test.cpp644 EXPECT_TRUE(audioLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE);
645 EXPECT_TRUE(sportLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE);
656 EXPECT_TRUE(audioLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE);
657 EXPECT_TRUE(sportLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE);
704 EXPECT_TRUE(naviLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE);
709 EXPECT_TRUE(naviLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_PROXIED);
714 EXPECT_TRUE(naviLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE);
759 EXPECT_TRUE(taskLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE);
764 EXPECT_TRUE(taskLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_PROXIED);
769 EXPECT_TRUE(taskLock->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE);
[all …]
/ohos5.0/drivers/peripheral/power/interfaces/hdi_service/src/
H A Drunning_lock_counter.cpp45 …NotifyHiView(info, ChangedType::NOTIFY_RUNNINGLOCK_ADD, RunningLockState::RUNNINGLOCK_STATE_ENABLE… in Increase()
61 …NotifyHiView(info, ChangedType::NOTIFY_RUNNINGLOCK_REMOVE, RunningLockState::RUNNINGLOCK_STATE_DIS… in Decrease()
70 …kCounter::NotifyHiView(const RunningLockInfo &info, ChangedType changeType, RunningLockState state) in NotifyHiView()
H A Drunning_lock_counter.h51 enum class RunningLockState : uint32_t { enum
55 void NotifyHiView(const RunningLockInfo &info, ChangedType changeType, RunningLockState state);
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/
H A Dhisysevent_observer.cpp190 RunningLockState lockState = RunningLockState(root.at("STATE").get<std::int32_t>()); in ProcessRunningLockEvent()
193 case RunningLockState::RUNNINGLOCK_STATE_DISABLE: { in ProcessRunningLockEvent()
198 case RunningLockState::RUNNINGLOCK_STATE_ENABLE: { in ProcessRunningLockEvent()
203 case RunningLockState::RUNNINGLOCK_STATE_PROXIED: in ProcessRunningLockEvent()
204 case RunningLockState::RUNNINGLOCK_STATE_UNPROXIED_RESTORE: { in ProcessRunningLockEvent()
/ohos5.0/base/powermgr/battery_statistics/services/native/src/
H A Dbattery_stats_listener.cpp400 RunningLockState lockState = RunningLockState(root["STATE"].asInt()); in ProcessWakelockEvent()
403 case RunningLockState::RUNNINGLOCK_STATE_DISABLE: { in ProcessWakelockEvent()
408 case RunningLockState::RUNNINGLOCK_STATE_ENABLE: { in ProcessWakelockEvent()
413 case RunningLockState::RUNNINGLOCK_STATE_PROXIED: in ProcessWakelockEvent()
414 case RunningLockState::RUNNINGLOCK_STATE_UNPROXIED_RESTORE: { in ProcessWakelockEvent()
/ohos5.0/base/powermgr/battery_statistics/utils/native/include/
H A Dstats_types.h37 enum class RunningLockState : int32_t { enum
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/include/
H A Dhisysevent_observer.h65 enum class RunningLockState : int32_t { enum
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/test/unittest/
H A Dobserver_event_test.cpp194 sysEvent["STATE"] = RunningLockState::RUNNINGLOCK_STATE_DISABLE;
199 sysEvent["STATE"] = RunningLockState::RUNNINGLOCK_STATE_ENABLE;
204 sysEvent["STATE"] = RunningLockState::RUNNINGLOCK_STATE_PROXIED;