Halo: Add master switch to disable Halo (1/2)
Author: Der-Schubi
Thanks to him!

Change-Id: I17e8a9e73ac7a315596592e7a89113af04228a42

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Floating window (1/2)
This is the popup code from Paranoid Android's HALO, which has already been commited. This commit just allows it to be on or off as some users may not want to use this function. We have a better idea on how to use this functionaility which will be seen later.

For now though, this is the messy way of turning it on and off.

Change-Id: Iebb2dc644b3b5838ad5eeeff6f150947df99b8e3
Author: banjamingoodwin
Fix Floating Window

Change-Id: I12257f21672094791cdfc802c62a7ef5837721d1
Miss import of Floating Window

Change-Id: I96496ac2560a0256e2029381f6ead80da1964390
HALO: Option to pause the underlying app (1/2)
- adds an option to pause the active app when using HALO
- this is enabled by default for devices with low memory
- (currently: <640MB RAM available to the kernel)

Change-Id: I571bad3eae6aa68840c4ef5c9b16f53076fa01c2
Author: tonyp

Conflicts:
	services/java/com/android/server/am/ActivityStack.java
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: I1d9dd6286748014e82b7aa43769d364c44bed934
Author: beerbong

Conflicts:
	packages/SystemUI/src/com/android/systemui/Transparent.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
LayerActivity: Corrected lifecycle
Should contemplate the case that the activity gets stopped

Change-Id: I0d3f7481bbfc39d4dc04fd2c6757c5b2248c5e45
Author: beerbong
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.

Author: beerbong

Change-Id: Ie19ecc6821317ea75359029bb53852b1f94f0490
services: don't clear wallpaper when SystemUI disconnects.

When we restart SystemUI (or the user), sometimes
the wallpaper would get cleared. This patch just
captures its originating component and
if that is our SystemUI component, ignore the event.

Change-Id: I3e159dc2c013e7d7e552e3c0cef55e3ab970ca87
Signed-off-by: Roman Birg <romanbirg@gmail.com>
HALO cleanup + HALO: new drawables for hdpi and mdpi

HALO cleanup: hdpi and mdpi drawables were inconsistent, if you plan to use HALO on
lower res devices you must reproduce them.

HALO new drawables:
- scaled down the xhdpi drawables properly for hdpi and mdpi
- removed some old and unused halo pngs

Change-Id: Iff405db17cf650fa485c7a2cc0b59755415003ab

Conflicts:
	core/java/com/android/internal/widget/ActionBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/halo/Halo.java
Fix little derp causing visual bug + removing some unused .pngs

To reproduce, disable halo, and press "clear all notifications" button

Change-Id: Ie98c72298d20268b3bd3379dff8686b492f99fba
Don't bring home to the front if we're opening a floating activity

Change-Id: I026e233c195b89b39cbf7527b81cbd2d1b53e227
Halo: unregister settings obeservers

Change-Id: I74f67e32e82b6750f8bbf15f0e6da64147efd945
Author: aaronpoweruser
HALO: halo can save last position now

Change-Id: Ia196a428ef2091a824cbc8988d21fcc5b29c5da4
Author: martincz
HALO: keep apps in recents

Change-Id: I9ede8a1aba8d6721f077a39a31b6cc5cd8272dc2

Conflicts:
	services/java/com/android/server/am/ActivityRecord.java

Conflicts:
	core/java/android/app/Activity.java
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
	services/java/com/android/server/am/ActivityRecord.java
Enable Halo pressed image in expanded status bar

Change-Id: Iebcbbaa9e3a87a1fa4384872fe84d342639ea72b
Author: mamumanfred
Prevent notification acces via HALO on protected lockscreens

Change-Id: Ib5f474ae8166b12cfaeee8f6b758bc0fe8dd6259
Author: Anu6is
Revert "Fix little derp causing visual bug"

This reverts part of commit a970cd1e9ca171a402335a51fe602ba6e5cdaf31

Change-Id: Ifb2972dab73b10609d378c6d83992f21e8b36738
Show as floating window on recent apps + some fixes in past HALO commits

This also removes "hybrid properties" from recents menu, it is fairly unneeded
now. This is a test, It's probable that it will be removed later

Change-Id: I51bacbc84085ecad61fddfed072a12f8a113e473

Conflicts:
	packages/SystemUI/res/values/cm_strings.xml
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: Ieb16aaca82e6fe8de7d46d3c51b818ec2b1891fe