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
Loading
Please register or sign in to comment