Revert "Fix updating of the status bar header image"

This reverts commit b4b68918b24a6e4038f265973c89420c0c261cdb.
Fliptile animation - Music Tile
HeadsUp: Launch in floating window
Halo: Some Tweaks

Do not launch floating window when on default launcher
Do not launch in floating mode if notification is from the foreground app

Change-Id: I6eb2ff093dbc395bc2fb76176c42276f6bd4165b

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/halo/Halo.java
	packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationHelper.java
Recents: Add blacklist interface

https://github.com/AOSPA/android_frameworks_base/commit/0cb44c271ec6e47e7892a66cfacdc6aab867c468

Change-Id: I0c1c8b80a6ffc1d47fbda6a11f775e1344512ae0

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Squashed commit of QuickBoot feature from Qualcomm

QuickBoot: don't log boot events when in QuickBoot mode.

Don't need log boot events when booting from QuickBoot mode.

Change-Id: Id381530418c09ac1d650f45e7a368dbd7945aff3

QuickBoot: don't wake up screen when usb connected

Don't wake up screen in QuickBoot mode when usb connected.

Change-Id: If65936a0edbbc3b36a0768294e5c3bd7d741018a

QuickBoot: filt out alarms that for non-system users

Don't allow alarms for non-system users when under QUickBoot
mode.

Change-Id: I322d08f7236b6895462c4cd3304326c66f67ddd2

QuickBoot: restrict app's auto start under Quickboot mode

Don't let broadcast trigger apps auto start when in Quickboot mode.

Change-Id: I5d156cbea4ef18397ce4569cb74f73a446a6e49b

QuickBoot: remove alarms for killed apps

Device may be woken up by WAKEUP alarms, which have been set
by those killed apps before. Here to get the killed apps list
and remove the alarms from AlarmManagerService.

Change-Id: Ib34f5fc234b834b2fe4528229c267c8693fc76cb

SyncManager: Fix SyncManager null pointer issue under QuickBoot

BOOT_COMPLETED broadcast will cause mBootQueue null pointer issue.
Then system_server will crash. Add protection here to avoid
system_server crash.

Change-Id: I78029dfa90709455e4c2220e06b95640383655f8

QuickBoot: add execption restore mechanism

There may be some exceptions like battery unplugged When device
is put into QuickBoot mode. Then device will be in airplane
mode after next boot. We don't want such kind of things happen.
So start restore task to check if need restore before main
screen shows.

Change-Id: I3d0967c2f446fd71eca87ff085617edca549c984

QuickBoot: switch normal power off to quickboot

Handle power off button when quickboot mode enabled.

Change-Id: I6a668cbe823018b5e508633a76202d0df0381694

QuickBoot: support QuickBoot power on

Support long press power key to power on when in QuickBoot mode.

Change-Id: Id493d352bce73683b9696a2685a6c902f1195799

QuickBoot: Don't handle SHUTDOWN broadcast from QuickBoot

Don't process the ACTION_SHUTDOWN broadcast sent by QuickBoot.
It is only for apps.
Change-Id: I73d1a7b8edda0a898dd052831033806e18b37c99

QuickBoot: rename some intents and broadcasts

Modify some improper names for intents or broadcasts of QuickBoot.

Change-Id: I92357b0110643bb425199452cb03bd75248a5d83

QuickBoot: Support poweroff alarm under QuickBoot mode

Add white list in QuickBoot mode to support poweroff alarm.
    1. Allow original deskclock app and quickboot app to be launched.
    2. Don't filter out deskclock's alarms.

Change-Id: Ie4254e3da45837d3185d3daba625a42c50fd7f52

QuickBoot: enable poweroff charging under QuickBoot mode

control native charger's enable/disable under QuickBoot
mode.

Change-Id: I4f80c74b042e03bddc9f7fe419f4ed1f8b1409d5

QuickBoot: Add wakeup check under QuickBoot mode

We only want QuickBoot application to wakeup screen in QuickBoot
mode. Add wakeup check to filter out other wakeup callers.

Change-Id: Id82a0938003d2a776efda0e39a57877f41fc1ee4

