Allow developers to inject MasterSwitchPreference, a switch preference with two tap targets, to Settings page. Developers should declare keyhint and switch_uri for the activity in AndroidManifest,and then implement a SwitchesProvider. Bug: 132808482 Test: robotest Change-Id: I64cdf18268be0cfcd38aab2c059144536dd79b32
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.