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
This commit is contained in:
Suprabh Shukla
2020-09-18 14:31:11 -07:00
parent 97ec56f1a7
commit edcd193b17
2 changed files with 2 additions and 2 deletions

View File

@@ -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[]{

View File

@@ -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[]{