summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-06-10 11:55:05 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-06-10 11:55:05 -0700
commitaf6325138b325a25c7c447a5945f9dcb77311614 (patch)
treefa354f072019f3ce5de65b03fd9c360e909799ec /src
parent1b0b3aa1ba0cdfbc90364384b4746a3785069f14 (diff)
parent34b2f03b308a7e3afcebe6e57d929d2950461b3c (diff)
downloadandroid_packages_apps_Trebuchet-af6325138b325a25c7c447a5945f9dcb77311614.tar.gz
android_packages_apps_Trebuchet-af6325138b325a25c7c447a5945f9dcb77311614.tar.bz2
android_packages_apps_Trebuchet-af6325138b325a25c7c447a5945f9dcb77311614.zip
More tracing for b/133009122
am: 34b2f03b30 Change-Id: I4487817d7b2905bf8837a35a2e13147c63ed1344
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/dragndrop/BaseItemDragListener.java4
-rw-r--r--src/com/android/launcher3/popup/PopupContainerWithArrow.java7
2 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/launcher3/dragndrop/BaseItemDragListener.java b/src/com/android/launcher3/dragndrop/BaseItemDragListener.java
index e204c6301..c719c1c98 100644
--- a/src/com/android/launcher3/dragndrop/BaseItemDragListener.java
+++ b/src/com/android/launcher3/dragndrop/BaseItemDragListener.java
@@ -37,6 +37,7 @@ import com.android.launcher3.DropTarget.DragObject;
import com.android.launcher3.Launcher;
import com.android.launcher3.R;
import com.android.launcher3.states.InternalStateHandler;
+import com.android.launcher3.testing.TestProtocol;
import com.android.launcher3.widget.PendingItemDragHelper;
import java.util.UUID;
@@ -136,6 +137,9 @@ public abstract class BaseItemDragListener extends InternalStateHandler implemen
@Override
public boolean shouldStartDrag(double distanceDragged) {
+ if (TestProtocol.sDebugTracing) {
+ Log.d(TestProtocol.NO_DRAG_TAG, "BIDL.shouldStartDrag");
+ }
// Stay in pre-drag mode, if workspace is locked.
return !mLauncher.isWorkspaceLocked();
}
diff --git a/src/com/android/launcher3/popup/PopupContainerWithArrow.java b/src/com/android/launcher3/popup/PopupContainerWithArrow.java
index 7b14fa249..9719a1892 100644
--- a/src/com/android/launcher3/popup/PopupContainerWithArrow.java
+++ b/src/com/android/launcher3/popup/PopupContainerWithArrow.java
@@ -36,6 +36,7 @@ import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.util.AttributeSet;
+import android.util.Log;
import android.util.Pair;
import android.view.MotionEvent;
import android.view.View;
@@ -67,6 +68,7 @@ import com.android.launcher3.popup.PopupDataProvider.PopupDataChangeListener;
import com.android.launcher3.shortcuts.DeepShortcutManager;
import com.android.launcher3.shortcuts.DeepShortcutView;
import com.android.launcher3.shortcuts.ShortcutDragPreviewProvider;
+import com.android.launcher3.testing.TestProtocol;
import com.android.launcher3.touch.ItemClickHandler;
import com.android.launcher3.touch.ItemLongClickListener;
import com.android.launcher3.util.PackageUserKey;
@@ -447,6 +449,11 @@ public class PopupContainerWithArrow extends ArrowPopup implements DragSource,
@Override
public boolean shouldStartDrag(double distanceDragged) {
+ if (TestProtocol.sDebugTracing) {
+ Log.d(TestProtocol.NO_DRAG_TAG,
+ "createPreDragCondition().shouldStartDrag " + distanceDragged + ", "
+ + mStartDragThreshold);
+ }
return distanceDragged > mStartDragThreshold;
}