Lockscreen : Quick unlock (Part 2/2)

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

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

p2: Remove menu unlock option
p3: Remove further menu unlock left over code

-----------------

Forward port to AOKP JB-MR1

PS2: allow quick unlock only for PIN and Password Keyguard
     and not for SIM PIN/PUK

Change-Id: I359f06055400a716e8b999ca8272476a7c1f5781
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>