Enable the toggle when: 1. In audio sharing 2. No connected LEA device. We will show dialog to guide users to connect a compatible device. 3. Has active device, which means it is a healthy state after broadcast -> unicast switch. Flag: com.android.settingslib.flags.enable_le_audio_sharing Test: atest Bug: 305620450 Change-Id: I2c8067f7882df6943beb3704f63a3e1113ce55d2
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