Fixes
Try to fix Clear all button
New Halo drawables thanks to Arz Bhatia and PA team

Change-Id: Ic63b433466d686a645133d987bfc17ba4b6ff42d

Conflicts:
	packages/SystemUI/res/drawable-mdpi/ic_notify_halo_normal.png
	packages/SystemUI/res/drawable-mdpi/ic_notify_halo_pressed.png
HALO: change holo blue to holo grey matching new
drawables

Change-Id: Ib62b975cee90e009ce3ca149333e9b4ea27445c4

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/halo/Halo.java
Frameworks: Prepare for Hover (1/2)

Credits to AOSPA Team

Change-Id: Ie83e862b5b53cd251b21d6d0be3d873a7562f028

Conflicts:
	core/java/android/app/Activity.java
	core/java/android/content/Intent.java
	core/java/com/android/internal/widget/ActionBarView.java
	core/res/AndroidManifest.xml
	packages/SystemUI/res/values/cm_strings.xml
	packages/SystemUI/src/com/android/systemui/slimrecent/RecentPanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/AppSidebar.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
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: Iae8464c9101abf9ab20c40c22dbfc5377e447879
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:
	packages/SystemUI/res/layout/status_bar_expanded_header.xml
	packages/SystemUI/res/values/cm_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
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.

Change-Id: I813eee5ff3629ad35aee4b958c25c86a88e482fe
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

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 :)

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: Iccf12061c045c29db4bc73736dac68e52dda198c
Frameworks: Add background to halo button

Change-Id: Ia6b89c78a807955621e82f22723419bd1afcf2d5
Floating window: Fix possible NPE

Avoid possible NPE if app provides no interface such as pushbullet's
test notification & other apps which provide one.

Change-Id: I35c13959296a56e44f21f1aee0a736e7f786aa57

Conflicts:
	packages/SystemUI/res/values/cm_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Frameworks: Store dialpad showing state (1/2)

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Fixes for Hover
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

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

Conflicts:
	core/java/android/provider/Settings.java
HOVER: Option to exclude topmost app [1/2]
Originally taken from Tigger2014:
Tigger2014/android_frameworks_base-1@5af0e1c
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>

Conflicts:
	packages/SystemUI/res/values/axxion_dimens.xml
Merge CM

Conflicts:
	packages/SystemUI/res/layout/status_bar_expanded_header.xml

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/quicksettings/HoverTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
Revert "Better expose 'QS Tiles and layout' function"

This reverts commit 1bc87e720b68d97aabc214632f908495acfed932.

Conflicts:
	packages/SystemUI/res/layout/status_bar_expanded_header.xml
	packages/SystemUI/res/values/cm_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java