Merge branch 'kitkat' of github.com:AOSPA-legacy/android_frameworks_base into kk4.4
Merge branch 'kitkat' of github.com:AOSPA-legacy/android_frameworks_base into kk4.4
Merge branch 'kitkat' of github.com:AOSPA-legacy/android_frameworks_base into kk4.4
Merge branch 'kitkat' of github.com:AOSPA-legacy/android_frameworks_base into kk4.4
Merge branch 'kitkat' of github.com:AOSPA-legacy/android_frameworks_base into kk4.4
Merge branch 'kitkat' of github.com:AOSPA-legacy/android_frameworks_base into kk4.4
Merge branch 'kitkat' of github.com:AOSPA-legacy/android_frameworks_base into ln

Conflicts:
	packages/SystemUI/res/values/pa_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java

Change-Id: I8398909e9a35385ae5194222b7fd55d059a79394
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

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

Change-Id: I634669f05bb94c4cb302c85189c5a4f6d554eb3e
Lockscreen Notifications: derp

Change-Id: I5cdb0525a691c61d649cc5a42eeeab57d3e495eb
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
Framework: Allow choice of screen-off animation (1/2)

Adds a choice of alternative screen-off animations:

- Fade out
- Electron beam (default)
- Scale down

Change-Id: I8ec9bfc6248a1223037fd252b0c853db7994afe6

Conflicts:
	core/java/android/provider/Settings.java
	services/java/com/android/server/power/DisplayPowerController.java
zh-rCN: add translation

Change-Id: I0f10fbfaa7773c2433880d21186b48a53d2272f0
LN: Enable dynamic width by default

Change-Id: I9f612105b75eacffacecb7678bc1f38ea1add200
QS: Fixes for pie

  * Fix possiblely wrong value of pie mode (not pie state).
  * collapse statusbar shutting down immersive mode to fix
pie shown even if it off.

Change-Id: If757910b61cce47d35f23177ed1e53a97fac0467
Lockscreen notification: Fix fc on hardware key devices

Change-Id: Ia6cc3a4b758174fd8eb423b0e01b1e3e1aad2eae
LockscreenNotification: Catch security exception

Change-Id: I468e389d15a0ee0f1a7a5f00e9291c4fafccc31b
Merge branch 'kitkat' of https://github.com/AOSPA/android_frameworks_base into kitkat
Merge branch 'kitkat' of github.com:AOSPA-legacy/android_frameworks_base into kk4.4
Merge branch 'kitkat' of github.com:AOSPA-legacy/android_frameworks_base into kk4.4