Add "other device options" from CM

Change-Id: I9c853fa0e94210c6a8110f2601bffef8a6f42e52
(cherry picked from commit 678163eba101199f23ec962bf1306e2abc0c8ac9)

Conflicts:
	res/values/pa_strings.xml
orig file
Revert "orig file"

This reverts commit 7d2df9c85c79cf6c3925b54275101bd24932ec7c.
Add basic-level gamma calibration to hardware tunables

Change-Id: I3223cb111889be71175dee67723ae44cba051e23
(cherry picked from commit 1f111741f09f4ae221039de6c0fd4ea248cc0b54)

Conflicts:
	res/values/pa_strings.xml
	src/com/android/settings/cyanogenmod/BootReceiver.java
orig file
Revert "orig file"

This reverts commit 6a714ab83a1e55f298049a29527bd47683c5683d.
Use a common base class for HW tuning sliders.

Change-Id: I61b458ffb08eb765f8a720657056243f56e76f17
(cherry picked from commit d2b3ee51a1f544fde741c8d99389b857d0e59ee8)

Conflicts:
	res/layout/button_backlight.xml
	res/layout/keyboard_backlight.xml
	src/com/android/settings/cyanogenmod/ButtonBacklightBrightness.java
	src/com/android/settings/cyanogenmod/KeyboardBacklightBrightness.java
Settings: show force overflow if any bindable keys available

Change-Id: I8f15db14fe09a7ff00d7c3f6088bb53691c1aed5

Conflicts:
	src/com/android/settings/cyanogenmod/HardwareKeys.java

(cherry picked from commit a3529574909c91f1b27dca35dc8e2d3021cf68b4)

Conflicts:
	src/com/android/settings/cyanogenmod/HardwareKeys.java
orig file
Revert "orig file"

This reverts commit 4eaf23d84e285178d87a58007cb5c72980f85986.
Settings: Gamma calibration tunables

- Add support for negative values to gamma.
- Remove logs.

Change-Id: Ie06bf68bbc8e875d36966ed7f98a6beadb0169cc
(cherry picked from commit 3f2def16b2f8a744912481b9b96a030c456a4a91)
Settings: AdaptiveBacklight support

Add support for adaptive backlight technologies like NVIDIA SmartDimmer, QCOM CABL or Samsung CABC.

Patchset 2: Use internal shared prefs to store the smardimmer setting
Patchset 3: Rename to AdaptiveBacklight
Patchset 4: Reorganize settings and strings to follow design guidelines
Patchset 5: CleanUp
Patchset 6: Added suggestions
Patchset 7: Sync default value. CleanUp.

Depends	on http://review.cyanogenmod.org/#/c/48465/

Change-Id: Ib0e05770bf90b664a00e65f46d32cc9a07be1377
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
(cherry picked from commit 6a8712f8ccdf8d8c4950c94ff155d2c19f0ef05a)
Check for presence of hardware abstraction framework.

Change-Id: I59da970d4a4eb74a571d1ac27cb18e351dfc2a53
(cherry picked from commit 0bb8c8d897de9b2c2c620c446486aa40a0f61ac7)
Remake kb/button backlight controls as a PowerManager client

PM now has observers for these settings values and applies them in
realtime, so piggyback on those for button light management

Change-Id: I7568069bd6cacf5cbb56c8d0a1746894725b87fa
(cherry picked from commit 59898fd2c2c187981de1f22bbcaeab665096c94e)
Cleanup: Use a helper class for system setting binary toggles.

Change-Id: Iad7f8a6bf85b23223e1def18e8c9eaa0f8dd253c
(cherry picked from commit 98e8b58312a7133d6e6e21283713fb90d0167e5f)
Settings: ensure SystemSettingCheckBoxPreference defaultValue is set

Change-Id: If2a6234ad78e7b03de86f72e866633817cf888c5
(cherry picked from commit 9e0a376d1940aa5e90ed41c8471c7240f8952400)
Add configurable kb/button backlight timeout

Adjust the value for Settings.System.BUTTON_BACKLIGHT_TIMEOUT

Change-Id: Iea534312b09b38a95185d7fc97d922b23faf29e3

Conflicts:
	res/values/cm_strings.xml

(cherry picked from commit b5b2e56f94b63f5219a8de59aadabe90b8a23d4e)

Conflicts:
	res/values/pa_strings.xml
orig file
Revert "orig file"

This reverts commit 68d1eef630689d56626b470b9a379527a3c6453a.
Improve button/keyboard backlight code.

- Improve UX
- Deduplicate code

Change-Id: Ie0218de8b83fe49e3fe1d91a64c2522af03ba06d

Conflicts:
	res/xml/button_settings.xml
	src/com/android/settings/cyanogenmod/ButtonSettings.java

(cherry picked from commit bb751fbfa42aee97af83bed155e2c2af60ef2aa3)

Conflicts:
	res/values/pa_strings.xml
	src/com/android/settings/cyanogenmod/ButtonSettings.java