- Move the preference to the system xml file. - DisableAutomaticUpdatesPreferenceController should not inherit from the developer preference controller now since it's not used in developer page anymore. Instead, just use toggle preference controller for changing the state. - Rewrite the test cases based on new controller. Test: The ui works well and search can navigate to correct path. Fix: 196001125 Change-Id: Iaea3e11d9cdbfa073ebd41bc3c84356d564c7e71
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.