From b9bcd616e6247138458b85612f94df2921afb5bb Mon Sep 17 00:00:00 2001 From: Jeff Chang Date: Mon, 26 Jun 2023 05:46:46 +0000 Subject: [PATCH] Attempts fixing DismissSplitScreenByDivider flakiness For some reasons on cf, the position can not dismiss split sometimes after the drag divider bar to exit. This CL drags the divider bar to the edge of display bounds to make sure the split is dismissed always for this test case. Bug: 288106527 Test: atest WMShellFlickerTestsSplitScreen:DismissSplitScreenByDivider Change-Id: Iaf7b31f38603ba8c4f9ab028609342b11b4d07bd --- .../wm/shell/flicker/splitscreen/SplitScreenUtils.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/SplitScreenUtils.kt b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/SplitScreenUtils.kt index 27eaa40ee49b0..f4828f14d5ed3 100644 --- a/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/SplitScreenUtils.kt +++ b/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/SplitScreenUtils.kt @@ -326,14 +326,14 @@ internal object SplitScreenUtils { dividerBar.drag( Point( if (dragToRight) { - displayBounds.width * 4 / 5 + displayBounds.right } else { - displayBounds.width * 1 / 5 + displayBounds.left }, if (dragToBottom) { - displayBounds.height * 4 / 5 + displayBounds.bottom } else { - displayBounds.height * 1 / 5 + displayBounds.top } ) )