Fix circle battery opaqueness for the low battery color

Because of the DST_ATOP Xfermode the color was drawn below the full
gray ring resulting in a washed out red. Fix this by not setting an
Xfermode and drawing the color normally.
This does not affect the non-low color as it cannot get any whiter.

Fixes: CYAN-3282

Change-Id: If1183dcb272e84858371be3765ba758fa2560eeb
Themes: Add read/write permissions [1/2]

Change-Id: Id9710a7f6058454f563488288220744b02cc4850
SystemUI: Make wifi combo margin themable

Change-Id: Ie77b13cee84d5b472f878dba6388f3e168f5a249
Merge "Fix circle battery opaqueness for the low battery color" into cm-11.0
wm: Underp menu key release processing

Change Iacfedf711d43f6637023c87c00e6c6b8b8a437dc made key release perform
the assigned action regardless of alternate modes, but the keypress
processing depended on said modes. Make it consistent.

Change-Id: I4be44b065f775f0304aa9770778c8fee82ef8ef1
Merge "wm: Underp menu key release processing" into cm-11.0
Revert "Reduce memory leaks by removing all views."

This reverts commit a61cab784f2560d972a1c30554a697d04993c57b.

This is causing BT icon to get caught up in "all views" removal. Backing this out until Clark can look into it.

Change-Id: Ied8f45f035492ee351e6b24fa0ae88c2abfbf9ea
Merge "Revert "Reduce memory leaks by removing all views."" into cm-11.0
Reduce memory leaks by removing all views.

Change-Id: I64b95981425840d101c8122421281976d0251bae
Merge "SystemUI: Make wifi combo margin themable" into cm-11.0
Merge "Themes: Add read/write permissions [1/2]" into cm-11.0
Fix soft reboot using power menu through tile, navring and recent long press

- Using slim roms idea of this commit: https://github.com/SlimRoms/frameworks_base/commit/2d7b1afb903858bf26ac98dc9de64924a5ce9a05 and calling all power menu actions from the same thread

Change-Id: Ie4768a1722a41164474ef300f4a1b67c535349f6
Merge remote-tracking branch 'upstream/cm-11.0' into cm-11.0

Conflicts:
	core/res/AndroidManifest.xml

Change-Id: I99e23cbc6197c51b9adf906b2ea563135b1ae8b8
[WIP] SlimPIE (1/2)

Port to CM11.0 sources by @cristianomatos

Change-Id: I2c3f5f23909f746e1a325be81ec4c3ec83e26568
fb: Handle navbar heights correct on dpi changes + more (1/2)
Till now we set the height in px in the settings. Which is a problem
especially on multiDPI roms like we are when the user afterwards changes
the dpi due that it isn't calculated correct anymore on the new dpi.

This commit does
- save the dp value in provider and calculate the real px in fb
- clean up the settings stuff for it + do it a bit nicer (only settings part
  where we do not set the value for the listview)
- add Converter class for common methods we always use....till now only px->dp
  and dp->px method

Change-Id: I413634fc433e0501eba69db2a463fac231e22f72
fb: restore navbar compatibility with several xposed modules
I am tired of the complains....

Xposed use the emulator overwrite to enable/disable navbar...this results
into showing up navbar on reboot even if the user has set it to off in settings.

This fixes the issue and still keeps for emulator tests the basic overwrite functionallity
alive as long the provider value was not set.

We may should reflect that in settings as well.

Change-Id: I99f04da8110bbcfcdba62604610d1f4330aea4d0
Frameworks: fix qs and notification shade toggle on expanded desktop
If expanded desktop is enabled and statusbar hidden the toggle does not force
the statusbar to show before it pulls down the shade

fix it with just requesting the the statusbar to show up before we actually
peform the action

Change-Id: I3cfae445f02d7911048dcb5199a5492c0f05acc5
Frameworks: Imagehelper...do a nicer resize with better quality

Change-Id: Ibec4658d46a2c6ef1b6bacf505227949c3bcbfdc
Frameworks: fix navbar and pie icons for tablets and RTL

well due that we use a completly other attempt then googles navbar we do not
need to rely on different sized icons for portrait and landscape. So just a square
icon fits our needs perfect (which is so or so everwhere in AOSP default to use square ones).

Whatever recents pie feature showed us that we still forgot to size the pictures for our tablets
and as well for RTL user.

So let us do it now to fix any resizing issues on navbar and or SlimPie

Change-Id: I5257b789a5450754a296141b0af63d2eacaa87c9
Framworks: clean up the AOSP tablet icon mess

well.....on grouper the overlay size for the navbar is/was 56dp...so
google added bigger icons then the usual ones into the sw600dp folders.
Well newer tablets have 48dp as default like the phones so the slightly bigger
icons do not fit 100% correct. It is not much but it is noticable.

So all devices have same navbar default height...so all icons should have same size
as well. Just remove the overlay icons so that the system automatically chooses the right
one from the default screen qualifier.

Change-Id: I4e4d87d70996ed1def359149cea829b5794f2448