Throttling alarms for a package per its standby bucket

Packages can now get to run alarms only if a certain amount of time has
elapsed since they last go to do so. The time interval is decided based
on the current app standby bucket the package is in. So, frequently used
apps get to run alarms more frequently than the rarely used ones

Test: atest CtsAlarmManagerTestCases
or
atest CtsAlarmManagerTestCases:AppStandbyTests

Bug: 72660630
Change-Id: Ib89c81e8166eab4c985152e01178da61f8a880f7
2 files changed