fix align when halo and clear button disply

Change-Id: I0c8c0d8dbc38a87b4c46a9da2aae3033349b896e
HALO: button align fix

Change-Id: I521c104449f68e2cf7dc73b01fc90d9fc4ce2fa7

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/pieview/PieStatusPanel.java
add drawables for ldpi and mdpi

Change-Id: I39967d3c591c52faeb6a104d87b7d5cb75e6184b

add xhdpi

Change-Id: I5300d28d8dceb380f4e0477719e047a748e84171
HALO: Reworked transparent layer

When a halo'ed window is opened, the transparent layer will be always visible. It will manage the background dim.
This fixes some apps dimming its sandboxed processes (like chrome).

LayerActivity manages its own lifecycle. When it's focused after paused it finishes itself.

System processes (identified by "android" pkg in SystemUI and system uid in Activity) don't use the layer and still use their own background. This
has been kept this way to not interfere with their activity.

Change-Id: If95bc96cfd2a8af72222446fd147bb854461b5e8
Improve scrolling cache

Scrolling cache helps make short scrolls/flings smooth but will
cause stutter when long flings are made. This patch disables
scrolling cache when long flings are made.

This patch also fixes a related bug where scrolling cache will
not be enabled properly when transitioning from flinging to scrolling.

Patch Set 2: Calculate threshold based on maximum velocity (Sang Tae Park)

Credits: Pawit Pornkitprasan

Change-Id: I532dba6bf8c0411092f80a7e0ceca1c0f9ae873a
HALO: Revert removing FLAG_ACTIVITY_CLEAR_TOP from intent

Removing that flag from the intent provokes some apps not being able to finish pressing the back key.
This change doesn't affect other opened apps.

Change-Id: Ic077eb977e850021defb3d8b4311cde64f528281
don't refresh view when item checked changed

Change-Id: I4358dfad5c57bf344374b9640d9d9cb6be0ffcf8
Give floating flag to previous activities in the stack

When launching stacked activities, only the last one is flagged as floating in sysui when tapping halo.
This causes the system to show the launcher when the first stacked activity is launched (this first intent gets the flag FLAG_ACTIVITY_TASK_ON_HOME
in TaskStackBuilder).
This change makes all the stacked activities get the floating flag if the last one has it.

Change-Id: Ia3d2a06c92bd1410585fa8c46364915405bd568b
Signed-off-by: martincz <martincz@mokeetek.com>
HALO: LayerActivity Corrected lifecycle

Should contemplate the case that the activity gets stopped

Change-Id: I01df9b91737fd9bc6965250fc9e7d73ecfbe9384
HALO: keep apps in recents

Change-Id: I5c3ee2e77cc320616299d9f57183f9f4d78ab352

fix compile

Change-Id: I45a8c64dd2c9f4022aafb09672c2ae3d4cac4352

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
HALO: Style revamp

- speech bubbles are centered
- number batches are roundand simplified, same color as in g+
- markers appear as dots above the bubble
- hiding and dimissing triggers text hints
- couple of bugfixes

WARNING: some of the drawables are good for xhdpi only for now and must
be scaled down for the other resolutions

Change-Id: Ic1ef104e3840566f9f945c38bf70eefa2b72d46e

Conflicts:
	packages/SystemUI/res/values-zh-rCN/mk_strings.xml
	packages/SystemUI/res/values/mk_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/halo/Halo.java
HALO: Prevent notification acces via HALO on protected lockscreens

Change-Id: I69505a5f4f6477b16a2914074e349483a88f0692
HALO: unregister settings obeservers

Change-Id: Iae44ace1e8a3b9b28fe4b168f97e0f5cb65b8f11

cleanup

Change-Id: Id2a8d801ddb28bb75eae53bf5689681a7c72a348
Finish the floating activity again

Change-Id: I0a1ffb97bff6791ee540c4b59811834f7e05d3fd
HALO hiddenstate-fix + smaller numberbatch and HALO cleanup & better drawables

once HALO is hidden an orientationchange won't wake it up getting in
your way.

Change-Id: Ieebba1b5d15ea880d6f5617580ac6c5e53372e9c
HALO: fix NPE for hdpi mdpi device

Change-Id: I472864ee82f4ea451918be10c349cd3b0acdd8fa
HALO: remove old drawable

Change-Id: Id021faf6996702730706edf96d94a7612c655a16
HALO new vertical gestures (NOT READY FOR RELEASE)

itroduces step gestures

-- Clear all notifications
-- Clear current notification

(*)

-- Hide HALO
-- Silence HALO until woken

Change-Id: I6aa871400e4c420750a050700c50301934a37d30

Conflicts:
	packages/SystemUI/res/values/mk_strings.xml
HALO clearall/silence and clearall-fix + dismiss icon (READY, BUT NEW STYLE IS XHDPI ONLY!)

but working ...

Change-Id: I146dbb33d1a44772ff7973b998c0e072ef38d576
HALO: Better strings