Forward port CM Screen Security settings (Part 2 of 2)

Patch Set 1:	Quick Unlock
Patch Set 2:	Lockscreen Vibrate
Patch Set 3:	Slide Lock Delay
Patch Set 4:	Menu Unlock
Patch Set 5:    Rebase
Patch Set 6:    Home Unlock

Change-Id: Ie1ccaec43ca75474e92f96c60e15d7b75796ac5f

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java
LockScreen: allow long-press actions from hardware keys (1/2)

Allow following actions with button long-presses on lockscreen:
- toggle flashlight (if available)
- play/pause/next/previous track selection
- toggle silent mode

Allow customizing of back, menu, and home buttons. Search
button events are completely ignored on the lockscreen.

Auto-detect hardware keys, only show appropriate menu
options based on the actual hardware keys available on the
device (or completely hide if there are no hardware keys).

Based largely on Danny Baumann's work from gingerbread.

Ported from CM10

Change-Id: Iff32736d00ca5d4122f64a6a861bbb0a1de9cca9

Conflicts:
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java
Framework: Add option to always show battery status on lockscreen (1/2)

Based on the feature by burnsra in CM7

Authored by Blunden
Tweaked by DvTonder
slimed by kufikugel ;)

Change-Id: I6260234f9ecdd67b407c5d86bb4395d42f1caa63

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardMessageArea.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardUpdateMonitor.java
Fix home/menu unlock with long press hardware key

- Forward port of commit 2a572ee7587cb0b686871e95567313aa8bc8bfd5

Change-Id: Ic2eb85542f8052fe1662244fe5e72ba12a98608b
android.policy: Fix launching home when waking the device with the home button again

Was removed in b055725d0b1df2f23ecfa95bff940aa8b57f97df

Change-Id: I19b5db8e64d7e547f4013ab8df7ff879d1a51167
base: fix constant conflict

There is a conflict 2 media type which shares the same constants which is a DVIX and JPEG.
which causes some app to think jpeg is a dvix video file
It was due to the merge of the qualcomm patches (patch: http://review.cyanogenmod.org/#/c/28960/ ) which was merged on the 23rd

Change-Id: Ida014adab4a954aa81a16d1ff401f9847f87d1a5
Frameworks: customizable slim lockscreen background (1/2)

- color fill (with transparency slider)
- custom image (with transparency slider)
- full transparent
- default

Conflicts:
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java
Frameworks: simplify custom lockscreen background code

- remove observer for transparency and handle it better
- add multisuser handles
- smaller fixes and code cleanup
- simpfliy custom background handling and change to our needs (thanks Danish)

Change-Id: Idf0bbb7bf9e132a3a68d567e3863cce1b6d99742

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java
Allow setting a per-device default configuration for STATUS_BAR_BATTERY

Batteryless devices (like TV-connected mediacenters/STBs) don't need
the battery icon there at all.

Change-Id: Iac7e1b0b813c260bc78f4733409a30da7bda248d

Conflicts:
	packages/SettingsProvider/res/values/defaults.xml
SettingsProvider: Initialize defaults for CM features

Add configuration defaults for:
- status bar notification count
- QuickSettings quick pulldown
- lockscreen targets

Change-Id: Ief4b97fcceea7e351a13d59136a2fb1823d97b04

Conflicts:
	packages/SettingsProvider/res/values/defaults.xml
Revert "Frameworks: simplify custom lockscreen background code"

This reverts commit 6788058ba220f9b67ecc33a75fb96fde4ff6730d.
Revert "Forward port CM Screen Security settings (Part 2 of 2)"

This reverts commit 6ca1fddd5c0068aa3631ebf04d658e003c6f46ad.

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java
Revert "Frameworks: simplify custom lockscreen background code"

This reverts commit 6788058ba220f9b67ecc33a75fb96fde4ff6730d.

Conflicts:
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java
Revert "Frameworks: customizable slim lockscreen background (1/2)"

This reverts commit 3d724fae487bccdb33280050d3e3b39b0c91127e.
Revert "Fix home/menu unlock with long press hardware key"

This reverts commit b2c47fc00b89c9f76586ed6630fd13ef5d15708c.