Frameworks: Slim heads up customizations for LP (1/2)

Basically it follows the same idea like we had on SlimKat....see here
https://github.com/SlimRoms/frameworks_base/commit/323ed77c5e5bd6d421beae1f8118eb580be5ecf1

That said there are some differences in this more or less completely recoded feature.

- Moved it into the app policy files
- Enable/Disable on every app (no system apps)  either longpress a notification and an button appears / or in notification app settings
- For now only snooze and heads up timeout configurable....other stuff will follow later.
- fix up some AOSP code for it as well fix some UX inconsitence.
- left swipe dismiss, right swipe put into background, swipe down opens notification drawer and moves the notification into it
  (aosp default behaviour is a big UX disaster....swipe up dismisses it completely and swipe down open notification drawer but heads up stays....first
   happened to me 10000 times accidentally which is really bad and second does not make sense. Hence this change of the default behaviour)

Well and a lot smaller things as usual.

Last PS
- fixed some minor stuff
- reset snooze timer when screen goes off
- do not show headups if notification drawer is visible

PS
making snooze button functional - we may need to move it a bit down.

PS
give snooze button a bit animation love

PS
icons

PS
add accessibility descriptions etc

PS
hedasupcandidate package fix
move snooze timout into config
smaller fixes
out off WIP and ready to merge
added commit description

Still ToDo:
Settings

Change-Id: Ic8977feb4bb0700f1093ce7d62c22d4c63c69bad

Conflicts:
	core/java/android/app/NotificationGroup.aidl
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/notification_guts.xml
	packages/SystemUI/res/values/config.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	services/core/java/com/android/server/am/ActivityStackSupervisor.java

(cherry picked from commit 3be276a207f95d4791cdbee1689ac688f53161b7)

Conflicts:
	packages/SystemUI/AndroidManifest.xml
CommandQueue: showCustomIntentAfterKeyguard ensure that it gets syncronized

Change-Id: I86be91a09277bfa8b1522fb0088541ac865eb23b

(cherry picked from commit c10070417d818174d84f4ef9cd6f7cf42f815e80)
Frameworks: Only set package name on user heads ups

Let us not influence the default aosp behaviour which could conflict if an app
is strange coded

Change-Id: If69e40ce932ce7e77886d250879346a9a43920a2

(cherry picked from commit 939e37e08314e9ad724326a4d8d1c8716d5550f3)
Frameworks: Gesture Lockscreen (1/2)

This adds the ability to us a hand drawn gesture as
a means to unlock the device.

In the case that the gesture is forgotton or not
being recognized correctly, the fallback will be the
same as when using patterns.

Androidx:
Some changes needed for 5.0

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/widget/ILockSettings.aidl
	core/java/com/android/internal/widget/LockPatternUtils.java
	packages/Keyguard/res/values/strings.xml
	packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
	services/java/com/android/server/DevicePolicyManagerService.java
	services/java/com/android/server/LockSettingsService.java

Conflicts:
	core/java/com/android/internal/widget/LockPatternUtils.java

Change-Id: Ia54282682372394793ec019380cc7f09fcefa7f9

(cherry picked from commit 50ab5df2f042fcf37e90be4506a7e44e37cfca8c)
Gesture panel [2/2]

This adds a gesture panel to launch custom actions. The panel can be
opened from the navbar or quicksettings panel. Hardware key binding
support will be added next

Squashed commit of the following:

commit 4eaea27979e49709ff09c216389a71fd0ef1a711
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Thu Aug 28 22:31:56 2014 -0400

    clean up styling.. fix button to go to settings

    Change-Id: Icf8e16d9439b5698bd4b48c4ced5977ef184e84f

commit 2bdf61dc577e689fc60ca2b061acd0b20681ef2f
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Wed Aug 27 16:37:49 2014 -0400

    fix merge fail

    Change-Id: Ia5ab13b0a0574f625db06fd2b9c427b6301563d6

commit d196724a462fe39b0b80760c82c22e93552027ae
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Tue Aug 26 18:29:01 2014 -0400

    QS: add Gesture panel tile

    PS2: drawables

    Change-Id: I5efd488a131bd7944bff61e8477f68d0eb7d5850

commit 90450e090e093d9db36dc528431e838fd96fca70
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Sun Aug 24 02:25:45 2014 -0400

    Navbar: gesture actions key

    opens a gesture receiver panel to launch user set actions

    to do: add a QS tile, possibly move to vanir actions, add hardware key support.

    Change-Id: I3e9d9fcbf12549c198e9e2bfbc98d34fb0c0da6a

    Conflicts:
    	core/java/com/android/internal/util/aokp/AwesomeAction.java

Conflicts:
	core/java/android/content/Intent.java
	core/java/com/android/internal/util/aokp/AwesomeAction.java
	core/java/com/android/internal/util/aokp/AwesomeConstants.java
	core/java/com/android/internal/util/cm/QSConstants.java
	core/res/res/values/vanir_strings.xml
	core/res/res/values/vanir_symbols.xml
	packages/SystemUI/res/values/cm_strings.xml
	packages/SystemUI/res/values/vanir_colors.xml
	packages/SystemUI/res/values/vanir_dimens.xml
	packages/SystemUI/res/values/vanir_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/config.xml
	core/res/res/values/custom_strings.xml
	core/res/res/values/custom_symbols.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Change-Id: Ibdb91ba7ceb1a4d538e9153834058cf00275836f
(cherry picked from commit 1954f685b2b4a4f9ef55bcda77ae518fe2db3af4)

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java