quickboot: Only enable QuickBoot if package is installed

 * Also move to Settings.Global

Change-Id: I87e1464d717b41437072523c0ecab52227d7888b

Conflicts:

	policy/src/com/android/internal/policy/impl/GlobalActions.java
frameworks/base: forward port DC-HSPAP support from cm-10

PS10: add new drawables, I need to add new QS drawables and also RTL support
PS11: fix blank space and prevents checkapi to fail
PS13: fixed tile icon and rebase

Change-Id: I1503c464b2db841fc193e57311e62415f5ff40f2

Conflicts:

	packages/SystemUI/res/values/cm_strings.xml
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