Squashed commit of the theme engine support.

Updated 4.2 support for the old T-Mobile theme engine, as usual
needs the provider and switcher apps installed as well.

I'm finally dropping the 400+ commit history on this, since everybody
else keeps picking it up from CM as a single patch anyway... But
for the record, nothing of this would be possible without Josh, Ed,
and the rest of the TMo guys who wrote and maintained it until 2.2:

amit chabra <amit.chabra@t-mobile.com>
Amit Kohli <amit.kohli@t-mobile.com>
Chris Cogar <chriscogar@t-mobile.com>
Dirk Sigurdson <dirk.sigurdson@t-mobile.com>
Ed Carrigan <edward.carrigan@t-mobile.com>
Gaurav Sharma <gaurav.sharma3@t-mobile.com>
Hui Feng <hui.feng@t-mobile.com>
John Ritz <john.ritz1@t-mobile.com>
Josh Guilfoyle <josh.guilfoyle@t-mobile.com>
Mark Roberts <mark.roberts48@t-mobile.com>
Pankaj Kumar <Pankaj.kumar6@t-mobile.com>
Samuel Cheung <samuel.cheung@t-mobile.com>
Sergey Ten <sergey.ten6@t-mobile.com>

Change-Id: I7148d51be48f28a2dc4bdf9ec9018f04b268ffc4

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	media/java/android/media/RingtoneManager.java
	policy/src/com/android/internal/policy/impl/GlobalActions.java
	services/java/com/android/server/NotificationManagerService.java
	services/java/com/android/server/wm/WindowManagerService.java

 Author:    Ricardo Cerqueira <cyanogenmod@cerqueira.org>
 Changes to be committed:
	modified:   Android.mk
	modified:   core/java/android/app/ActivityManager.java
	modified:   core/java/android/app/ActivityThread.java
	modified:   core/java/android/app/ApplicationPackageManager.java
	modified:   core/java/android/app/ContextImpl.java
	modified:   core/java/android/content/Intent.java
	modified:   core/java/android/content/SyncManager.java
	modified:   core/java/android/content/pm/ActivityInfo.java
	modified:   core/java/android/content/pm/ApplicationInfo.java
	new file:   core/java/android/content/pm/BaseThemeInfo.java
	modified:   core/java/android/content/pm/IPackageManager.aidl
	modified:   core/java/android/content/pm/PackageInfo.java
	modified:   core/java/android/content/pm/PackageManager.java
	modified:   core/java/android/content/pm/PackageParser.java
	new file:   core/java/android/content/pm/ThemeInfo.aidl
	new file:   core/java/android/content/pm/ThemeInfo.java
	modified:   core/java/android/content/res/AssetManager.java
	modified:   core/java/android/content/res/CompatibilityInfo.java
	modified:   core/java/android/content/res/Configuration.java
	new file:   core/java/android/content/res/CustomTheme.java
	new file:   core/java/android/content/res/PackageRedirectionMap.aidl
	new file:   core/java/android/content/res/PackageRedirectionMap.java
	modified:   core/java/android/content/res/Resources.java
	modified:   core/java/android/os/SystemProperties.java
	new file:   core/java/com/android/internal/app/IAssetRedirectionManager.aidl
	new file:   core/java/com/android/internal/app/ThemeUtils.java
	modified:   core/java/com/android/internal/os/ZygoteInit.java
	modified:   core/jni/Android.mk
	modified:   core/jni/AndroidRuntime.cpp
	modified:   core/jni/android_util_AssetManager.cpp
	new file:   core/jni/android_util_PackageRedirectionMap.cpp
	modified:   core/res/AndroidManifest.xml
	modified:   data/etc/platform.xml
	modified:   include/androidfw/AssetManager.h
	new file:   include/androidfw/PackageRedirectionMap.h
	modified:   include/androidfw/ResourceTypes.h
	new file:   include/androidfw/ZipEntry.h
	new file:   include/androidfw/ZipFile.h
	modified:   libs/androidfw/Android.mk
	modified:   libs/androidfw/AssetManager.cpp
	new file:   libs/androidfw/PackageRedirectionMap.cpp
	modified:   libs/androidfw/ResourceTypes.cpp
	modified:   media/java/android/media/AudioService.java
	modified:   media/java/android/media/Ringtone.java
	modified:   media/java/android/media/RingtoneManager.java
	modified:   packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
	modified:   packages/SystemUI/res/layout/status_bar.xml
	modified:   packages/SystemUI/src/com/android/systemui/SystemUI.java
	modified:   packages/SystemUI/src/com/android/systemui/SystemUIService.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
	modified:   policy/src/com/android/internal/policy/impl/GlobalActions.java
	modified:   policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	new file:   services/java/com/android/server/AppsLaunchFailureReceiver.java
	new file:   services/java/com/android/server/AssetRedirectionManagerService.java
	modified:   services/java/com/android/server/DeviceStorageMonitorService.java
	modified:   services/java/com/android/server/InputMethodManagerService.java
	modified:   services/java/com/android/server/NotificationManagerService.java
	modified:   services/java/com/android/server/SystemServer.java
	modified:   services/java/com/android/server/ThrottleService.java
	modified:   services/java/com/android/server/UiModeManagerService.java
	modified:   services/java/com/android/server/am/ActivityManagerService.java
	modified:   services/java/com/android/server/connectivity/Tethering.java
	modified:   services/java/com/android/server/pm/PackageManagerService.java
	modified:   services/java/com/android/server/pm/Settings.java
	modified:   services/java/com/android/server/wm/WindowManagerService.java
	modified:   test-runner/src/android/test/mock/MockPackageManager.java
	modified:   tools/aapt/Bundle.h
	modified:   tools/aapt/Main.cpp
	modified:   tools/aapt/ResourceTable.cpp
