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

Commit 748c7f74 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Move all non shell quickswitch tests to presubmit" into tm-dev am: fdbfa751

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17003103

Change-Id: I02f65b1ebc585fbe098106f2af26d47ce8b0e8ec
parents 320029bf fdbfa751
Loading
Loading
Loading
Loading
+12 −13
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package com.android.server.wm.flicker.quickswitch

import android.app.Instrumentation
import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.Presubmit
import android.platform.test.annotations.RequiresDevice
import android.view.Surface
@@ -115,7 +114,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that the transition starts with [testApp2]'s windows filling/covering exactly the
     * entirety of the display.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun startsWithApp2WindowsCoverFullScreen() {
        testSpec.assertWmStart {
@@ -127,7 +126,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that the transition starts with [testApp2]'s layers filling/covering exactly the
     * entirety of the display.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun startsWithApp2LayersCoverFullScreen() {
        testSpec.assertLayersStart {
@@ -150,7 +149,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp1] windows fill the entire screen (i.e. is "fullscreen") at the end of the
     * transition once we have fully quick switched from [testApp2] back to the [testApp1].
     */
    @Postsubmit
    @Presubmit
    @Test
    fun endsWithApp1WindowsCoveringFullScreen() {
        testSpec.assertWmEnd {
@@ -162,7 +161,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp1] layers fill the entire screen (i.e. is "fullscreen") at the end of the
     * transition once we have fully quick switched from [testApp2] back to the [testApp1].
     */
    @Postsubmit
    @Presubmit
    @Test
    fun endsWithApp1LayersCoveringFullScreen() {
        testSpec.assertLayersEnd {
@@ -174,7 +173,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp1] is the top window at the end of the transition once we have fully quick
     * switched from [testApp2] back to the [testApp1].
     */
    @Postsubmit
    @Presubmit
    @Test
    fun endsWithApp1BeingOnTop() {
        testSpec.assertWmEnd {
@@ -186,7 +185,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp1]'s window starts off invisible and becomes visible at some point before
     * the end of the transition and then stays visible until the end of the transition.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun app1WindowBecomesAndStaysVisible() {
        testSpec.assertWm {
@@ -202,7 +201,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp1]'s layer starts off invisible and becomes visible at some point before
     * the end of the transition and then stays visible until the end of the transition.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun app1LayerBecomesAndStaysVisible() {
        testSpec.assertLayers {
@@ -216,7 +215,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp2]'s window starts off visible and becomes invisible at some point before
     * the end of the transition and then stays invisible until the end of the transition.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun app2WindowBecomesAndStaysInvisible() {
        testSpec.assertWm {
@@ -230,7 +229,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp2]'s layer starts off visible and becomes invisible at some point before
     * the end of the transition and then stays invisible until the end of the transition.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun app2LayerBecomesAndStaysInvisible() {
        testSpec.assertLayers {
@@ -245,7 +244,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Ensures that at any point, either [testApp1] or [testApp2]'s windows are at least partially
     * visible.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun app1WindowIsVisibleOnceApp2WindowIsInvisible() {
        testSpec.assertWm {
@@ -265,7 +264,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Ensures that at any point, either [testApp1] or [testApp2]'s windows are at least partially
     * visible.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun app1LayerIsVisibleOnceApp2LayerIsInvisible() {
        testSpec.assertLayers {
@@ -282,7 +281,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
    /**
     * Checks that the navbar window is visible throughout the entire transition.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun navBarWindowIsAlwaysVisible() = testSpec.navBarWindowIsVisible()