From 02fb35319e7bb37e4308e0ef71cbd00c179d6055 Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 10 May 2019 14:34:16 -0700 Subject: [PATCH] TAPL: avoiding negative final coordinate of swipe-to-all apps Change-Id: I15c2bf44b7fe2e2ac2fc85db02069441b2aeb807 --- tests/tapl/com/android/launcher3/tapl/Workspace.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/tapl/com/android/launcher3/tapl/Workspace.java b/tests/tapl/com/android/launcher3/tapl/Workspace.java index e8a0b54686..c0bafa2e7c 100644 --- a/tests/tapl/com/android/launcher3/tapl/Workspace.java +++ b/tests/tapl/com/android/launcher3/tapl/Workspace.java @@ -58,9 +58,13 @@ public final class Workspace extends Home { verifyActiveContainer(); final UiObject2 hotseat = mHotseat; final Point start = hotseat.getVisibleCenter(); + start.y = hotseat.getVisibleBounds().bottom - 1; final int swipeHeight = mLauncher.getTestInfo( TestProtocol.REQUEST_HOME_TO_ALL_APPS_SWIPE_HEIGHT). getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); + LauncherInstrumentation.log( + "switchToAllApps: swipeHeight = " + swipeHeight + ", slop = " + + mLauncher.getTouchSlop()); mLauncher.swipe( start.x, start.y,