Audioservice: Fix Theme engine support

A few more instances of mVolumePanel.postXXXX had to be enclosed in a
null pointer avoidance wrapper.

Change-Id: I60a0544b5a785417af1ea61e7322b06f2748876b
Framework: Remove orphaned Theme related code

Change-Id: I930d4cc75e655c5bc37532e6a1425d27bd1ee661

Conflicts:
	services/java/com/android/server/NotificationManagerService.java

 Author:    DvTonder <david.vantonder@gmail.com>
 Changes to be committed:
	modified:   services/java/com/android/server/NotificationManagerService.java
@hide API change from themes

Change-Id: Ia0798346d2e8e5a84e8456bb89b7d503a71a7afa
GlobalActions: Fix dialog dismissal

The themeability of the global actions dialog introduced by
change I644e2e8d7d4abf07bae639b606197d691f16adac broke the
hook that prevented multiple instances of that dialog, and
multiple instances of it will cause framework crashes due to
mismatches variable references (besides looking weird).

Fix it by restoring the original dismissal condition and forcing
a recreation of the theme context if necessary.

Change-Id: Ic6e06bef18fa9e09c84c774fa273f1b7e3bf9630
add fmradio

...

 Changes to be committed:
	new file:   fmradio/include/android_fmradio.h
	new file:   fmradio/java/com/stericsson/hardware/fm/FmBand.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/FmBand.java
	new file:   fmradio/java/com/stericsson/hardware/fm/FmReceiver.java
	new file:   fmradio/java/com/stericsson/hardware/fm/FmReceiverImpl.java
	new file:   fmradio/java/com/stericsson/hardware/fm/FmReceiverService.java
	new file:   fmradio/java/com/stericsson/hardware/fm/FmTransmitter.java
	new file:   fmradio/java/com/stericsson/hardware/fm/FmTransmitterImpl.java
	new file:   fmradio/java/com/stericsson/hardware/fm/FmTransmitterService.java
	new file:   fmradio/java/com/stericsson/hardware/fm/IFmReceiver.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IFmTransmitter.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IOnAutomaticSwitchListener.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IOnBlockScanListener.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IOnErrorListener.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IOnExtraCommandListener.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IOnForcedPauseListener.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IOnForcedResetListener.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IOnRDSDataFoundListener.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IOnScanListener.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IOnSignalStrengthListener.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IOnStartedListener.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IOnStateChangedListener.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/IOnStereoListener.aidl
	new file:   fmradio/java/com/stericsson/hardware/fm/package.html
	new file:   fmradio/jni/Android.mk
	new file:   fmradio/jni/android_fmradio.cpp
	new file:   fmradio/jni/android_fmradio_Receiver.cpp
	new file:   fmradio/jni/android_fmradio_Transmitter.cpp
Merge branch 'rz-test' of github.com:MikereDD/android_frameworks_base into rz-4.2