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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user