1/2 Base: implement app circle sidebar

https://github.com/X-ROM/android_frameworks_base/commit/0d21580c87d97c066e188c979d456a46e4ee7d92

PS2: Forget Author argh...
PS3: Fix
PS4: Fix
PS5: Rebase

Change-Id: Ib047ce0bef66417223c94499c36a00aa190ef74e
2/2 Base: App circle sidebar (add support floating window)

Change-Id: I49bc732e3037eaa7dda72bb7e9d32e9024774f10
Frameworks/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

Change-Id: I2dd2280d8a77d9c3b027ad053ca35fed2e79220e
App Circle Sidebar: Support for Configurable Trigger Region[1/2]

Change-Id: Ib89a98e607f48108b1a1fb54f00335a3bc4ff2e7
HOVER [1/2]

Notifications refined:
The way you handle with the incoming notifications defines how much you enjoy your device.
Hover shows you those notifications when you need them in a beautiful card that briefly appears
on your screen. For a detailed look of the notification, you can swipe down to expand some more
info, or you can tap it to open the related app using PA’s floating mode.

Introducing Hover:
https://plus.google.com/107979589566958860409/posts/DC4KyDd1cDC
https://plus.google.com/107979589566958860409/posts/BtWoGpNd8Fq

This is revision 4 of the original base by @D4rKn3sSyS . Hover works by moving the
notification view from statusBar container to Hover’s one and re-themes notifications
in the process. When hover is active it is the owner of the view, special care must
be taken to not  manipulate the statusbar reference while hoveris active.
Hover’s view state is managed by a handler based timer. When any touch event is received
or a gesture completed the timer is restarted, upon expiration of the timer hover is
hidden or will show next notification in the list if there is one (or more) to show.
The timer along with animation listeners  regulates the rate at which Hover can process new
notifications, acting as a spam filter for noisy applications. Upon first run a dialog is
displayed explaining Hover to new users. More infos in code’s documentation.

Todo:
- Swipe up to dismiss only the hover window not the notification in status bar.
- Transparent support has been tweaked a bit but needs a more proper solution
- Edge gap fix for Theme Engine themes overriding notifications draws
- Long press action(s)
- MInor tweaks noted in the code’s comments

CONTRIBUTORS:
@D4rKn3sSyS
@BigBrother1984
@Anu6is
@beerbong
@aaronpoweruser
@David96
@linuxman94

Drawables by @arzbhatia

Signed-off-by: Jesus David <jesdga95@gmail.com>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Signed-off-by: Curtis Mayers <curtis.mayers@gmail.com>
Signed-off-by: Yamil Ghazi <stevewatersy@gmail.com>
Signed-off-by: Aaron Gascoigne <atlrudeboi1@gmail.com>
Signed-off-by: David L.-W. <david.leppla.weber@gmail.com>
Signed-off-by: Evan Anderson <evan@thelinuxman.us>

Needs : http://review.pac-rom.com/2810

Conflicts:
	packages/SystemUI/res/values/pac_strings.xml

Change-Id: Id17b57e2f4d3a9f5cbdf3e498fbb59c656a2df39
HOVER: Theme Engine compatibilities and some resources tweaks

Use default notification dimens, avoid setting a custom one.
A bit of cleanup too.

Notifications:
Hardcode dimensions to android defaults. Avoid themes to change them,
Ribbons feature (present on CM based roms mostly) needs that.

Thanks to +John Xionidis to help me trick this out for full CM11 made themes :)

Change-Id: Ibbd4c6ab978a9bb94e41986260ae896af549f379
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Frameworks: Store dialpad showing state (1/2)

Change-Id: I24231854836cb91adbf203bc78065be549a1dd44
HOVER: Options to exclude non-clearable and low priority notifications [1/2]

Change-Id: Ica59f426da779509bde10469a634aa5955734360
Master switch to disable Hover [1/2]

Change-Id: I3f6d3d0b08f95dc11163a70feef34764737045dd
HOVER: Option to disable HOVER-Button in StatusBar [1/2]

If the button is hidden, user can activate Hover in the Settings instead

Change-Id: I037d6f5cdbb239dd5d97e48e6f084607934afe8d
HOVER: Option to only show up in Fullscreen-Mode [1/2]

Change-Id: I285ea1962a5094f864fe2b53648b0939722fc282
HOVER: Option to exclude topmost app [1/2]

Originally taken from Tigger2014:
https://github.com/Tigger2014/android_frameworks_base-1/commit/5af0e1c84e86e9b4e6947163aaf58e9ab541079d

Change-Id: Ibb72b23f5c540d2009d42c40e13c85dc386d7e7f
HOVER: Disabling HOVER isn't necessary at all [1/2] …

as we can just hide the HOVER-Button in StatusBar

Change-Id: Ib7168bde9a214f83f8c73e0ab935aeb7816263c3
Hover notification timeout [1/2]

Allow user to set how much time the hover notification will stay visisible without touch the screen

Change-Id: I4cd9ddb622b49fa9b553f6c259ce3b6a8407e13d
HOVER: Ensure to clear after reparenting all notifications

Change-Id: I2ee0540a7acd13a24e38d6556fb64960e3286059
frameworks :add back easter eggs (1/3)

review : http://www.youtube.com/watch?v=68V9WDcYvlk

Change-Id: I8dbda79568859b5b980974649ef757605ecd640a
App Circle Bar Toggle [1/2] (WIP]

Conflicts:
	packages/SystemUI/res/values/pac_strings.xml

Change-Id: Id87d825d11dc8d20ae19cb26f0070f85aa9bc93e
Omni: Floating window with multitasking

https://gerrit.omnirom.org/#/c/6380/
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 http://review.pac-rom.com/1774

Conflicts:
	core/java/android/content/Intent.java

Change-Id: Iad00c239de7d66e8bb45205ce626d4f08417b7cd

Conflicts:
	core/java/android/content/Intent.java
	services/input/InputWindow.cpp
Force Expanded Notifications [1/2]

Change-Id: I0c8d8315ea046809fe6864ca8a9f21da8cdf953a
Allow disabling of FC dialogs [1/2]

Change-Id: Ic61d6c467f6e5652e5272ecdb000551a989aa9a0