Loading core/java/android/window/flags/windowing_frontend.aconfig +4 −1 Original line number Diff line number Diff line Loading @@ -230,11 +230,14 @@ flag { } flag { name: "ensure_keyguard_does_transition_starting" name: "ensure_keyguard_does_transition_starting_bug_fix" namespace: "windowing_frontend" description: "Ensure that keyguard is the one starting transitions, instead of delegating to Core" bug: "364930619" is_fixed_read_only: true metadata { purpose: PURPOSE_BUGFIX } } flag { Loading libs/WindowManager/Shell/src/com/android/wm/shell/keyguard/KeyguardTransitionHandler.java +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ public class KeyguardTransitionHandler implements Transitions.TransitionHandler, KeyguardChangeListener, TaskStackListenerCallback { private static final boolean ENABLE_NEW_KEYGUARD_SHELL_TRANSITIONS = Flags.ensureKeyguardDoesTransitionStarting(); Flags.ensureKeyguardDoesTransitionStartingBugFix(); private static final String TAG = "KeyguardTransition"; Loading packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/binder/WindowManagerLockscreenVisibilityManagerTest.kt +13 −13 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testLockscreenVisible_andAodVisible_without_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -113,7 +113,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testLockscreenVisible_andAodVisible_with_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -126,7 +126,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testGoingAway_whenLockscreenVisible_thenSurfaceMadeVisible_without_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -145,7 +145,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testGoingAway_whenLockscreenVisible_thenSurfaceMadeVisible_with_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -164,7 +164,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testSurfaceVisible_whenLockscreenNotShowing_doesNotTriggerGoingAway_without_keyguard_shell_transitions() { underTest.setLockscreenShown(false) underTest.setAodVisible(false) Loading @@ -180,7 +180,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testSurfaceVisible_whenLockscreenNotShowing_doesNotTriggerGoingAway_with_keyguard_shell_transitions() { underTest.setLockscreenShown(false) underTest.setAodVisible(false) Loading @@ -196,7 +196,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testAodVisible_noLockscreenShownCallYet_doesNotShowLockscreenUntilLater_without_keyguard_shell_transitions() { underTest.setAodVisible(false) uiBgExecutor.runAllReady() Loading @@ -209,7 +209,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testAodVisible_noLockscreenShownCallYet_doesNotShowLockscreenUntilLater_with_keyguard_shell_transitions() { underTest.setAodVisible(false) uiBgExecutor.runAllReady() Loading @@ -222,7 +222,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun setSurfaceBehindVisibility_goesAwayFirst_andIgnoresSecondCall_without_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -236,7 +236,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun setSurfaceBehindVisibility_goesAwayFirst_andIgnoresSecondCall_with_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -251,7 +251,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun setSurfaceBehindVisibility_falseSetsLockscreenVisibility_without_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -267,7 +267,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun setSurfaceBehindVisibility_falseSetsLockscreenVisibility_with_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading Loading @@ -309,7 +309,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun lockscreenEventuallyShown_ifReshown_afterGoingAwayExecutionDelayed() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +1 −1 Original line number Diff line number Diff line Loading @@ -241,7 +241,7 @@ public class KeyguardViewMediator implements CoreStartable, StatusBarStateController.StateListener { private static final boolean ENABLE_NEW_KEYGUARD_SHELL_TRANSITIONS = Flags.ensureKeyguardDoesTransitionStarting(); Flags.ensureKeyguardDoesTransitionStartingBugFix(); public static final int KEYGUARD_DISPLAY_TIMEOUT_DELAY_DEFAULT = 30000; private static final long KEYGUARD_DONE_PENDING_TIMEOUT_MS = 3000; Loading packages/SystemUI/src/com/android/systemui/keyguard/WindowManagerLockscreenVisibilityManager.kt +1 −1 Original line number Diff line number Diff line Loading @@ -124,7 +124,7 @@ constructor( private var goingAwayRemoteAnimationFinishedCallback: IRemoteAnimationFinishedCallback? = null private val enableNewKeyguardShellTransitions: Boolean = Flags.ensureKeyguardDoesTransitionStarting() Flags.ensureKeyguardDoesTransitionStartingBugFix() /** * Set the visibility of the surface behind the keyguard, making the appropriate calls to Window Loading Loading
core/java/android/window/flags/windowing_frontend.aconfig +4 −1 Original line number Diff line number Diff line Loading @@ -230,11 +230,14 @@ flag { } flag { name: "ensure_keyguard_does_transition_starting" name: "ensure_keyguard_does_transition_starting_bug_fix" namespace: "windowing_frontend" description: "Ensure that keyguard is the one starting transitions, instead of delegating to Core" bug: "364930619" is_fixed_read_only: true metadata { purpose: PURPOSE_BUGFIX } } flag { Loading
libs/WindowManager/Shell/src/com/android/wm/shell/keyguard/KeyguardTransitionHandler.java +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ public class KeyguardTransitionHandler implements Transitions.TransitionHandler, KeyguardChangeListener, TaskStackListenerCallback { private static final boolean ENABLE_NEW_KEYGUARD_SHELL_TRANSITIONS = Flags.ensureKeyguardDoesTransitionStarting(); Flags.ensureKeyguardDoesTransitionStartingBugFix(); private static final String TAG = "KeyguardTransition"; Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/binder/WindowManagerLockscreenVisibilityManagerTest.kt +13 −13 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testLockscreenVisible_andAodVisible_without_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -113,7 +113,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testLockscreenVisible_andAodVisible_with_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -126,7 +126,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testGoingAway_whenLockscreenVisible_thenSurfaceMadeVisible_without_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -145,7 +145,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testGoingAway_whenLockscreenVisible_thenSurfaceMadeVisible_with_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -164,7 +164,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testSurfaceVisible_whenLockscreenNotShowing_doesNotTriggerGoingAway_without_keyguard_shell_transitions() { underTest.setLockscreenShown(false) underTest.setAodVisible(false) Loading @@ -180,7 +180,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testSurfaceVisible_whenLockscreenNotShowing_doesNotTriggerGoingAway_with_keyguard_shell_transitions() { underTest.setLockscreenShown(false) underTest.setAodVisible(false) Loading @@ -196,7 +196,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testAodVisible_noLockscreenShownCallYet_doesNotShowLockscreenUntilLater_without_keyguard_shell_transitions() { underTest.setAodVisible(false) uiBgExecutor.runAllReady() Loading @@ -209,7 +209,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun testAodVisible_noLockscreenShownCallYet_doesNotShowLockscreenUntilLater_with_keyguard_shell_transitions() { underTest.setAodVisible(false) uiBgExecutor.runAllReady() Loading @@ -222,7 +222,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun setSurfaceBehindVisibility_goesAwayFirst_andIgnoresSecondCall_without_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -236,7 +236,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun setSurfaceBehindVisibility_goesAwayFirst_andIgnoresSecondCall_with_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -251,7 +251,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun setSurfaceBehindVisibility_falseSetsLockscreenVisibility_without_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading @@ -267,7 +267,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun setSurfaceBehindVisibility_falseSetsLockscreenVisibility_with_keyguard_shell_transitions() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading Loading @@ -309,7 +309,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() { } @Test @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING) @RequiresFlagsDisabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING_BUG_FIX) fun lockscreenEventuallyShown_ifReshown_afterGoingAwayExecutionDelayed() { underTest.setLockscreenShown(true) uiBgExecutor.runAllReady() Loading
packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +1 −1 Original line number Diff line number Diff line Loading @@ -241,7 +241,7 @@ public class KeyguardViewMediator implements CoreStartable, StatusBarStateController.StateListener { private static final boolean ENABLE_NEW_KEYGUARD_SHELL_TRANSITIONS = Flags.ensureKeyguardDoesTransitionStarting(); Flags.ensureKeyguardDoesTransitionStartingBugFix(); public static final int KEYGUARD_DISPLAY_TIMEOUT_DELAY_DEFAULT = 30000; private static final long KEYGUARD_DONE_PENDING_TIMEOUT_MS = 3000; Loading
packages/SystemUI/src/com/android/systemui/keyguard/WindowManagerLockscreenVisibilityManager.kt +1 −1 Original line number Diff line number Diff line Loading @@ -124,7 +124,7 @@ constructor( private var goingAwayRemoteAnimationFinishedCallback: IRemoteAnimationFinishedCallback? = null private val enableNewKeyguardShellTransitions: Boolean = Flags.ensureKeyguardDoesTransitionStarting() Flags.ensureKeyguardDoesTransitionStartingBugFix() /** * Set the visibility of the surface behind the keyguard, making the appropriate calls to Window Loading