Conflicts:
	policy/src/com/android/internal/policy/impl/GlobalActions.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	services/java/com/android/server/content/SyncManager.java
	services/java/com/android/server/power/PowerManagerService.java

Conflicts:
	policy/src/com/android/internal/policy/impl/GlobalActions.java

Conflicts:
	policy/src/com/android/internal/policy/impl/GlobalActions.java
	services/java/com/android/server/AlarmManagerService.java
	services/java/com/android/server/am/BroadcastQueue.java
	services/java/com/android/server/net/NetworkStatsService.java
	services/java/com/android/server/power/PowerManagerService.java
Avoid possible memory leaks by ensuring stream closures

Stream close() methods should always be called in finally block
to ensure we don't accidentally leak a stream.

Time to fix some old sloppy code.

Patch Set 2:
 + ensure closure of some other streams
Patch Set 3:
 + missing import java.io.IOException
Patch Set 4:
 + missing import
Patch Set 5:
 + missing ';'
 + whitespace cleanup
Patch Set 6:
 - Reverted changes to MemoryUsage (final requirement
     prevents my implentation)
 + fixed Object allocation in Root.java
Patch Set 7:
 + fixed curly bracket style violations
Patch Set 8:
 x fixed my own sloppy code :/

Change-Id: I3460b558ed5b4489296388c9a52fbb773cefd31f

Conflicts:
	packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
Merge in a lot of VANIR fixes and improvements

Thank you guys a lot you're awesome!

eb605813aae3058ef8d111722c5584a867de1df3 improve rotation handling
ed2e8f9ff28a329d4cdb56d49437db3495aa22a2 Forward compatibility fixes
6eb657f2882478f1f327f4ec8ebc945022d4f924 Forward compatibility fix
9ce50c5d886c3d012002699ded8f85380b02d3a6 Missing break in switch statement
5f48acfdd1b3dd0ba9ae41b3a10ac60de267f98c Prevent nullPointerException by updateBondedBluetoothDevices
d9d59b2e1c82f8683e559539501059850ba65f4c Fix to NullPointerException when activity is relaunched
dcd7f57582c39d1eab60408d54a80e1636711ede make WidgetView observer private
0f48310bdb6c8e8d4801c7cc7bdae27a63d6c223 Fix for NullPointerException in HTML5VideoViewProxy
98871cb5a3a1863bacf221589799e0d699265fc2 Selectively restore non-stupid parts of stuff we had before a patented nuclear decrapificating
1cdfaee436b9e38039e8c6a4e92fa6f026886029 build core/jni with fstrict
a7ea71d7b05432ecbcb2b50ba39796d6dabbdb4d services: make sure to recycle set args
6384e8636d55b59e7e6e3e3e6e55eaeeeb5c703a potential GraphRunner leak in camera effects
c2e8755decaf0f9b6b3e5ad4e499388385a2b873 Fix unresponsive home key after waking device with a long press
bed41b9bf1864b8c7e2c3e48dce3cf1cda46e198 Hide traffic on lights out
eb605813aae3058ef8d111722c5584a867de1df3 improve rotation handling
ed2e8f9ff28a329d4cdb56d49437db3495aa22a2 Forward compatibility fixes
6eb657f2882478f1f327f4ec8ebc945022d4f924 Forward compatibility fix
9ce50c5d886c3d012002699ded8f85380b02d3a6 Missing break in switch statement
5f48acfdd1b3dd0ba9ae41b3a10ac60de267f98c Prevent nullPointerException by updateBondedBluetoothDevices
d9d59b2e1c82f8683e559539501059850ba65f4c Fix to NullPointerException when activity is relaunched
dcd7f57582c39d1eab60408d54a80e1636711ede make WidgetView observer private
0f48310bdb6c8e8d4801c7cc7bdae27a63d6c223 Fix for NullPointerException in HTML5VideoViewProxy
98871cb5a3a1863bacf221589799e0d699265fc2 Selectively restore non-stupid parts of stuff we had before a patented nuclear decrapificating
1cdfaee436b9e38039e8c6a4e92fa6f026886029 build core/jni with fstrict
a7ea71d7b05432ecbcb2b50ba39796d6dabbdb4d services: make sure to recycle set args
6384e8636d55b59e7e6e3e3e6e55eaeeeb5c703a potential GraphRunner leak in camera effects
68dfb6b493863aba26074c862e44f3af10f2f61f DeviceKeyHandler squash
c2e8755decaf0f9b6b3e5ad4e499388385a2b873 Fix unresponsive home key after waking device with a long press
35bc0f31e5967b59c7c83a33238a22e611c077a0 PhoneWindowManager: Hardware key handling fixes and cleanup
838f7ebfabc91f4ab2065af46a40cc6c9167a5a5 Fix hardware home key behavior on wake-up
a73132ad1635267886d4969e410723ab18dbb846 Fix ordering of home keypress handling
f84f26bb91c387762cf3048dc2a85dbd59703027 statusbar: performance and fixups
cc104e3cccf3901da2b2040f77fe0f08706c2ed5 interrupter: Use LOCAL_LDLIBS rather than LOCAL_LDFLAGS
44dfffa26e14aee1a9d12c1edc211d40467a4124 Don't unnecessarily recycle things.
d24d56509fcbf88a3bba0177c3721ad253ccad34 Correcting NULL pointer when callerApp is not set
05a382390cde82461d8f53f63d0cb12ce7c55dbd l'oops: fix inputservice ANRs
fa7bd7f869cef7534ed8b6616c5874afbd4b72a5 don't register a content observer if the device is already provisioned
bf0b5c820243ffa101e9f43fa319570fd72d8d03 Privatize PhoneWindowManager
f53da810731f654fa712487f2f468c5b81b816a5 Reduce EntropyMixer seed size from 4096 to 512 bytes.
661b956d0f7ecc4347acbeb86fc585a9ae107110 Detach engines before destroying WallpaperService
1f734ecc9714c2e5ee56b6f17c9a35598dab5c0d frameworks: squash of leak & race fixes
97d08382cd97756c4497389baaed89575810a78e Make ActivityManagerService.systemReady thread safe
c5f90b9bd64a99ffc49fc96b1a066a675069899b Don't ANR when no windows are touchable.
95552ef44afb48052c97dd3b76eb020ff8319700 Avoid IndexOutOfBounds Exception in ActivityManagerService
13b6f23037905ad6cb8538490fcdd47e7bcc26cf Scroll: modified velocitytracker
3ea66792ae162eeafeecc50c858cbe4162248297 recycle TypedArray calls in F_B
4ae81b789e309bf14ae8b8851e5e2df51d12a98d privatize keybuttonview
148ec969b96ea67de9fa2d27b4f5c0298cd74d8c If frameworks wants ASCII casing, it should explicity ask for it.
0ccacb22858eb47946a8f4cda0f50d0dcb17bb65 onSavePassword dialog can leak when WebViewClassic is destroyed.
ac7d546dc6ff67d325a205599edb12bb9cd23bd8 Fix issue #10226007: Reset apps restores most of the changed settings...
63aa94ff65d5ce93c23502136e154fa10db516e2 base: App crash when select suggestion's length more than specified.
560ab7cb9c53739df53c1869350bf78312ffe9c2 Remove useless import statement
3851a0951ea20c64164f5fa9c08ab7476c7d7a45 aapt: set interlace handling for png_read_update_info
ea15b65b7eadd1f769a90f517244f7f45d0f1068 Memory leak: parseObbFile.footer
0d32d6d57709b329eeae965c4badd3df44d60946 GlobalAction dialog ref not set to null
60293f9c8fa23ea8d42ac4b9d74b78ca9a386c5a Follow convention for localizing DB and NET strings
6df4d75495677f8e8e86d8b17877d6d2acf7a8fa Restore previous ViewConfiguration constants

also fixed the traffic meter on lights out

and updated the phone windows manager to match cm their custom keys system

Change-Id: I205a2add9f226913b16d6e8f04335819dda05e29

Conflicts:
	core/java/android/view/ViewConfiguration.java
	core/java/android/widget/Editor.java
	core/java/android/widget/ProgressBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	tools/aapt/Images.cpp