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

Commit edcd193b authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Fix StatLogger indexing in alarm manager

Test: Manually run:
adb shell dumpsys alarm
And check that sections under 'Alarm manager stats' and 'Alarm store
stats' have non-zero values.

Fixes: 168870483
Fixes: 168870482
Change-Id: I439eb871aa8ee180559c3d90ce17c1d5ab36f4aa
parent 97ec56f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -252,7 +252,7 @@ public class AlarmManagerService extends SystemService {
    final ArrayList<IdleDispatchEntry> mAllowWhileIdleDispatches = new ArrayList();

    interface Stats {
        int REORDER_ALARMS_FOR_STANDBY = 1;
        int REORDER_ALARMS_FOR_STANDBY = 0;
    }

    private final StatLogger mStatLogger = new StatLogger("Alarm manager stats", new String[]{
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ public class BatchingAlarmStore implements AlarmStore {
    private AlarmClockRemovalListener mAlarmClockRemovalListener;

    interface Stats {
        int REBATCH_ALL_ALARMS = 1;
        int REBATCH_ALL_ALARMS = 0;
    }

    final StatLogger mStatLogger = new StatLogger("Alarm store stats", new String[]{