Loading libs/WindowManager/Shell/src/com/android/wm/shell/compatui/letterbox/LetterboxTransitionObserver.kt +6 −5 Original line number Diff line number Diff line Loading @@ -98,13 +98,14 @@ class LetterboxTransitionObserver( taskBounds, activityBounds ) } } else { updateLetterboxSurfaceVisibility( key, startTransaction, isTopActivityLetterboxed visible = false ) } } dump() } } Loading libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/letterbox/LetterboxTransitionObserverTest.kt +3 −2 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ class LetterboxTransitionObserverTest : ShellTestCase() { validateOutput { r.creationEventDetected(expected = true) r.configureStrategyInvoked(expected = true) r.visibilityEventDetected(expected = true, visible = true) r.visibilityEventDetected(expected = false) r.destroyEventDetected(expected = false) r.updateSurfaceBoundsEventDetected( expected = true, Loading Loading @@ -264,6 +264,7 @@ class LetterboxTransitionObserverTest : ShellTestCase() { any<WindowContainerToken>() ) // Visible param is used only if expected is true. fun visibilityEventDetected( expected: Boolean, visible: Boolean = true, Loading @@ -272,7 +273,7 @@ class LetterboxTransitionObserverTest : ShellTestCase() { ) = verify(letterboxController, expected.asMode()).updateLetterboxSurfaceVisibility( eq(LetterboxKey(displayId, taskId)), any<SurfaceControl.Transaction>(), eq(visible) if (expected) eq(visible) else any() ) fun destroyEventDetected( Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/compatui/letterbox/LetterboxTransitionObserver.kt +6 −5 Original line number Diff line number Diff line Loading @@ -98,13 +98,14 @@ class LetterboxTransitionObserver( taskBounds, activityBounds ) } } else { updateLetterboxSurfaceVisibility( key, startTransaction, isTopActivityLetterboxed visible = false ) } } dump() } } Loading
libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/letterbox/LetterboxTransitionObserverTest.kt +3 −2 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ class LetterboxTransitionObserverTest : ShellTestCase() { validateOutput { r.creationEventDetected(expected = true) r.configureStrategyInvoked(expected = true) r.visibilityEventDetected(expected = true, visible = true) r.visibilityEventDetected(expected = false) r.destroyEventDetected(expected = false) r.updateSurfaceBoundsEventDetected( expected = true, Loading Loading @@ -264,6 +264,7 @@ class LetterboxTransitionObserverTest : ShellTestCase() { any<WindowContainerToken>() ) // Visible param is used only if expected is true. fun visibilityEventDetected( expected: Boolean, visible: Boolean = true, Loading @@ -272,7 +273,7 @@ class LetterboxTransitionObserverTest : ShellTestCase() { ) = verify(letterboxController, expected.asMode()).updateLetterboxSurfaceVisibility( eq(LetterboxKey(displayId, taskId)), any<SurfaceControl.Transaction>(), eq(visible) if (expected) eq(visible) else any() ) fun destroyEventDetected( Loading