Home
last modified time | relevance | path

Searched refs:scenarioInstance (Results 1 – 25 of 80) sorted by relevance

1234

/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DPipWindowBecomesInvisible.kt30 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
33 it.isPinned(component.build(scenarioInstance)) in doEvaluate()
34 .isAppWindowVisible(component.build(scenarioInstance)) in doEvaluate()
38 it.isNotPinned(component.build(scenarioInstance)) in doEvaluate()
39 .isAppWindowInvisible(component.build(scenarioInstance)) in doEvaluate()
DStatusBarLayerPositionAtStart.kt32 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
35 .coversExactly(getExpectedStatusBarPosition(scenarioInstance)) in doEvaluate()
43 private fun getExpectedStatusBarPosition(scenarioInstance: ScenarioInstance): Region { in getExpectedStatusBarPosition()
45 scenarioInstance.reader.readWmTrace()?.entries?.last() in getExpectedStatusBarPosition()
DStatusBarLayerPositionAtEnd.kt32 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
35 .coversExactly(getExpectedStatusBarPosition(scenarioInstance)) in doEvaluate()
42 private fun getExpectedStatusBarPosition(scenarioInstance: ScenarioInstance): Region { in getExpectedStatusBarPosition()
44 scenarioInstance.reader.readWmTrace()?.entries?.last() in getExpectedStatusBarPosition()
DAppLayerBecomesVisible.kt31 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
35 isInvisible(component.build(scenarioInstance)) in doEvaluate()
41 .isVisible(component.build(scenarioInstance), isOptional = true) in doEvaluate()
47 .or(component.build(scenarioInstance)) in doEvaluate()
DAppWindowBecomesVisible.kt31 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
35 isAppWindowInvisible(component.build(scenarioInstance)) in doEvaluate()
41 .isAppWindowVisible(component.build(scenarioInstance), isOptional = true) in doEvaluate()
47 .or(component.build(scenarioInstance)) in doEvaluate()
DSplitAppLayerBoundsSnapToDivider.kt30 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
31 val wmTrace = scenarioInstance.reader.readWmTrace() ?: return in doEvaluate()
35 it.visibleRegion(component.build(scenarioInstance)) in doEvaluate()
36 .coversAtMost(it.calculateExpectedDisplaySize(scenarioInstance, wmTrace)) in doEvaluate()
43 scenarioInstance: ScenarioInstance, in calculateExpectedDisplaySize()
50 val splitScreenDivider = SPLIT_SCREEN_DIVIDER.build(scenarioInstance) in calculateExpectedDisplaySize()
DLayerBecomesVisible.kt29 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
31 isInvisible(component.build(scenarioInstance)) in doEvaluate()
33 .isVisible(component.build(scenarioInstance)) in doEvaluate()
DLayerBecomesInvisible.kt29 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
31 isVisible(component.build(scenarioInstance)) in doEvaluate()
33 .isInvisible(component.build(scenarioInstance)) in doEvaluate()
DWindowMovesToTop.kt27 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
29 isAppWindowNotOnTop(component.build(scenarioInstance)) in doEvaluate()
31 .isAppWindowOnTop(component.build(scenarioInstance)) in doEvaluate()
DAppLayerBecomesInvisible.kt30 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
32 isVisible(component.build(scenarioInstance)) in doEvaluate()
34 .isInvisible(component.build(scenarioInstance)) in doEvaluate()
DNonAppWindowBecomesVisible.kt30 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
32 isNonAppWindowInvisible(component.build(scenarioInstance)) in doEvaluate()
34 .isAppWindowVisible(component.build(scenarioInstance)) in doEvaluate()
DWindowMovesOutOfTop.kt27 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
29 isAppWindowOnTop(component.build(scenarioInstance)) in doEvaluate()
31 .isAppWindowNotOnTop(component.build(scenarioInstance)) in doEvaluate()
DAppWindowBecomesInvisible.kt30 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
32 isAppWindowVisible(component.build(scenarioInstance)) in doEvaluate()
34 .isAppWindowInvisible(component.build(scenarioInstance)) in doEvaluate()
DNonAppWindowBecomesInvisible.kt30 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
32 isNonAppWindowVisible(component.build(scenarioInstance)) in doEvaluate()
34 .isNonAppWindowInvisible(component.build(scenarioInstance)) in doEvaluate()
DAppWindowBecomesPinned.kt27 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
29 invoke("appWindowIsNotPinned") { it.isNotPinned(component.build(scenarioInstance)) } in doEvaluate()
31 .invoke("appWindowIsPinned") { it.isPinned(component.build(scenarioInstance)) } in doEvaluate()
DRotationLayerAppearsAndVanishes.kt31 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
33 isVisible(component.build(scenarioInstance)) in doEvaluate()
37 .isVisible(component.build(scenarioInstance)) in doEvaluate()
DFocusChanges.kt33 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
34 val layersTrace = scenarioInstance.reader.readLayersTrace() in doEvaluate()
35 val fromComponent = fromComponent.build(scenarioInstance) in doEvaluate()
36 val toComponent = toComponent.build(scenarioInstance) in doEvaluate()
DAppWindowIsInvisibleAtEnd.kt27 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in doEvaluate()
28 flicker.assertWmEnd { isAppWindowInvisible(component.build(scenarioInstance)) } in doEvaluate()
/platform_testing/libraries/flicker/src/android/tools/flicker/config/splitscreen/
DComponents.kt34 ComponentTemplate("SPLIT_SCREEN_PRIMARY_APP") { scenarioInstance: ScenarioInstance -> in <lambda>() method
36 scenarioInstance.associatedTransition in <lambda>()
41 scenarioInstance.reader.readLayersTrace() ?: error("Missing layers trace") in <lambda>()
43 when (scenarioInstance.type) { in <lambda>()
62 ComponentTemplate("SPLIT_SCREEN_SECONDARY_APP") { scenarioInstance: ScenarioInstance -> in <lambda>() method
64 scenarioInstance.associatedTransition in <lambda>()
69 scenarioInstance.reader.readLayersTrace() ?: error("Missing layers trace") in <lambda>()
71 when (scenarioInstance.type) { in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/
DAssertionTemplate.kt33 fun qualifiedAssertionName(scenarioInstance: ScenarioInstance): String = in qualifiedAssertionName()
37 abstract fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) in qualifiedAssertionName()
39 fun createAssertions(scenarioInstance: ScenarioInstance): Collection<AssertionData> { in qualifiedAssertionName()
44 doEvaluate(scenarioInstance, flicker) in qualifiedAssertionName()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/config/
DFlickerConfigTest.kt53 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in canRegisterScenarioWithAssertions()
71 val scenarioInstance = in canRegisterScenarioWithAssertions() constant
73 val assertions = scenarioInstance.generateAssertions() in canRegisterScenarioWithAssertions()
104 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in canUnregisterAssertion()
123 val scenarioInstance = in canUnregisterAssertion() constant
125 val assertions = scenarioInstance.generateAssertions() in canUnregisterAssertion()
136 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in canOverrideStabilityGroup()
159 val scenarioInstance = in canOverrideStabilityGroup() constant
161 val assertions = scenarioInstance.generateAssertions() in canOverrideStabilityGroup()
175 override fun doEvaluate(scenarioInstance: ScenarioInstance, flicker: FlickerTest) { in registerAssertionToScenario()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/config/appclose/
DComponents.kt31 ComponentTemplate("CLOSING_APP(S)") { scenarioInstance: ScenarioInstance -> in <lambda>() method
33 scenarioInstance.associatedTransition ?: error("Missing associated transition"), in <lambda>()
34 scenarioInstance.reader.readLayersTrace(), in <lambda>()
35 scenarioInstance.reader.readWmTrace() in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/config/applaunch/
DComponents.kt31 ComponentTemplate("OPENING_APP(S)") { scenarioInstance: ScenarioInstance -> in <lambda>() method
33 scenarioInstance.associatedTransition ?: error("Missing associated transition"), in <lambda>()
34 scenarioInstance.reader.readLayersTrace(), in <lambda>()
35 scenarioInstance.reader.readWmTrace() in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/config/desktopmode/
DComponents.kt31 ComponentTemplate("DESKTOP_MODE_APP") { scenarioInstance: ScenarioInstance -> in <lambda>() method
33 scenarioInstance.associatedTransition in <lambda>()
36 if (isSupported(scenarioInstance.type)) { in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/config/pip/
DComponents.kt32 ComponentTemplate("PIP") { scenarioInstance: ScenarioInstance -> in <lambda>() method
33 if (scenarioInstance.type == ScenarioId("LAUNCHER_APP_CLOSE_TO_PIP")) { in <lambda>()
35 scenarioInstance.associatedTransition ?: error("Missing associated transition") in <lambda>()

1234