privacy guard: changes part 1

the new cm implementation from our privacy guard is not the best.
Some changes we needd to do next week. For first give back the ability
to filter critical apps + do not show apps without any permissions
to do
- enable only the critical permissions the app is using
- add another active icon to notify the user if he modiefied another permission then the default ones
- add ability to disable notifications

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

Conflicts:
	res/values/slim_strings.xml
Settings: Privacy Guard part 2 (2/2)

Current implementation does not really merge both awesome features
appops and privacy guard. As well it is from UX perspective too complicated

So this commits changes:

- Move int array to logical correct place AppOpsManager
- Switch only the privacy guard permissions which the app
  really requests and not all...this irritates the user
- give support for custom permission set and reflect this state
  with an icon in notification and pgm
- add pack filterpermission feature due that user mainly are interested
  in the apps which use critical personal data
- permit by default as well writing off personal data
- do not show apps where either permissions are not changeable due
  off appops or apps which do not have permissions at all
- ability to hide pg notification
- remove pg checkbox in InstalledAppdetails and add a button to
  modify appops. Button is disabled if either the app does not have
  permissions or appops does not support it. As well for platform
  certificate apps
- add on appops detail screen reset and privacy guard button to quick
  change all states
- rework of the complete dialog handling in pgm and add several dialogs
- move all notify icon for pgm and notification to frameworks base
- and a lot more minor fixes and fc fixes

cheers

PatchSet:
- correct privacy guard filter logic
- add pgm map
- add status icons.....PGM shows either off/partly enabled/enabled
  in addition to it other set permissions shows a red plus sign on
  the top right corner of the PGM icon on all states
- tapping on PGM and menu pgm button on detail appops screen turns on/off
  only PGM permissions to be more consistent
- some minor fixes

PatchSet:
- remove permanent appops filter in pgm
- add hint on appops detail screen if no permission can be set

PatchSet:
- save listview state when calling another activity and going
  back

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

Conflicts:
	res/layout/installed_app_details.xml
	res/values/slim_strings.xml
	src/com/android/settings/applications/InstalledAppDetails.java
	src/com/android/settings/cyanogenmod/privacyguard/PrivacyGuardManager.java
Settings: Security: implement a pin keypad shuffler [2/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

PatchSet:
- fix checkbox was wrong assigned
- enable only for PIN Password lock
- small cleanup of old code

PatchSet:
- cleanup

PatchSet:
- add modes.....disabled/always/on request

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

Conflicts:
	res/values/slim_arrays.xml
	res/values/slim_strings.xml
	src/com/android/settings/SecuritySettings.java
Network color preference 2/2 thanks carbon
Signed-off-by: scott <scott@ubuntu.com>

Change-Id: I5a8a6966ea8b770dca8aaa772119c1ca871116ff
Make high security PIN prompt consistent to normal PIN prompt.

Change-Id: Ie5ccfb6f3ac9bcba4776512a2cd977111c243c9e
Settings: Long Term Orbits (LTO)

Patchset 2: Opt-In LtoService (if device supports LTO) and simplify the code
            Rebased
Patchset 3: Added LocationSettings suggestions
            Rebased

Require http://review.cyanogenmod.org/#/c/51421

Change-Id: I878104eb3c859168faa10467fab3772a2f639288
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Signed-off-by: scott <scott@ubuntu.com>

Conflicts:
	res/values/cm_strings.xml
	res/xml/location_settings.xml
	src/com/android/settings/LocationSettings.java
	src/com/android/settings/cyanogenmod/BootReceiver.java
Revert "Settings: Long Term Orbits (LTO)"

This reverts commit eba7e79519e207969aba51d75bf0fd267867e35d.
fixup privacyguard cherry-picks.
Signed-off-by: scott <scott@ubuntu.com>

Change-Id: I2fe62adad4f714c40f5f49712edafdcaf3a59c13