Merge "Set correct TAPL rotation expectation"

This commit is contained in:
TreeHugger Robot
2022-09-27 14:16:54 +00:00
committed by Android (Google) Code Review

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()