Searched refs:alarmsToDeliver (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | BackgroundRestrictedAlarmsTest.java | 82 SparseArray<ArrayList<Alarm>> pending, ArrayList<Alarm> alarmsToDeliver) { in runCheckAllPendingAlarms() argument 85 alarmsToDeliver, alarm -> alarm.type == RTC_WAKEUP); in runCheckAllPendingAlarms() 92 final ArrayList<Alarm> alarmsToDeliver = new ArrayList<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty() local 94 runCheckAllPendingAlarms(pending, alarmsToDeliver); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty() 97 assertEquals("", toString(alarmsToDeliver)); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty() 106 final ArrayList<Alarm> alarmsToDeliver = new ArrayList<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_remove() local 108 runCheckAllPendingAlarms(pending, alarmsToDeliver); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_remove() 111 assertEquals("", toString(alarmsToDeliver)); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_remove() 120 final ArrayList<Alarm> alarmsToDeliver = new ArrayList<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_nonremove() local 121 runCheckAllPendingAlarms(pending, alarmsToDeliver); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_nonremove() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | AlarmManagerService.java | 1163 final ArrayList<Alarm> alarmsToDeliver; in sendPendingBackgroundAlarmsLocked() local 1168 alarmsToDeliver = new ArrayList<>(); in sendPendingBackgroundAlarmsLocked() 1172 alarmsToDeliver.add(alarmsForUid.remove(i)); in sendPendingBackgroundAlarmsLocked() 1182 alarmsToDeliver = alarmsForUid; in sendPendingBackgroundAlarmsLocked() 1185 deliverPendingBackgroundAlarmsLocked(alarmsToDeliver, mInjector.getElapsedRealtime()); in sendPendingBackgroundAlarmsLocked() 1196 final ArrayList<Alarm> alarmsToDeliver = new ArrayList<>(); in sendAllUnrestrictedPendingBackgroundAlarmsLocked() local 1199 mPendingBackgroundAlarms, alarmsToDeliver, this::isBackgroundRestricted); in sendAllUnrestrictedPendingBackgroundAlarmsLocked() 1201 if (alarmsToDeliver.size() > 0) { in sendAllUnrestrictedPendingBackgroundAlarmsLocked() 1202 deliverPendingBackgroundAlarmsLocked(alarmsToDeliver, mInjector.getElapsedRealtime()); in sendAllUnrestrictedPendingBackgroundAlarmsLocked()
|