Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e4e4a9a authored by Anna Bauza's avatar Anna Bauza
Browse files

Add caching for UserManager.hasUserRestriction()

This CL adds caching for UserManager.hasUserRestriction() to improve performance. The cache is invalidated when the user restrictions are changed. 44% of binder calls from uncached API belong to hasUserRestriction.

Bug: 350419621
Change-Id: I3a273b7296006adf33a0c7fbbf514b3c475e72f9
Test: atest com.android.server.pm.UserManagerCacheTest
Flag: android.multiuser.cache_user_restrictions_read_only
parent 3fd36128
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment