From 8973dcef3df034c49f4d2b0077dfa2f524a08c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Ciche=C5=84ski?= Date: Tue, 4 Apr 2023 04:58:17 +0000 Subject: [PATCH] Reduce the size increase for the ExpandPipOnPinchOpenTest Previously the test would resize above the max allowed size, which in turn would make the auto resize logic bring it back to maximum allowed size. In such cases the PiP would increase at first, but then would shrink to fit on the screen, causing the test to fail. Change-Id: Ieb96d4ba2b607a3e2b9821f13e909acaaf6d31c3 Test: atest WMShellFlickerTests:ExpandPipOnPinchOpenTest Bug: 275292932 --- .../android/wm/shell/flicker/pip/ExpandPipOnPinchOpenTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ExpandPipOnPinchOpenTest.kt b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ExpandPipOnPinchOpenTest.kt index 0b73aac027972..d860e00fbfff4 100644 --- a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ExpandPipOnPinchOpenTest.kt +++ b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ExpandPipOnPinchOpenTest.kt @@ -36,7 +36,7 @@ import org.junit.runners.Parameterized @FixMethodOrder(MethodSorters.NAME_ASCENDING) open class ExpandPipOnPinchOpenTest(flicker: FlickerTest) : PipTransition(flicker) { override val transition: FlickerBuilder.() -> Unit - get() = buildTransition { transitions { pipApp.pinchOpenPipWindow(wmHelper, 0.4f, 30) } } + get() = buildTransition { transitions { pipApp.pinchOpenPipWindow(wmHelper, 0.25f, 30) } } /** Checks that the visible region area of [pipApp] always increases during the animation. */ @Presubmit