From 2063d127b71933de6d71492fe0b026cfd1d410c0 Mon Sep 17 00:00:00 2001 From: Pablo Gamito Date: Fri, 26 May 2023 18:03:54 +0000 Subject: [PATCH] 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 --- .../src/com/android/server/wm/flicker/CommonAssertions.kt | 6 +++--- 1 file 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 1f120d47a1ac2..ed9e14fd86da2 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) } }