Base: Save power [1/2]

    Ported to AOSPA from N5X CM11 Based by @AragaoAnderson

Change-Id: I83e53a57f519372e156e7ff14b185d5881f4061b

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/AndroidManifest.xml
Framework: Update Performance feature

Change-Id: I1ecdf5a75cee868cb49c0ff355a9ef6467b85297
Update Save power feature

Change-Id: I56e924e7008bfc73fd269bd8c54210ef1ed617ab

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/n5x_strings.xml
	packages/SystemUI/res/values/pa_arrays.xml
	packages/SystemUI/src/com/android/systemui/quicksettings/PerformanceProfileTile.java
Enable Power Save Profile only when it's needed

Change-Id: I07677c868c3cb2b8f50bc2650ab4c92bc5154691
Framework: Fixes and improvements in Power Saver

Change-Id: I9708477d39481be0920436ba04d1071c623504a5

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/PerformanceProfileTile.java
Base: Fix derps

Change-Id: I58bec1f084804f57a96b307a873ef53ba2c6add5
Framework: Squashed commits for Performance Profile

    Ported to AOSPA from N5X CM11 Based by @AragaoAnderson

power: Add CPU boosting interface
 * Boosts CPU using Power HAL for the given duration.
 * Duration is given in microseconds.
 * Power HAL must implement POWER_HINT_CPU_BOOST.

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: I7cce07aa2ef868c0fa85572aaa2808c991c5c956