Lockscreen Notifications part 1

Conflicts:
	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	services/java/com/android/server/NotificationManagerService.java
Lockscreen Notifications: Copyright
rewrite lockscreen notifications against AOSPAL, organize and add in privacy/offset top user configurable
	modified:   core/java/android/provider/Settings.java
	modified:   packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	modified:   packages/Keyguard/src/com/android/keyguard/NotificationHostView.java
	modified:   packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java
[1/2] Lockscreen Notifications fixes

- Lockscreen Notifications: make animations a bit faster
from: https://github.com/AOSPAL/android_frameworks_base/commit/5b6e143c4edeb9454650dbc05e597fbbae6b5c26

- Fix ongoing notifications reappearing when hidden & some small animation tweaks again.
from: https://github.com/AOSPAL/android_frameworks_base/commit/ac9bf6a36a7275d1e98e2ae6750723b1e006dd4d

-  Lockscreen Notifications: fix notifications disappearing on orientation change
from: https://github.com/AOSPAL/android_frameworks_base/commit/e9dcb99f0bd3e74a45ee7d15ebc19a99db7a09a2

Change-Id: Id72ec7c6c9e61fc7502299e434e0ba0d12957ec7

Conflicts:
	packages/Keyguard/src/com/android/keyguard/NotificationHostView.java
[1/2] LS Notification dinamic width & blacklist options

- Lockscreen Notifications: disable dynamic width for devices <= xhdpi

- [1/2] Base: Lockscreen notifications: Option to disable dynamic width
from: https://github.com/OmniKang/android_frameworks_base/commit/87d6598b63a1b83e93631b0fcb0822365cf7563b

-  [1/2] Base: Lockscreen notifications: Allow apps to be excluded from being displayed
from: https://github.com/OmniKang/android_frameworks_base/commit/8631349b965f507eeff4b5616c1f581bc4e6e615

 Credits to 0xD34D / ChameleonOS for the original implementation for Active Display

PS3/4: fixes

Change-Id: I796b08cb94185ea17139bd74f1b41d287ba65155

Conflicts:
	packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java
Lockscreen Notification: fix default settings derp

Change-Id: Ief7344359059d72b6498d9d9ce61dfd11b43f404
Lockscreen Notifications: fix phone turning on in pocket

Change-Id: Ia0385280510f1d684c5dcf537dd2049c6916ddec
Revert "Lockscreen Notifications: fix phone turning on in pocket"

This reverts commit b87f14d9a2e80fd148e69af05157a2e5a127a689.
Revert "Lockscreen Notification: fix default settings derp"

This reverts commit 3e2b2b18559dc4cc53dc706fe2ab4e0eedefd923.
Revert "[1/2] Lockscreen Notifications fixes"

This reverts commit 53e59c1d18fffc96488a6659f8650903fd7f51f9.
Revert "rewrite lockscreen notifications against AOSPAL, organize and add in privacy/offset top user configurable"

This reverts commit 5b9fce3cb1867713de2a008ad49f99ef741491f4.

Conflicts:
	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
Revert "Lockscreen Notifications: Copyright"

This reverts commit fa5488fe64e3a75f0566ea9a552d6c796a3ac6d5.
Revert "Lockscreen Notifications"

This reverts commit c0d4238a20cce4e59bb1489dfa6ee6b6e07eed4e.

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java
Lockscreen Notifications [1/2]

My try on making notifications easily accessable from lockscreen.
Credits to ChameleonOS, I got the notification listener permission and some small other stuff from their ActiveDisplay implementation.

Lockscreen Notifications allow you to manage all your notifications directly on the lockscreen.

Features:
- Pocket mode turn screen on when phone is pulled out of pocket and turn it off when phone gets back in pocket
- Hide low priority notifications
- Hide non-clearable notifications
- Allow dismissing even non-clearable notifications from lockscreen
- Just turn screen on when there's currently a notification pending
- Toggle between expanded and normal notification view by longpressing

This should still be considered as beta, even if it seems to work very well for me.

Conflicts:
	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java
	services/java/com/android/server/NotificationManagerService.java
Lockscreen Notifications [1/2] half way point for tonight

My try on making notifications easily accessable from lockscreen.
Credits to ChameleonOS, I got the notification listener permission and some small other stuff from their ActiveDisplay implementation.

Lockscreen Notifications allow you to manage all your notifications directly on the lockscreen.

Features:
- Pocket mode turn screen on when phone is pulled out of pocket and turn it off when phone gets back in pocket
- Hide low priority notifications
- Hide non-clearable notifications
- Allow dismissing even non-clearable notifications from lockscreen
- Just turn screen on when there's currently a notification pending
- Toggle between expanded and normal notification view by longpressing

This should still be considered as beta, even if it seems to work very well for me.

Conflicts:
	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java
	services/java/com/android/server/NotificationManagerService.java
Lockscreen Notifications: Make "wake on notifications" user configurable

and some other small changes that hopefully will improve battery live

Conflicts:
	core/java/android/provider/Settings.java
Lockscreen notifications: make height user configurable [1/2]

Conflicts:
	core/java/android/provider/Settings.java
Lockscreen Notifications: fix possible NPE
Lockscreen Notifications: try on fixing notifications sometimes not responding
Lockscreen Notifications: try to fix occasionally SystemUI FC on boot
Lockscreen Notifications: fix FC when an expanded notification gets reposted without bigContentView
Lockscreen Notifications: dismiss all button, improve animations, cleanup

Conflicts:
	core/java/com/android/internal/statusbar/IStatusBar.aidl
	packages/SystemUI/res/layout/navigation_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
Lockscreen Notifications: fix show/hide of show all button

& fix endless SystemUI FC when SystemUI is killed

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
Lockscreen Notifications: Custom background color [1/2]

Conflicts:
	core/java/android/provider/Settings.java