summaryrefslogtreecommitdiff
path: root/native/android/configuration.cpp
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2023-06-06 19:48:50 +0200
committer Eric Laurent <elaurent@google.com> 2023-06-06 19:58:52 +0200
commit91b5e6f398b9a741cfefbd917159e7fba6eb536b (patch)
treeb1641d626854c786cbb9a59ef8b3ababdd17094b /native/android/configuration.cpp
parent69e0c71705782812d4e1395ac14d135192f72d4e (diff)
AudioDeviceInventory: reapply preferred device roles when needed
Because a preferred device role requested via an AudioManager API can be conflicting with a communication device request and is persisted, we need to reapply any active device role request when the communication device request is cleared. Also add missing restoration of preferred capture preset. Bug: 285773888 Test: repro steps in bug Test: atest NonDefaultDeviceForStrategyTest Test: atest AudioManagerTest#testPreferredDevicesForStrategy Test: atest AudioManagerTest#testPreferredDeviceForCapturePreset Change-Id: I5d83a3e7a2485a6ef685d0779951bfb7ef9c991e
Diffstat (limited to 'native/android/configuration.cpp')
0 files changed, 0 insertions, 0 deletions