Revert "AppBar fixes"

This reverts commit cbf023b2b8b8a623a108b61253da7c0769e7e5f4.

Conflicts:
	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
Revert "Fix Appbar in Phone Mode"

This reverts commit 176c49531d1f22e0d18cd80ab06ecb8c7ca97a60.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Revert "Add Appbar to Tablet View"

This reverts commit 5da32ee66e999bfbab67a62c8ce59b90703423e4.
Revert "Change @ppBar to AppBar"

This reverts commit 08a69ef51d7475962780960417f2b4c0bf53e9c1.
Revert "Fixed sidebar code"

This reverts commit 369efe0edd0c20683aae8a523d5abbd80ef224ea.
Revert "Check that the @ppbar is in the OPENED state when the back button is pressed to prevent starting the closing animation repeatedly."

This reverts commit b4cf1c241d94d143ad8ef47e5d9dd2bfaa391598.
Revert "Only add an item if it's container is the @ppbar or a folder id."

This reverts commit 518f36e77f087227246a891ec38e70d6d9690356.
Revert "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]"

This reverts commit 1eb2f1d556866579da3106ef101f6b3aa074c371.

Conflicts:
	packages/SystemUI/res/drawable/trigger_region.xml
	packages/SystemUI/src/com/android/systemui/statusbar/AppSidebar.java
Revert "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."

This reverts commit 29ff7e6bcdafe895af6cd5e621417b959b79afd5.
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
(cherry picked from commit 5c52b10c2ff4cedd27c2d16de60a6c766c369dd7)

Conflicts:
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/drawable/item_placeholder.xml
	packages/SystemUI/res/drawable/sidebar_drag_enter.xml
	packages/SystemUI/res/drawable/sidebar_drag_exit.xml
	packages/SystemUI/res/layout/setup_user_folder.xml
	packages/SystemUI/res/layout/sidebar_configuration_layout.xml
	packages/SystemUI/res/layout/sidebar_user_folder.xml
	packages/SystemUI/res/menu/sidebar_configuration.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/AppSidebar.java
	packages/SystemUI/src/com/android/systemui/statusbar/sidebar/AppContainer.java
	packages/SystemUI/src/com/android/systemui/statusbar/sidebar/AppItemInfo.java
	packages/SystemUI/src/com/android/systemui/statusbar/sidebar/Folder.java
	packages/SystemUI/src/com/android/systemui/statusbar/sidebar/ItemInfo.java
	packages/SystemUI/src/com/android/systemui/statusbar/sidebar/SidebarConfigurationActivity.java
	packages/SystemUI/src/com/android/systemui/statusbar/sidebar/SidebarContentProvider.java
	packages/SystemUI/src/com/android/systemui/statusbar/sidebar/SidebarSQLiteHelper.java
	packages/SystemUI/src/com/android/systemui/statusbar/sidebar/SidebarTable.java
Revert "Delay hiding app sidebar by 500 milliseconds when an app is launched to prevent sidebar from not being visible but still receiving input."

This reverts commit 4e20d984e9cf662365a2980f04a83722608cd11b.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/AppSidebar.java
Revert "Add ability to exclude apps from the sidebar [1/2]"

This reverts commit fbf24ecc64ca4fbbfd9e13c538d4e3ff11b724b8.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/AppSidebar.java
Revert "Prevent sidebar from opening an application if the user immediately lifts their finger upon opening the sidebar."

This reverts commit 3a2c9b6c0869410d9f18a8ba2cb6deafa213c2b3.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/AppSidebar.java
Revert "Show text bubble when the sidebar is first being displayed and when the user touches on an item while the view is still scrolling."

This reverts commit f9e0edb8f8527b540a191ef66f80c4d0306476d3.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/AppSidebar.java
Revert "Set mSnapTrigger to false on ACTION_DOWN to prevent snapping if the user touches the bar before scrolling finished"

This reverts commit d559fc164d3713dad148c458c90a4f920508256d.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/AppSidebar.java
Revert "Add user selectable size for sidebar [1/2]"

This reverts commit 25f47aeb4da23a539a4bf9b283b008deef0c3225.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/AppSidebar.java
Revert "Add user defined transparency to app sidebar [1/2]"

This reverts commit d3d65c838e4af267be7fea645c20c9db7d91ecee.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/AppSidebar.java
Revert "App sidebar [1/2]"

This reverts commit 320328b3dcba61874cf90aa34f8285e879a8d382.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/app_sidebar.xml
	packages/SystemUI/res/values/config.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/AppSidebar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
MediaRecorder: add pause interface

Change-Id: I7e04c3ecaab634069a7757648c15418eee8149a5
(cherry picked from commit 0517abc1163061fd71e05e8bf4252b71fccaf918)
Frameworks: Enhance face detection & Fix compilation for non QCOM hardware after 'Enhance face detection' commit

CM Commit http://review.cyanogenmod.org/#/c/51877/ & http://review.cyanogenmod.org/#/c/51843/

Add support for facial processing features:
smile detection, gaze detection and blink detection

PS4: Fix whitespaces and correct ifdef positions

Change-Id: I6b22c3e1691a8b81f8cfad5d083ba2fc12e5a764
(cherry picked from commit 8f5bc7053bb93f5e4782f01b2cae5923f1f57047)