From 144a9508bea2d69b9c97ce24a7023ebf26365d80 Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 19 May 2023 17:02:40 -0700 Subject: [PATCH] Adding debug tracing for b/262282528 We see two long-clicks on the taskbar instead of expected one. Bug: 262282528 Test: presubmit Change-Id: I231d54ac08cf53ac7b0b6177da6b671314998021 --- .../com/android/launcher3/taskbar/TaskbarDragController.java | 5 +++++ .../com/android/launcher3/testing/shared/TestProtocol.java | 1 + 2 files changed, 6 insertions(+) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java index 0a83279b15..040b8f7bfe 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java @@ -153,6 +153,11 @@ public class TaskbarDragController extends DragController im return false; } TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "onTaskbarItemLongClick"); + if (TestProtocol.sDebugTracing) { + Log.d(TestProtocol.TWO_TASKBAR_LONG_CLICKS, + "TaskbarDragController.startDragOnLongClick", + new Throwable()); + } BubbleTextView btv = (BubbleTextView) view; mActivity.onDragStart(); btv.post(() -> { diff --git a/tests/shared/com/android/launcher3/testing/shared/TestProtocol.java b/tests/shared/com/android/launcher3/testing/shared/TestProtocol.java index 2b67cdde80..bcad5defb2 100644 --- a/tests/shared/com/android/launcher3/testing/shared/TestProtocol.java +++ b/tests/shared/com/android/launcher3/testing/shared/TestProtocol.java @@ -154,6 +154,7 @@ public final class TestProtocol { public static final String PERMANENT_DIAG_TAG = "TaplTarget"; public static final String VIEW_AND_ACTIVITY_LEAKS = "b/260260325"; public static final String WORK_TAB_MISSING = "b/243688989"; + public static final String TWO_TASKBAR_LONG_CLICKS = "b/262282528"; public static final String REQUEST_EMULATE_DISPLAY = "emulate-display"; public static final String REQUEST_STOP_EMULATE_DISPLAY = "stop-emulate-display";