Halo (1/2)
Halo full with 4.3 commits
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.

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

Change-Id: I5dbed0d3b79caf2403bef08fc35d1fb0e0711bd9
LayerActivity: Corrected lifecycle
Should contemplate the case that the activity gets stopped
Show as floating window on recent apps

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: I3db3a996fa08367e3dfa4231079fe5e811e3b08a

Conflicts:
	packages/SystemUI/res/menu/recent_popup_menu.xml
	packages/SystemUI/res/values-es/strings.xml
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Don't bring home to the front if we're opening a floating activity
Enable Halo pressed image in expanded status bar
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: I81a47f8e648114d8e2144a3b9854ede299d67871
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
Finish the floating activity again

Change-Id: I1db29ddd2c056d7645f1028e084face815a44e0c
Fix floating window activity result cancellation

Setting Intent.FLAG_ACTIVITY_NEW_TASK on *all* floating window intents
will result in Android dropping activity results for non-new task
activities trying to get results back.

Cheers,
SlimRoms

Change-Id: Ib125bd03733dc73859f7426150110d88319f7625
HALO: make a trusted overlay

Change-Id: I009be0361c73ec536277641d235b0c495bc43db6
FLAG_ACTIVITY_NEW_TASK re-added to floating windows

ActivityStack modified to not cancel results if window is floating and "new".

Change-Id: I45f3dcc816092daa4192be91828592a0b2b2ac59
Kill floating activities running in the same thread when tapping outside
This change makes all activities from the same app to be finished when we tap outside the halo window. Other apps running in different threads
(floating or not) won't be finished.

Change-Id: I3c51eafdcee7032fa90876411da3ff1eae0106c3
Halo: Add master switch to disable Halo (1/2)
HALO: Option to pause the underlying app (1/2)
HALO Changes

- Blacklisted apps don't show in HALO while scrolling
  * Blacklisted icons are visible in status bar but are skipped
    when scrolling through HALO

- Added count for total number of unique notifications in HALO
  * Total count is visible when HALO is idle / disappears while hidden or tasking
  * Total count ignores pinned apps, blacklisted apps and persistent notifications

- Added new icons for pinned apps and persistent notifications

- Set a standard distance between message markers for HALO
  * Notification markers no longer spread out on larger screens
  * Distance between markers will be reduced if necessary to accomodate multiple notifications

- Notification dismissal sync
  * When a notifcation is launched via HALO, it is cleared immediately from the bubble
    the next most recently received notification takes it place in HALO
  * If a notification is cleared via the notification shade, either from the status bar or the PIE menu,
    the notification is automatically removed form HALO

- HALO will ping on screen unlock ONLY if active notificaitons exist, under the followng conditions
  * Status bar is hidden and HALO is hidden (Expanded Desktop Mode/Hide HALO after activity)
  * Protected lock screen is enabled - The android notification ticker does not "tick" when
    using a protected lock screen HALO usually does not update while the phone is locked

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

Change-Id: I8c2163dd1592639954a19d42f5a4d96877361055
Fixes in commit: "HALO Changes" we don't have Halo tablet mode support!

Change-Id: I0a45c4668d59583ed46039dc9c061f09098a300d
HALO bugfixes

- couple of problems with concurrent threads
- green batch only for nap
- italics gone
- mdpi and & hdpi icons
- statusbar-icon gaps
- flipping batch when content changes
- batch fadeout without flip
- code style

Change-Id: Idfb145eb8e220bf224dd3d0e235e3647dcc82ed9

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
HALO persistent notifications less pronounced + fixes

Change-Id: Ib485468303dfd7ca7fea17d7c755a3ee4e075940