From 9c3b6bbe047a3e0a383f33c8a13a2c11f5025986 Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 19 Apr 2019 11:51:55 -0700 Subject: [PATCH] Add more test diags Bug: 129434166 Change-Id: I1e2646e2e878eb3f7c93840937b33b2837aa31ac --- src/com/android/launcher3/CheckLongPressHelper.java | 3 ++- tests/tapl/com/android/launcher3/tapl/Workspace.java | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/CheckLongPressHelper.java b/src/com/android/launcher3/CheckLongPressHelper.java index 5424a8f2ef..b86e7c05ea 100644 --- a/src/com/android/launcher3/CheckLongPressHelper.java +++ b/src/com/android/launcher3/CheckLongPressHelper.java @@ -93,7 +93,8 @@ public class CheckLongPressHelper { if (mPendingCheckForLongPress != null) { if (com.android.launcher3.TestProtocol.sDebugTracing) { android.util.Log.d(com.android.launcher3.TestProtocol.NO_DRAG_TAG, - "cancelLongPress"); + "cancelLongPress @ " + android.util.Log.getStackTraceString( + new Throwable())); } mView.removeCallbacks(mPendingCheckForLongPress); mPendingCheckForLongPress = null; diff --git a/tests/tapl/com/android/launcher3/tapl/Workspace.java b/tests/tapl/com/android/launcher3/tapl/Workspace.java index a520f0e250..0b3bbd223e 100644 --- a/tests/tapl/com/android/launcher3/tapl/Workspace.java +++ b/tests/tapl/com/android/launcher3/tapl/Workspace.java @@ -147,8 +147,11 @@ public final class Workspace extends Home { final Point launchableCenter = launchable.getObject().getVisibleCenter(); final long downTime = SystemClock.uptimeMillis(); launcher.sendPointer(downTime, downTime, MotionEvent.ACTION_DOWN, launchableCenter); + LauncherInstrumentation.log("dragIconToWorkspace: sent down"); launcher.waitForLauncherObject(longPressIndicator); + LauncherInstrumentation.log("dragIconToWorkspace: indicator"); launcher.movePointer(downTime, DRAG_DURACTION, launchableCenter, dest); + LauncherInstrumentation.log("dragIconToWorkspace: moved pointer"); launcher.sendPointer( downTime, SystemClock.uptimeMillis(), MotionEvent.ACTION_UP, dest); LauncherInstrumentation.log("dragIconToWorkspace: end");