Set correct TAPL rotation expectation

Fixes: 244414110

Test: atest FlickerTests:OpenAppFromLockNotificationCold FlickerTests:OpenAppFromLockNotificationWarm FlickerTests:OpenAppFromLockNotificationWithLockOverlayApp FlickerTests:OpenAppFromNotificationCold FlickerTests:OpenAppFromNotificationCold
Change-Id: I067ec0afdb0bdbff53b0789678c5b3b5da6903a2
This commit is contained in:
Pablo Gamito
2022-09-27 09:22:31 +00:00
parent 8dac9bef07
commit 743d1455d8

View File

@@ -19,6 +19,7 @@ package com.android.server.wm.flicker.launch
import android.platform.test.annotations.FlakyTest
import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.RequiresDevice
import android.view.Surface
import android.view.WindowInsets
import android.view.WindowManager
import androidx.test.uiautomator.By
@@ -74,6 +75,13 @@ open class OpenAppFromNotificationWarm(
.withFullScreenApp(testApp)
.waitForAndVerify()
testApp.postNotification(wmHelper)
if (testSpec.isTablet) {
tapl.setExpectedRotation(testSpec.startRotation)
} else {
tapl.setExpectedRotation(Surface.ROTATION_0)
}
tapl.goHome()
wmHelper.StateSyncBuilder()
.withHomeActivityVisible()