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
- Wake on new notification
- Configure notification count displayed at once
- Privacy Mode: disable showing notification content.
- Blacklist apps - thanks to ChameleonOS for the original implementation and @Der-Schubi for bringing it to lockscreen notifications
- Show all/dismiss all button

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

Overlay setting:
dynamic width is disabled by default, to enable it for a specific device, add
<bool name="config_lnDynamicWidth">true</bool>
to yourdevicetree/overlay/frameworks/base/packages/Keyguard/res/values/config.xml

Change-Id: I12a907db13de070e9aeb716cc03fdc14d01630b3
Signed-off-by: Almite <almite@hotmail.com>

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java

Conflicts:

	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
Lockscreen Notifications: some fixes

Change-Id: I634669f05bb94c4cb302c85189c5a4f6d554eb3e
Lockscreen Notifications: derp
Change-Id: I5a68d7798ac9791f8551de7e478c946bc1447015

Signed-off-by: Almite <almite@hotmail.com>
Lockscreen Notifications changes/fixes (1/2)

- change to off by default - fixes first setup issue
- add dynamic width by default

Signed-off-by: Almite <almite@hotmail.com>
Lockscreen Notifications - change defaults/ fixes (1/2)

- change some settings to off by default
- bring up some parts of active display
Add own KutKat platlogo
Advanced reboot enabled by default (1/2)
Fbase: QS - allow flip animation on clicking a tile (1/2)

ported from https://github.com/BeerGang/android_frameworks_base/commit/ba144b2defd209c2c020366316c65b288bf68880

Signed-off-by: Almite <almite@hotmail.com>

Conflicts:

	packages/SystemUI/src/com/android/systemui/quicksettings/GPSTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuietHoursTile.java

Conflicts:

	packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
Revert "Settings: Add CM PlatLogo & CMCaseView (1/2)"

This reverts commit e38652aa5cdc5ac29ed3ebf4ca41e189db5c9893.

Conflicts:

	core/res/res/drawable-nodpi/cm_platlogo.png
Lockscreen Notifications off by default -dynamic width off by default
Status bar clock and date customization (1/2)

Thanks SlimRoms for this code.
Based on this commit:
https://github.com/SlimRoms/frameworks_base
commit/39545c535c0d0d6857dd769eeae8bda73955d3b1

Change-Id: Ib13e7fd18ae2f22c12eedb8adbae0127822faa6e
Signed-off-by: Almite <almite@hotmail.com>
Fix icons overflowing status bar view in center clock and date layout

Change-Id: I43829f58330357de7a09d8eb80141a6385aef533
Signed-off-by: Almite <almite@hotmail.com>
Add network usage stats to status bar (1/2)

Get the time delta between updates and use
that to show average bytes per second.

Change-Id: I63771220333a32063f675e6fc38c9aadb6de4274
Signed-off-by: Almite <almite@hotmail.com>

Conflicts:

	packages/SystemUI/res/values/ar_dimens.xml
	packages/SystemUI/res/values/ar_styles.xml
	packages/SystemUI/res/values/dimens.xml
Clean up SystemUI values
Last App Toggle from Omnirom (1/2) -thanks to lion0738
Lower default animation time -in other words, speed up animations
change default for unknown sources & verify apps -credits andros11
MediaScanner behavior on boot (1/3)
Network stats: Hide if there's no traffic (1/2)
Return: Smart Pulldown [1/2]
Adds the ability to directly open the QS panel when there are
no notifications present in the notification panel.
This commit combines the enhancement by HardCorePawn for detectin
notification types for the same.

Credits: kufikugel, HardCorePawn

PS 2-4 : Cleanup
Make notification panel clock clickable