In battery tips, we need synchronized method to get batteryInfo. This cl move the logic to BatteryUtils, then in battery tips we could use this method directly. Bug: 70570352 Test: robotest still pass Change-Id: Id69349a25395ae472a9b3152c6f04127ee32c4e1
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.