Loading src/com/android/launcher3/CheckLongPressHelper.java +2 −1 Original line number Diff line number Diff line Loading @@ -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; Loading tests/tapl/com/android/launcher3/tapl/Workspace.java +3 −0 Original line number Diff line number Diff line Loading @@ -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"); Loading Loading
src/com/android/launcher3/CheckLongPressHelper.java +2 −1 Original line number Diff line number Diff line Loading @@ -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; Loading
tests/tapl/com/android/launcher3/tapl/Workspace.java +3 −0 Original line number Diff line number Diff line Loading @@ -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"); Loading