Revert "Keep app when opening floating window from recents panel"

This reverts commit 58736cd0511c3611e08ca165672fe07b6497fbdb.
Revert "Fix for launch app in floating mode from recents"

This reverts commit d9d3169cfabebae84314330f526f3d4e50c3ac46.
Revert "Recents: Launch as Floating App"

This reverts commit 88ecc2a68772be5766e7843ec89e0e9c2fdd2768.
Revert "Halo: Add master switch to disable Halo [1/2]"

This reverts commit 81d888095766d79174bc2b3676d91a755c7c2c43.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Revert "[2/2] Frameworks: HALO"

This reverts commit 2f409dcce41dac06f758f231fe28b9a7b6881639.

Conflicts:
	core/java/android/app/Activity.java
	core/java/android/provider/Settings.java
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/drawable-hdpi/halo_back_left.png
	packages/SystemUI/res/drawable-hdpi/halo_back_right.png
	packages/SystemUI/res/drawable-hdpi/halo_bg.png
	packages/SystemUI/res/drawable-hdpi/halo_clear_all.png
	packages/SystemUI/res/drawable-hdpi/halo_dismiss.png
	packages/SystemUI/res/drawable-hdpi/halo_message.png
	packages/SystemUI/res/drawable-hdpi/halo_silence_left.png
	packages/SystemUI/res/drawable-hdpi/halo_silence_right.png
	packages/SystemUI/res/drawable-mdpi/halo_back_left.png
	packages/SystemUI/res/drawable-mdpi/halo_back_right.png
	packages/SystemUI/res/drawable-mdpi/halo_bg.png
	packages/SystemUI/res/drawable-mdpi/halo_clear_all.png
	packages/SystemUI/res/drawable-mdpi/halo_dismiss.png
	packages/SystemUI/res/drawable-mdpi/halo_message.png
	packages/SystemUI/res/drawable-mdpi/halo_silence_left.png
	packages/SystemUI/res/drawable-mdpi/halo_silence_right.png
	packages/SystemUI/res/drawable-xhdpi/halo_back_left.png
	packages/SystemUI/res/drawable-xhdpi/halo_back_right.png
	packages/SystemUI/res/drawable-xhdpi/halo_bg.png
	packages/SystemUI/res/drawable-xhdpi/halo_clear_all.png
	packages/SystemUI/res/drawable-xhdpi/halo_dismiss.png
	packages/SystemUI/res/drawable-xhdpi/halo_message.png
	packages/SystemUI/res/drawable-xhdpi/halo_silence_left.png
	packages/SystemUI/res/drawable-xhdpi/halo_silence_right.png
	packages/SystemUI/res/layout/status_bar_expanded_header.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/res/values/ok_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/halo/HaloProperties.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	services/java/com/android/server/NotificationManagerService.java
Base: Floating window with multitasking

basic floating window are taken from AOSPA (HALO) by @D4rKn3sSyS

Drawables courtesy of @Alex Cruz thanks to him :)

with heavy change to get this work for multitasking

this feature, has ability to:
1. Moveable window to various position
2. Scaling window with 2 finger like zoom in/out
3. Double tap in actionbar or above window to fullscreen or back to floating window
4. Automatically resize when Snapping into one of side (Top, Bottom, Left, Right)
   (taken from xhalofloatingwindow by @zst123)
5. Automatically switch focus from other app (taken from multiwindow by @xplodwild)
6. Unlimited floating window app (depends on RAM)

this is still under testing, to make fully works
so if there any bug because of this, DO NOT REPORT INTO OMNIROM JIRA

to make app launch using Floating window feature

you must add Intent.FLAG_FLOATING_WINDOW
before start an activity

for example you can look at https://gerrit.omnirom.org/6515

need https://gerrit.omnirom.org/#/c/6561

PS.17 : fix scaling
PS.18 : fix layout calculation when rotate
PS.19 : support minimize/maximize window (see App circle sidebar)
PS.20 : fix previouse app

Change-Id: Iad00c239de7d66e8bb45205ce626d4f08417b7cd

Conflicts:
	core/res/res/values/custom_symbols.xml
SystemUI: Fix missing top task in recent panel

If preloadRecentTasksList was not called or was called too
late and RecentsActivty already started and last top activity has
excludeFromRecents flag setted it might be missing
from recent application list.

atken from cm11

Change-Id: Ia04913e7a89d51689f933cbc9ff3a84092fdb1cf
[1/2] Base: implement App circle sidebar

add whitelist app to include into circle view
rebased
make standalone patch

PS.15 : rebased
PS.16 : cleanup

Change-Id: I08d2a3a7e0f8df20e801e585d4cac8547a740a3e

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Base: App Circle sidebar (add support floating window)

PS.8 : rebased
PS.9 : add support minimize/maximize window

Change-Id: Ied388a0a4054dfaf1d3e6fcdc33dd5aab28565a9
Base: App Circle sidebar (add support Samsung multiwindow flags)

this will automatically add app into app circle sidebar
if apps support samsung multiwindow flags
in their manifest

PS.2 : rebased

Change-Id: Ifa8965f1fb5d24987aed7d6d52a4e77deb48c455
Copy&paste is very bad