summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Marvin Ramin <marvinramin@google.com> 2023-11-17 16:00:48 +0100
committer Marvin Ramin <marvinramin@google.com> 2024-02-28 10:35:29 +0100
commit7085040324ef490d1c91003520160b83191b3236 (patch)
treee67337094f4245142b732f39bf8cc52cc4c2db76 /libs/input/PointerController.cpp
parent0eb6ab89e632a8d18598a9ff6ea06a6622dfd370 (diff)
Improve ownership model of AudioMixes in AudioPolicies
1) Only allow unregistration of mixes that belong to the policy attempting to unregister the mixes. 2) Add a Binder token to AudioMix to uniquely identify mixes. This ensures AudioMixes can only be unregistered by the caller that registered them. 3) Only add AudioMixes to the Java-side policy representation if the native registration succeeded. 4) Clear Java-side policy mixes after the policy is unregistered completely. Bug: 309080867 Test: atest AudioHostTest Change-Id: I96f384a998a05d00317013da2d953f48a1c8144a
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions