Settings: Forward port Performance settings

Change-Id: Ib510b35fc2763c6942737afa33873aa5d349a173

Performance settings: remove dithering setting

This setting has no effect in CM10.2, as SurfaceFlinger has now been
taught to automatically Do The Right Thing [tm] with regards to deciding
when to enable surface dithering.

Change-Id: I67fba732440507c1209f2793d826badd4b4d34d5

Conflicts:
	AndroidManifest.xml
	res/values/arrays.xml
	res/values/strings.xml
	res/xml/settings_headers.xml
Settings: Forward port Change behavior when back pressed in PerformanceSettings

When back key pressed, finish this activity if user does NOT accept 'Ok'
in warning dialog rather than show it.
Id: Ied763db4f76a3a2a36f134bd93a0f18047c6cf5c

Change-Id: I07d41d43d00e4fb42ad526d27ee9188d830906ea
Settings: restore hardware tunable values on boot

Change-Id: I9d2720947d615cab6a7ab9b596b24b8033dd0b4f
Performance profiles

This changes adds support for custom performance profiles through overlays. Supported
devices should define config_perf_profile_prop with the proper system property to be set
and fill an init.rc file with the appropiate handlers for every defined performance profile..
Patchset 2: Rebased
            New simplified strings
Patchset 3: Fix build
Patchset 4: Rebased

Change-Id: I5a6612db94da3c09d8ec2e8920bf9516f62d0024
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Conflicts:
	res/values/cm_arrays.xml
	res/values/cm_strings.xml
	src/com/android/settings/cyanogenmod/BootReceiver.java
Settings: Update Performance feature

Requires http://review.cyanogenmod.org/#/c/51776/

Patchset 2: Fix not null comparation
Patchset 3: Added suggestions
Patchset 4: Fix string
Patchset 5: Rebased
Patchset 6: Rebased
            Move setCurrentValue() inside mPerfProfilePref null check

Conflicts:
	res/values-cs/cm_strings.xml
	res/values-de/cm_strings.xml
	res/values-el/cm_strings.xml
	res/values-es/cm_strings.xml
	res/values-hu/cm_strings.xml
	res/values-it/cm_strings.xml
	res/values-pt/cm_strings.xml
	res/values-ru/cm_strings.xml
	res/values-sk/cm_strings.xml
	res/values-zh-rTW/cm_strings.xml
	res/values/cm_arrays.xml
	res/values/cm_strings.xml
	res/xml/perf_profile_settings.xml
	src/com/android/settings/cyanogenmod/PerformanceSettings.java

Change-Id: I578d84002b00e0a7c58cdcaf2a3735bf6bbfdabf
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Conflicts:
	res/values/cm_arrays.xml
	res/values/cm_strings.xml
	res/values/config.xml
Brings performance settings up-to-date with cm-10.2

Includes the following cm-10.2 commits:
http://review.cyanogenmod.org/30667 Performance: BootReceiver: set CPU min/max freqs before CPU governor
http://review.cyanogenmod.org/31886 Adding configurability of frequency cap (min/max) files' path.
http://review.cyanogenmod.org/48007 Cleanup: remove useless checks.
http://review.cyanogenmod.org/51295 Cleanup performance settings strings

Change-Id: If94d02745606e9bdca92a89ea7129a44878226a2

Conflicts:
	res/values/cm_strings.xml
	res/values/config.xml
Settings: Save power [2/2]

    Ported to AOSPA from N5X CM11 Based by @AragaoAnderson

Change-Id: Iacc5c4b1ed61e24d22b4ddd9b94d0b2c083ca759
Settings: Remove some derps

Change-Id: I6798a59d240f3cba363cdaa77af92789f21f9088
Revert "Settings: restore hardware tunable values on boot"

This reverts commit 5507f545b9741f549f40c4e010e5b1a3b63038ee.
Update Save power feature

Change-Id: Id5ffbfc27cb5a980507f9641a434e17984cb6405

Conflicts:
	res/values/n5x_strings.xml
Settings: Apply Processor settings to all cpus

QCOMs multicore implementation allows for different governors
and min/max values per cpu. Let the Settings app live up to the
user's assumed expectation and keep values synced across all
available cpus.

While this can be easily accomplished with a root-app, there are
a few prerequisites for our application: This patch requires
ueventd rules for cpu*/cpufreq/scaling_* files and write perms
to cpu*/online for the SYSTEM user in init.${ro.hardware}.rc.

Change-Id: Ic9349977f02282649a11319758dd7f546538f149

Conflicts:
	src/com/android/settings/cyanogenmod/Processor.java
Settings: Fixes and improvements in Power Saver

Change-Id: I881b00c415674e09dbde9a1dbd09e88cfe2a5276

Conflicts:
	res/values/n5x_strings.xml
Settings: Code Cleanup

Change-Id: I4749b64dda1f47278758b7138fed9701c8a4eebb
Add option to Restart SystemUI to DevSettings
Original commit from: scotthartbti/android_packages_apps_Settings@78ce6da

    Ported to AOSPA from N5X CM11 Based by @AragaoAnderson

Change-Id: I16d73aab7510bea78b52648e010885251f82a3b8
settings: Cleanup and add auto power profiles option
 * Add categories for all items
 * Add helper class for Settings.Secure

Change-Id: I2f6a8856137e085b0a19ffae1df9695aa480bc39
Settings: Hide Development settings when it is turned off

This commit hides the Development and Performance settings items
when the user turns off Development settings. This sets things back
to tapping x number of times on the build number to once again enable
developer settings

Change-Id: I6003f73f5abee54bb000f01757ecffe7b68dba59

Settings: Make Perf settings act just like dev setting - start hidden

The Performance settings should not show until the owner of the
device enables development options, guest users should not be able
to turn it on.
Settings : Add tap/pay help url

Change-Id: I41f37dff0fa2eb547f84aaf776950f0f42e6e36f