When a slice is depending on some setting and the setting is off, it shows "depends on another setting". Add an new attribute for Preference to customize the subtitle when a slice is unavailable. Bug: 118399193 Test: Robo test on com.android.settings.slices, com.android.settings.core Change-Id: I84a8400295b36abb357e5baf98e9be3a8d6ea897
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.