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.java818 assertEquals(1, mService.mAlarmsPerUid.get(TEST_CALLING_UID)); in alarmCountKeyedOnCallingUid()
819 assertEquals(-1, mService.mAlarmsPerUid.get(mockCreatorUid, -1)); in alarmCountKeyedOnCallingUid()
828 assertEquals(i, mService.mAlarmsPerUid.get(TEST_CALLING_UID)); in alarmCountOnSetPi()
842 assertEquals(i, mService.mAlarmsPerUid.get(TEST_CALLING_UID)); in alarmCountOnSetListener()
857 assertEquals(numAlarms - expired, mService.mAlarmsPerUid.get(TEST_CALLING_UID, 0)); in alarmCountOnExpirationPi()
878 assertEquals(numAlarms - expired, mService.mAlarmsPerUid.get(TEST_CALLING_UID, 0)); in alarmCountOnExpirationListener()
896 assertEquals(numAlarms - expired, mService.mAlarmsPerUid.get(TEST_CALLING_UID, 0)); in alarmCountOnExceptionWhileSendingPi()
917 assertEquals(numAlarms - expired, mService.mAlarmsPerUid.get(TEST_CALLING_UID, 0)); in alarmCountOnExceptionWhileCallingListener()
927 assertEquals(1, mService.mAlarmsPerUid.get(TEST_CALLING_UID)); in alarmCountForRepeatingAlarms()
932 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
1760 if (mAlarmsPerUid.get(callingUid, 0) >= mConstants.MAX_ALARMS_PER_UID) { in setImpl()
2346 for (int i = 0; i < mAlarmsPerUid.size(); i++) { in dumpImpl()
2350 UserHandle.formatUid(pw, mAlarmsPerUid.keyAt(i)); in dumpImpl()
2352 pw.print(mAlarmsPerUid.valueAt(i)); in dumpImpl()
4817 final int uidIndex = mAlarmsPerUid.indexOfKey(uid); in incrementAlarmCount()
4819 mAlarmsPerUid.setValueAt(uidIndex, mAlarmsPerUid.valueAt(uidIndex) + 1); in incrementAlarmCount()
4821 mAlarmsPerUid.put(uid, 1); in incrementAlarmCount()
4827 final int uidIndex = mAlarmsPerUid.indexOfKey(uid); in decrementAlarmCount()
4829 oldCount = mAlarmsPerUid.valueAt(uidIndex); in decrementAlarmCount()
[all …]