The audio framework can deduce the type with the help of the BluetoothDevice metadata API. In case this is known we will grey out the list with the manual selection of the audio device type. Test: adb shell device_config put media_audio android.media.audio.automatic_bt_device_type true Test: atest BluetoothDetailsAudioDeviceTypeControllerTest Bug: 302323921 Change-Id: Ia2cab27f2dce5493aa4326333699b5908d8a09ee
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.