Add gesture based lockscreen security. [2/2]

PS2:
Tidy things up a bit.

Change-Id: I83e3ab643e19b2a2d9c8416f4925bbab05bbc896

Conflicts:
	res/values/strings.xml
	src/com/android/settings/SecuritySettings.java
optional encryption password sync

Option to use 2 different tokens for encryption and locking.
Allows convenient usage and strong encryption at the same time.

Inspired by reading next:
https://santoku-linux.com/howto/mobile-forensics/how-to-brute-force-android-encryption

Related discussion:
http://code.google.com/p/android/issues/detail?id=29468

Change-Id: I71a31e7a04b84910d5be317e6f531c41d7ad002f

Conflicts:
	src/com/android/settings/SecuritySettings.java

Conflicts:
	src/com/android/settings/SecuritySettings.java
Settings: Add support for variable size pattern lockscreen (Part 2/2) - CM

Part 1: http://review.cyanogenmod.org/#/c/28533/

Forward port of: http://review.cyanogenmod.org/#/c/20614/

Add a menu to choose the pattern unlock screen size (currently 3x3 to 6x6)
Default size is specified in the frameworks

Patch Set 1+2: Initial port

Patch Set 3: Use AOSP code style

Patch Set 4: Fix copy/paste issue

Patch Set 5+6: Comply with framework changes

Change-Id: I5e3d1f8b19b7f5017c854ab9d28b459214f00949

Conflicts:
	src/com/android/settings/ChooseLockGeneric.java
	src/com/android/settings/ChooseLockPatternTutorial.java
LockscreenPattern : Toggle dots/error pattern visibility (2/2)

Give user ability to hide error pattern / dots.

Patchset 2 : Cleanup commit msg

Change-Id: Ifdd4615c7116f974a0a67079d58a521e84d76367

Conflicts:
	src/com/android/settings/SecuritySettings.java
LockscreenPattern: Fix toggle dots/error pattern visibility

This fix the issues dot/error pattern state doesn't save.
also cleanup redundant code.

Change-Id: Iebaac9679ad9c621d62effd700689485db7c252a

Conflicts:
	src/com/android/settings/SecuritySettings.java
Settings: Forward port CM Screen Security settings (Part 1 of 2)

includes:
- Menu Unlock, Quick Unlock, Home unlock and Slide lock delay settings
  Author: DvTonder

- Lockscreen cleanup: Rework the logic to separate cm lockscreen
  settings from stock lockscreen settings.
  Author: Danesh M
  Id: Ic3eebc30fbb55afa6254889b17bde6e3083d1847

- Fix unknown sources crash
  Modify logic to only make cmsecurity specify the extra,
  any other time, default to stock security
  Author: Danesh M
  Id: Ida4b8ccc2f41d79aa9013029b4245ae4d3cd4496

- Adjust available options based on screen lock picked
  Disable / enable the available screen security aditional options based
  on what screen lock was picked.
  Author: jfassad
  Id: I634b18b58d0e1a1c075f9808776fc4f685316221

- Add home button unlock option
  Author: invisiblek
  Id: I10b96b2f788ca26bc45f1758e612b9dfe7beff59

Change-Id: I0dda524830d8dce571910eb1fbd66d5b5af11bff

Conflicts:
	res/values/arrays.xml
	res/values/strings.xml
	res/xml/security_settings_pattern_size.xml
	src/com/android/settings/SecuritySettings.java
We don't have Lockscreen tutorial since 4.2.2_r1
Intent now pointed correctly to ChooseLockPattern

Change-Id: I33c76f9e9ed38ad3ded37d503185e3f09f12f794
delete double pie size