Reduce memory leaks by removing all views.

Change-Id: I1c7d3647ae0d40aa214108ea22e007e3cb3191b9
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
Automatic translation import

Change-Id: Ie73ec7956594b8a5892507e3c6b49aa5748a23aa
CM11 Themes: Use sendBroadcastAsUser in ThemeService

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

Change-Id: Ie77b13cee84d5b472f878dba6388f3e168f5a249
Make KeyguardMultiUserAvatar fully themeable

Create the animation color for the username text based on the final
color.

Change-Id: I4b1beb70160e178264c32f3b33c6c0c7c51f70c5
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
CM11 Themes: Use package name from AndroidManifest

It is possible for an apk to have a different package
name for the resources than what is defined in the
AndroidManifest.xml of the apk.  Using the resource's
package name for the base package name causes themed
resources to not be properly loaded.

Instead of returning the resource package name we return
the apps package name from AssetManager.

A good example of this is Trebuchet.  The system sees
it as com.cyanogenmod.trebuchet but it's resources use
com.android.launcher3.

Change-Id: Id57e68b27b3c7509e3358a7fd12ae73a03dd6cdf
Merge "CM11 Themes: Use sendBroadcastAsUser in ThemeService" into cm-11.0
Merge "CM11 Themes: Use package name from AndroidManifest" into cm-11.0
Merge "Reduce memory leaks by removing all views." into cm-11.0
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
Improve scrolling cache

Scrolling cache helps make short scrolls/flings smooth but will
cause stutter when long flings are made. This patch disables
scrolling cache when long flings are made.

This patch also fixes a related bug where scrolling cache will
not be enabled properly when transitioning from flinging to scrolling.

Patch Set 2: Calculate threshold based on maximum velocity (Sang Tae Park)

Credits: Pawit Pornkitprasan

Change-Id: I1fdbaad92263c9f983a32900e74eba1f0367902b
Signed-off-by: Arham Jamal <arhamjamal@gmail.com>