[1/2] frameworks: port BatteryBar to Lollipop

Credit: gwindlord for the kitkat/jellybean commit