Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e3f783b authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Use ISE to indicate alarm limit

ISE is more appropriate than UnsupportedOperationException

Test: atest CtsAlarmManagerTestCases:UidCapTests

Bug: 31832077
Change-Id: I1cf1b11cc6ea6f5bf569a6e94ca78ec697352b76
parent 9fdd35e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,