In Settings, we also need a BatteryMeterDrawable to show battery meter,
that's why I move it to settingslib.
In this cl, what I have changed is listed below:
1. Create BatteryMeterDrawableLib that contains logic of battery
drawing.
2. Still Keep the battery control logic in systemui.
3. Remove hardcoded battery color by using the color state lists.
4. Move some tests to settingslib
Bug: 34771849
Test: make SettingsLibTests
Change-Id: I39c0f0e31ca5e1b958467298db1d0590d16c9f6d
Add new usage graph view to SettingsLib that shows usage with
same labels and whatnot.
Use that graph in the battery detail panel to show more stuffs.
Change-Id: I397b1314f65f668df566e93bdbc15420e1b3a280