Revert "Add touch feedback to the clear all recents button"

This reverts commit 6c5b23f155a4ed5bb75774f35112b48d5737e9fc.

(cherry picked from commit 5becc78e8bcf082b4ef15bb69b9d45a6f8771edc)
Revert "Long press clear all recents to flush cache"

This reverts commit b84dfdec7dd8f9359762b0148b915f6eb42094b2.

(cherry picked from commit 9aa3281db694029e424c88c7699bf1f700bc9c74)
CM11 Themes: Reduce "unable to load asset" log spam

With the introduction of a "common" resource folder for themes,
we always try to attach the common resource table and if it does
not exist it won't be attached but we would see this log spam.

Change-Id: Ida4e815523fd71b34fe8f3b41cef3432e6e07b64
(cherry picked from commit 2f8db8e2966aa6d5ba665c9accaf81216fd55dfb)
CM11 Themes: Get proper package name in attachThemeAssets

Change-Id: Ic77ff41519b22e3b20c4571785a1368cdf4d14d2
(cherry picked from commit 23bfb021e84fe5c675cf79a235e0942cbcc2d019)
Revert "ActivityTrigger:  New class to invoke when activity starts/resumes"

 * No longer supported upstream, and will be superseded by new
   CM functionality.

This reverts commit c5bb1bbd0a59640ec394ee729b57de34295a4e99.

Change-Id: Ieb26fb1db62b739e048a6a9b87fb33579b4ee285

Conflicts:

	services/java/com/android/server/am/ActivityStack.java

(cherry picked from commit f2b63c181ee31baf9bce21f3523ab5b34e233e25)
perf: Improve performance profiles

 * Performance Profiles is going to grow into a much more powerful
   feature which can apply advanced optimizations or power saving
   techniques depending on both the state of the hardware as well
   as the current applications in use.
 * Refactor the original code and move it into PowerManager so
   that it's managed from the same place.
 * Implement "automatic performance profiles". This feature will
   automatically select a profile when specific activities are
   running. Currently this list is static and engages performance
   mode for several benchmarks (trollface).
 * Added support for a new power hint, POWER_HINT_SET_PROFILE.
   Currently, these profiles are fired using a property trigger
   in init. This is easy, but the PowerHAL can do more.
 * Moved the setting to Settings.Secure and also wrapped calls
   to the service in the DEVICE_POWER permission. Nobody should
   mess with this stuff except the system.

TODO:
 * Allow user configuration per-app.
 * Implement an advanced power-saving mode.

Change-Id: I140ebc0648c4cf05900e005923247c3180be8c93

Conflicts:

	core/java/android/os/IPowerManager.aidl
	core/java/android/provider/Settings.java
	core/res/res/values/symbols.xml

(cherry picked from commit c7e1ac2e643b56be2a41d9a24043b25e6918b361)
wm: Make the default menu longpress action configurable at build time

Do the same we do for home. For CDD validation, we need to switch
the menu and home longpress action, since Home must map to Google Now.

Change-Id: Iacfedf711d43f6637023c87c00e6c6b8b8a437dc
(cherry picked from commit 404d228329670df624e28410345f07e4c984db3b)
settings: Add support for default ribbon config

Change-Id: Ib4567431ce136813466ec87bba0581caafe0b352
(cherry picked from commit 6ce5d46afbe5ba29c7790ac25da3984163cb049c)
Cleanup themes that fail to install

Themes which fail to install due to aapt or idmap errors
would not be properly cleaned up. This caused subsequent installs
to give a INSTALL_FAILED_UID_CHANGED (-24) error.

This patch also adds install error codes specifically for themes.

Change-Id: Ie03b92ca0a7dec8c4a5e3725b717943d36abb349
(cherry picked from commit 839bae526f58e16134501b027cb7de145e07aef1)
Automatic translation import

Change-Id: I54e519bd787f76b94605bfe3057ba508d06c2069
(cherry picked from commit ae221e7250acd3e9694e9148f4c3ed4ea5b21646)
Themes: Fix -110 install error [2/2]

aapt was being called from PM with a ' ' at the end of the cmd. This would
cause installd to read unexpected parts of memory which sometimes
causes it to parse the command incorrectly.

Change-Id: I85bf93045370478fd9baaf5db784c0cc3a4a03b9
(cherry picked from commit f18d825bfc86bf111a3db29426b2627d8bb1d358)
CM11 Themes: Expose applyDefaultTheme to public service

Change-Id: I952870fb984d51d554e560566a8cadbe2c49cc6b
(cherry picked from commit 62a07ffabbfc245c083c4fe3218b6e0ea0e810ea)
Avoid app install failures from malformed themes

When an app is installed we create idmaps between it and all the themes
that theme the app. If the theme is really badly written it could
potentially fail idmap generation, but we should not block the app
itself from being installed just because a bad theme is on the device.

Change-Id: I0e38fd373dfd294aac17fab1cf07ba49934a8859
(cherry picked from commit b6ac4a10ad34dceab6dc677b0851a1413f4fee1b)