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

Commit 6ea6d860 authored by Suprabh Shukla's avatar Suprabh Shukla Committed by Automerger Merge Worker
Browse files

RESTRICT AUTOMERGE Turning off wtf logging for alarm limit am: b42083b0 am:...

RESTRICT AUTOMERGE Turning off wtf logging for alarm limit am: b42083b0 am: a5a8e14e am: 4eda4ed9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12142736

Change-Id: Ia7376fd9dea53dca2bc09c6c83f77ed9a573b22e
parents 0910c837 4eda4ed9
Loading
Loading
Loading
Loading
+2 −15
Original line number Diff line number Diff line
@@ -150,8 +150,6 @@ class AlarmManagerService extends SystemService {

    // TODO (b/157782538): Turn off once bug is fixed.
    static final boolean DEBUG_PER_UID_LIMIT = true;
    // TODO (b/157782538): Turn off once bug is fixed.
    static final boolean WARN_SYSTEM_ON_ALARM_LIMIT = true;

    static final boolean RECORD_ALARMS_IN_HISTORY = true;
    static final boolean RECORD_DEVICE_IDLE_ALARMS = false;
@@ -1774,19 +1772,8 @@ class AlarmManagerService extends SystemService {
                        "Maximum limit of concurrent alarms " + mConstants.MAX_ALARMS_PER_UID
                                + " reached for uid: " + UserHandle.formatUid(callingUid)
                                + ", callingPackage: " + callingPackage;

                if (WARN_SYSTEM_ON_ALARM_LIMIT && UserHandle.isCore(callingUid)) {
                    final StringWriter logWriter = new StringWriter();
                    final PrintWriter pw = new PrintWriter(logWriter);
                    pw.println(errorMsg);
                    pw.println("Next 20 alarms for " + callingUid + ":");
                    dumpUpcomingNAlarmsForUid(pw, callingUid, 20);
                    pw.flush();
                    Slog.wtf(TAG, logWriter.toString());
                } else {
                Slog.w(TAG, errorMsg);
                }
                if (DEBUG_PER_UID_LIMIT) {
                if (DEBUG_PER_UID_LIMIT && UserHandle.isCore(callingUid)) {
                    logAllAlarmsForUidLocked(callingUid);
                }
                throw new IllegalStateException(errorMsg);