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

Commit 707ab737 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update ANR trigger to use AMS#sendProfilingTrigger" into main

parents ca6c36f9 ca29c7ed
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ import static com.android.server.am.ActivityManagerDebugConfig.TAG_AM;
import static com.android.server.am.ActivityManagerDebugConfig.TAG_WITH_CLASS_NAME;

import android.content.pm.ApplicationInfo;
import android.os.ProfilingServiceHelper;
import android.os.ProfilingTrigger;
import android.os.SystemClock;
import android.os.Trace;
@@ -244,7 +243,7 @@ class AnrHelper {

                if (android.os.profiling.Flags.systemTriggeredProfilingNew() && r.mAppInfo != null
                        && r.mAppInfo.packageName != null) {
                    ProfilingServiceHelper.getInstance().onProfilingTriggerOccurred(
                    mService.sendProfilingTrigger(
                            r.mUid,
                            r.mAppInfo.packageName,
                            ProfilingTrigger.TRIGGER_TYPE_ANR);