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

Commit 08f42330 authored by Tony Wickham's avatar Tony Wickham
Browse files

Show Taskbar before accessing its icons

Test: v2/android-platinum/suite/test-mapping-platinum
Fixes: 309158105
Flag: None

Change-Id: Iac80ea566f722e26e4ac0b15fbb4a0c667d6015b
parent f6fe3429
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -57,10 +57,13 @@ constructor(val rotation: Rotation = Rotation.ROTATION_0) {

        tapl.setEnableRotation(true)
        tapl.setExpectedRotation(rotation.value)

        tapl.enableBlockTimeout(true)
    }

    @Test
    open fun enterSplitScreenByDragFromAllApps() {
        tapl.showTaskbarIfHidden()
        tapl.launchedAppState.taskbar
            .openAllApps()
            .getAppIcon(secondaryApp.appName)
@@ -72,5 +75,6 @@ constructor(val rotation: Rotation = Rotation.ROTATION_0) {
    fun teardown() {
        primaryApp.exit(wmHelper)
        secondaryApp.exit(wmHelper)
        tapl.enableBlockTimeout(false)
    }
}
+4 −0
Original line number Diff line number Diff line
@@ -57,10 +57,13 @@ constructor(val rotation: Rotation = Rotation.ROTATION_0) {

        tapl.setEnableRotation(true)
        tapl.setExpectedRotation(rotation.value)

        tapl.enableBlockTimeout(true)
    }

    @Test
    open fun enterSplitScreenByDragFromShortcut() {
        tapl.showTaskbarIfHidden()
        tapl.launchedAppState.taskbar
            .getAppIcon(secondaryApp.appName)
            .openDeepShortcutMenu()
@@ -81,5 +84,6 @@ constructor(val rotation: Rotation = Rotation.ROTATION_0) {
    fun teardwon() {
        primaryApp.exit(wmHelper)
        secondaryApp.exit(wmHelper)
        tapl.enableBlockTimeout(false)
    }
}
+4 −0
Original line number Diff line number Diff line
@@ -52,6 +52,8 @@ constructor(val rotation: Rotation = Rotation.ROTATION_0) {
        tapl.setEnableRotation(true)
        tapl.setExpectedRotation(rotation.value)

        tapl.enableBlockTimeout(true)

        tapl.goHome()
        SplitScreenUtils.createShortcutOnHotseatIfNotExist(tapl, secondaryApp.appName)
        primaryApp.launchViaIntent(wmHelper)
@@ -59,6 +61,7 @@ constructor(val rotation: Rotation = Rotation.ROTATION_0) {

    @Test
    open fun enterSplitScreenByDragFromTaskbar() {
        tapl.showTaskbarIfHidden()
        tapl.launchedAppState.taskbar
            .getAppIcon(secondaryApp.appName)
            .dragToSplitscreen(secondaryApp.packageName, primaryApp.packageName)
@@ -69,5 +72,6 @@ constructor(val rotation: Rotation = Rotation.ROTATION_0) {
    fun teardown() {
        primaryApp.exit(wmHelper)
        secondaryApp.exit(wmHelper)
        tapl.enableBlockTimeout(false)
    }
}
+8 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.tools.device.flicker.legacy.LegacyFlickerTest
import android.tools.device.flicker.legacy.LegacyFlickerTestFactory
import androidx.test.filters.RequiresDevice
import com.android.wm.shell.flicker.utils.SplitScreenUtils
import org.junit.After
import org.junit.Assume
import org.junit.Before
import org.junit.FixMethodOrder
@@ -42,8 +43,10 @@ abstract class EnterSplitScreenByDragFromAllAppsBenchmark(override val flicker:
            setup {
                tapl.goHome()
                primaryApp.launchViaIntent(wmHelper)
                tapl.enableBlockTimeout(true)
            }
            transitions {
                tapl.showTaskbarIfHidden()
                tapl.launchedAppState.taskbar
                    .openAllApps()
                    .getAppIcon(secondaryApp.appName)
@@ -57,6 +60,11 @@ abstract class EnterSplitScreenByDragFromAllAppsBenchmark(override val flicker:
        Assume.assumeTrue(tapl.isTablet)
    }

    @After
    fun after() {
        tapl.enableBlockTimeout(false)
    }

    companion object {
        @Parameterized.Parameters(name = "{0}")
        @JvmStatic
+8 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.tools.device.flicker.legacy.LegacyFlickerTest
import android.tools.device.flicker.legacy.LegacyFlickerTestFactory
import androidx.test.filters.RequiresDevice
import com.android.wm.shell.flicker.utils.SplitScreenUtils
import org.junit.After
import org.junit.Assume
import org.junit.Before
import org.junit.FixMethodOrder
@@ -42,13 +43,20 @@ abstract class EnterSplitScreenByDragFromShortcutBenchmark(
        Assume.assumeTrue(tapl.isTablet)
    }

    @After
    fun after() {
        tapl.enableBlockTimeout(false)
    }

    protected val thisTransition: FlickerBuilder.() -> Unit = {
        setup {
            tapl.goHome()
            SplitScreenUtils.createShortcutOnHotseatIfNotExist(tapl, secondaryApp.appName)
            primaryApp.launchViaIntent(wmHelper)
            tapl.enableBlockTimeout(true)
        }
        transitions {
            tapl.showTaskbarIfHidden()
            tapl.launchedAppState.taskbar
                .getAppIcon(secondaryApp.appName)
                .openDeepShortcutMenu()
Loading