PackageManagerService: Fix silly derp after 4.4.3 merge

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
SystemUI: Iterate only over existing Pie snap points
Quicksettings: Fix theming of basic tiles in edit mode

In edit mode the background of basic tiles was
overridden (not sure why), which broke theming.

We'll just remove this...

Change-Id: Ie80620b7385a1d8a59b737f0a4ae138c13e68ee6
Signed-off-by: Evan Anderson <evan@thelinuxman.us>
Quicksettings: quick pulldown: try to fix pulling down the wrong side

getWidth() may return 0 when NotificationPanelView isn't laid out yet.

Change-Id: I32f423decf42d08466cbe73bd23ccf70ce66e093
Signed-off-by: David96 <xD_e-mail@gmx.de>
Themes: Full support for AOSP Volume Panel

- Recreate VolumePanel with theme enegine UiContext.
- Revert this https://gerrit.paranoidandroid.co/#/c/4375/ since we don't have
  the code with the panel they refer to. Just leave UiContext commented out, maybe
  we'll need that lately.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: Ifc9fd02ec4d263050b7d5f689935fa5e82095d26
Themes: Full support for PA GlobalActions dialogs + ancient derp fix

- Use Theme Engine UiContext for creating dialogs.
- Add theming to reboot confirm dialog(s), send UiContext to ShutdownThread aswell.
- Fix dialog not being recreated when calling showDialog() and dialog being not null is nullified
  without being recreated (we don't call handleShow() there).
  Introduced here https://gerrit.paranoidandroid.co/#/c/128/ but not affecting the final result,
  now we have Theme Engine tho we need it.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
GlobalActions: Fix extremely broken indenting

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I5be49ad3e083243dd70259a5114cd771d6bdcc1f

Conflicts:
	policy/src/com/android/internal/policy/impl/GlobalActions.java
Floating window: Fix possible NPE

Avoid possible NPE if app provides no interface such as pushbullet's
test notification & other apps which provide one.
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
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
Core: DE translation

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

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

Conflicts:
	core/java/android/provider/Settings.java
Add the appropriate @hide flag so we can build!

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

Change-Id: I5e3a7ea2455a4c407928bb5c90b7fc4e5906aa73