summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Jahdiel Alvarez <jahdiel@google.com> 2024-06-26 11:29:18 -0700
committer Jahdiel Alvarez <jahdiel@google.com> 2024-07-04 09:42:17 -0700
commitd734fa62e231f3bb082e368c6770ce1e3674e907 (patch)
treed547a7cdd6331f3e86687a888161f7f01a6609f7 /api/api.go
parent9685f17312e7f8c656ac5d2e0fe31ebde2643831 (diff)
Caching permission check results in ContentProvider#applyBatch
When calling ContentProvider#applyBatch, we might end up making many repeated IPermissionChecker#checkPermission binder calls to system server. This is the case in AAOS when a phone pairs to AAOS embedded and starts downloading contacts from the phone to the AAOS device. Within the applyBatch method we temporarily cache the successful permission check results and avoid making the same check and binder call. Test: atest CtsContentTestCasesRavenwood CtsPackageManagerTestCases Test: atest CtsContentTestCases CtsResourcesTestCases CtsWindowManagerTestCases Flag: EXEMPT refactor Bug: 348457141 Change-Id: I956a964c69225aeb6b11b9fa05b921f72ce41012
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions