Revert "framework: Privacy Guard"

Change-Id: I82ab85092e54c577a0817f3bedc85063c9a3054a
Privacy Guard : Reimplement backed by AppOps

Re-implements privacy guard to use appops.

Change-Id: I2b52e8cf0d6e126fb156f83df885b5551503cd9d
SystemUI/Added ADB over network QuickSettings Tile

Change-Id: I340846a171571a7b61d2c68f2a6875794be5d5b2
Navbar: Fix MDPI & HDPI landscape layout

Before: http://i.imgur.com/89SmFbX.png
After: http://i.imgur.com/UbuAggD.png

Change-Id: I6623cb97881313886de39a67baa98f7bd4b0696a
Merge "SystemUI/Added ADB over network QuickSettings Tile" into cm-10.2
Merge "Navbar: Fix MDPI & HDPI landscape layout" into cm-10.2
Add active display to ChameleonOS [1/2]

This is the ChameleonOS implementation of the active
display feature, similar to that found on the Moto X.

When enabled the screen will turn on and display the
incoming notification.  The user can then open the app
for the notification, dismiss the notification or unlock
their device normally.

Additional notifications, if any exist, will be displayed
below the ring notification and can be viewed by touching
the notification icon.  The user can simply slide their
finger across these other notification to quickly view
them.  The last one touched will remain in the ring and
the user can then perform any of the actions listed above.

PS2-PS12:
All the changes that brought us to this current implementation.

Change-Id: I51c17cec33b65dc60111a10c5ca2c449596ebe63

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/dimens.xml
	core/res/res/values/symbols.xml
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/res/values/styles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
Correct active display settings naming

Change-Id: Ibfa2d41eed01d8987df52f013b111a0ce4e70739

Conflicts:
	core/java/android/provider/Settings.java
Active display: Add options for date and am/pm [1/2]

Change-Id: Idc09772829cc6aa9bcfb064459fb3557c7b37f6b

Conflicts:
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/res/values/donottranslate.xml
SystemUI: DE translation

Change-Id: I9d1723c3411011158be6779a4ec744aa09234a44
SystemUI: ES translations

- ADB over network

Change-Id: Iebf7377e6b9939d0e4cc951d65d2326a7752fcd3
Revert "base: App crash when select suggestion's length more than specified."

This reverts commit dcf75fbfd06c6a940e4124550edd19e191656047.

Change-Id: I6d236f16e9c428b06caf4423903839d54cf24bd0
Merge "Revert "framework: Privacy Guard"" into cm-10.2
Merge "Privacy Guard : Reimplement backed by AppOps" into cm-10.2
Merge "Revert "base: App crash when select suggestion's length more than specified."" into cm-10.2
Merge "SystemUI: DE translation" into cm-10.2
App sidebar from ChameleonOS [1/2]

Summary:
This is a squashed commit of app sidebar support from ChameleonOS (github.com/ChameleonOS). All of this app sidebar work was done by 0xD34D.
All commits included are as follows:
Remove collecting usage stats for apps.

Add user defined transparency to app sidebar [1/2]

Change-Id: I8ed6d96e5e4d3e93dea37ac3d6f1c25186e1034c

Optimizations

Change-Id: Ia177e7b22fcc7e2096d947c7f15bf176e1d82ebd

Add user selectable size for sidebar [1/2]

Change-Id: I24d997c5b91da049c6ad84756bc544d143e2c00a

Decrease trigger width by 2 dp for default config

Change-Id: I8236e2ae67516bc6c6eb1808be84323e671ead04

Set mSnapTrigger to false on ACTION_DOWN to prevent snapping if the user touches the bar before scrolling finished

Change-Id: I4ef2d7c3586c897de510de21008b844161955ea4

Show text bubble when the sidebar is first being displayed and when the user touches on an item while the view is still scrolling.

Change-Id: I6c575d53dfdc65360aadb0be0cbcb93192450b28

Prevent sidebar from opening an application if the user immediately lifts their finger upon opening the sidebar.

Change-Id: I6fd9cd6d94aee49098cf1deb9ecde2e5f2f79deb

Add ability to exclude apps from the sidebar [1/2]

Change-Id: Ia4d9b2590a228fd1b8ad95a68919cfd3b062213b

Add a receiver to listen for packages being added and removed so the sidebar can reflect those changes.

Change-Id: I336734060f3064fcc3f60d9f48d4a33308a3f20e

Avoid NPE when mExcludedList is null

Patch Set 2:
  Correct logic

Change-Id: Ibaf9ff6996b514284e52a8adcfb5578f9d072eb0

Make sure mScrollView is not null when calling layoutItems from content observer.

Change-Id: I34e5be733af3166b3a88150bb5c4574f962be436

Use SCROLLBARS_INSIDE_OVERLAY to reduce excess width of sidebar

Change-Id: I07df99f67ee8ad0443e7e471a6f3c7c2f34293de

Delay hiding app sidebar by 500 milliseconds when an app is launched to prevent sidebar from not being visible but still receiving input.

Change-Id: I12f075537b77311158841183eb1df8a8805f87eb

Launch activity using component name so the correct activity gets launched for applications that have multiple activities that can be launched.

Change-Id: Ifb38cd4c7d8d8ba0db709a5e8bd310a7ac8fa16a

Cancel the auto hide timer when mScrollView receives MotionEvent.ACTION_DOWN

Change-Id: Ief41d298b71329eb5d19ac3d4aa1a07920308110

Disregard case when comparing app names for sorting.

Change-Id: Iecd6b295f5fb8f89fb0e4d3e539796199c7089f3

Use a Collator when comparing app names to account for differences based on the user locale.

Change-Id: Ic93ca46140ff21555cb374f1dad1240774567858

New app sidebar with support for folders, custom ordering and support for left/right side [1/2]

Patch Set 4:
  Move sidebar to left side if configured for the right and the device
  is in landscape orientation with the navbar on the right.

Patch Set 5:
  Added option for displaying a visibla tab that will slide out the
  sidebar when the user touches it.

Patch Set 6:
  Check both package and class name when checking for duplicates in
  folders.

Change-Id: Ic77487651a1bcf441260f022053438ccd4d8997d

Adjust @ppbar layout parameters so that it can receive key events when it is visible and intercept the back key to hide the @ppbar when it is pressed.  When the @ppbar is hidden the layout parameters will be restored so that it no longer receives key events.

Change-Id: I0a30f68aea03428bc9580f56fcff469134b30c8d

Add adjustable trigger area for the @ppbar.  Users can define the width, height and Y position of the trigger area.  Only this area will receive touch events. [1/2]

Patch Set 2:
  Make enableKeyEvents and disableKeyEvents return the flags used and
  use reduceToTriggerRegion and expandFromTriggerRegion.

Patch Set 3:
  Use a nicer looking shape drawable for the trigger region when
  visible.

Change-Id: Idcd27bc70d95841ebcbef178a986c77098adfb09

Only add an item if it's container is the @ppbar or a folder id.

Change-Id: I0303657ea1d52926a4d8c937d36d473ee9b1c325

Change container of item removed from folder to CONTAINER_SIDEBAR.

Change-Id: I78ef3dfc1be85d556bdeba2d12880c82cb6724fb

Test Plan: Use app sidebar at different resolutions. Launch apps and shit

Reviewers: michyprima, rlasalle15, randall.rushing, Mustaavalkosta

Differential Revision: http://review.codefirex.com/D87

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/values/config.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Merge "SystemUI: ES translations" into cm-10.2
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2

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