[Framework] Port BatteryBar (2/2)

- Adds Battery bar with following features
- location set
- color
- aligment
- thickness
- animation

- dynamic slim settings

Change-Id: Iacb3e38505b0ab30bb3f9df54231aeb2c79c20f1

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Prefs.java

Minor fix.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Prefs.java
Frameworks: Optimize more and fixes

Batterybar this time

- unregister observe
- fix another old old glitch in center mode
- code cleanup

cheers

Change-Id: Icddcfe7664b24dfb54ea45c34ce1b179fc368ef2

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryBarController.java
Fix Battery bar 2dp and 3dp graphics glitch

and a bit codestlye

cheers

Change-Id: I7e01c351fdfc3e3f5adfaab9eba870a4b022cb47

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryBarController.java
Fix BatteryBarController.java
Now we can build the ROM.

Change-Id: I44dac5f4fd0dff1c89893426f140835c7b11edf4