Merge "Keep off displays in trace" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
145c4ac0f9
@@ -97,19 +97,19 @@ fun FlickerTest.entireScreenCovered(allStates: Boolean = true) {
|
|||||||
if (allStates) {
|
if (allStates) {
|
||||||
assertLayers {
|
assertLayers {
|
||||||
this.invoke("entireScreenCovered") { entry ->
|
this.invoke("entireScreenCovered") { entry ->
|
||||||
entry.entry.displays.forEach { display ->
|
entry.entry.displays.filter { it.isOn }.forEach { display ->
|
||||||
entry.visibleRegion().coversAtLeast(display.layerStackSpace)
|
entry.visibleRegion().coversAtLeast(display.layerStackSpace)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
assertLayersStart {
|
assertLayersStart {
|
||||||
this.entry.displays.forEach { display ->
|
this.entry.displays.filter { it.isOn }.forEach { display ->
|
||||||
this.visibleRegion().coversAtLeast(display.layerStackSpace)
|
this.visibleRegion().coversAtLeast(display.layerStackSpace)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assertLayersEnd {
|
assertLayersEnd {
|
||||||
this.entry.displays.forEach { display ->
|
this.entry.displays.filter { it.isOn }.forEach { display ->
|
||||||
this.visibleRegion().coversAtLeast(display.layerStackSpace)
|
this.visibleRegion().coversAtLeast(display.layerStackSpace)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user