Add rtc fields to pushed alarm atoms am: 9b8ab9c13a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14445036 Change-Id: I6eed02710b49d967e8908e9f1ac46f7101940fb1
This commit is contained in:
@@ -1135,7 +1135,7 @@ public class AlarmManagerService extends SystemService {
|
||||
this(context, new Injector(context));
|
||||
}
|
||||
|
||||
private static boolean isRtc(int type) {
|
||||
static boolean isRtc(int type) {
|
||||
return (type == RTC || type == RTC_WAKEUP);
|
||||
}
|
||||
|
||||
|
||||
@@ -72,7 +72,8 @@ class MetricsHelper {
|
||||
alarmStore.getCount(
|
||||
a -> (a.getRequestedElapsed() > now + INDEFINITE_DELAY)),
|
||||
alarmStore.getCount(a -> (a.repeatInterval != 0)),
|
||||
alarmStore.getCount(a -> (a.alarmClock != null))
|
||||
alarmStore.getCount(a -> (a.alarmClock != null)),
|
||||
alarmStore.getCount(a -> AlarmManagerService.isRtc(a.type))
|
||||
));
|
||||
return StatsManager.PULL_SUCCESS;
|
||||
}
|
||||
@@ -101,7 +102,8 @@ class MetricsHelper {
|
||||
(a.flags & AlarmManager.FLAG_ALLOW_WHILE_IDLE) != 0,
|
||||
a.alarmClock != null,
|
||||
a.repeatInterval != 0,
|
||||
reasonToStatsReason(a.mExactAllowReason));
|
||||
reasonToStatsReason(a.mExactAllowReason),
|
||||
AlarmManagerService.isRtc(a.type));
|
||||
}
|
||||
|
||||
static void pushAlarmBatchDelivered(int numAlarms, int wakeups) {
|
||||
|
||||
Reference in New Issue
Block a user