Move some battery stuff to SettingsLib

So that it can be used in the battery detail panel

Change-Id: I31eac974d29838726450940109b52d458f29c192
4 files changed