Loading packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/FromGoneTransitionInteractorTest.kt→packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/FromGoneTransitionInteractorTest.kt +0 −0 File moved. View file packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/FromGoneTransitionInteractor.kt +12 −13 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ constructor( if (SceneContainerFlag.isEnabled) return listenForGoneToAodOrDozing() listenForGoneToDreaming() listenForGoneToLockscreenOrHub() listenForGoneToLockscreenOrHubOrOccluded() listenForGoneToOccluded() listenForGoneToDreamingLockscreenHosted() } Loading @@ -89,11 +89,8 @@ constructor( */ private fun listenForGoneToOccluded() { scope.launch("$TAG#listenForGoneToOccluded") { keyguardInteractor.showDismissibleKeyguard .filterRelevantKeyguardState() .sample(keyguardInteractor.isKeyguardOccluded, ::Pair) .collect { (_, isKeyguardOccluded) -> if (isKeyguardOccluded) { keyguardInteractor.showDismissibleKeyguard.filterRelevantKeyguardState().collect { if (keyguardInteractor.isKeyguardOccluded.value) { startTransitionTo( KeyguardState.OCCLUDED, ownerReason = "Dismissible keyguard with occlusion" Loading @@ -104,7 +101,7 @@ constructor( } // Primarily for when the user chooses to lock down the device private fun listenForGoneToLockscreenOrHub() { private fun listenForGoneToLockscreenOrHubOrOccluded() { if (KeyguardWmStateRefactor.isEnabled) { scope.launch("$TAG#listenForGoneToLockscreenOrHub") { biometricSettingsRepository.isCurrentUserInLockdown Loading Loading @@ -137,7 +134,7 @@ constructor( } } } else { scope.launch("$TAG#listenForGoneToLockscreenOrHub") { scope.launch("$TAG#listenForGoneToLockscreenOrHubOrOccluded") { keyguardInteractor.isKeyguardShowing .filterRelevantKeyguardStateAnd { isKeyguardShowing -> isKeyguardShowing } .sample(communalSceneInteractor.isIdleOnCommunalNotEditMode, ::Pair) Loading @@ -145,6 +142,8 @@ constructor( val to = if (isIdleOnCommunal) { KeyguardState.GLANCEABLE_HUB } else if (keyguardInteractor.isKeyguardOccluded.value) { KeyguardState.OCCLUDED } else { KeyguardState.LOCKSCREEN } Loading Loading
packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/FromGoneTransitionInteractorTest.kt→packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/FromGoneTransitionInteractorTest.kt +0 −0 File moved. View file
packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/FromGoneTransitionInteractor.kt +12 −13 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ constructor( if (SceneContainerFlag.isEnabled) return listenForGoneToAodOrDozing() listenForGoneToDreaming() listenForGoneToLockscreenOrHub() listenForGoneToLockscreenOrHubOrOccluded() listenForGoneToOccluded() listenForGoneToDreamingLockscreenHosted() } Loading @@ -89,11 +89,8 @@ constructor( */ private fun listenForGoneToOccluded() { scope.launch("$TAG#listenForGoneToOccluded") { keyguardInteractor.showDismissibleKeyguard .filterRelevantKeyguardState() .sample(keyguardInteractor.isKeyguardOccluded, ::Pair) .collect { (_, isKeyguardOccluded) -> if (isKeyguardOccluded) { keyguardInteractor.showDismissibleKeyguard.filterRelevantKeyguardState().collect { if (keyguardInteractor.isKeyguardOccluded.value) { startTransitionTo( KeyguardState.OCCLUDED, ownerReason = "Dismissible keyguard with occlusion" Loading @@ -104,7 +101,7 @@ constructor( } // Primarily for when the user chooses to lock down the device private fun listenForGoneToLockscreenOrHub() { private fun listenForGoneToLockscreenOrHubOrOccluded() { if (KeyguardWmStateRefactor.isEnabled) { scope.launch("$TAG#listenForGoneToLockscreenOrHub") { biometricSettingsRepository.isCurrentUserInLockdown Loading Loading @@ -137,7 +134,7 @@ constructor( } } } else { scope.launch("$TAG#listenForGoneToLockscreenOrHub") { scope.launch("$TAG#listenForGoneToLockscreenOrHubOrOccluded") { keyguardInteractor.isKeyguardShowing .filterRelevantKeyguardStateAnd { isKeyguardShowing -> isKeyguardShowing } .sample(communalSceneInteractor.isIdleOnCommunalNotEditMode, ::Pair) Loading @@ -145,6 +142,8 @@ constructor( val to = if (isIdleOnCommunal) { KeyguardState.GLANCEABLE_HUB } else if (keyguardInteractor.isKeyguardOccluded.value) { KeyguardState.OCCLUDED } else { KeyguardState.LOCKSCREEN } Loading