Use Build.VERSION.RELEASE_OR_PREVIEW_DISPLAY which will show a user friendly version name for preview releases, and the release version for final releases. Bug: 221950960 Test: manual Change-Id: I3a7e6a3c996d52614b89888afd35da8cff458b43
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.