Loading src/com/android/launcher3/Workspace.java +0 −9 Original line number Diff line number Diff line Loading @@ -418,9 +418,6 @@ public class Workspace extends PagedView<WorkspacePageIndicator> } // Always enter the spring loaded mode if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "Switching to SPRING_LOADED"); } mLauncher.getStateManager().goToState(SPRING_LOADED); } Loading Loading @@ -1760,9 +1757,6 @@ public class Workspace extends PagedView<WorkspacePageIndicator> public void prepareAccessibilityDrop() { } public void onDrop(final DragObject d, DragOptions options) { if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "Workspace.onDrop"); } mDragViewVisualCenter = d.getVisualCenter(mDragViewVisualCenter); CellLayout dropTargetLayout = mDropToLayout; Loading Loading @@ -2440,9 +2434,6 @@ public class Workspace extends PagedView<WorkspacePageIndicator> * to add an item to one of the workspace screens. */ private void onDropExternal(final int[] touchXY, final CellLayout cellLayout, DragObject d) { if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "Workspace.onDropExternal"); } if (d.dragInfo instanceof PendingAddShortcutInfo) { WorkspaceItemInfo si = ((PendingAddShortcutInfo) d.dragInfo) .activityInfo.createWorkspaceItemInfo(); Loading src/com/android/launcher3/dragndrop/DragController.java +0 −3 Original line number Diff line number Diff line Loading @@ -594,9 +594,6 @@ public class DragController implements DragDriver.EventListener, TouchController } private void drop(DropTarget dropTarget, Runnable flingAnimation) { if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "DragController.drop"); } final int[] coordinates = mCoordinatesTemp; mDragObject.x = coordinates[0]; mDragObject.y = coordinates[1]; Loading src/com/android/launcher3/dragndrop/DragDriver.java +0 −6 Original line number Diff line number Diff line Loading @@ -54,16 +54,10 @@ public abstract class DragDriver { mEventListener.onDriverDragMove(ev.getX(), ev.getY()); break; case MotionEvent.ACTION_UP: if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "DragDriver.ACTION_UP"); } mEventListener.onDriverDragMove(ev.getX(), ev.getY()); mEventListener.onDriverDragEnd(ev.getX(), ev.getY()); break; case MotionEvent.ACTION_CANCEL: if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "DragDriver.ACTION_CANCEL"); } mEventListener.onDriverDragCancel(); break; } Loading src/com/android/launcher3/testing/TestProtocol.java +0 −1 Original line number Diff line number Diff line Loading @@ -86,6 +86,5 @@ public final class TestProtocol { public static final String PERMANENT_DIAG_TAG = "TaplTarget"; public static final String NO_BACKGROUND_TO_OVERVIEW_TAG = "b/138251824"; public static final String NO_DRAG_TO_WORKSPACE = "b/138729456"; public static final String APP_NOT_DISABLED = "b/139891609"; } src/com/android/launcher3/views/BaseDragLayer.java +0 −4 Original line number Diff line number Diff line Loading @@ -261,10 +261,6 @@ public abstract class BaseDragLayer<T extends Context & ActivityContext> } case ACTION_CANCEL: case ACTION_UP: if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "BaseDragLayer.ACTION_UP/CANCEL " + ev); } mTouchDispatchState &= ~TOUCH_DISPATCHING_GESTURE; mTouchDispatchState &= ~TOUCH_DISPATCHING_VIEW; break; Loading Loading
src/com/android/launcher3/Workspace.java +0 −9 Original line number Diff line number Diff line Loading @@ -418,9 +418,6 @@ public class Workspace extends PagedView<WorkspacePageIndicator> } // Always enter the spring loaded mode if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "Switching to SPRING_LOADED"); } mLauncher.getStateManager().goToState(SPRING_LOADED); } Loading Loading @@ -1760,9 +1757,6 @@ public class Workspace extends PagedView<WorkspacePageIndicator> public void prepareAccessibilityDrop() { } public void onDrop(final DragObject d, DragOptions options) { if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "Workspace.onDrop"); } mDragViewVisualCenter = d.getVisualCenter(mDragViewVisualCenter); CellLayout dropTargetLayout = mDropToLayout; Loading Loading @@ -2440,9 +2434,6 @@ public class Workspace extends PagedView<WorkspacePageIndicator> * to add an item to one of the workspace screens. */ private void onDropExternal(final int[] touchXY, final CellLayout cellLayout, DragObject d) { if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "Workspace.onDropExternal"); } if (d.dragInfo instanceof PendingAddShortcutInfo) { WorkspaceItemInfo si = ((PendingAddShortcutInfo) d.dragInfo) .activityInfo.createWorkspaceItemInfo(); Loading
src/com/android/launcher3/dragndrop/DragController.java +0 −3 Original line number Diff line number Diff line Loading @@ -594,9 +594,6 @@ public class DragController implements DragDriver.EventListener, TouchController } private void drop(DropTarget dropTarget, Runnable flingAnimation) { if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "DragController.drop"); } final int[] coordinates = mCoordinatesTemp; mDragObject.x = coordinates[0]; mDragObject.y = coordinates[1]; Loading
src/com/android/launcher3/dragndrop/DragDriver.java +0 −6 Original line number Diff line number Diff line Loading @@ -54,16 +54,10 @@ public abstract class DragDriver { mEventListener.onDriverDragMove(ev.getX(), ev.getY()); break; case MotionEvent.ACTION_UP: if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "DragDriver.ACTION_UP"); } mEventListener.onDriverDragMove(ev.getX(), ev.getY()); mEventListener.onDriverDragEnd(ev.getX(), ev.getY()); break; case MotionEvent.ACTION_CANCEL: if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "DragDriver.ACTION_CANCEL"); } mEventListener.onDriverDragCancel(); break; } Loading
src/com/android/launcher3/testing/TestProtocol.java +0 −1 Original line number Diff line number Diff line Loading @@ -86,6 +86,5 @@ public final class TestProtocol { public static final String PERMANENT_DIAG_TAG = "TaplTarget"; public static final String NO_BACKGROUND_TO_OVERVIEW_TAG = "b/138251824"; public static final String NO_DRAG_TO_WORKSPACE = "b/138729456"; public static final String APP_NOT_DISABLED = "b/139891609"; }
src/com/android/launcher3/views/BaseDragLayer.java +0 −4 Original line number Diff line number Diff line Loading @@ -261,10 +261,6 @@ public abstract class BaseDragLayer<T extends Context & ActivityContext> } case ACTION_CANCEL: case ACTION_UP: if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_DRAG_TO_WORKSPACE, "BaseDragLayer.ACTION_UP/CANCEL " + ev); } mTouchDispatchState &= ~TOUCH_DISPATCHING_GESTURE; mTouchDispatchState &= ~TOUCH_DISPATCHING_VIEW; break; Loading