Loading
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