Quicksettings: Fix battery tile showing 0% in certain conditions

Battery tile would show 0% sometimes because
the callback isn't sent until battery was updated.

Instead we store state via global variables and force
the first update.

Also includes simplification of code.

Change-Id: Ia346c883308cbdab5a7cccdbd579e4d605b831e8
Signed-off-by: Evan Anderson <evan@thelinuxman.us>
Apps: Add blacklist interface [1/2]

Include peek and floating mode implementations.
Applies to every floating mode launch way.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: Ica523625c9061cf9c8d6c3d7df4acf6a125c4ead
Fix the issue that the top of fullscreen dialog is clipped away

The visibility of status bar comes from the top fullscreen window,
not from the focused window.
That has to be taken into account during the calculation of the
decor rect. You can use mTopIsFullscreen for this purpose.

Change-Id: I6159eb2ee389885cf5ab507157f9451841364d2f
server: Handle broadcast intent and receiver

Ensure the receivers of broadcast intent is not launched before boot
completion by adding an intent flag, since connectivity events can
happen before boot has completed.

Change-Id: Id6fc9e34c89d947d768def38e5c5bb0df54a3a7b
Revert "[TEMP] PIE: fix a freezing bug"

This reverts commit 004b6dc18a6399cb592859188502ed6f0d265f19.
Merge "Fix the issue that the top of fullscreen dialog is clipped away" into kitkat
Merge "server: Handle broadcast intent and receiver" into kitkat
Merge remote-tracking branch 'PA/kitkat' into kitkat-staging

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