Themes: Let ThemeService handle all theme processing [1/3]

Only themes that are applied will be processed inside of the
PackageManagerService, all others will be sent off to the
ThemeService.

Change-Id: I5f2ec628e1d22a05accc6727efb0c1387455f82f
WallpaperCropper: respect max wallpaper width

Some devices with high resolution screen only support 2048px wide
wallpaper (used to be fixed in I5b25bd931db0b2610e260921f28b92d8b0966aa6)

Pre-KitKat this works as follows:

- Launcher calls WallpaperManager.suggestDesiredDimensions and we
  limit the maximum size in that function
- The wallpaper setting application calls WallpaperManager
  .getDesiredMinimumWidth and respects that size

However, after KitKat, it is all broken because WallpaperCropper
now calculate its own dimension and does respect the value set by
getDesiredMinimumWidth (and it calls suggestDesiredDimensions,
which is supposed to be reserved for Launchers!)

Attempting to restore wallpaper setting by:

- Having WallpaperCropper respect config_wallpaperMaxWidth
- Having CMWallpaper (which copy pasted code from WallpaperCropper)
  respect getDesiredMinimumWidth
- For third party applications, if they respect getDesiredMinimumWidth,
  then they will work, but if they don't (i.e. uses WallpaperCropper's
  code), then there's nothing we can do.

Change-Id: Ib7da12a1c70befbeef2f305593d3841acbc45243
Merge remote-tracking branch 'pa/kitkat' into kitkat

Conflicts:
	core/res/res/values/pa_strings.xml
Themes: Let ThemeService handle all theme processing [1/3]

Only themes that are applied will be processed inside of the
PackageManagerService, all others will be sent off to the
ThemeService.

Change-Id: I5f2ec628e1d22a05accc6727efb0c1387455f82f

Conflicts:
	core/res/res/values/cm_strings.xml
	core/res/res/values/symbols.xml
remove
Merge branch 'kitkat-legacy-test' of https://github.com/AOSPAL/android_frameworks_base into kitkat-legacy-test
QS: Improve code readability

This commit modifies the code for enabling and disabling the edit mode
on Quick Settings tiles. No behavioral changes are introduced.

Change-Id: I8090508a2e5746827431eb7fbcdc981873db0e67
remove
Base: fix tinted navigation bar button color not update

Change-Id: I748a24ab5467a9936cbd8decb37295edaeb93f64
Revert "remove"

This reverts commit db470253e18be2e4eba79e44aea40bbbd38c00a1.
Base: fix and improve tinted system bar

this also fix :
navigation bar button color not update
action bar color extractor
network activity color not update
color progress not apply to current configuration (on rotation)
some apps FCs e.g Google Earth and Plumbers

Change-Id: I748a24ab5467a9936cbd8decb37295edaeb93f64

Conflicts:
	packages/SystemUI/src/com/android/systemui/BatteryCircleMeterView.java
	packages/SystemUI/src/com/android/systemui/BatteryPercentMeterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsBasicBackBatteryTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsBasicBatteryTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkTraffic.java
LN change
Merge "WallpaperCropper: respect max wallpaper width" into kitkat
Add Official AOSPA/PA Wallpaper

An official AOSPA wallpaper needs to be added for branding purposes.

Change-Id: I4b75b5142223ea3eedc81901941e72459ab1c72a
Fix battery views for tinted status bar
Make temporary QS toggles hideable

This commit adjusts the Quick Settings system to allow the temporary
tiles to be hidden and moved around meaning they are more consistent
with the other tiles around them.

Change-Id: I11f2f9f5986f75005bea8200a17ecffeff51a920
Merge remote-tracking branch 'AOSPA/kitkat' into aospal

Change-Id: Ia82ce278538e06bb17b3e029df5bd7f50a41431c
Fix battery views for tinted status bar
Fix normal battery
Merge remote-tracking branch 'aospal/kitkat-legacy-test' into kitkat-legacy-staging