Framework: Add Power Widget (Phone)

This commit adds the Power widget for phones.  All toggles should work
except for LTE (disabled for now)

Patch set 2  - Fixes Sync toggle
Patch set 3  - Removes WIP
Patch set 4  - Rebase
               Switch to MultiSelectListPreference

Change-Id: I17669420d9db9a347af182fc398c6426e18534f4
ADB Over Network, integration of the adb-host mode (already present)

The feature can be used/tested without the Settings part :

  setprop service.adb.tcp.port 5555

Note: This ADB setting is not persistent (for security purpose) and
require init.rc implementation event like this : http://bit.ly/AdbTcpIP

Note : ADB_PORT setting key was added in the commit a6c11c9d

Change-Id: I5c61a53948349c785356cb5aae165110d75e3074
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Merge "ADB Over Network, integration of the adb-host mode (already present)" into jellybean
Lockscreen : Quick / menu unlock

Unlock password/pin lockscreen without pressing enter button

Patchset 2 : Remove unecessary intialization

Change-Id: Iecb5ed52ef28234f6adad813906dc885296a157c

Quick unlock : Fix bug

There is an issue where users whose passwords are greater than 8 chars and
have quick unlock enabled will be unable to unlock their lockscreen.
This is due to the logic evaluating anything beyond 3chars as a password attempt.

This change modifies the quick unlock behavior so that when typing the password,
each character is considered an attempt, however if incorrect, is not reported as a failed attempt.
Only when the user presses enter is it considered an "explicit" attempt and a failed attempt is reported.

Patchset 2 : Rename runnable to better reflect its purpose
Patchset 3 : Switch to new behavior
Patchset 4 : Fix padding

Change-Id: Ida6289c77f6724cb42e8d3b82593f29afe3d6d1b

Menu unlock (frameworks part)

    	The option in Settings/Security/Lockscreen was
    	added before in some CM commit, but not working
    	and was missing a proper frameworks part

Patchet 3: Done like master Danesh M wanted

Change-Id: I589c77cd58d7beb4093e334f074c7f7643d90858

Change-Id: Ida6289c77f6724cb42e8d3b82593f29afe3d6d1b
PowerWidgets : Consume free space when disabled

Eliminate free space when the notification widgets are disabled.

Patchset 2 - Restore import order

Change-Id: Ic844fedd407a8ee363e3de97370d6b264fe045d5
Framework: Add missing part of 'Lock before unlock'

Keyguard: Turn lock-before-unlock into a user-configurable setting

Showing the unsecured lock screen (Slider/widget screen) before the
security screen is now a secure Setting (still defaulting to off)

Change-Id: I0a11f82ffe074d289129b2b972ffc0135eea81ed

Other parts were merged already
Kill App on Long-Press Back Key (framework)

Change-Id: Ib78fff9e32d95a0a112ddd9274b79b3a3aa626b9

Conflicts:

	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Long press to kill

Bring changes done in cm7 to ics.
- Vibrate on press
- Show message
- http://review.cyanogenmod.com/#change,5191,patchset=2

Change-Id: Ib1e5eba50cef5d72d81b733f87ac39c09d4212de

Long-press back kill app cleanup

Change-Id: Ida791dca1fbfdc2beccf6ff727b67df56f1956a4

framework: customizable kill app via back key timeout

Allows the time it takes for the back key to kill an app
to be customized via overlay.

Change-Id: Iaa43f81ee448ae7a7663254a830011a0bca5e60f

Conflicts:

	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Change-Id: Ida791dca1fbfdc2beccf6ff727b67df56f1956a4
Merge "Framework: Add missing part of 'Lock before unlock'" into jellybean
Merge "Lockscreen : Quick / menu unlock" into jellybean
Merge "Kill App on Long-Press Back Key (framework)" into jellybean
Framework : Lockscreen - Customizable shortcuts

Allow users to choose lockscreen shortcuts / icons :
	Phone - 1-5 targets
	Tablets - 1-8 targets

CM10 port
---------
Patchset 1-8: Initial port
Patchset 9  : Revert to CM9 drawables
Patchset 10 : Rebase

Change-Id: I9b163efeef8f47b1d21f7f61552ebe424049cfeb
Lockscreen : Background customization (Remaining bits)

Bring over remaining bits of lockscreen background customization

Change background selection for lockscreen to be more
consistant on Tablets (2/2)

Change-Id: Ia1a703ce213fa7698a2fb8e1679eefccd521962b

Change-Id: I970e6737bee037a2ada337dd1c527e339e33a5c2
Framework: Fix battery light not showing

Change-Id: I69c3824cc6ca34a8da049f63e9a28c64eca52f16
patches from epinter

Change-Id: If0137952bce116d579ab0fd5d8902b6222edb716