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
PS.21 : rebased due to changes in 4.4.3_r1.1
PS.26 : rebased
PS.27 : rebased
PS.30 : a little touch :)
PS.31 : fix FCs because package manager has died

Change-Id: Iad00c239de7d66e8bb45205ce626d4f08417b7cd
Add option to open notification in floating window

Depends On: https://gerrit.omnirom.org/#/c/6380/

Change-Id: If729dd729d301b70b764248ec1da87fc70f3e0b2
testing not closing floaters
Do not close floating windows
SystemUI: Extend swipe helper (Part1)

I was not happy with long press on notifications and recents
to open apps in floating mode. The long press duration kinda
breaks the UI interaction flow, which prevented me from
actually using floating windows. Therefore, I've created a
private modification, which enables floating mode for
notifications and recents by swiping to the left. This
greatly improves usability without strongly deviating from
stock UI experience, in strict accordance with PA's
philosophy.  Changes are surgically implemented to keep the
probability of merge conflicts rather low. The code was
successfully tested on mako, hammerhead, tilapia, and manta.
Let the team discuss and decide whether or not this is a
worthy extension to PA.

Changes are split into two commits.

- Extending SwipeHelper:
SwipeHelper can now distinguish between directions LEFT,
RIGHT, UP, DOWN and can fire an abstract trigger 'event'. A
trigger direction can be specified and when a swipe in this
direction occurs dismissable children will not be dismissed,
instead they will be snapped back.  Whenever a child is
swiped far or fast enough in that direction an event is
triggered and the onChildTriggerd() callback is issued. This
callback was added to the SwipeHelper.Callback interface and
therefore requires all its implementations to realize this
method, such as probably Hover, which is sadly not open
source (yet?).

Change-Id: Ida06195913f022463d29ca22092e81fb8993ad50

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/notification/PeekLayout.java
Remove unneeded java file
[3/5] frameworks/base: Add dock battery support.

Dock battery patchset chain:
tf101: https://gerrit.omnirom.org/#/c/5913/
settings: https://gerrit.omnirom.org/#/c/5916/
base: https://gerrit.omnirom.org/#/c/5917/
native: https://gerrit.omnirom.org/#/c/5918/
healthd: https://gerrit.omnirom.org/#/c/5919/

Based on this patchset chain from CyanogenMod 11 by Jorge Ruesga:
Dock battery patchset chain:
base: http://review.cyanogenmod.org/#/c/55349/
native: http://review.cyanogenmod.org/#/c/55028/
healthd: http://review.cyanogenmod.org/#/c/55029/
settings: http://review.cyanogenmod.org/#/c/55212/
tf700t: http://review.cyanogenmod.org/#/c/55030/

Fixed merge conflict.

Rebased.

Change-Id: Id6144e1b70109b764acfc0ee1fe0efacb83c4de5
Merge pull request #1 from Zombi-X/testing

merge into kk4.4