Skip to content
Commit 8a41b3f7 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Optimizing AppStandby.getIdleUidsForUser

This is called by NPMS on boot for all users, and it makes a lot of
calls to getAppMinBucket. Optimizing the newly added call into alarm
manager internal, and some bookkeeping at the front.

Alarm manager now maintains a list of all apps that have requested the
permission. This saves any calls into permission manager in
hasScheduleExactAlarm.

Test: atest FrameworksMockingServicesTests:com.android.server.alarm
atest FrameworksServicesTests:AppStandbyControllerTests

atrace for boot time analysis.

Bug: 185081934
Change-Id: I4f0b80715acb37a777d28f8c41f666b20f26bd8d
parent a3e28dec
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