Loading packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/FromAlternateBouncerTransitionInteractor.kt +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ constructor( listenForAlternateBouncerToGone() listenForAlternateBouncerToLockscreenAodOrDozing() listenForAlternateBouncerToPrimaryBouncer() listenForTransitionToCamera(scope, keyguardInteractor) } private fun listenForAlternateBouncerToLockscreenAodOrDozing() { Loading packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/FromAodTransitionInteractor.kt +1 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ constructor( override fun start() { listenForAodToLockscreenOrOccluded() listenForAodToGone() listenForTransitionToCamera(scope, keyguardInteractor) } private fun listenForAodToLockscreenOrOccluded() { Loading packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/FromDozingTransitionInteractor.kt +1 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ constructor( override fun start() { listenForDozingToLockscreenOrOccluded() listenForDozingToGone() listenForTransitionToCamera(scope, keyguardInteractor) } private fun listenForDozingToLockscreenOrOccluded() { Loading packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/FromDreamingTransitionInteractor.kt +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ constructor( listenForDreamingToOccluded() listenForDreamingToGone() listenForDreamingToDozing() listenForTransitionToCamera(scope, keyguardInteractor) } fun startToLockscreenTransition() { Loading packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/FromLockscreenTransitionInteractor.kt +6 −23 Original line number Diff line number Diff line Loading @@ -63,12 +63,12 @@ constructor( listenForLockscreenToGone() listenForLockscreenToGoneDragging() listenForLockscreenToOccluded() listenForLockscreenToCamera() listenForLockscreenToAodOrDozing() listenForLockscreenToPrimaryBouncer() listenForLockscreenToDreaming() listenForLockscreenToPrimaryBouncerDragging() listenForLockscreenToAlternateBouncer() listenForLockscreenTransitionToCamera() } /** Loading Loading @@ -128,6 +128,10 @@ constructor( } .distinctUntilChanged() private fun listenForLockscreenTransitionToCamera() { listenForTransitionToCamera(scope, keyguardInteractor) } private fun listenForLockscreenToDreaming() { val invalidFromStates = setOf(KeyguardState.AOD, KeyguardState.DOZING) scope.launch { Loading Loading @@ -311,7 +315,7 @@ constructor( keyguardInteractor.isKeyguardOccluded .sample( combine( transitionInteractor.finishedKeyguardState, transitionInteractor.startedKeyguardState, keyguardInteractor.isDreaming, ::Pair ), Loading @@ -325,27 +329,6 @@ constructor( } } /** This signal may come in before the occlusion signal, and can provide a custom transition */ private fun listenForLockscreenToCamera() { scope.launch { keyguardInteractor.onCameraLaunchDetected .sample(transitionInteractor.startedKeyguardTransitionStep, ::Pair) .collect { (_, lastStartedStep) -> // DREAMING/AOD/OFF may trigger on the first power button push, so include this // state in order to cancel and correct the transition if ( lastStartedStep.to == KeyguardState.LOCKSCREEN || lastStartedStep.to == KeyguardState.DREAMING || lastStartedStep.to == KeyguardState.DOZING || lastStartedStep.to == KeyguardState.AOD || lastStartedStep.to == KeyguardState.OFF ) { startTransitionTo(KeyguardState.OCCLUDED) } } } } private fun listenForLockscreenToAodOrDozing() { scope.launch { keyguardInteractor.wakefulnessModel Loading Loading
packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/FromAlternateBouncerTransitionInteractor.kt +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ constructor( listenForAlternateBouncerToGone() listenForAlternateBouncerToLockscreenAodOrDozing() listenForAlternateBouncerToPrimaryBouncer() listenForTransitionToCamera(scope, keyguardInteractor) } private fun listenForAlternateBouncerToLockscreenAodOrDozing() { Loading
packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/FromAodTransitionInteractor.kt +1 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ constructor( override fun start() { listenForAodToLockscreenOrOccluded() listenForAodToGone() listenForTransitionToCamera(scope, keyguardInteractor) } private fun listenForAodToLockscreenOrOccluded() { Loading
packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/FromDozingTransitionInteractor.kt +1 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ constructor( override fun start() { listenForDozingToLockscreenOrOccluded() listenForDozingToGone() listenForTransitionToCamera(scope, keyguardInteractor) } private fun listenForDozingToLockscreenOrOccluded() { Loading
packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/FromDreamingTransitionInteractor.kt +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ constructor( listenForDreamingToOccluded() listenForDreamingToGone() listenForDreamingToDozing() listenForTransitionToCamera(scope, keyguardInteractor) } fun startToLockscreenTransition() { Loading
packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/FromLockscreenTransitionInteractor.kt +6 −23 Original line number Diff line number Diff line Loading @@ -63,12 +63,12 @@ constructor( listenForLockscreenToGone() listenForLockscreenToGoneDragging() listenForLockscreenToOccluded() listenForLockscreenToCamera() listenForLockscreenToAodOrDozing() listenForLockscreenToPrimaryBouncer() listenForLockscreenToDreaming() listenForLockscreenToPrimaryBouncerDragging() listenForLockscreenToAlternateBouncer() listenForLockscreenTransitionToCamera() } /** Loading Loading @@ -128,6 +128,10 @@ constructor( } .distinctUntilChanged() private fun listenForLockscreenTransitionToCamera() { listenForTransitionToCamera(scope, keyguardInteractor) } private fun listenForLockscreenToDreaming() { val invalidFromStates = setOf(KeyguardState.AOD, KeyguardState.DOZING) scope.launch { Loading Loading @@ -311,7 +315,7 @@ constructor( keyguardInteractor.isKeyguardOccluded .sample( combine( transitionInteractor.finishedKeyguardState, transitionInteractor.startedKeyguardState, keyguardInteractor.isDreaming, ::Pair ), Loading @@ -325,27 +329,6 @@ constructor( } } /** This signal may come in before the occlusion signal, and can provide a custom transition */ private fun listenForLockscreenToCamera() { scope.launch { keyguardInteractor.onCameraLaunchDetected .sample(transitionInteractor.startedKeyguardTransitionStep, ::Pair) .collect { (_, lastStartedStep) -> // DREAMING/AOD/OFF may trigger on the first power button push, so include this // state in order to cancel and correct the transition if ( lastStartedStep.to == KeyguardState.LOCKSCREEN || lastStartedStep.to == KeyguardState.DREAMING || lastStartedStep.to == KeyguardState.DOZING || lastStartedStep.to == KeyguardState.AOD || lastStartedStep.to == KeyguardState.OFF ) { startTransitionTo(KeyguardState.OCCLUDED) } } } } private fun listenForLockscreenToAodOrDozing() { scope.launch { keyguardInteractor.wakefulnessModel Loading