diff options
| author | 2019-12-20 11:21:02 -0800 | |
|---|---|---|
| committer | 2020-01-03 12:37:23 -0800 | |
| commit | da554e4de0ac8de3acaa176d299612818b9e7e1d (patch) | |
| tree | a575e8a8e679ba016949511981c723518a03a101 /libs/androidfw/DynamicLibManager.cpp | |
| parent | a574814474efbc4e181e11dc85dce0457eb37393 (diff) | |
Collect AsyncNotedAppOp in same call as noteOp
This reduces the overhead of collecting noted app-ops to the same amount
of binder calls as if we would not have the feature
Before (conceptionally):
---------------------------------
mode = service.noteOp()
if (mode == allowed && shouldCollectAsyncOp) {
fixup(message)
service.noteAsyncOp()
}
----------------------------------
After (conceptionally):
----------------------------------
if (shouldCollectAsyncOp) {
fixup(message)
}
mode = service.noteOp(shouldCollectAsyncOp, message)
----------------------------------
Bug: 136505050
Test: atest CtsAppOpsTestCases
Change-Id: If1b535a7c4b0f431f251c5d06cdf496c34920e23
Diffstat (limited to 'libs/androidfw/DynamicLibManager.cpp')
0 files changed, 0 insertions, 0 deletions