Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91281762 authored by Chilun Huang's avatar Chilun Huang
Browse files

Add CUJ for quick switch between two split-pairs

Add CUJ for quick switch between two split-pairs.

Bug: 247095572
Test: atest WMShellFlickerTests:SwitchBetweenSplitPairs
Change-Id: I2771c74fc2b2d321b0b6a04a71b1b6ff6a303038
parent 0b9afd91
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ package com.android.wm.shell.flicker
import com.android.server.wm.traces.common.ComponentNameMatcher

const val SYSTEM_UI_PACKAGE_NAME = "com.android.systemui"
const val LAUNCHER_UI_PACKAGE_NAME = "com.google.android.apps.nexuslauncher"
val APP_PAIR_SPLIT_DIVIDER_COMPONENT = ComponentNameMatcher("", "AppPairSplitDivider#")
val DOCKED_STACK_DIVIDER_COMPONENT = ComponentNameMatcher("", "DockedStackDivider#")
val SPLIT_SCREEN_DIVIDER_COMPONENT = ComponentNameMatcher("", "StageCoordinatorSplitDivider#")
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ class CopyContentInSplit(testSpec: FlickerTestParameter) : SplitScreenBase(testS
    override val transition: FlickerBuilder.() -> Unit
        get() = {
            super.transition(this)
            setup { SplitScreenUtils.enterSplit(wmHelper, tapl, primaryApp, textEditApp) }
            setup { SplitScreenUtils.enterSplit(wmHelper, tapl, device, primaryApp, textEditApp) }
            transitions {
                SplitScreenUtils.copyContentInSplit(
                    instrumentation,
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ class DismissSplitScreenByDivider (testSpec: FlickerTestParameter) : SplitScreen
        get() = {
            super.transition(this)
            setup {
                SplitScreenUtils.enterSplit(wmHelper, tapl, primaryApp, secondaryApp)
                SplitScreenUtils.enterSplit(wmHelper, tapl, device, primaryApp, secondaryApp)
            }
            transitions {
                if (tapl.isTablet) {
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ class DismissSplitScreenByGoHome(
        get() = {
            super.transition(this)
            setup {
                SplitScreenUtils.enterSplit(wmHelper, tapl, primaryApp, secondaryApp)
                SplitScreenUtils.enterSplit(wmHelper, tapl, device, primaryApp, secondaryApp)
            }
            transitions {
                tapl.goHome()
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ class DragDividerToResize(testSpec: FlickerTestParameter) : SplitScreenBase(test
        get() = {
            super.transition(this)
            setup {
                SplitScreenUtils.enterSplit(wmHelper, tapl, primaryApp, secondaryApp)
                SplitScreenUtils.enterSplit(wmHelper, tapl, device, primaryApp, secondaryApp)
            }
            transitions {
                SplitScreenUtils.dragDividerToResizeAndWait(device, wmHelper)
Loading