summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2023-04-17 10:34:45 +0200
committer Eric Laurent <elaurent@google.com> 2023-04-27 19:48:35 +0200
commitced3c22d90d579663199d57c0de5310c674c6a8f (patch)
tree95db6a5ad5cf32341a09ce4a368a2acf7e68de25 /libs/input/SpriteController.cpp
parent4048e3437c762e8c88b3d42cecd21e5412eaee88 (diff)
AudioDeviceInventory: add cache for preferred device roles
Add a cache for the last selected devices role (disabled/preferred) for any strategy or capture preset. This avoids redundant and frequent rerouting requests sent to audio policy manager causing delays and glitches in audio playback and capture. Bug: 276386807 Bug: 265077417 Test: atest NonDefaultDeviceForStrategyTest Test: atest AudioManagerTest#testPreferredDevicesForStrategy Test: atest AudioManagerTest#testPreferredDeviceForCapturePreset Change-Id: Id3e9efe1277b41c94a799e032148574da85f5ea7
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions