From 39e1d52c1bb4cd0ac2e2e79664f6e33647e86976 Mon Sep 17 00:00:00 2001 From: fbaron Date: Tue, 7 May 2024 20:44:26 -0700 Subject: [PATCH] Reduce steps for goHome() The goHome gesture is slow enough sometimes that it gets confused with an overview gesture. Reducing the step count should resolve this (verified in atest and haven't had it fail after changing this) Flag: NONE Bug: 336606166 Test: TaplTestsTrackpad#switchToOverview Change-Id: I7ad388968205addb363cfd9ff4b7eefece170d1b --- .../com/android/launcher3/tapl/LauncherInstrumentation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index aa8d33906b..68b0a36049 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -108,7 +108,7 @@ import java.util.stream.Collectors; public final class LauncherInstrumentation { private static final String TAG = "Tapl"; - private static final int ZERO_BUTTON_STEPS_FROM_BACKGROUND_TO_HOME = 15; + private static final int ZERO_BUTTON_STEPS_FROM_BACKGROUND_TO_HOME = 5; private static final int GESTURE_STEP_MS = 16; static final Pattern EVENT_PILFER_POINTERS = Pattern.compile("pilferPointers");