summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Svet Ganov <svetoslavganov@google.com> 2021-04-17 06:58:37 +0000
committer Svet Ganov <svetoslavganov@google.com> 2021-04-22 23:37:32 +0000
commit39c075301a36b8f2280c3e3ede5fad4816d1ebc7 (patch)
tree266e0f03c343abbb7eb7db513af70c89db4282dd /libs/gui/LayerDebugInfo.cpp
parentf45fd103bf2ef1ae7b528daf67cbcb487b1a5045 (diff)
Prepare AttributionSource to expose to native - native
Separate the internal state of AttributionSource from the class to make it a simple AIDL we can translate automatically to native - keeping Java and native parts in sync. This would allow writing a thin native lib for checking attribution source permissions which would be used to teach camera and audio about attributions. Deinfe an AIDL interface for passing around an attribution source and opr performing permission checker oprations allowing native and Java permission checks on attribution chains to be handled. The Java side permission checker functions are in a dedicated permisison checker service on top of which sits the PermissionChecker. We expose similar PermissionChecker native APIs sitting on top of the same remote interface. The nice thing is that we have native and Java permisison checkers in sync sharing remoting code and being close in shape. For now the PermissionChecker in Java is divorced from the PermissionManager but in T we will consider how to unify them, either by an extension object on the PermmissionManager or APIs on the PermissionManager, or another approach, and then migrate clients off the PermissionChecker APIs. bug: 158792096 Test: atest CtsPermission5TestCases Change-Id: I16740cc2d3feae731ffbfeb98f045aa9a71ff771
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions