SystemUI: fix wrong statusbar background.

If we turned off screen while some panel was visible than
background of PhoneStatusBarView will not be updated because we receiving single
panelExpansionChanged call and after super.panelExpansionChanged mFadingPanel
will be null (onAllPanelsCollapsed cause this).

Allow updating background when mFadingPanel is null.

Change-Id: Ib123f27500790c1b7ec787b7e433372629daa08d
(cherry picked from commit f5de740402d6e6698461cf41f5e538b1c4ea54b1)
Improve AOSP Download/Upload animation

This increases the number of png required for a full download/upload animation cycle.
These new png makes the animations much smoother.

(cherry picked from commit 585d90ee03e5d01347fd2a4a6c3440362984153f)
(cherry picked from commit 76b1c521de8041da27f57d9da99439e167953663)
(cherry picked from commit 5f283c91cb558392b9848cddaa60c813f1728965)
(cherry picked from commit 27c2f154c41c0a3c427ae4f898ac7381537bf2bd)
(cherry picked from commit a60ec589ad2fff6de38b4f49439c53815a5571d3)
(cherry picked from commit 4e75b0daebc63c80165050905c18dbb0d5bacfe3)
(cherry picked from commit d995ac8943e5a7cde3c200750845f5c981bfb493)
(cherry picked from commit 0686130b49ca84ae8d5b72d5ae07678bff4bd19b)
(cherry picked from commit 8dea568652248d75f84c0ba6c89f3f07c6d2b6a5)
Fix appwidgets not updating

Previously there was a bug where if an appwidget's update caused a
TransactionTooLargeException then the AppWidgetServiceImpl.Host's
callbacks were completely disabled, for all widgets.

The fix still allows a DeadObjectException or other RemoteException
to disable the host callbacks, as that would be caused by a bad host.

Fixes issue 28216 on the public tracker
https://code.google.com/p/android/issues/detail?id=28216

Change-Id: I5c5d5939d7211ed23cca69e6674de730b51b0f3e
Signed-off-by: Kevin Barry <kevin@teslacoilsw.com>
(cherry picked from commit 0eeb3dcfa81b8d14a5b980441038fa9feeb3c557)
(cherry picked from commit f42976bf8534e01ebddb24c25a67ba3ef213dab4)
(cherry picked from commit 136675c94c1255337127d4776b80e68c3e6b7cb2)
(cherry picked from commit 25aa3becfd51a0cf7ffb9337b30679143370c6b7)
(cherry picked from commit 2d3a2cc7946d57eab354d4d1ff2e9eb0372cdd91)
(cherry picked from commit 723017bc7fb639adeab80f2f43db510b5f8aa373)
(cherry picked from commit e1589a774dfc4298f423eca7d5de64b013526c35)
(cherry picked from commit cbe569215b4afdfc3060730ffe99b28080be5b56)
(cherry picked from commit 75a798150a36a73e93c4c4b9ba2935bcba02f944)
add a varaible
(cherry picked from commit 514ffb683718495ab5fa47f1913012aa2a218cdc)

(cherry picked from commit e8c960f363c3e907fab777c69094700fac119c2c)
(cherry picked from commit 65225b4942cc8e1aab2d5b547e08923cca4231da)
(cherry picked from commit c40bca4dfc66a8247aacae92e0af93efc4247dfe)
(cherry picked from commit 99813682e4b31846d56f3b24882d00e9c5ba65de)
(cherry picked from commit a96cb07f86ddb9902bfe1959a90c2c0418b36f54)
(cherry picked from commit 552ad00594d3ceb7d4e83134e2769155fa5f19ef)
(cherry picked from commit 9326a18876ceda2c6e9af093165a374f62f5add0)
Revert "[2/2] Frameworks: HALO"

This reverts commit 94a1fbb9396b2f00d7b39b6d398b57154d87e182.

Conflicts:
	core/java/android/app/INotificationManager.aidl
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	services/java/com/android/server/NotificationManagerService.java

(cherry picked from commit 88f07f1fca935ce679c56c94fcdc4096786b2e76)

Conflicts:
	core/java/android/app/INotificationManager.aidl
	core/res/res/values/symbols.xml
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/layout/status_bar_expanded_header.xml
	packages/SystemUI/res/values-land/dimens.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	services/java/com/android/server/NotificationManagerService.java
[2/2] Frameworks: HALO

Forward port from jb.
PS1: Initial port
     Fix conficts with notification LED
     Fix derp
     Major derp
     HALO Mods
     Rebase
     Fix blackist, code clean and added some TODOs
PS2: Fix build
PS3: Fix bubble sometimes doesn't respond on new notification
PS4: Align halo icon
PS5: Keep floating app in recents and disable transparent layer temporarily
PS6: Fix conflict after recent merges
PS7: Cosmetic fixes:
* Fix buttons layout in status bar.
* Status bar button holders show halo + qs switch on notification and qs edit mode + notification switch on qs.
* Update new margins size.

Change-Id: I3e79945433d61da090ca263f4e2989be9987f11d

Conflicts:
	core/java/android/app/INotificationManager.aidl
	core/java/android/provider/Settings.java
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/layout/status_bar_expanded_header.xml
	packages/SystemUI/res/values/pa_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	services/java/com/android/server/NotificationManagerService.java
	services/java/com/android/server/am/ActivityStack.java

(cherry picked from commit b26ce3d0315bfbfc9bbd65ae699687223a755e57)

Conflicts:
	core/java/android/app/INotificationManager.aidl
	core/res/res/values/symbols.xml
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/layout/status_bar_expanded_header.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	services/java/com/android/server/NotificationManagerService.java
remove doubles

(cherry picked from commit 578ca4bcce90b1e597571db19d08190b4a8df91a)
derp
(cherry picked from commit cecbac77cacff388abc8b43b3bb46ff7ddd194bd)
derp
(cherry picked from commit ee09c603f7a081cdb07cca63e9ede00a028d4c7e)