summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2020-08-24 17:04:19 -0700
committerFelipe Leme <felipeal@google.com>2020-09-01 17:48:37 +0000
commit6b6992bf9b633b6e0c35048acd3eca8653c2ac34 (patch)
tree064517662451a1db1dd60d0c3b8ae34c57bd6c1d /rs/java/android/renderscript/ProgramStore.java
parent5141d72634bda76c9144ec72f25535ec1df7a559 (diff)
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: 167265128 Bug: 165940683 Change-Id: Ib4068cce7d4cea56e0937099508469e49e3412e2 Merged-In: Ib4068cce7d4cea56e0937099508469e49e3412e2 (cherry picked from commit d4407fd5304cd71f6a42d04f59c59d943efc427a)
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions