Home
last modified time | relevance | path

Searched refs:mAlarmStore (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmStoreTest.java53 public AlarmStore mAlarmStore; field in AlarmStoreTest
86 mAlarmStore.add(a); in addAlarmsToStore()
92 mAlarmStore.remove(unused -> true); in clear()
98 mAlarmStore.add(a1); in add()
99 assertEquals(1, mAlarmStore.size()); in add()
102 mAlarmStore.add(a2); in add()
103 assertEquals(2, mAlarmStore.size()); in add()
105 ArrayList<Alarm> alarmsAdded = mAlarmStore.asList(); in add()
117 ArrayList<Alarm> removed = mAlarmStore.remove(a -> (a.getWhenElapsed() < 4)); in remove()
119 assertEquals(1, mAlarmStore.size()); in remove()
[all …]
DAlarmManagerServiceTest.java1598 assertEquals(1, mService.mAlarmStore.size());
1606 assertEquals(1, mService.mAlarmStore.size());
2817 assertEquals(34, mService.mAlarmStore.size());
2834 assertEquals(24, mService.mAlarmStore.size());
2835 assertEquals(0, mService.mAlarmStore.getCount(a -> a.matches(TEST_CALLING_PACKAGE)));
2839 assertEquals(15, mService.mAlarmStore.size());
2840 assertEquals(15, mService.mAlarmStore.getCount(a -> a.matches(otherPackage2)));
2841 assertEquals(0, mService.mAlarmStore.getCount(a -> a.matches(otherPackage1)));
2844 assertEquals(7, mService.mAlarmStore.size());
2845 assertEquals(7, mService.mAlarmStore.getCount(a -> a.matches(otherPackage2)));
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmManagerService.java1318 AlarmStore mAlarmStore; field in AlarmManagerService
1386 boolean changed = mAlarmStore.updateAlarmDeliveries(a -> { in reevaluateRtcAlarms()
1397 final boolean idleUntilUpdated = mAlarmStore.updateAlarmDeliveries( in reevaluateRtcAlarms()
1400 mAlarmStore.updateAlarmDeliveries( in reevaluateRtcAlarms()
1423 final boolean changed = mAlarmStore.updateAlarmDeliveries(a -> { in reorderAlarmsBasedOnStandbyBuckets()
1847 mAlarmStore = new LazyAlarmStore(); in onStart()
1848 mAlarmStore.setAlarmClockRemovalListener(mAlarmClockUpdater); in onStart()
2088 mMetricsHelper.registerPuller(() -> mAlarmStore); in onBootPhase()
2562 mAlarmStore.remove(mPendingIdleUntil::equals); in setImplLocked()
2565 mAlarmStore.updateAlarmDeliveries(alarm -> adjustDeliveryTimeBasedOnDeviceIdle(alarm)); in setImplLocked()
[all …]