Loading tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt +1 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ abstract class BaseTest @JvmOverloads constructor( testSpec.setIsTablet( WindowManagerStateHelper(instrumentation).currentState.wmState.isTablet ) tapl.setExpectedRotationCheckEnabled(true) } /** Loading tests/FlickerTests/src/com/android/server/wm/flicker/activityembedding/OpenActivityEmbeddingPlaceholderSplit.kt +4 −1 Original line number Diff line number Diff line Loading @@ -49,6 +49,9 @@ class OpenActivityEmbeddingPlaceholderSplit( /** {@inheritDoc} */ override val transition: FlickerBuilder.() -> Unit = { setup { test { tapl.setExpectedRotationCheckEnabled(false) } eachRun { testApp.launchViaIntent(wmHelper) } Loading @@ -58,7 +61,7 @@ class OpenActivityEmbeddingPlaceholderSplit( } teardown { test { device.pressHome() tapl.goHome() testApp.exit(wmHelper) } } Loading tests/FlickerTests/src/com/android/server/wm/flicker/close/CloseAppHomeButtonTest.kt +6 −1 Original line number Diff line number Diff line Loading @@ -70,12 +70,17 @@ class CloseAppHomeButtonTest(testSpec: FlickerTestParameter) : CloseAppTransitio override val transition: FlickerBuilder.() -> Unit get() = { super.transition(this) setup { test { tapl.setExpectedRotationCheckEnabled(false) } } transitions { // Can't use TAPL at the moment because of rotation test issues // When pressing home, TAPL expects the orientation to remain constant // However, when closing a landscape app back to a portrait-only launcher // this causes an error in verifyActiveContainer(); device.pressHome() tapl.goHome() wmHelper.StateSyncBuilder() .withHomeActivityVisible() .waitForAndVerify() Loading tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeAutoOpenWindowToHomeTest.kt +4 −1 Original line number Diff line number Diff line Loading @@ -57,6 +57,9 @@ class CloseImeAutoOpenWindowToHomeTest(testSpec: FlickerTestParameter) : BaseTes /** {@inheritDoc} */ override val transition: FlickerBuilder.() -> Unit = { setup { test { tapl.setExpectedRotationCheckEnabled(false) } eachRun { testApp.launchViaIntent(wmHelper) } Loading @@ -67,7 +70,7 @@ class CloseImeAutoOpenWindowToHomeTest(testSpec: FlickerTestParameter) : BaseTes } } transitions { device.pressHome() tapl.goHome() wmHelper.StateSyncBuilder() .withHomeActivityVisible() .withImeGone() Loading tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeEditorPopupDialogTest.kt +4 −1 Original line number Diff line number Diff line Loading @@ -46,6 +46,9 @@ class CloseImeEditorPopupDialogTest(testSpec: FlickerTestParameter) : BaseTest(t /** {@inheritDoc} */ override val transition: FlickerBuilder.() -> Unit = { setup { test { tapl.setExpectedRotationCheckEnabled(false) } eachRun { imeTestApp.launchViaIntent(wmHelper) imeTestApp.openIME(wmHelper) Loading @@ -59,7 +62,7 @@ class CloseImeEditorPopupDialogTest(testSpec: FlickerTestParameter) : BaseTest(t } teardown { eachRun { device.pressHome() tapl.goHome() wmHelper.StateSyncBuilder() .withHomeActivityVisible() .waitForAndVerify() Loading Loading
tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt +1 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ abstract class BaseTest @JvmOverloads constructor( testSpec.setIsTablet( WindowManagerStateHelper(instrumentation).currentState.wmState.isTablet ) tapl.setExpectedRotationCheckEnabled(true) } /** Loading
tests/FlickerTests/src/com/android/server/wm/flicker/activityembedding/OpenActivityEmbeddingPlaceholderSplit.kt +4 −1 Original line number Diff line number Diff line Loading @@ -49,6 +49,9 @@ class OpenActivityEmbeddingPlaceholderSplit( /** {@inheritDoc} */ override val transition: FlickerBuilder.() -> Unit = { setup { test { tapl.setExpectedRotationCheckEnabled(false) } eachRun { testApp.launchViaIntent(wmHelper) } Loading @@ -58,7 +61,7 @@ class OpenActivityEmbeddingPlaceholderSplit( } teardown { test { device.pressHome() tapl.goHome() testApp.exit(wmHelper) } } Loading
tests/FlickerTests/src/com/android/server/wm/flicker/close/CloseAppHomeButtonTest.kt +6 −1 Original line number Diff line number Diff line Loading @@ -70,12 +70,17 @@ class CloseAppHomeButtonTest(testSpec: FlickerTestParameter) : CloseAppTransitio override val transition: FlickerBuilder.() -> Unit get() = { super.transition(this) setup { test { tapl.setExpectedRotationCheckEnabled(false) } } transitions { // Can't use TAPL at the moment because of rotation test issues // When pressing home, TAPL expects the orientation to remain constant // However, when closing a landscape app back to a portrait-only launcher // this causes an error in verifyActiveContainer(); device.pressHome() tapl.goHome() wmHelper.StateSyncBuilder() .withHomeActivityVisible() .waitForAndVerify() Loading
tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeAutoOpenWindowToHomeTest.kt +4 −1 Original line number Diff line number Diff line Loading @@ -57,6 +57,9 @@ class CloseImeAutoOpenWindowToHomeTest(testSpec: FlickerTestParameter) : BaseTes /** {@inheritDoc} */ override val transition: FlickerBuilder.() -> Unit = { setup { test { tapl.setExpectedRotationCheckEnabled(false) } eachRun { testApp.launchViaIntent(wmHelper) } Loading @@ -67,7 +70,7 @@ class CloseImeAutoOpenWindowToHomeTest(testSpec: FlickerTestParameter) : BaseTes } } transitions { device.pressHome() tapl.goHome() wmHelper.StateSyncBuilder() .withHomeActivityVisible() .withImeGone() Loading
tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeEditorPopupDialogTest.kt +4 −1 Original line number Diff line number Diff line Loading @@ -46,6 +46,9 @@ class CloseImeEditorPopupDialogTest(testSpec: FlickerTestParameter) : BaseTest(t /** {@inheritDoc} */ override val transition: FlickerBuilder.() -> Unit = { setup { test { tapl.setExpectedRotationCheckEnabled(false) } eachRun { imeTestApp.launchViaIntent(wmHelper) imeTestApp.openIME(wmHelper) Loading @@ -59,7 +62,7 @@ class CloseImeEditorPopupDialogTest(testSpec: FlickerTestParameter) : BaseTest(t } teardown { eachRun { device.pressHome() tapl.goHome() wmHelper.StateSyncBuilder() .withHomeActivityVisible() .waitForAndVerify() Loading