Themes: PhoneWindowManager UI context on demand

Creating the UI context in init causes some elements
like the power menu to not theme correctly. This solution follows
the same pattern as VolumePanel.

Change-Id: I5c12f9a3bc8f5fe8d96ef2775b840926a6c35e28

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Automatic translation import

Change-Id: Ie212c513514118b7e66e911a1afa93f2c4476ba8

Conflicts:
	core/res/res/values-ar/cm_caf.xml
	core/res/res/values-ca/cm_caf.xml
	core/res/res/values-cs/cm_caf.xml
	core/res/res/values-de/cm_caf.xml
	core/res/res/values-el/cm_caf.xml
	core/res/res/values-es/cm_caf.xml
	core/res/res/values-fi/cm_caf.xml
	core/res/res/values-fr/cm_caf.xml
	core/res/res/values-hr/cm_caf.xml
	core/res/res/values-hr/cm_strings.xml
	core/res/res/values-hu/cm_caf.xml
	core/res/res/values-in/cm_caf.xml
	core/res/res/values-it/cm_caf.xml
	core/res/res/values-iw/cm_caf.xml
	core/res/res/values-ja/cm_caf.xml
	core/res/res/values-lt/cm_caf.xml
	core/res/res/values-nl/cm_caf.xml
	core/res/res/values-pt-rBR/cm_caf.xml
	core/res/res/values-pt-rPT/cm_caf.xml
	core/res/res/values-ru/cm_caf.xml
	core/res/res/values-si/cm_caf.xml
	core/res/res/values-sk/cm_caf.xml
	core/res/res/values-sr/cm_caf.xml
	core/res/res/values-sv/cm_caf.xml
	core/res/res/values-sv/cm_strings.xml
	core/res/res/values-th/cm_caf.xml
	core/res/res/values-th/cm_strings.xml
	core/res/res/values-tr/cm_caf.xml
	core/res/res/values-zh-rCN/cm_caf.xml
	packages/Keyguard/res/values-sr/cm_caf.xml
	packages/SystemUI/res/values-hr/cm_strings.xml
	packages/SystemUI/res/values-ja/cm_strings.xml
	packages/SystemUI/res/values-sv/cm_strings.xml
	packages/SystemUI/res/values-th/cm_strings.xml
	packages/WallpaperCropper/res/values-sr/cm_strings.xml
	packages/WallpaperCropper/res/values-sr/strings.xml
	packages/WallpaperCropper/res/values-zh-rHK/cm_strings.xml
	packages/WallpaperCropper/res/values-zh-rHK/strings.xml
hwui: Always enable the scissor while composing layer

Due to scissor optimization feature added in KK, scissor was disabled
all the time. Hence the undefined areas/region of textures are not
masking properly with GL_LINEAR filter mode.

Change-Id: Ifbbde2c67a4c01e45eda07ada709e066255fffcb
CRs-fixed: 645077
CM11 Themes: Add support for composed icons [1/2]

If an icon pack includes background, mask, and/or foreground
images and an icon is not included for a given app, an icon
will be generated using the background, mask and foreground.

Icon packs can include the following items into their
appfilter.xml
    <!-- Set deafult scale factor for the icons -->
    <scale factor="1.0" />

    <!-- Set back image for composed icons -->
    <iconback img="iconback" />

    <!-- Set the mask image for composed icons
         Original icon will be masked off using this mask -->
    <iconmask img="iconmask" />

    <!-- Set foreground image for composed icons -->
    <iconupon img="iconupon" />

Note: Mutliple iconback images can be used as follows
    <iconback img1="iconback1" img2="iconback2" img3="iconback3" />

Change-Id: I0f5fd7de4f0eae485139cbcd282c1d1e1663952f
Themes: Don't set icons for iconpack that is applied.

Change-Id: I3cffade2c12ae1dbc1f75e43f1a74609ff0d7135
Themes: Don't kill launchers that handle the theme change

Change-Id: I5e3a7ea2455a4c407928bb5c90b7fc4e5906aa73
listview: ensure active views are filled prior than scrap views

The internal Recycler#fillActiveViews should be called prior to add any view
to the scrapViews queue, so it can be use safely without detaching views
because out of sync.

Change-Id: Ie119ad871a89e0a3fa1e07e955fcd5ca7b171f46
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Core: DE translation

fix mistake introduced here: https://github.com/CyanogenMod/android_frameworks_base/commit/aae5fb42cc825c3f8b496459de59aa45e3f35c81#diff-33af748df9221ad8074392556276ec26

Change-Id: I4efb3fa95ed06b3b04751ebc11e773bf32f66b7f
Protected App [1/3]
 PackageManager:
   Add support for Protected App Components
   Adding protect flag to ApplicationInfo

 SettingsProvider:
   New DB entry for protected app components

Change-Id: If04843e93b572191d4654c01f4da8f087ba9fba8
Fix compile time error with Protected Apps

Change-Id: Ib53178b4ca3e9a32d523ad003816230d758925b4
Add the appropriate @hide flag so we can build!

Change-Id: Id45f682287741badb13e256f6029c52820a068bd
Themes: Add categories to theme change intent.

The following categories are available:

org.cyanogenmod.intent.category.MODS_HOMESCREEN
org.cyanogenmod.intent.category.MODS_LOCKSCREEN
org.cyanogenmod.intent.category.MODS_ICONS
org.cyanogenmod.intent.category.MODS_FONTS
org.cyanogenmod.intent.category.MODS_BOOTANIM
org.cyanogenmod.intent.category.MODS_NOTIFICATIONS
org.cyanogenmod.intent.category.MODS_ALARMS
org.cyanogenmod.intent.category.MODS_RINGTONES
org.cyanogenmod.intent.category.MODS_OVERLAYS

Change-Id: Ic444278d1d712cb6207bb10574a471524a8fed41