Change BrightnessLevelPreferenceController to use float values for brightness instead of the int system. Change tests to use correct values and floats. Bug: b/150099686 Test: m -j99 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.display.BrightnessLevelPreferenceControllerTest", manual Change-Id: I1a6e06b4f5532b641d766f770be351b8ca827664
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.