Move allow-while-idle throttling to quotas

Moving the allow-while-idle throttling to a rolling window quota system.
The current quota is 7 per hour to be the same as the existing once
every 9 minutes.

Test: atest CtsAlarmManagerTestCases
atest FrameworksMockingServicesTests:com.android.server.alarm
atest FrameworksMockingServicesTests:AppStateTrackerTest

Bug: 154655798
Change-Id: I818b280fdaacd079fbc55997e1353d622f4e3a96
4 files changed