Issue - for LEA device with two BT addresses, when the second bud connected with incorrect group id, we wrongly show up the start audio sharing dialog. Fix - check there are two connected LEA valid groups before show up start audio sharing dialog. Bug: 347655885 Test: atest Flag: com.android.settingslib.flags.enable_le_audio_sharing Change-Id: Icd86ce2cfa4312c10c14906f46df324357c56990
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