Flag protect Fold lock behavior setting behind a sysprop flag. The setting will be disabled by default and can be teamfooded by enabling sysprop flag with prop name persist.fold_lock_behavior_config. Enable sysprop flag by running following command * adb root && adb shell setprop persist.fold_lock_behavior_config true Flag: persist.fold_lock_behavior_config Bug: 298200843 Test: atest FoldSettingProviderTest FoldLockBehaviorPreferenceControllerTest * Manually check if the setting accessible with sysprop flag true and false. Change-Id: I80e3ba4c544bbe20673b57fe8702e7f299c387a9
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.