Searched refs:RunningLockState (Results 1 – 5 of 5) sorted by relevance
27 enum class RunningLockState : uint32_t { enum70 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;
280 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 …]
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 …]
37 enum class RunningLockState : int32_t { enum
379 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()