Merge "Onboard IME and rotation CUJs into ironwood"
This commit is contained in:
committed by
Android (Google) Code Review
commit
58cbaa06fc
@@ -172,4 +172,17 @@ constructor(
|
||||
open fun visibleWindowsShownMoreThanOneConsecutiveEntry() {
|
||||
testSpec.assertWm { this.visibleWindowsShownMoreThanOneConsecutiveEntry() }
|
||||
}
|
||||
|
||||
open fun cujCompleted() {
|
||||
entireScreenCovered()
|
||||
navBarLayerIsVisibleAtStartAndEnd()
|
||||
navBarWindowIsAlwaysVisible()
|
||||
taskBarLayerIsVisibleAtStartAndEnd()
|
||||
taskBarWindowIsAlwaysVisible()
|
||||
statusBarLayerIsVisibleAtStartAndEnd()
|
||||
statusBarLayerPositionAtStartAndEnd()
|
||||
statusBarWindowIsAlwaysVisible()
|
||||
visibleLayersShownMoreThanOneConsecutiveEntry()
|
||||
visibleWindowsShownMoreThanOneConsecutiveEntry()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"ironwood-postsubmit": [
|
||||
{
|
||||
"name": "FlickerTests",
|
||||
"options": [
|
||||
{
|
||||
"include-annotation": "android.platform.test.annotations.IwTest"
|
||||
},
|
||||
{
|
||||
"exclude-annotation": "org.junit.Ignore"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -17,6 +17,7 @@
|
||||
package com.android.server.wm.flicker.ime
|
||||
|
||||
import android.platform.test.annotations.FlakyTest
|
||||
import android.platform.test.annotations.IwTest
|
||||
import android.platform.test.annotations.Presubmit
|
||||
import androidx.test.filters.RequiresDevice
|
||||
import com.android.server.wm.flicker.BaseTest
|
||||
@@ -101,6 +102,16 @@ class CloseImeWindowToAppTest(testSpec: FlickerTestParameter) : BaseTest(testSpe
|
||||
testSpec.assertWm { this.isAppWindowOnTop(testApp) }
|
||||
}
|
||||
|
||||
@Test
|
||||
@IwTest(focusArea = "ime")
|
||||
override fun cujCompleted() {
|
||||
super.cujCompleted()
|
||||
navBarLayerPositionAtStartAndEnd()
|
||||
imeLayerBecomesInvisible()
|
||||
imeAppLayerIsAlwaysVisible()
|
||||
imeAppWindowIsAlwaysVisible()
|
||||
}
|
||||
|
||||
companion object {
|
||||
@Parameterized.Parameters(name = "{0}")
|
||||
@JvmStatic
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.server.wm.flicker.ime
|
||||
|
||||
import android.platform.test.annotations.IwTest
|
||||
import android.platform.test.annotations.Presubmit
|
||||
import android.view.Surface
|
||||
import android.view.WindowManagerPolicyConstants
|
||||
@@ -100,6 +101,17 @@ class CloseImeWindowToHomeTest(testSpec: FlickerTestParameter) : BaseTest(testSp
|
||||
testSpec.assertLayers { this.isVisible(testApp).then().isInvisible(testApp) }
|
||||
}
|
||||
|
||||
@Test
|
||||
@IwTest(focusArea = "ime")
|
||||
override fun cujCompleted() {
|
||||
super.cujCompleted()
|
||||
navBarLayerPositionAtStartAndEnd()
|
||||
imeLayerBecomesInvisible()
|
||||
imeAppWindowBecomesInvisible()
|
||||
imeWindowBecomesInvisible()
|
||||
imeLayerBecomesInvisible()
|
||||
}
|
||||
|
||||
companion object {
|
||||
@Parameterized.Parameters(name = "{0}")
|
||||
@JvmStatic
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package com.android.server.wm.flicker.ime
|
||||
|
||||
import android.platform.test.annotations.FlakyTest
|
||||
import android.platform.test.annotations.IwTest
|
||||
import android.platform.test.annotations.Presubmit
|
||||
import android.view.Surface
|
||||
import android.view.WindowManagerPolicyConstants
|
||||
@@ -79,6 +80,14 @@ class OpenImeWindowAndCloseTest(testSpec: FlickerTestParameter) : BaseTest(testS
|
||||
super.visibleLayersShownMoreThanOneConsecutiveEntry()
|
||||
}
|
||||
|
||||
@Test
|
||||
@IwTest(focusArea = "ime")
|
||||
override fun cujCompleted() {
|
||||
super.cujCompleted()
|
||||
imeLayerBecomesInvisible()
|
||||
imeWindowBecomesInvisible()
|
||||
}
|
||||
|
||||
companion object {
|
||||
@Parameterized.Parameters(name = "{0}")
|
||||
@JvmStatic
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.server.wm.flicker.ime
|
||||
|
||||
import android.platform.test.annotations.IwTest
|
||||
import android.platform.test.annotations.Presubmit
|
||||
import android.view.Surface
|
||||
import android.view.WindowManagerPolicyConstants
|
||||
@@ -50,6 +51,15 @@ class OpenImeWindowTest(testSpec: FlickerTestParameter) : BaseTest(testSpec) {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
@IwTest(focusArea = "ime")
|
||||
override fun cujCompleted() {
|
||||
super.cujCompleted()
|
||||
imeWindowBecomesVisible()
|
||||
appWindowAlwaysVisibleOnTop()
|
||||
layerAlwaysVisible()
|
||||
}
|
||||
|
||||
@Presubmit @Test fun imeWindowBecomesVisible() = testSpec.imeWindowBecomesVisible()
|
||||
|
||||
@Presubmit
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package com.android.server.wm.flicker.rotation
|
||||
|
||||
import android.platform.test.annotations.FlakyTest
|
||||
import android.platform.test.annotations.IwTest
|
||||
import android.platform.test.annotations.Presubmit
|
||||
import androidx.test.filters.RequiresDevice
|
||||
import com.android.server.wm.flicker.FlickerParametersRunnerFactory
|
||||
@@ -125,6 +126,14 @@ class ChangeAppRotationTest(testSpec: FlickerTestParameter) : RotationTransition
|
||||
@Test
|
||||
override fun navBarLayerPositionAtStartAndEnd() = super.navBarLayerPositionAtStartAndEnd()
|
||||
|
||||
@Test
|
||||
@IwTest(focusArea = "ime")
|
||||
override fun cujCompleted() {
|
||||
super.cujCompleted()
|
||||
focusChanges()
|
||||
rotationLayerAppearsAndVanishes()
|
||||
}
|
||||
|
||||
companion object {
|
||||
/**
|
||||
* Creates the test configurations.
|
||||
|
||||
@@ -73,4 +73,10 @@ abstract class RotationTransition(testSpec: FlickerTestParameter) : BaseTest(tes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun cujCompleted() {
|
||||
super.cujCompleted()
|
||||
appLayerRotates_StartingPos()
|
||||
appLayerRotates_EndingPos()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package com.android.server.wm.flicker.rotation
|
||||
|
||||
import android.platform.test.annotations.FlakyTest
|
||||
import android.platform.test.annotations.IwTest
|
||||
import android.platform.test.annotations.Presubmit
|
||||
import android.platform.test.annotations.RequiresDevice
|
||||
import android.view.WindowManager
|
||||
@@ -204,6 +205,31 @@ open class SeamlessAppRotationTest(testSpec: FlickerTestParameter) : RotationTra
|
||||
@Test
|
||||
override fun navBarLayerPositionAtStartAndEnd() = super.navBarLayerPositionAtStartAndEnd()
|
||||
|
||||
@Test
|
||||
@IwTest(focusArea = "ime")
|
||||
override fun cujCompleted() {
|
||||
if (!testSpec.isTablet) {
|
||||
// not yet tablet compatible
|
||||
appLayerRotates()
|
||||
appLayerAlwaysVisible()
|
||||
}
|
||||
|
||||
appWindowFullScreen()
|
||||
appWindowSeamlessRotation()
|
||||
focusDoesNotChange()
|
||||
statusBarLayerIsAlwaysInvisible()
|
||||
statusBarWindowIsAlwaysInvisible()
|
||||
appLayerRotates_StartingPos()
|
||||
appLayerRotates_EndingPos()
|
||||
entireScreenCovered()
|
||||
navBarLayerIsVisibleAtStartAndEnd()
|
||||
navBarWindowIsAlwaysVisible()
|
||||
taskBarLayerIsVisibleAtStartAndEnd()
|
||||
taskBarWindowIsAlwaysVisible()
|
||||
visibleLayersShownMoreThanOneConsecutiveEntry()
|
||||
visibleWindowsShownMoreThanOneConsecutiveEntry()
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val FlickerTestParameter.starveUiThread
|
||||
get() =
|
||||
|
||||
Reference in New Issue
Block a user