* isSystem was not being mocked. * The tests where isSystem should return true were not being tested properly. Bug: 151569506 Test: atest com.android.settings.applications.appinfo.AppButtonsPreferenceControllerTest Change-Id: Ib4249bca8f3c0321d0b64b4dbd4c4e5fc29586e1
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.