SystemUI: Avoid "phantom" status bar collapsing

There is one specific case where the status bar may collapse
for no aparent reason: When the last notification is removed.

If Quick Settings panel is showing while such a notification
is removed, the status bar WILL collapse -- and the user may
be left wondering why, because the notification that was just
removed isn't visible in that case.

A way to reproduce this behaviour follows:
  1) Settings -> System -> Quick Settings Panel -> uncheck
     "Auto close panel"
  2) Dismiss all notifications, even the sticky ones.
  3) Open the Quick Settings Panel and tap the apropriate
     tile to light the Torch
  4) Tap the tile again, to extinguish the Torch.

As you can see, the Quick Settings Panel collapses. This
happens because Torch puts up a notification, when lit and
removes it, just after it's turned off.

This will happen to whatever notification that hides itself,
e.g. a GMail notification, which vanishes when you read the
e-mail on another device. This too will trigger this issue.

-----

This patch prevents the bar from collapsing, as consequence
of removing the last notification, when Quick Settings is
showing.

Change-Id: I8c7c015c836810a465268b25b90c9166c4485a9f
PIE: animation revamped (back to the first draft), style changes

Change-Id: I9e521ed4f7be2df629f58d933bad286486ec4a71

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/view/PieMenu.java
Policy: fix keyguard statusbar showing while in ext desktop, fixes it in
apps like currents as well

Change-Id: Id3e4b99d60c33e4050e0e97c365d1ae739f603ec
Low battery warning policy (1/2)
Option to choose how low battery warning will be indicated
- Popup dialog and sound
- Popup dialog only
- Sound only
- Off

Change-Id: I9e4f984f89cab8fab626ea1e8e03d7123a8b3cb5
Fix unexpected flip to Settings

Change-Id: I50036c95d8c7b730552a990f4078dc6d6cc8c309
hardware rendering for statusbarmanager and pie

Change-Id: I81dc4def0dffd9b494c52bb3dbc43f400d441f94

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
PIE: option for Pie to maintain its position, disregarding orientation changes (useful for gaming)

Change-Id: I2bde8ee6f6fdff602a1241d4da7fd88ed3216477

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
allow widgets to minimize in extended desktop

Change-Id: If4c7556ebcf0b5ddf7dc93ec56c8fb64dedc9723
PIE: narrow down inner arcs for even gaps

Change-Id: I7e26dd7948cc5552720d3f67df3f1fae55e089ce
Hide statusbar clock also for DashClock

This change hides statusbar clock now not only for cLock and default Clock
also for DashClock

cheers

Change-Id: I3f1c641df74c6a800262b3dce1474f9f1107f362
QuietHours: Y U NO REFRESH!

Updates QuietHours state when user changes through the toggle and reflects current state.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java

Change-Id: I6b8f0d1598fd2d4f62369715720137e7bb7e2c51
Lockscreen see through (1/2)

Also add a few missed headers
Fix Profile Tile

Change-Id: I53b4d6f4a9063c611da8a89ca28699d1b261ce43
Frameworks: Fix possible NPE

cheers

Change-Id: I9c694a749689b0019df4f1d82f06dc56ee79efc2
Notification shortcuts spacing and tablet transition fix

Change-Id: Ifcf888673b6ab80b43d427cf2a03b0beb7f56689
Put long press to toggle PW back

jeff has plans to enhance this. So this can be merged for the
time being.

Change-Id: I75a7b0b4ed6b6c45cddeb6cf8fe4bc8d4aa6b2c2

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Profiles: add PROFILES_STATE_CHANGED_ACTION broadcast intent

Added a new broadcast intent to profiles manager (PROFILES_STATE_CHANGED_ACTION), for
notify an event when profiles are enabled or disabled.

Change-Id: If701b3be54157c23acdf74e1da658fbce335437e
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Lockscreen alpha value set to Zero

Change-Id: Ic6fbffa40bdf7a682cabca500a0cea860a489de6
Port Slim CRT Animation Mode (1/2)

Change-Id: I66a6097729da6760a0d4b89c552bd4bd29262293
PIE: improved touchhandling, no emptyangle, better animations

Change-Id: I9812194e48c9dd0f743e4e7b39f785892db0a261

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/view/PieMenu.java