diff options
| author | 2024-12-10 10:06:15 +0000 | |
|---|---|---|
| committer | 2024-12-12 10:38:32 -0800 | |
| commit | 5e4e4a9abd183ec61c0e24961213932e339d0a56 (patch) | |
| tree | 9ea44a827fd579cf14233428954d99611d3f7c7c /libs/androidfw/FileStream.cpp | |
| parent | 3fd36128053550ed94fa13d7587e6c0a84b9dfee (diff) | |
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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions