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

Commit ca29c7ed authored by Yisroel Forta's avatar Yisroel Forta
Browse files

Update ANR trigger to use AMS#sendProfilingTrigger

Exception handling is currently missing. Changing to this method
keeps the send logic, including error and thread handling,
consolidated.

Bug: 421466666
Flag: EXEMPT - simple bugfix
Test: build, presubmit
Change-Id: I7e1b627242ee5ef6c3be7a11759ba751e5b1fb8f
parent d783b2db
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);