Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 319069bd authored by Michal Karpinski's avatar Michal Karpinski
Browse files

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
parent 04d356ae
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ import static com.android.server.wm.ActivityTaskManagerInternal.APP_TRANSITION_T

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 @@ class ActivityMetricsLogger {
        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);