Battery status icon tweaks

    * Circle battery color and size adjusted
    * Battery bar text color
        - Black above 50%
        - White 50% & under
    * PS2: Use kitkat holo white

    :) :) :) :) :D

Change-Id: I28e3da69130bd088849133bb9c504e1f21897d0c
Fix: Battery Status Icons

    - Dim circle battery icon on opaque status bars (reflect stock behavior)
    - Reduce size of circle battery
    - Reset battery bar text color when it crosses the 50% threshhold

Patch Set 1: Initial Commit
Patch Set 2: Remove pa_colors

Change-Id: If182ee6e3c5f10a8b9354ae77094fb659108454a
[1/2] Frameworks: Battery Icons

      Reveal hidden battery option
      Remove all customizations; return to stock design

PS2 - made font black and bold

Change-Id: I026daf0e2b75c8cf9923ed28ef02289813cfdb50
Battery Text: Fix rounding issues and take density into account

We are a Multi-Dpi ROM... on 4.2 and 4.3 the text in the circle battery icon
was a small bit up on a lower dpi. 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 should be fixed

Change-Id: I5c6c1e237cd9049101ee88347a9b4d4b5a2b9682
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

Change-Id: I084bbacefb37fdf64368f80baa95d79e2bd8e2bc
Quicksettings: Correct alignment.

* Fix issues cumulated during quick settings rework, restore android behaviour for margins and ditch empty views (that were applied only to basic constructed tiles).
* Wrap battery views into a separate parent layout so we align only that one that contains both.
* Clean circle battery sizes calculations and ditch inside padding for external margin (derp).
* Increase dual switch area a bit, since is an overlaied view is fine does not affects margins.

Before:
* https://drive.google.com/file/d/0B2UbDLX5_0AjWkFmcEtKN3hJcHM/edit?usp=sharing
* https://drive.google.com/file/d/0B2UbDLX5_0Ajb1F3MWw4UjVpYzg/edit?usp=sharing

After:
* https://drive.google.com/file/d/0B2UbDLX5_0AjY3ZvUm54S1ZURGc/edit?usp=sharing
* https://drive.google.com/file/d/0B2UbDLX5_0AjUXJrMlpTSlpVLTQ/edit?usp=sharing

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Global actions cleanup

Also include spanish translations

Patchset 2: Fix build
Patchset 3: Add message to confirmation dialog
Patchset 4: More consistency with the system

Change-Id: I09bf56374a5ba9a875b94a53845be99a347417dc

Conflicts:
	core/res/res/values/pa_strings.xml
Quicksettings: Set proper dual tiles visibility when recreating them

Every time QS are recreated, set back visibility to GONE, so after applying
a theme with transparent background QS front tile doesn't show its back one behind.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Add Lightbulb NavRing target (1/2)

Conflicts:
	core/java/com/android/internal/util/rascarlo/NavigationRingHelpers.java
	core/java/com/android/internal/util/rascarlo/TorchConstants.java
	packages/SystemUI/src/com/android/systemui/rascarlo/ActionTarget.java

Conflicts:
	core/java/com/android/internal/util/simpleaosp/NavigationRingHelpers.java
	core/java/com/android/internal/util/simpleaosp/TorchConstants.java

Change-Id: I0e31266e5032148901b61de4235046257d6f2375
navring fix

Change-Id: I6d787e7691199bc60e14e23c838d8493ef34e01a
Add GlowPadView extensions needed for lockscreen targets and nav ring.
Fix layout of MultiWaveView and GlowPadView.

If the calculated size of the rings is much smaller than the measured
size (which is happening e.g. on mdpi 600x1024 tablets), the glow pad
appeared shifted to the right.
This happened due to the insets being calculated as difference of
available and needed size, and later on being added to the available
size. Example numbers (Nexus 4 with density forced to 160):
- computed size in onMeasure: 768x505
- scaled size in onMeasure: 505x505
- thus, insets are calculated as 131/0
- in onLayout, placementWidth (364) and max target width (108) are much
  smaller than width (768)
- thus, center is calculated as 131 + (768 / 2) = 515, thus shifted to
  the right

Fix that by not using width in the calculation, as the inset size
already takes it into consideration.
navring fix

Change-Id: Ia3153f68aa063612741c6fa42e3963a28e1ffbc1
lightbulb fix

Change-Id: I0bca379a9878c7eb4dc80f69e284decdf05a4099
kill app long press back

Conflicts:
	core/res/res/values/ras_strings.xml
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Change-Id: Ieb749482c432a8ad72abb98c574923fdd573603c
Add some kk drawables and update some others (Credits: Rush25) :)

Conflicts:
	packages/SystemUI/res/drawable-hdpi/ic_qs_torch.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_torch.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_torch.png

Conflicts:
	core/res/res/drawable-hdpi/ic_sysbar_quicksettings.png
	core/res/res/drawable-mdpi/ic_sysbar_quicksettings.png
	core/res/res/drawable-xhdpi/ic_sysbar_quicksettings.png
	core/res/res/drawable-xxhdpi/ic_sysbar_quicksettings.png

Change-Id: Ibd4ec360fe677cd5a193e900e1634a2c17051d8e
Factor out preference-in-storage check to overridable method.

Change-Id: I2fff3192802f8a180330fda66388eda394334a5a
lightbulb fix

Change-Id: I777dbf83fc1e4a58c17bf32902e8535186cef052
bulb fix

Change-Id: I3cdd25351d693c231e755a5c6245cfb86af0d2af
Allow creating custom dialogs in DialogPreference.

This allows creating non-AlertDialogs while still using the click and
state handling of DialogPreference.

Change-Id: I54fd7d6d6b9f6a49fef1ae95e0178838b3edfa56