To facilitate better development, add prerelease driver choice to graphics driver preferences dashboard. This patch also makes sure that when game driver or developer driver is not shipped, the choice doesn't show up. Minor: Add tests. Bug: b/148626177 Test: make RunSettingsRoboTests ROBOTEST_FILTER=GraphicsDriver Change-Id: Iad398cd663300086d3f4802ffab34531e11dfb17
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.