From baf5fbbe5888614a65028cdff0cd4ae890efd011 Mon Sep 17 00:00:00 2001 From: vadimt Date: Mon, 16 Dec 2019 18:56:09 -0800 Subject: [PATCH] TAPL: logging incoming intents Even though ActivityTaskManager already logs intents, logging this will simplify flake/error investigations that are considered to be too time-consuming. Also, this will make it possible in future to programmatically detect whether the bug is introduced by the system or Launcher. Bug: 133010698 Change-Id: I7dcadd95baa23f29bb661d6b42280bd2a2f0e099 --- src/com/android/launcher3/Launcher.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 7265a1ab4d..d8c4c5cc16 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -1429,6 +1429,9 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns, @Override protected void onNewIntent(Intent intent) { + if (Utilities.IS_RUNNING_IN_TEST_HARNESS) { + Log.d(TestProtocol.PERMANENT_DIAG_TAG, "Launcher.onNewIntent: " + intent); + } Object traceToken = TraceHelper.INSTANCE.beginSection(ON_NEW_INTENT_EVT); super.onNewIntent(intent);