Use any() in getPackageInfoAsUser() to make the tests more robust regarding PackageManager flags change. Bug: 315135755 Test: atest Change-Id: I3857ca3bf2ee23424c78716ed3669fbe87c786f8
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.