Resume throwing if too many concurrent alarms

We temporarily stopped throwing to resolve issues with the accounting.
Resuming now.

Test: atest CtsAlarmManagerTestCases:UidCapTests
Test: atest com.android.server.AlarmManagerServiceTest

Bug: 129995049
Change-Id: Iabadfd02d789b5f184379df46022aeae2314db9c
This commit is contained in:
Suprabh Shukla
2019-05-06 14:39:22 -07:00
parent ef4ddd1281
commit f10f969973

View File

@@ -1764,8 +1764,7 @@ class AlarmManagerService extends SystemService {
+ ", callingPackage: " + callingPackage;
// STOPSHIP (b/128866264): Just to catch breakages. Remove before final release.
Slog.wtf(TAG, errorMsg);
// TODO b/129995049: Resume throwing after some soak time without errors
// throw new UnsupportedOperationException(errorMsg);
throw new UnsupportedOperationException(errorMsg);
}
setImplLocked(type, triggerAtTime, triggerElapsed, windowLength, maxElapsed,
interval, operation, directReceiver, listenerTag, flags, true, workSource,