summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Pablo Gamito <pablogamito@google.com> 2023-07-25 15:50:16 +0000
committer Pablo Gamito <pablogamito@google.com> 2023-07-25 15:50:16 +0000
commitd0d0afc5ac6ccdd1d0d720ba492b70e209cf91fb (patch)
tree21c585d3c221faca3cad2e9c001098926133f12d
parenta737b7419191635c5e22a73836ab9822615ee481 (diff)
Use correct timestamp for RegionSubject
Test: N/A Bug: 293096776 Change-Id: Id37b4be4eb012ab4369d973008dc237620a4cd35
-rw-r--r--tests/FlickerTests/src/com/android/server/wm/flicker/CommonAssertions.kt2
1 files changed, 1 insertions, 1 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 4d36111cb124..abd8758383fa 100644
--- a/tests/FlickerTests/src/com/android/server/wm/flicker/CommonAssertions.kt
+++ b/tests/FlickerTests/src/com/android/server/wm/flicker/CommonAssertions.kt
@@ -282,7 +282,7 @@ fun LegacyFlickerTest.snapshotStartingWindowLayerCoversExactlyOnApp(
snapshotLayers
.mapNotNull { snapshotLayer -> snapshotLayer.layer.visibleRegion }
.toTypedArray()
- val snapshotRegion = RegionSubject(visibleAreas, timestamp)
+ val snapshotRegion = RegionSubject(visibleAreas, it.timestamp)
// Verify the size of snapshotRegion covers appVisibleRegion exactly in animation.
if (snapshotRegion.region.isNotEmpty) {
val appVisibleRegion = it.visibleRegion(component)