settings: Enable the status bar double-tap to sleep gesture

Change-Id: Ibe4f1d0c864f261211d7ded418abfe45633e1392

Conflicts:

	packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java

(cherry picked from commit d21707cde5adcfa7fe065a2409d43eb5a2b559cb)
[1/3]frameworks/base: add "Accept all files" option for incoming files via Bluetooth

This patch defines a key to store the option value in Settings Provider db

Change-Id: I993d7ec77b49f608a5a17e5a8516e52fc5d82946
(cherry picked from commit f9fa4c0d17e242bfe164ed7d31e8097cef9d3b61)
Revert "Floating Window: Welcome back"

This reverts commit ce6d2e936ec42bd0dc9a77d20efd5f475f89c665.

Change-Id: Ic46168a86e331a440eb43f404e17c120bd805feb
(cherry picked from commit cba161d937cf7932858381e74d09263ea4ff09ca)
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
(cherry picked from commit 3170abb9a173a52f5dcdbbadc0ca3fcd983ccfb1)
Slim Recents: (add support for floating window)

Big thanks to @kufikugel for making this work

(cherry picked from commit a4e2320dec197e9a8a89f528023447729723696c)
[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
(cherry picked from commit 5c11894f801d901ef0eefc7d812f93b337ebee71)
Base: App Circle sidebar (add support floating window)

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

Change-Id: Ied388a0a4054dfaf1d3e6fcdc33dd5aab28565a9
(cherry picked from commit 96afb2d014d788a862006de66916904dc53e99fb)
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
(cherry picked from commit e20625dc7b234edc71b224388ffb17674feb33d9)
Fix ressource leaks

Change-Id: I3a201cfd924e467d605351782bd06874c2af725e

Patchset: 1
http://review.cyanogenmod.org/#/c/64251/
(cherry picked from commit 0719be553759af07a7f7f012709b53feeee4c260)
Consolidate to cr_***

(cherry picked from commit d48d358c627c383372e3d0ee918d5b17f134c130)