Frameworks: privacy guard fix possible NPE

If the user flash a data app over recovery on clean flash
(like a lot themed apps or gapps packages are doing)
the user will get into a bootloop because of an NPE
due an unknown state of the user due that
installedUser == null

To fix it
Check if installUser exists if yes then
call the provider settings value for the current
user

PatchSet 2+3: message update
	      fix for real now

Change-Id: Ie5f94a0d0a11ae24fdfdc8372c0433b26793b66e
am: Fix the privacy guard notification

 * The privacy guard notification was not showing everytime. Fix the
   logic and handle it in the right place so it hits both the create and
   resume startup path.

Change-Id: I80c88ffb0fcb4ed3ea64ceb228bb436975278ecc
Add gesture based lockscreen security. [1/2]
This adds the ability to us a hand drawn gesture as
a means to unlock the device.

In the case that the gesture is forgotton or not
being recognized correctly, the fallback will be the
same as when using patterns.

PS2:
Return SecurityMode.Account as backup for gesture login.

PS3:
Poke the wakelock when a gesture is detected so the screen
will not timeout when an invalid gesture is entered.

PS4:
Clean things up a bit.

Change-Id: I4ca8d7edff0a8906220cf4561d8b90896520e0cd

Conflicts:
	core/java/com/android/internal/widget/LockPatternUtils.java
Update roboto font to 4.3

Change-Id: I18aceb350b64085faff93ebf0078e557ce20082f
HALO: halo can save last position now

Change-Id: I5a608b02323ab9fdfa3922a3c9844e75c3a1ab09

fix

Change-Id: I00ced429cfcc90507b8cc14b228a74b8902e67e8
ListViewAnimation: Don't refresh view when click checkbox or switch
ListViewAnimation: Fix Possible NPE
Add license header

@jkl
framework: Add OnDoubleClickListener to View.

Simple Interface for allowing double click actions on
views. This piggybacks on the current performClick methods.
If a OnDoubleClickListener is set we will allow the double
click listener to handle the event. OnClickListeners will not
get callbacks.

Change-Id: I2244c3272029259e3904fe88011dfb8805dd674a
Allow ADB to be enabled by default via a config overlay on a per-device basis.
This is useful for developers that are testing and troubleshooting boot issues
and adb ends up being disabled by default once the system kicks in.  This should
only be used for testing and removed once a device is deemed stable and able to
boot.

Change-Id: Ib17d4e10ec68640ce55a91d5b1067d3d37eeec9d
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: I87f12bb1644f3abcbbd6b23813bbbf2cd58855df

Conflicts:
	core/java/android/provider/Settings.java
Framwork: Add support for variable size pattern lockscreen (Part 1/2)

Part 2: http://review.cyanogenmod.org/#/c/28534/2

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

The default size has been replaced with a constant PATTERN_SIZE_DEFAULT=3
It now parses the longInt as a byte, no longer requiring a get/set Int function.
Negative numbers and sizes over 127 do not make sense, so a byte works well.
In addition the logging has been removed.

Patch Set 1-2: Initial port

Patch Set 3-5: New implementation using seperate file for non standard sizes

Patch Set 6: Use AOSP code style

Patch Set 7-9: Remove static code

Patch Set 10: Correct a comment

Change-Id: Ia06fc5a7dc2819f78843fddcf1470d85ebe2ad13

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

Conflicts:
	core/java/com/android/internal/widget/LockPatternUtils.java

derp
LockscreenPattern : Toggle dots/error pattern visibility (1/2)

Give user ability to hide error pattern / dots.

Part 2 : http://review.cyanogenmod.org/#/c/33004/

Patchset 2 : Minor formatting
Patchset 3 : Cleanup commit msg

Change-Id: I2af7403b0f72c72e13dd1dec73f8d335ff4029bf

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/widget/LockSettingsService.java
When DPM is updated while lock screen is inhibited, don't
unconditionally enable lock screen.

Change-Id: Iab2af06eb8e41fbcfc6adfbeb5b42a9bbf446fe9
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/KeyguardAbsKeyInputView.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java

Conflicts:
	core/res/res/values/config.xml
fix build
fix build