commit | caafee4101b4fc0587835e48ebf5545300adc2c1 | [log] [tgz] |
---|---|---|
author | Kweku Adams <kwekua@google.com> | Mon Mar 23 12:18:24 2020 -0700 |
committer | Kweku Adams <kwekua@google.com> | Tue Mar 24 13:59:57 2020 +0000 |
tree | 802fd41c837648cdd299ef00595b6ee66baba93e | |
parent | f1d96d48f6a50d16ef1b70344a5f92d809bce740 [diff] |
Remove unnecessary +1ms to quota window calculation. In the simple case of a quota of 1, if an alarm goes off at time t into the window (assume a window [0, w)), the next alarm is eligible at time (t + w) and not (t + w + 1). There was no clear reason to add the extra 1 ms, so we're removing it. Bug: 148623696 Test: atest CtsAlarmManagerTestCases Test: atest FrameworksMockingServicesTests:AlarmManagerServiceTest Change-Id: Ib66cfc7020efb6dd94d189efeaeb41db48097144