commit | 9f407aba369f2699c3d2bb8d2879b2103afcb577 | [log] [tgz] |
---|---|---|
author | ryanywlin <ryanywlin@google.com> | Fri Apr 27 16:54:43 2018 +0800 |
committer | ryanywlin <ryanywlin@google.com> | Thu May 10 10:20:30 2018 +0800 |
tree | e10d1b98c8b5963d596af1db5115a64b3d12b332 | |
parent | eb5019d05a8d16eeda1ca300cb025cbcf5b42f84 [diff] |
Find active device for add hearing aids device into audio switcher. - Find active device accroding to different stream type and output device. - update isStreamFromOutputDevice() to identify general case like DEVICE_OUT_BLUETOOTH_A2DP is subset of DEVICE_OUT_ALL_A2DP. - add test case for these methods. Bug: 78142719 Test: make RunSettingsRoboTests ROBOTEST_FILTER="AudioOutputSwitchPreferenceControllerTest" -j28 Change-Id: I381135c120dbf051679bff7626d47e41f8d589da