Switch to JPEGs for AOSPA Wallpapers

Some parts of Android expect images to be in JPEG format - Therefore this commit removes the PNGs & puts in the JPEG versions of the wallpaper.

Change-Id: Ic0b4731b5c6dab5212e881c821280372148011e7
Themes: Force recompiling common resources when scanning theme

If a theme is re-installed multiple times and in less time than
the 3 minute timout for common resources, it is possible for the
installation to fail because it does not compile the common resources.
This is not something an average user would encounter normally but
theme designers that are working on there theme and constantly
installing updates have a better chance of encountering this situation.
We simply remove the theme from mAvailableCommonResources which will
allow them to be recompiled.

Change-Id: I04b64645157dbb1d0c26fab95c851b34bfff3f42
[1/2] Base: Lockscreen wallpaper

Allows user to choose a custom wallpaper for lockscreen
Change through
Settings->SecuritySettings->Lockscreen->CustomBackground

Add mechanism to disable lockscreen blur if lockscreen
rotation is enabled

OmniGears: https://gerrit.omnirom.org/6574

PS40:
-use documents as primary chooser
-dont rotate wallpaper
-UI rework

PS41:
-cleanup

PS42:
-more cleanup

PS43:
-fixed multi-user handling

Change-Id: I97a6d31ef8915bc3a12b48426afbd6d0b92a41f6

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
Merge remote-tracking branch 'pa/kitkat' into kitkat
extmediaplayer: miscellaneous fix

Fix for issue 20936 reported by KW.

Change-Id: I512657696d99bbe64edfffa0ad7c687651a31acc
Fix memory leak in nativeDecodeFileDescriptor

Fix memory leak in nativeDecodeFileDescriptor:
SkFILEStream::kCallerRetains_Ownership is used to keep
life cycle of file in Java,so fclose is not called when
destruct SkFILEStream because ownership not belong to
native here, while when file is closed in Java, close
is called instead of fclose,that means buffer allocated
by malloc in fseek, when create SkFrontBufferedStream
with this filestream, will not be freed, because this
buffer will only be freedin fclose.
To fix this issue: duplicate this fd, and use
SkFILEStream::kCallerPasses_Ownership for SkFILEStream,
means Java and native manage file life cycle separately.
CRs-Fixed: 718738

Change-Id: I1c664551ab8d381db2e1f948a2207bc6fb7a11f9
AudioService: Fix monitorRotation for landscape applications

Current implmntation only sends rotation updates on orientation
changes, so does not handle direct 0<->180 or 90<->270 transitions.

Update rotation based on an OrientationEventListener instead of
Intent.ACTION_CONFIGURATION_CHANGED

Bug 17606902

Change-Id: I01dfcd1c587f5b2e8a96365c2389782ad77936ef

Conflicts:
	media/java/android/media/AudioService.java
lowmemorykiller: Overwrite LMK parameters for low-tier devices

LMK parameters calculated by default algorithm were not optimal for
low-tier devices. Values mentioned here were well tested and
evaluated w.r.t memory and performance for such setups.

Change-Id: I40ed92d204aae6e758028ea1e9bd4ec7226dbe2b

lowmemorykiller: fine-tune LMK parameters for low-tier devices

LMK parameters for low-tier devices are fine-tuned for better
concurrency. Values mentioned here were well tested and
evaluated w.r.t memory and performance for such setups.

Change-Id: I0d547f1ec84863bbaedb68d9aba1ff7aef057e42
Support full size application screenshots

Add optional width and height parameters for
ease of capturing entire application screenshots

Change-Id: I6d154f6b33bfb8ec90e3757a40382c1dc6feaad3
Merge branch 'kitkat' of https://github.com/AOSPA-legacy/android_frameworks_base into kitkat-legacy-staging
Revert "Systemui: ignore bartransitions if we are not on highend gfx"

This reverts commit 8cee5e7df73efac25cb08d34bcab76770303bcb3.

Change-Id: Idcc944333139a84fd6215529591ca0b03a9b7e31
Implement Dynamic System Bars [1/2]

This commit implements DSB. Simple as that.

All the changes:
- frameworks/base (I3bc7102b2139fd1fa3de22aac096bd2a75bde878)
- packages/apps/Settings (Id2b105dfb3faf3cad74d0fa0dc33d01f6b71a853)

Change-Id: I3bc7102b2139fd1fa3de22aac096bd2a75bde878

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarTransitions.java
Merge remote-tracking branch 'aospa-legacy/kitkat' into kitkat-legacy-staging

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
Tinted support for ClockCenter