Skip to content
Commit d4407fd5 authored by Felipe Leme's avatar Felipe Leme
Browse files

Cached list of pre-created users on UserManagerService.

PermissionManagerService calls UserManagerService to get the list
of user ids multiple times on boot (O(1000) times), so these calls
must be cached. PMS used to call UMS.getUserIds(), which didn't
include the list of pre-created users, so it was recently changed
to call UMS.getUsers() and calculate the ids, but such non-cached
call increase the boot time on some devices in almost 50ms.

This change fixes the regression by caching the user ids of the
pre-created users as well.

Test: manual verification
Bug: 165940683

Change-Id: Ib4068cce7d4cea56e0937099508469e49e3412e2
parent 944d885d
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