- This problem causes the TwilightLocationPreferenceController too late to decide the preference display or not. - Move the display criteria into the getAvailabilityStatus Fixes: 159032276 Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.display Test: manual review Change-Id: I5850479e8a891f837c0e6772ad1096e702f95e34
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.