Lockscreen Notifications: Fix NPE

E/AndroidRuntime( 3778): java.lang.NullPointerException
E/AndroidRuntime( 3778): 	at com.android.keyguard.NotificationViewManager.onScreenTurnedOn(NotificationViewManager.java:286)
E/AndroidRuntime( 3778): 	at com.android.keyguard.KeyguardViewManager.onScreenTurnedOn(KeyguardViewManager.java:825)
E/AndroidRuntime( 3778): 	at com.android.keyguard.KeyguardViewMediator.handleNotifyScreenOn(KeyguardViewMediator.java:1416)
E/AndroidRuntime( 3778): 	at com.android.keyguard.KeyguardViewMediator.access$2300(KeyguardViewMediator.java:104)
E/AndroidRuntime( 3778): 	at com.android.keyguard.KeyguardViewMediator$4.handleMessage(KeyguardViewMediator.java:1131)
E/AndroidRuntime( 3778): 	at android.os.Handler.dispatchMessage(Handler.java:102)

Fix NPE on first boot

Change-Id: I6aa4f62ffbc00be15aa98ee3a137bb0d6add6610
Lockscreen Notifications: make dynamic width a device 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
Lockscreen Notifications: rewrite add notification logic

There were some problems with notifications getting replaced while the user was currently dragging them.
This commit should fix that by always waiting until animations and user input are finished before replacing a notification view.

Change-Id: I53d5da164e9189a2ea12c02e7d24fd603985a2d1
Add "show all notifications" navbar button

Change-Id: Id591aa98d462b0aa6d6e146d35d6be06608e7ac1
Lockscreen Notifications: dismiss all button, improve animations, cleanup

Change-Id: I408b69a39d9551d00ebc8aa54fb4ef7377fe818b
Lockscreen Notifications: fix show/hide of show all button

& fix endless SystemUI FC when SystemUI is killed

Change-Id: Ie46ef525f72b7ce575dacfb1f05e46a140c87cc5
Lockscreen Notifications: fix NPE
Lockscreen Notifications: Custom background color [1/2]

Change-Id: Ibbf333c86303bb5575c9e8d4f890e42a423422f5
Lockscreen Notifications: try to fix occasionally SystemUI FC on boot
Lockscreen Notifications: fix FC when an expanded notification gets reposted without bigContentView
Fix: onBoot brightness

When device boots the brightness is always on highest level.

PS1: workaround it
PS2: apply to all devices
PS3: fix blur issue
PS5: sorry, update old file
PS6: remove whitespaces thx Carlo
PS7: revert change in Keyguard, add new fix
PS8: remove tab and whitespace thx Evan

Bug: https://paranoidandroid.atlassian.net/browse/AOSPA-56

Signed-off-by: Matthias Freund <matthias88freund@gmail.com>
Change-Id: I9535e2c22132539e0ad7e9d718b5d0732ba53571