Root Cause: get empty result in hearingAidProfile.getConnectedDevices() Solution: Need to listen to onServiceConnected() to wait for HearingAidService get connected Bug: 243489972 Test: make RunSettingsRoboTests ROBOTEST_FILTER=AccessibilityHearingAidPreferenceControllerTest Change-Id: If6c3b2f3df81388c44e744e364e6258bde8bb645
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.