Revert "Hover: fix wrong values apllied"

This reverts commit 367a67a3c1f560ab3513c628a27ed8d18ae10cc3.
Revert "HOVER: Option to exclude topmost app [1/2]"

This reverts commit 9767f4470b21a8eacaf24b0bd5421fe2812a04e2.
Revert "Hover notification timeout (1/2)"

This reverts commit 48e5d0dc431a5d9983fd8764b367aa85a4143127.
Revert "Hover settings (1/2)"

This reverts commit 0bc9f9b1382f7361e7d430074fc2f12a99cf6503.
Revert "Fix SysUI force closes caused when enabling lockscreen notifications"

This reverts commit c7073d1057eda2587f15d50a6601da6728a4d97c.
Revert "HOVER: Theme Engine compatibilities and some resources tweaks"

This reverts commit fcfac21537846d618695190e380d516dc9fe3e45.
Revert "HOVER: Fix a couple of things:"

This reverts commit 688b801b908e1dfb2d021027e74cf9fa41c315bf.
Revert "HOVER [1/2]"

This reverts commit 1b437009236bd8bdaec9e6be524cfce0891bb3d6.

Conflicts:

	packages/SystemUI/res/values/cr_strings.xml
Revert "Frameworks: Store dialpad showing state (1/2)"

This reverts commit 47c7bcf4852888848120675f53b208f7d9dd505e.
Revert "BIG Halo removal and preparation to new PA's HOVER (1/2)"

This reverts commit 1157696d8ca6792e27d6de51586e2b8731380ce0.

Conflicts:

	packages/SystemUI/res/values/cr_dimens.xml
Frameworks: Store dialpad showing state (1/2)

Change-Id: I87776ffa912bbe3287d3fefad2d2de56b818203d
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

Change-Id: I665bf456a6fcd241d07a1ebb04a90debedf1fc13
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>

Conflicts:
	core/java/android/app/INotificationManager.aidl
	packages/SystemUI/res/layout/status_bar_expanded_header.xml
	packages/SystemUI/res/values/cr_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	services/input/InputWindow.cpp
	services/java/com/android/server/NotificationManagerService.java

Conflicts:

	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/cr_strings.xml
HOVER: Fix a couple of things:

- Handle Ticker properly. Update mTicking, call related statements
  and disable ticker for blacklisted apps only when hover is off.
- Remove a bad patch when you release your finger, there is no need and
  along with showCurrentNotification() call at setNotification() can even
  be a bad call.
- Notification removal is already done at BaseStatusBar. Remove useless code.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Change-Id: I3f6c412f4aad51e9afb88dcae412d0c04d92bb2a

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
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: I412993a2d54d800f7ef96d684fb9ce579e9326f8
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Hover settings (1/2)

- Require full screen mode;
- Hide non-clearable;
- Exclude low priority;

Original commits
https://github.com/TheKang/frameworks_base/commit/598fa9d46e84b563d9ec6ffa75a38da9fc3cc5a9
https://github.com/TheKang/frameworks_base/commit/a3b44ef4fce7cdabc477075ac646b596dc0f83a4

Thanks @Der-Schubi

Change-Id: If3c34496acf75d49434902c49dfe48f997c0b668
Hover notification timeout (1/2)

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

Change-Id: I5847adb3f33522d9d78867685f9867477542c37e
HOVER: Option to exclude topmost app [1/2]
Originally taken from Tigger2014:
Tigger2014/android_frameworks_base-1@5af0e1c
Hover: fix wrong values apllied

- In clean installations "topmmost app" and "require full screen" were anabled even not ticked in settings part. This commit fix this.

Change-Id: I88687b8c9c00759cfe2087af03f73f9158462165
Hover: exclude from insecure lockscreen (1/2)

Enable/disable hover notifications from insecure lockscreen

Change-Id: I9235d8dac32359dff692f6f9c821c715fefe9cde
StatusBarView: Ensure to not overload in/out animations
- Post animate call in main thread, thanks @David96
- Handle animation checking current view visibility

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Signed-off-by: David L.-W. <xD_e-mail@gmx.de>