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
This commit is contained in:
Pablo Gamito
2023-05-26 18:03:54 +00:00
parent af4534f615
commit 2063d127b7

View File

@@ -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)
}
}