Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d96bda55 authored by vadimt's avatar vadimt
Browse files

Using model-time for swiping up from workspace to all apps

Should eliminate some of flakes

Change-Id: I7b75b6c66d9a6d561151491b0accde72b0dd3088
parent 4fbfb412
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -617,7 +617,7 @@ public final class LauncherInstrumentation {

    // Inject a swipe gesture. Inject exactly 'steps' motion points, incrementing event time by a
    // fixed interval each time.
    private void swipeWithModelTime(int startX, int startY, int endX, int endY, int steps) {
    void swipeWithModelTime(int startX, int startY, int endX, int endY, int steps) {
        final long downTime = SystemClock.uptimeMillis();
        final Point start = new Point(startX, startY);
        final Point end = new Point(endX, endY);
+2 −1
Original line number Diff line number Diff line
@@ -65,7 +65,8 @@ public final class Workspace extends Home {
            LauncherInstrumentation.log(
                    "switchToAllApps: swipeHeight = " + swipeHeight + ", slop = "
                            + mLauncher.getTouchSlop());
            mLauncher.swipe(

            mLauncher.swipeWithModelTime(
                    start.x,
                    start.y,
                    start.x,