Add check to Vibrator.hasVibrator() to the "Vibration & haptics" settings page. Bug: 178530831 Test: VibrationPreferenceControllerTest Change-Id: Ia574d59ad086dd273a9a4ca9d3b472bf23e3684a
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.