diff options
author | Suprabh Shukla <suprabh@google.com> | 2020-09-03 12:54:39 -0700 |
---|---|---|
committer | Suprabh Shukla <suprabh@google.com> | 2020-09-17 21:59:17 +0000 |
commit | 97ec56f1a7ac484e5d98451a54bd9fef8faab066 (patch) | |
tree | 40bd74d59b67631beb58f5bc0abc70c3b0d56d11 /rs/java/android/renderscript/ProgramStore.java | |
parent | 1ea73d6184192063f24991d4e846bece2363d06a (diff) |
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: 167645096
Bug: 130444055
Change-Id: I2d2b08019a3b3a1e63b60d3a6e2909db7b1a1864
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions