Use ISE to indicate alarm limit

ISE is more appropriate than UnsupportedOperationException

Test: atest CtsAlarmManagerTestCases:UidCapTests

Bug: 31832077
Change-Id: I1cf1b11cc6ea6f5bf569a6e94ca78ec697352b76
This commit is contained in:
Suprabh Shukla
2019-05-28 14:48:44 -07:00
parent 9fdd35e9aa
commit 7e3f783b79

View File

@@ -1765,7 +1765,7 @@ class AlarmManagerService extends SystemService {
+ ", callingPackage: " + callingPackage;
// STOPSHIP (b/128866264): Just to catch breakages. Remove before final release.
Slog.wtf(TAG, errorMsg);
throw new UnsupportedOperationException(errorMsg);
throw new IllegalStateException(errorMsg);
}
setImplLocked(type, triggerAtTime, triggerElapsed, windowLength, maxElapsed,
interval, operation, directReceiver, listenerTag, flags, true, workSource,