Home
last modified time | relevance | path

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

/base/powermgr/power_manager/services/native/include/
Drunning_lock_inner.h27 enum class RunningLockState : uint32_t { enum
70 void SetState(RunningLockState state) in SetState()
74 RunningLockState GetState() const in GetState()
80 return state_ == RunningLockState::RUNNINGLOCK_STATE_PROXIED || in IsProxied()
81 state_ == RunningLockState::RUNNINGLOCK_STATE_UNPROXIED_RESTORE; in IsProxied()
99 RunningLockState state_ = RunningLockState::RUNNINGLOCK_STATE_DISABLE;
/base/powermgr/power_manager/services/native/src/
Drunning_lock_mgr.cpp280 if (lockInner->GetState() == RunningLockState::RUNNINGLOCK_STATE_ENABLE) { in Lock()
289 lockInner->SetState(RunningLockState::RUNNINGLOCK_STATE_ENABLE); in Lock()
321 if (lockInner->GetState() == RunningLockState::RUNNINGLOCK_STATE_DISABLE) { in UnLock()
333 lockInner->SetState(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()
523 lockInner->SetState(RunningLockState::RUNNINGLOCK_STATE_DISABLE); in LockInnerByProxy()
524 if (lastState == RunningLockState::RUNNINGLOCK_STATE_UNPROXIED_RESTORE) { in LockInnerByProxy()
[all …]
/base/powermgr/power_manager/test/unittest/src/
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 …]
/base/powermgr/battery_statistics/utils/native/include/
Dstats_types.h37 enum class RunningLockState : int32_t { enum
/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_listener.cpp379 RunningLockState lockState = RunningLockState(stoi(root["STATE"].asString())); in ProcessWakelockEvent()
382 case RunningLockState::RUNNINGLOCK_STATE_DISABLE: { in ProcessWakelockEvent()
387 case RunningLockState::RUNNINGLOCK_STATE_ENABLE: { in ProcessWakelockEvent()
392 case RunningLockState::RUNNINGLOCK_STATE_PROXIED: in ProcessWakelockEvent()
393 case RunningLockState::RUNNINGLOCK_STATE_UNPROXIED_RESTORE: { in ProcessWakelockEvent()