commit | faa198b3c5a4159022ca76daab10d2d61c79a5ef | [log] [tgz] |
---|---|---|
author | Suprabh Shukla <suprabh@google.com> | Fri May 31 15:57:05 2019 -0700 |
committer | Suprabh Shukla <suprabh@google.com> | Wed Jun 05 15:30:29 2019 -0700 |
tree | e394306c07c642425412d50b12873598fdd36708 | |
parent | 1f915b0d3347404c6a2edca01c78294fe2351c6c [diff] |
Remove alarms of cancelled pending intents When a pending intent is cancelled, the alarm is essentially defunct. Keeping around this alarm takes unneeded memory and unreasonably counts towards the per-uid cap of pending alarms. Test: Unit test: atest com.android.server.AlarmManagerServiceTest Existing CTS: atest CtsAlarmManagerTestCases Bug: 132379078 Change-Id: I4c6d59d9ac79708d8daf40657e9773c715271f1e