commit | dddc2aef4e5f9f27a79909f475c31c96eb688200 | [log] [tgz] |
---|---|---|
author | jiabin <jiabin@google.com> | Wed Aug 19 11:20:48 2020 -0700 |
committer | jiabin <jiabin@google.com> | Tue Aug 25 09:42:58 2020 -0700 |
tree | 40d78318ee59cb23fa5cfbd53fdff57035fe8b32 | |
parent | 4a603cd0594d22d1a3a2bae5bb22009343d4b5bb [diff] |
Support device role for capture preset. Support set/add/remove/clear/get device role for capture preset. The device role can be DEVICE_ROLE_PREFERRED and DEVICE_ROLE_DISABLED. The preferred and disabled devices can be multiple devices. In this CL, only cache preferred devices in engine but not use for audio routing. Bug: 160352965 Test: atest AudioServiceHostTest Test: atest audiopolicy_tests Change-Id: Ib16ab2ec82bc288421c20df9470ac3835c71b1e8