Skip to content
Commit caafee41 authored by Kweku Adams's avatar Kweku Adams
Browse files

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
parent f1d96d48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment