diff options
author | Suprabh Shukla <suprabh@google.com> | 2020-09-03 12:54:39 -0700 |
---|---|---|
committer | Suprabh Shukla <suprabh@google.com> | 2020-09-08 20:40:37 +0000 |
commit | 951fa94b6a7f9a41d38faa759148db2e8e7da7ce (patch) | |
tree | 8aa8ec680bcee642da0069505513c6f6f09c4548 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | be69e09c86085c9c6c61ba0d077efc445a254d2f (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: 167645096
Bug: 130444055
Change-Id: I2d2b08019a3b3a1e63b60d3a6e2909db7b1a1864
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions