summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Eghosa Ewansiha-Vlachavas <eevlachavas@google.com> 2024-09-04 15:35:07 +0000
committer Eghosa Ewansiha-Vlachavas <eevlachavas@google.com> 2024-09-04 16:53:28 +0000
commit24e2e859e0a8dfb59df1fc5f2cecd0c0bf21a37e (patch)
tree65d45182ca04a602734121a37608fc292855c6c3
parenta2f3b68393ac34dbec0845ba81e119746572d04f (diff)
[1/n] Fix initial bounds flicker test
The initial bounds for desktop windowing are always positioned as if the pinned taskbar is enabled regardless of what taskbar mode is actually being used. Update flicker test setup to always used pinned taskbar. Add display orientation rule to force device to run in desired orientation. Flag: NONE(bug fix) Fix: 358363550 Fix: 364610475 Test: atest EnterDesktopWithDragLandscape Test: atest EnterDesktopWithDragPortrait Change-Id: Ied6a8b50a3e1aa13fe136650d0861ca87def4976
-rw-r--r--libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/EnterDesktopWithDrag.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/EnterDesktopWithDrag.kt b/libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/EnterDesktopWithDrag.kt
index 5f759e8ee682..f4d641411114 100644
--- a/libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/EnterDesktopWithDrag.kt
+++ b/libs/WindowManager/Shell/tests/e2e/desktopmode/scenarios/src/com/android/wm/shell/scenarios/EnterDesktopWithDrag.kt
@@ -19,6 +19,7 @@ package com.android.wm.shell.scenarios
import android.platform.test.annotations.Postsubmit
import android.tools.NavBar
import android.tools.Rotation
+import android.tools.flicker.rules.ChangeDisplayOrientationRule
import com.android.window.flags.Flags
import com.android.wm.shell.Utils
import org.junit.After
@@ -46,6 +47,8 @@ constructor(
Assume.assumeTrue(Flags.enableDesktopWindowingMode() && tapl.isTablet)
tapl.setEnableRotation(true)
tapl.setExpectedRotation(rotation.value)
+ ChangeDisplayOrientationRule.setRotation(rotation)
+ tapl.enableTransientTaskbar(false)
}
@Test