Add gesture based lockscreen security. [2/2]

PS2:
Tidy things up a bit.

Change-Id: I83e3ab643e19b2a2d9c8416f4925bbab05bbc896
Signed-off-by: scotthartbti <scott@ubuntu.com>

Conflicts:
	res/values/strings.xml
	src/com/android/settings/SecuritySettings.java
Merge branch 'jb42' of git://github.com/scotthartbti/android_packages_apps_Settings into beanstalk
Make HALO depend on PIE 2/2
Signed-off-by: scotthartbti <scott@ubuntu.com>

Change-Id: I62b65fe2c23f51edf6153dea3b14289be7d2ad3c
Revert "Make HALO depend on PIE 2/2"
Needs a rework for the BeanStalk layout.

This reverts commit 32b9faa93154c55c7eaa393fffe6c29cffc718cc.
Fixed typo.

Change-Id: Icfdbe70d74919c546ddbe41253417511cf486357
Signed-off-by: Chris Conley <chrisc93@vt.edu>
Handle cancellation of the 'enabling PrivacyGuard' alert box.

I noticed that the option could remain ticked but not actually enabled
if the alert box is cancelled.

Change-Id: If9a4e88641a5e4283d6ea16c17ca4461841580e3
Fix derp.

Change-Id: I2766f4c89460c967e32349be008e38b3600b7e76
Settings: add reset option to clock color and cleanup (1/2)

to be consistent. So we have now on all places with colorpicker
same logic + option per menu to reset color to default.

as well some cleanup and codestyle corrections

cheers

Change-Id: If4156c57420a3a72b3eb0f01cf8441ccc7bf1eeb
Signed-off-by: scotthartbti <scott@ubuntu.com>

Conflicts:
	res/values-ar/strings.xml
	res/values-cs/strings.xml
	res/values-de/strings.xml
	res/values-es/strings.xml
	res/values-fr/strings.xml
	res/values-it/strings.xml
	res/values-lt/strings.xml
	res/values-pl/strings.xml
	res/values-ru/strings.xml
	res/values-vi/strings.xml
	res/values/strings.xml
Add option to hide music controls in lockscreen
Signed-off-by: scotthartbti <scott@ubuntu.com>

Change-Id: Ifcee610041a846e6355a76016bafbb8e9b354cf5
Add an option to allow a (subtle) notification vibration during calls
Signed-off-by: scotthartbti <scott@ubuntu.com>

Change-Id: I7792ada6ff9e745eb8914c48e04429a9f277dec6
Settings: activate qs and notifications toggle for navring (2/2)

Change-Id: I967b247d6f0586715d1fd825b6872e5d3d2eb075
Signed-off-by: scotthartbti <scott@ubuntu.com>

Conflicts:
	src/com/android/settings/cyanogenmod/NavRingTargets.java
Fix up lockscreen commit few changes back.
Signed-off-by: scotthartbti <scott@ubuntu.com>

Change-Id: Ic199cee9690d186a6d4104988e09706d053bb80b
Settings: Introduce Privacy Guard Manager

Due that on the one hand a lot user are not familiar
with permissions and how to read them and on the
other user want to have a faster easy access to
setup privacy guard for several apps this small
manager assist the user to setup.

Privacy Guard Manager shows a list off all installed apps
Per default it shows only user apps which have critical
permissions privacy guard can protect.
The user can optional show in the list as well all system apps
or turn off the filter to show all apps undependent of the
permission the app has. To activate privacy guard for an
app a simple click on the entry activates it so that the user
can go fast trough the list. Longpress opens app detail page.
Initial help dialog tells the user how to use it.

Due the filter user who are unfimiliar with permissions can
fast see which apps are effected without deeper knowledge

cheers

SlimRoms

PatchSet3:
- go inline with AOSP style
- move PrivacyGuard by default into manager
- change behaviour off active icons

PatchSet4:
- change app icon size to 36dip

PatchSet5:
- string change

PatchSet6:
- add reset option to disable privacy guard for
  all shown apps in the list

PatchSet7:
- Cleaned up the intro dialog a bit.

PatchSet8+9:
- cleanup
- fix alignment of top checkbox

PatchSet10:
- fix permission filter

PatchSet11:
- improve icon loading

Change-Id: I6bc886393bf90f8daed92b66d5fee1ce9e1accd0
Signed-off-by: scotthartbti <scott@ubuntu.com>

Conflicts:
	res/values/cm_strings.xml
	res/xml/security_settings_app_cyanogenmod.xml
	src/com/android/settings/SecuritySettings.java
Show the "no action" summary for unitialized gesture values

Change-Id: I023ee587669103aa4d2a819af700ce3daa53695d
Settings: privacy Guard enhance app logic

This commit changes the following

- do not show apps signed with the plaform certificate at all
  (like settings, systemUI, android system etc)
  IMO the user should trust the android signed apps to be save and this will
  prevent weird behaviours user can get when they activate it on this packages
  all other system apps (like calculator, browser) and all which are not signed with
  android key are not effected.

- to go inline with AOSP disable the checkbox in detail app screen
  for built in apps

cheers

SlimRoms

Change-Id: I12b5522f6e58047173778381fb7290bb1c71bab3
Signed-off-by: scotthartbti <scott@ubuntu.com>

Conflicts:
	res/values/cm_strings.xml
	src/com/android/settings/applications/InstalledAppDetails.java
Allow user to trigger a volume rescan and rambar circle option.  2 for 1

Change-Id: Iadd5d4856df59d27e00d3eedb08573799efa72d9
Power'full' Sleep 2/2 (credit slimrom)
Signed-off-by: scotthartbti <scott@ubuntu.com>

Change-Id: I6b0d4c47bd17bb1fbf5529ff49691d69ab7b42f1
Changed the way that date format selector is shown.

Changed the way that date format selector is shown excluding ambiguity when day and month have same value.
- i.e. 01/01/2012 (mm-DD-YYYY) and 01/01/2012 (DD-mm-YYYY)
Now it displays 31/12/2012 for DD-mm-YYYY and 12/31/2012 for mm-DD-YYYY.

Change-Id: I27434c9d5713491950d4f345dccf65d647d399cf
use date from 1970-01-01 to 2037-12-31 in DatePickerDialog

In case of using DatePickerDialog, user could select any date
before 1970-01-01. However, the system clock cannot be set to
a date before 1970-01-01.
As a result, user couldn't select date before 1970-01-01.
So, use date from 1970-01-01 to 2037-12-31 of DatePickerDialog.

Steps to reproduce:
1. Settings -> Date & time
2. uncheck Automatic date & time
3. Set Date
4. choose any date before 1970 and Done

Change-Id: I075b3fcaa86df1c314c85dd3dd85474a28b8c637
Clamp date setting for the SetupWizard as well as Settings.

We fixed this for Settings in 7ccfa0614caeba8eba5d3040a90541a24fa1e6c9,
but @sonymobile.com point out that it's still broken for SetupWizard.

Change-Id: I59348200105246f3ed7c0892e5f19b901d3e95ac