- Migrate FirmwareVersionPreferenceController to BasePreferenceController class. - Because slices feature needs an unique uri, we should avoid same firmware key in my_device_info.xml and device_info_settings.xml. - Modify test case for new firmware version controller. Test: slice uri > content://android.settings.slices/intent/my_device_firmware_version Test: make RunSettingsRoboTests -j atest UniquePreferenceTest SettingsGatewayTest Change-Id: If516bbdb3ddb823db9909123ef694a2beaf5dc66
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.