Loading packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/binder/WindowManagerLockscreenVisibilityManagerTest.kt +6 −2 Original line number Diff line number Diff line Loading @@ -266,12 +266,16 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) fun setSurfaceBehindVisibility_falseSetsLockscreenVisibility_with_keyguard_shell_transitions() { // Show the surface behind, then hide it. underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() verify(keyguardTransitions).startKeyguardTransition(eq(true), any()) // Show the surface behind, then hide it. underTest.setSurfaceBehindVisibility(true) uiBgExecutor.runAllReady() underTest.setSurfaceBehindVisibility(false) uiBgExecutor.runAllReady() verify(keyguardTransitions).startKeyguardTransition(eq(true), any()) verify(keyguardTransitions, times(2)).startKeyguardTransition(eq(true), any()) } @Test Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/binder/WindowManagerLockscreenVisibilityManagerTest.kt +6 −2 Original line number Diff line number Diff line Loading @@ -266,12 +266,16 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) fun setSurfaceBehindVisibility_falseSetsLockscreenVisibility_with_keyguard_shell_transitions() { // Show the surface behind, then hide it. underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() verify(keyguardTransitions).startKeyguardTransition(eq(true), any()) // Show the surface behind, then hide it. underTest.setSurfaceBehindVisibility(true) uiBgExecutor.runAllReady() underTest.setSurfaceBehindVisibility(false) uiBgExecutor.runAllReady() verify(keyguardTransitions).startKeyguardTransition(eq(true), any()) verify(keyguardTransitions, times(2)).startKeyguardTransition(eq(true), any()) } @Test Loading