* For fix the "Automatic merge failed" in pi-dev, cherry pick the ag/4036738 in master. Change android.support.* to androidx.* * Add AdvancedConnectedDeviceController that used to show which component is available * Add getConnectedDevices Summary Resource Id() to decide which string should be shown. Here have 4 cases to shown the string. case 1: driving mode available and NFC is availalbe, show "Bluetooth, driving mode, NFC" case 2: driving mode available and NFC is not availalbe, show "Bluetooth, driving mode" case 3: driving mode not available and NFC is availalbe, show "Bluetooth, NFC" case 4: driving mode not available and NFC not availalbe, show "Bluetooth" * Add test to verify the summary string is correct in each condition * Add test to verify getAvailabilityStatus() is AVAILABLE. Bug: 79299421 Test: make -j50 RunSettingsRoboTests ROBOTEST_FILTER=AdvancedConnectedDeviceControllerTest Change-Id: I1048355bbd344db3ab645dd1537b4259eff57f38
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.