Framework: Use holo alert drawables

Replaces the current usage of the GB alert
drawable with theme-consistent holo ones.

Change-Id: I8594ef8276db5bb0e192f3a541937d7281321043
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
not telling yet what all this will break! anyways its a cherrpick of the following
_____________________

Fix SystemUI memory leaks on theme changes.

ContentObserver and BroadcastReceiver instances were dangling after the
status bar was recreated.

Change-Id: I0ef7ef134029e5deec066d405545b8d9ec58d76b

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/AirplaneModeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/BatteryTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/BluetoothTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/DockBatteryTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/MobileNetworkTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/MobileNetworkTypeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/WiFiTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterTextView.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/QuickSettingsController.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/CircleBattery.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/DockBatteryController.java

 On branch jb-4.2-cp
 Changes to be committed:
	new file:   packages/SystemUI/src/com/android/systemui/quicksettings/AirplaneModeTile.java
	new file:   packages/SystemUI/src/com/android/systemui/quicksettings/BatteryTile.java
	new file:   packages/SystemUI/src/com/android/systemui/quicksettings/BluetoothTile.java
	new file:   packages/SystemUI/src/com/android/systemui/quicksettings/DockBatteryTile.java
	new file:   packages/SystemUI/src/com/android/systemui/quicksettings/MobileNetworkTile.java
	new file:   packages/SystemUI/src/com/android/systemui/quicksettings/MobileNetworkTypeTile.java
	new file:   packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
	new file:   packages/SystemUI/src/com/android/systemui/quicksettings/WiFiTile.java
	new file:   packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterTextView.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	new file:   packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/policy/BluetoothController.java
	new file:   packages/SystemUI/src/com/android/systemui/statusbar/policy/CircleBattery.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
	new file:   packages/SystemUI/src/com/android/systemui/statusbar/policy/DockBatteryController.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
Revert "not telling yet what all this will break! anyways its a cherrpick of the following"

This reverts commit 210f3aed8f2c82c6d9493205c624b379b554adac.

 Changes to be committed:
	deleted:    packages/SystemUI/src/com/android/systemui/quicksettings/AirplaneModeTile.java
	deleted:    packages/SystemUI/src/com/android/systemui/quicksettings/BatteryTile.java
	deleted:    packages/SystemUI/src/com/android/systemui/quicksettings/BluetoothTile.java
	deleted:    packages/SystemUI/src/com/android/systemui/quicksettings/DockBatteryTile.java
	deleted:    packages/SystemUI/src/com/android/systemui/quicksettings/MobileNetworkTile.java
	deleted:    packages/SystemUI/src/com/android/systemui/quicksettings/MobileNetworkTypeTile.java
	deleted:    packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
	deleted:    packages/SystemUI/src/com/android/systemui/quicksettings/WiFiTile.java
	deleted:    packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterTextView.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	deleted:    packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/policy/BluetoothController.java
	deleted:    packages/SystemUI/src/com/android/systemui/statusbar/policy/CircleBattery.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
	deleted:    packages/SystemUI/src/com/android/systemui/statusbar/policy/DockBatteryController.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
ThemeUtils: Retain the original package name in themed UI context

In order for themes to reflect on system elements, we're changing
their context, including the package name.

This breaks anything that tries to identify system elements,
most notably any users of the uiautomator. Trying to do
'UiSelector().packageName("android")' to find, for example,
a force-close dialog will fail.

Fixes com.android.cts.uiautomatortest.CtsUiAutomatorTest#testUiWatcher

Change-Id: Ic05c3024b20ac3772ed5597846fbfa4a184ebb0d