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

Commit f90c7172 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Set rotation after app launch

Bug: 300065415

Test: atest FlickerServiceTests:com.android.server.wm.flicker.service.quickswitch.flicker.QuickSwitchBetweenTwoAppsForwardGesturalNavLandscape#quickSwitchBetweenTwoAppsForward
Change-Id: I881c4016ac7318348ba8072f18d8b9ed6889ca7b
parent 2ca486fe
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import android.tools.device.flicker.rules.ChangeDisplayOrientationRule

@Ignore("Base Test Class")
abstract class QuickSwitchBetweenTwoAppsForward(val rotation: Rotation = Rotation.ROTATION_0) {
@@ -46,7 +47,9 @@ abstract class QuickSwitchBetweenTwoAppsForward(val rotation: Rotation = Rotatio
        tapl.setExpectedRotation(rotation.value)

        testApp1.launchViaIntent(wmHelper)
        ChangeDisplayOrientationRule.setRotation(rotation)
        testApp2.launchViaIntent(wmHelper)
        ChangeDisplayOrientationRule.setRotation(rotation)
        tapl.launchedAppState.quickSwitchToPreviousApp()
        wmHelper
            .StateSyncBuilder()