Home
last modified time | relevance | path

Searched refs:mAlarmsPerUid (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAlarmManagerServiceTest.java816 assertEquals(1, mService.mAlarmsPerUid.get(TEST_CALLING_UID)); in alarmCountKeyedOnCallingUid()
817 assertEquals(-1, mService.mAlarmsPerUid.get(mockCreatorUid, -1)); in alarmCountKeyedOnCallingUid()
826 assertEquals(i, mService.mAlarmsPerUid.get(TEST_CALLING_UID)); in alarmCountOnSetPi()
840 assertEquals(i, mService.mAlarmsPerUid.get(TEST_CALLING_UID)); in alarmCountOnSetListener()
855 assertEquals(numAlarms - expired, mService.mAlarmsPerUid.get(TEST_CALLING_UID, 0)); in alarmCountOnExpirationPi()
876 assertEquals(numAlarms - expired, mService.mAlarmsPerUid.get(TEST_CALLING_UID, 0)); in alarmCountOnExpirationListener()
894 assertEquals(numAlarms - expired, mService.mAlarmsPerUid.get(TEST_CALLING_UID, 0)); in alarmCountOnExceptionWhileSendingPi()
915 assertEquals(numAlarms - expired, mService.mAlarmsPerUid.get(TEST_CALLING_UID, 0)); in alarmCountOnExceptionWhileCallingListener()
925 assertEquals(1, mService.mAlarmsPerUid.get(TEST_CALLING_UID)); in alarmCountForRepeatingAlarms()
930 assertEquals(1, mService.mAlarmsPerUid.get(TEST_CALLING_UID)); in alarmCountForRepeatingAlarms()
[all …]
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java200 SparseIntArray mAlarmsPerUid = new SparseIntArray(); field in AlarmManagerService
1763 if (mAlarmsPerUid.get(callingUid, 0) >= mConstants.MAX_ALARMS_PER_UID) { in setImpl()
2349 for (int i = 0; i < mAlarmsPerUid.size(); i++) { in dumpImpl()
2353 UserHandle.formatUid(pw, mAlarmsPerUid.keyAt(i)); in dumpImpl()
2355 pw.print(mAlarmsPerUid.valueAt(i)); in dumpImpl()
4825 final int uidIndex = mAlarmsPerUid.indexOfKey(uid); in incrementAlarmCount()
4827 mAlarmsPerUid.setValueAt(uidIndex, mAlarmsPerUid.valueAt(uidIndex) + 1); in incrementAlarmCount()
4829 mAlarmsPerUid.put(uid, 1); in incrementAlarmCount()
4835 final int uidIndex = mAlarmsPerUid.indexOfKey(uid); in decrementAlarmCount()
4837 oldCount = mAlarmsPerUid.valueAt(uidIndex); in decrementAlarmCount()
[all …]