Adding a MasterSwitchPreference into "Network & internet" and create corresponding controller. The preference is hidden by the feature flag. It does NOT affect the existing UI. Bug: 146147778 Test: CodeInspectionTest, TetherPreferenceControllerTest, NetworkDashboardFragmentTest Change-Id: Ida8e088efbb22d0c983acecbc420672206392dad
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.