Merge "Set correct TAPL rotation expectation"
This commit is contained in:
committed by
Android (Google) Code Review
commit
25c8addaf3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user