fb: fix rounding issues and take density into account

we are a multiDpi rom...and on 4.2 and 4.3 already the text
in the circle battery icon was on lower dpi a small bit up. The original
author compensated this with just a +1 to the Y value. Thats not the right
way...calculate the current dpi into the offset and all is well.

We want a perfect 4.4...so this nitpicks even if we are talking about
0.5dp maybe should be fixed

Change-Id: I835aa20b82aea980eb79a4772adccf30b2d6f79f
Frameworks: Fix memory leak + cleanup

Do not create new Objects onDraw + cleanup

Change-Id: Id1dc9ae85ccf820f2047528e12c4ecdc525f12d2
fb: add bottom margin to stock default battery icon

We set the layout parameters programmatically so the fix from
google does not take effect. To solve set the bottom margin
programmatically based on the current display density

Change-Id: I9caa0e729afa19eb7cb852a1df6ad036a2839d1b
fb: show percentage on icon in bold and use for

only percent more width in statusbar and QS
As well show on percent with icon on fully charge not the bolt
and instead the value 100

Change-Id: I4e0b837ff6e217e1c9f78d967aa57c3e2f1bf2ad
Fix battery icon with percentage showing "!" and percentage only color when under 14%

Change-Id: I559fd4d9fbb7f9599fe1b3cf75602b7ad7e2e301
[1/2] frameworks: Adding old-school (JB like) battery percents style
due to its better visibility.

Also added "No battery" style.

Added percents visibility while charging and
colorizing percents while charging

One selector made obvious

Removing unnecessary code

Setting green color for text 90+% charged

Now bolt color means color of circle battery, not percents

Fixing percentage color while charging for "text only" style

Fixing percentage color for JB style

Adding green percents color when charging and >90% for circles with percents too

Including Juba's changes regarding battery tile with no battery in statusbar
and styles order

Line to long and use static reference

How does it look like:
https://dl.dropboxusercontent.com/u/66673431/BattModPercentScreen1.jpg
https://dl.dropboxusercontent.com/u/66673431/BattModPercentScreen2.jpg

Settings change: https://gerrit.slimroms.net/#/c/5755/

Change-Id: I7505c7e35c252a0fac0bd37db4be33bbff89ef41

Conflicts:

	packages/SystemUI/src/com/android/systemui/BatteryMeterView.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
SystemUI: Update circle battery UI to be in line with CM

Paranoid Android circle battery icon was too thin and had the wrong shade of white.

Fixes: AOSPA-179, community request

Fixed color to match other battery icons

PS2: Fixed spacing

Src: https://gerrit.paranoidandroid.co/#/c/4030/
How it looks/origin: https://paranoidandroid.atlassian.net/browse/AOSPA-179

Change-Id: I084bbacefb37fdf64368f80baa95d79e2bd8e2bc
SystemUI: Battery View Fixes

Fix inconsistent battery tile showing
	if battery is disabled in statusbar

PS2: Immediate update on inflate

Change-Id: I84618fb585eb700409932177041fa8ca3cadf92a

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/BatteryTile.java
SystemUI: Fix percentage charging color does not apply

How to reproduce:
Set colors to default. Try to set only charging color.

Result:
- nothing happens when you try to charge and it is out of the max and min levels

Expected behaviour
- user choosen color applies if the user charges and it is outside the max min levels

The JB style icon which was recently introduced broke the logic completely. Clean it a
bit up and apply the colors correctly depending on the choosen style.

NOTE for the future: We have since the JB style patch 2 different behaviours....text has now indication
during charge when it is outside the min max levels. All circle styles do not have this
indication. Nothing big but we are usually consistent and should think about it.

Whatever functioniallity wise it is fixed

Change-Id: I5029d09fbf1a7e4181b082ad55d9607bcf8a63cc
Base: Custom Statusbar/icons color

Change-Id: I2cb8702916f4ae8e867fd1b67ffa9df73f715f48

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java