diff options
| author | 2023-05-26 18:03:54 +0000 | |
|---|---|---|
| committer | 2023-05-26 18:04:19 +0000 | |
| commit | 2063d127b71933de6d71492fe0b026cfd1d410c0 (patch) | |
| tree | f5af1a03a9d236119ac11cb37d9e5185aa21e6e1 | |
| parent | af4534f615a31e7fb1b9653860d5ec118eab2079 (diff) | |
Keep off displays in trace
So we can still reference and use the off display.
Required for FaaS scenario extraction to determine device orientation even if the display is off.
Bug: 281084744
Test: atest FlickerLibTest && atest FlickerTests
Change-Id: I027d5505bfc5d615a4e16c611f2cdef3c5aaa508
| -rw-r--r-- | tests/FlickerTests/src/com/android/server/wm/flicker/CommonAssertions.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/CommonAssertions.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/CommonAssertions.kt index 1f120d47a1ac..ed9e14fd86da 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/CommonAssertions.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/CommonAssertions.kt @@ -97,19 +97,19 @@ fun FlickerTest.entireScreenCovered(allStates: Boolean = true) { if (allStates) { assertLayers { this.invoke("entireScreenCovered") { entry -> - entry.entry.displays.forEach { display -> + entry.entry.displays.filter { it.isOn }.forEach { display -> entry.visibleRegion().coversAtLeast(display.layerStackSpace) } } } } else { assertLayersStart { - this.entry.displays.forEach { display -> + this.entry.displays.filter { it.isOn }.forEach { display -> this.visibleRegion().coversAtLeast(display.layerStackSpace) } } assertLayersEnd { - this.entry.displays.forEach { display -> + this.entry.displays.filter { it.isOn }.forEach { display -> this.visibleRegion().coversAtLeast(display.layerStackSpace) } } |