diff options
author | Suprabh Shukla <suprabh@google.com> | 2020-09-03 12:54:39 -0700 |
---|---|---|
committer | Suprabh Shukla <suprabh@google.com> | 2020-09-10 15:26:44 -0700 |
commit | ac3d84392a4a0e70df21515ae205aca5017cc650 (patch) | |
tree | c22e92e0f188e373a73c801ebfe07fa6fc450ec0 /rs/java/android/renderscript/ProgramRaster.java | |
parent | 8ac6741e47c76bde065f868ea64d2f04541487b9 (diff) |
RESTRICT AUTOMERGE Remove alarms from mPendingNonWakeupAlarms
While setting an alarm, we should remove any existing occurrences
of the same, but we were skipping on removing any past due non-wakeup
alarms.
In rare cases when a caller is spamming the alarm manager, we
might end up accumulating alarms inside mPendingNonWakeupAlarms that
count towards the per-uid limit of the caller, and may result in an
exception.
Test: atest FrameworksMockingServicesTests:AlarmManagerServiceTest
atest CtsAlarmManagerTestCases
Bug: 167595061
Change-Id: I2d2b08019a3b3a1e63b60d3a6e2909db7b1a1864
Diffstat (limited to 'rs/java/android/renderscript/ProgramRaster.java')
0 files changed, 0 insertions, 0 deletions