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

Throttle how frequently delay alarms are set.

If there are many timing delays set within a few milliseconds of each
other, TimeController can end up spamming and overwhelming AlarmManager.
Since a job doesn't need to have its delay constraint updated
immediately and we therefore don't need to have exact timing of every
single delay alarm, we should be alright limiting how often a delay
alarm can be set to go off.

Bug: 167681468
Test: atest com.android.server.job.controllers.TimeControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: I5d2eba00d1c47ddf81bb440dd00dae0239c91eb0
parent 056630f1
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