Revert "Bring floating window in line with ParanoidAndroid"

This reverts commit bfd921f3fa03432396f6fd321225731fdf87107a.
Revert "Floating window: Enable transparent layer"

This reverts commit fc5266700d766c42899743e64ad37e174e490404.
Revert "Base: Floating window with multitasking"

This reverts commit 1b5daceeba20b98f564b11cc667cf6c1c125f11e.
Revert "Dismiss IME when floating window is dismissed"

This reverts commit 5adb95636b8f6fa704e42cf1aa73e3d1b05ceb42.
Revert "Revert "Revert "Halo: allow choose notifications on floating window or not (1/2)"""

This reverts commit 1f0d3f684aeb0cca0159ca585e6f9f178e8fd1b0.
Revert "Revert "Revert "HALO: make windows moveable and scaleable [WIP]"""

This reverts commit d14741337b3bc1498d4e702d78b1f89a9a170483.
HALO: make windows moveable and scaleable [WIP]

Change-Id: I8c3118f6d548dc70f186454fb8d15a4bae9bbeb0
Signed-off-by: anerikg <anerikgames@gmail.com>

Conflicts:
	core/java/android/app/Activity.java

Conflicts:
	core/java/android/app/Activity.java
Bring floating window in line with ParanoidAndroid

Let's try to make this work with movable and scalable

Change-Id: Id39b454ce58ff6071d2bb739cca4bb012039b2d5
Signed-off-by: anerikg <anerikgames@gmail.com>

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

Conflicts:
	core/java/android/app/Activity.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Halo: allow choose notifications on floating window or not (1/2)

Change-Id: Ia94a00ed7648fea2984606cae50fa3ad684d40de

Conflicts:
	core/java/android/provider/Settings.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

Change-Id: Iad00c239de7d66e8bb45205ce626d4f08417b7cd
Floating window: Enable transparent layer

Halo
Slim recents
App circle sidebar
Notification long click
Dismiss IME when floating window is dismissed

Previously the IME would be stuck on screen if the
floating window was dismissed while it was showing.

Original id from PA gerrit -> Change-Id: I8ca61b07ed89bae85eabd8db23f87b6f1f0b179f
Signed-off-by: Evan Anderson <evan@thelinuxman.us>

Change-Id: If38e65f61ba309d22306bf4b37c3c55630c006ed