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
Lockscreen options : Camera/widgets toggle

As per https://jira.cyanogenmod.org/browse/CYAN-1243
this commit allows user to control visibility of widgets/camera on lockscreen.

Change-Id: Idab2ff4f058e355a1e5936531d9a264b1fea16a1
Merge "Lockscreen options : Camera/widgets toggle" into cm-10.1
Lockscreen Options : Fix toggling of states

Every time we set ourselves as the active admin, the previous states are reset.
Hence set both camera/widget states each time one of them is changed.

Change-Id: I678a8155a04ef3822b49bcfb997a248ea99c128c
Show the "no action" summary for unitialized gesture values

Change-Id: I023ee587669103aa4d2a819af700ce3daa53695d
Lockscreen Options : Disable keyguard camera only

Current method of disabling camera does so for entire system, not just
lockscreen. This patchset addresses that.

Change-Id: Iba357214df36ddd8afd49a3e39abcaaba4ec808e
Remove unused string.

Change-Id: I42efede12c7a8e501dcef5e6eed84839ec586716
Merge "Lockscreen Options : Disable keyguard camera only" into cm-10.1
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
Settings: AF translations

Change-Id: Ia2571ce89ea3d688690d85b9fcc18037a9a8b91d
Merge "Settings: privacy Guard enhance app logic" into cm-10.1
Settings: Update AF translations

Change-Id: Iebf79641d70936b83f8c9ab693ca724b5f18f310
Settings: PT-BR update translations

Change-Id: I6123a8bb148cc9a9b9606ec828b4f8ba6d873134
Merge "Settings: PT-BR update translations" into cm-10.1
unlock google play

Change-Id: I297944c586a73b07b2ecd483f9ca2199c78b537f
auto expanded desktop (setting)

Change-Id: I1b8815b0a5d082d0b141ec07c4099a330f742c62
Add disable button to apps details for user apps

Change-Id: I27bd18a12e81cc1d907006fbc39036eddb9d11b4
HALO (2/2)

HALO is Androids one and only multitasking solution.

We explicitly do not go the Samsung/Cornerstone route. This solution is basically an extension of
the regular notificationshade, which is an aggregator for notifications that can be checked out when
time permits. HALO completes it by allowing you to respond to tasks on the spot, trying to be as
unintrusive as possible and flexible in regards to policies (white/black lists).

Features:

- Apps open up in floating state, apps underneath do not pause
- complete SystemUI & Core integration, making HALO feel like a native feature, source/SDK and UI/UX
- HALO has white and blacklists, which for now allow fine control for apps pinging through HALO
- multiple gestures to navigate HALO:
  - double-tap-move: move
  - tap-drag-left/right: task through notifications, finger up launches
  - tap-drag-up: dismiss notification
  - tap-drag-down: put HALO into semi-hidden state
  - swipe while HALO is hidden wakes it up
  - drag-to-X to remove HALO altogether
- comes with as few settings as possible, everything should be self explanatory and intutive,
  users must be informed about the double-tap gestures which is the only catch.

Known issues:

- Integration has been finished for PhoneUI. TabletUI and PIE must be integrated still.
- Packageinstaller must allow HALO through its overlay check or it will disable the install-app button.
- The low level has a few remaining issues:
  - Some apps still go up fullscale (they trick us with services, circumventing the intent flagging)
  - Some 3D games still pause
  - There is one known app that refuses to end on back or touch-outside, that is WeChat
  - The activitystack pause implementation works but is makeshift

To-Do:

- On-screen tutorial at first start up to teach users the gestures
- Fixing all known issues, full integration in the remaining UI's
- Perhaps hybrid engine integration for running floating apps in a decreased size

Merge branch 'multiwindow' into jellybean

Conflicts:
	res/values/arrays.xml
	src/com/android/settings/paranoid/Toolbar.java

Change-Id: I87ad32f302592fff2c77e7cb37c5695d40ee90cd

Conflicts:
	res/values/arrays.xml
	res/values/strings.xml
	res/xml/tool_bar_settings.xml
	src/com/android/settings/paranoid/Toolbar.java

Conflicts:
	res/layout/installed_app_details.xml
	res/values/cm_arrays.xml
	res/values/cm_strings.xml
	res/xml/system_settings.xml
	src/com/android/settings/applications/InstalledAppDetails.java
	src/com/android/settings/cyanogenmod/SystemSettings.java
Floating window (2/2)
This is the setting part for the framework commit. This is a simple checkbox that allows the user to not make use of the floating window function seen in conjunction with PA's Halo feature. We are taking a different route on that Halo stuff and this is a very early start of it.

Schubi:
	Moved to CM System Settings

Conflicts:
	res/values/strings.xml
	res/xml/display_settings.xml
	res/xml/quicksettings_tiles_style.xml
	src/com/android/settings/DisplaySettings.java

Change-Id: I368248ec99d7cf2257640a0fdcf0e0738595b7ca

Conflicts:
	res/values/cm_strings.xml
	src/com/android/settings/cyanogenmod/SystemSettings.java
Halo: Add master switch to disable Halo (2/2)

Change-Id: Iafde2e47f4d7fdafdf49c475eba26a8437c52089

Conflicts:
	src/com/android/settings/cyanogenmod/SystemSettings.java