BluetoothAdapter#isLeAudioBroadcastSourceSupported and isLeAudioBroadcastAssistantSupported returns ERROR_BLUETOOTH_NOT_ENABLED when turning off BT/BLE and BT+BLE both off. Still need to cancel audio sharing notification in these case. Test: atest Bug: 372837932 Flag: com.android.settingslib.flags.enable_le_audio_sharing Change-Id: Ib02d9ef10378996a8ee6b9f091935ddaaf7b3c99
Running Settings Robolectric tests
The full suite
$ croot
$ atest SettingsRoboTests
Running a single test class
With a filter
$ croot
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest
You can also run any single test class with atest (it will try to find the correct path)
$ atest AdaptiveSleepPreferenceControllerTest