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

Commit e27ec2f0 authored by Massimo Carli's avatar Massimo Carli Committed by Android (Google) Code Review
Browse files

Merge "[33/n] Consider IME test only for Legacy Letterbox Surfaces" into main

parents 1770a69a fbc62587
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@ import androidx.test.filters.RequiresDevice
import com.android.server.wm.flicker.BaseTest
import com.android.server.wm.flicker.helpers.ImeShownOnAppStartHelper
import com.android.server.wm.flicker.testapp.ActivityOptions.Ime.Default.ACTION_TOGGLE_ORIENTATION
import com.android.window.flags.Flags
import org.junit.Assume
import org.junit.FixMethodOrder
import org.junit.Test
import org.junit.runner.RunWith
@@ -93,6 +95,8 @@ class OpenImeWindowToFixedPortraitAppTest(flicker: LegacyFlickerTest) : BaseTest
    @Presubmit
    @Test
    fun appWindowWithLetterboxCoversExactlyOnScreen() {
        // TODO(b/409043134): Remove assumption when Shell handles setRequestedOrientation().
        Assume.assumeFalse(Flags.appCompatRefactoring())
        val displayBounds = WindowUtils.getDisplayBounds(flicker.scenario.startRotation)
        flicker.assertLayersEnd {
            this.visibleRegion(testApp.or(ComponentNameMatcher.LETTERBOX))