Also log intent's component name to TRON

Bug: 129393143
Test: manual, the log line now looks like this:
      03-27 15:46:02.938  1294  4471 I sysui_multi_action: [757,1513,758,4,805,1553701562938,1514,10223,1515,com.google.vr.vrcore,1516,1004,1517,0,1518,10223,1519,1004,1520,0,1526,com.google.vr.vrcore/.daydream.DonPrepareActivity,1527,0,1529,com.google.vr.vrcore,1530,1004,1531,1,1532,0,1533,0,1534,0,1535,0,1536,0,1537,50,1539,4037]
Change-Id: I9639ddcd01733e27bde8a9dab564b5aad5b15799
diff --git a/services/core/java/com/android/server/wm/ActivityMetricsLogger.java b/services/core/java/com/android/server/wm/ActivityMetricsLogger.java
index 2d89bc7..d916e39 100644
--- a/services/core/java/com/android/server/wm/ActivityMetricsLogger.java
+++ b/services/core/java/com/android/server/wm/ActivityMetricsLogger.java
@@ -85,6 +85,7 @@
 
 import android.app.WaitResult;
 import android.app.WindowConfiguration.WindowingMode;
+import android.content.ComponentName;
 import android.content.Context;
 import android.content.Intent;
 import android.content.pm.ApplicationInfo;
@@ -876,6 +877,11 @@
         builder.addTaggedData(FIELD_COMING_FROM_PENDING_INTENT, comingFromPendingIntent ? 1 : 0);
         if (intent != null) {
             builder.addTaggedData(FIELD_INTENT_ACTION, intent.getAction());
+            ComponentName component = intent.getComponent();
+            if (component != null) {
+                builder.addTaggedData(FIELD_TARGET_SHORT_COMPONENT_NAME,
+                        component.flattenToShortString());
+            }
         }
         if (callerApp != null) {
             builder.addTaggedData(FIELD_PROCESS_RECORD_PROCESS_NAME, callerApp.mName);