Bump time to scroll to last visible row (affects jank/perf tests)
- Regression from ag/9592395, bump the time of scrolling to the
last visible row slightly to prevent a fling
Bug: 141484300
Change-Id: I41c041fe591aceebc63b7e869a705164babb09ea
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
index c90c8f6..3713c14 100644
--- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
+++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -791,6 +791,8 @@
final int distance = gestureStart - container.getVisibleBounds().top - topPadding;
final int bottomMargin = container.getVisibleBounds().height() - distance;
+ // TODO: Make the gesture steps dependent on the distance so that it can run for various
+ // screen sizes
scroll(
container,
Direction.DOWN,
@@ -799,7 +801,7 @@
0,
0,
Math.max(bottomMargin, getBottomGestureMargin(container))),
- 70);
+ 80);
}
void scroll(UiObject2 container, Direction direction, Rect margins, int steps) {