Add primary switch that updates the VIBRATE_ON user setting. Update all settings in this page to be disabled when this main toggle is off. Bug: 30028435 Test: VibrationMainSwitchPreferenceControllerTest Change-Id: I752ca3b914c46678a1347034c5b6cf24fd40cc13
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.