Keyguard: Enable quick unlock (1/2)

old way does not work anymore exactly like before. So adapt the idea to new LP code

Thankd DVTonder for the basic idea prior LP

PS:
- do PIN view correctly
- Hide OK button if quick unlock is enabled on PIN view

Change-Id: I86660afafb8648d36d6c135343c88afcfc5173fc

Conflicts:
	core/java/android/provider/Settings.java

(cherry picked from commit d68a4b4019839c5220a4ed671a03f248636f071d)
Frameworks: Policy: implement a pin keypad shuffler [1/2]

this is to further prevent people using the tablet guessing your pin based on fingerprints left on the screen
example of the expected outcome - https://www.dropbox.com/sh/r3xb2q53ksaqni9/Oz1Eu8Dm7O

- correct coding style
- added reload button

PatchSet:
- simplify shuffle code
- fix over shifting in some cases
- add reload button functionallity
- add lockscreenutils method to detect only PIN lock
  for settings
- exclude sim and simpuk PIN lock
- add drawables for reload button

PatchSet
- cleanup

PatchSet:
- fix shuffle NumKeyPad even if a theme replaces the xml
  and reload button is not present.

PatchSet:
- add mode disabled/always/on request

PatchSet:
- add nicer drawables

cheers

kufi

Ported to new keyguard package on LP

A bit rewrite of this feature + clean up and shorten aosp code

Conflicts:
	packages/Keyguard/res/layout/keyguard_pin_view.xml
	packages/Keyguard/src/com/android/keyguard/KeyguardPINView.java
	packages/Keyguard/src/com/android/keyguard/NumPadKey.java

Change-Id: I6cf23a70a24ff0d640850d35acd4584e2e8d2192

(cherry picked from commit 34b78ed003220a64f4be68f1290c784853746c3f)
Keyguard: shuffler - be sure klondikeText is visible if needed and poke a wakelock...

if the user press the random key

Change-Id: I0f599928085f333e4f8d1ced06644c43917cc27f

(cherry picked from commit 4460982065fa076e48e3d725daaac3e3841c0218)
Keyguard: Correctly set the visibility

What a day. Small derp due that the keyguard does not gets every time reinflated
we need to ensure that the visibilities are set correctly if the user changed the
configuration.

Sorry for 2 fix commits today

Change-Id: I2c7f4501c3ef589e515afe6d5ca07c1286bed5f3

(cherry picked from commit c3804068f37f2291e0b4521f1d25c2971b30ea39)
Keyguard: Fix another derp and check against null

good night

Change-Id: Ia31af94024fa9884153015be807bfc89dc5502f7

(cherry picked from commit 5f544b4063afe1bcd8ee553c2bf15d04477103b8)
Keyguard: do not hide confirm button if quick unlock is enabled

We need it on the views for simPin and simPuk

Change-Id: I2ad6ae78a992edd9205203409db639e862e825b3

(cherry picked from commit 80c529c4d72f08d28cb6104ec0f7317a932218fd)
Frameworks: Pin shuffler - fix wrong default value

lol

Change-Id: Ie22e7b402c7c458a90c30ea999190c6c6890036b

(cherry picked from commit 6192cd920e93b81554ce83957060c7a96c70b9a7)