Themes: Add read/write permissions [1/2]

Change-Id: Id9710a7f6058454f563488288220744b02cc4850

Conflicts:
	core/res/res/values/cm_strings.xml
CM11 Themes: Use sendBroadcastAsUser in ThemeService

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

Change-Id: Ie77b13cee84d5b472f878dba6388f3e168f5a249
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
Reduce memory leaks by removing all views.

Change-Id: I64b95981425840d101c8122421281976d0251bae
Revert "Reduce memory leaks by removing all views."

This reverts commit 113702733115d2bc3078f1e2eb08fbaa99cf9101.
equalizer tile : merge derp
Don't read settings constant on every touch event for double tap to sleep

Change-Id: I5108d24b7006e518926ce02d1a5eae8da406df8f

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Adjust animation
CM11 Themes: Delay setting default theme

Change-Id: I56c0ae7a8b6868a1e81b6c7a72c0dd4a079cd7ba
Framework: Pulse Torch On Incoming Call (4/4)

Move our SliderPreference to framework for
	global usage

Add some torch constants

Add Settings entries

Change-Id: I3bf8e3d140ef507e2a72e3abbdad6ec1603dfbc3

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/slim_strings.xml
Remove getter from PSBV animation method for dimming under the shade

Since we require a reboot to process high end graphics toggle on low end devices
there's no need to use a getter.  This method is processed a metric shit-ton of times
expanding/collapsing the shade.

PS2: missed a reference to isHighEndGfx()

Change-Id: Icf5af809e26fe79692c6185b51cc71deeb0aadde
ActivityManager: Rejigger HighEndGfx: only propget/stringcomp and resget once (in isHighEnd, rather than constructor)

Change-Id: I6ec977a9e8c7f46b186594c7bf6cad6a690121c9

Conflicts:
	core/java/android/app/ActivityManager.java
Memoize memory class lookup methods

These methods are commonly accessed.  Lets make sure we only do systemproperties lookup
once since these values aren't changing afterwords.

Change-Id: I77802ed367e4180f4d97e6abbd98170e6cf7a0d4

Conflicts:
	core/java/android/app/ActivityManager.java
Revert "CM11 Themes: Delay setting default theme"

This reverts commit 293d7e8547a05bcb17042402c18849571cd1edcf.

Change-Id: Ib36dd5f649b985238724dac06cbd0dca2eccb2cf
CM11 Themes: Add themeChange config change to manifest

Change-Id: Ia84c0089a79637906e4f75fa38a56e8ff3b21a2b
CM11 Themes: Don't kill setup wizards

Change-Id: Ib68dbf08b5b65f66e73f2f22882932ced0851093
Fix wallpapers not applying in full screen

Change-Id: I01f451d0b9a2236c2cdf0c7533e6f13ef03b7bf2
WallpaperCropper requires these permission.

Without these it just crashes lockscreen wallpaper.

Change-Id: I25c676244a919ed355e02664828ddd79dd327062
No need to hide flags in configChange

Change-Id: I36cda275f836d07e639419db8c856c7527307907