and SmartAutoRotatePreferenceControllerTest - Use the correct Settings.System.putIntForUser API. Fixes: 300200193 Fixes: 300201185 Test: atest AutoRotatePreferenceControllerTest Test: atest SmartAutoRotatePreferenceControllerTest Change-Id: Iadd890f21431ccb5d538e40426b0c7d43d46ba52
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.