The issue is happened when BT is disabled then navigate to "Connected devices". BluetoothDeviceUpdater didn't update UI when BT is disabled. Remove all device from preference when BT is disabled. Bug: 80090956 Test: make -j42 RunSettingsRoboTests Change-Id: Ia1fd8cfbcf95d712a1a702fdf101ff98186b76cd
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.