settings: Squashed commit of CMHW features

Add hardware tunables (gamma, color, vibration strength).

Change-Id: I44e3e4e6cb444498a7c56048618cd92a0e2b8e59

Settings: restore hardware tunable values on boot

Change-Id: I9d2720947d615cab6a7ab9b596b24b8033dd0b4f

Settings: Add default value for display color control (2/2)

Change-Id: I50b684abe504c21ef49492f99b18873d75509697

settings: Move headset option, hide MoreDeviceSettings if empty

 * This option fits much better in the sound menu under "automation
   and effects", and on many devices it's the only option in the
   "More..." menu under Tap & Pay.
 * Move it, and remove the MoreDeviceSettings top-level category if
   there's nothing else in it.

Change-Id: Idd82f582a1ba54f8b45fbd4fbe631057e9515f86

Remove 'More device settings' menu

Change-Id: I86cd84f6f6c408b26c04d92529e9a031c4fed1f7

DisplayColor: Properly handle a minValue

* Previously setting anything as a minValue would cause the
  percentages to get out of whack. For instance, setting it to 35
  would cause the maximum percentage to climb above 100% as well
  as still allowing the value to be set lower than the min.
* This makes the maximum for the slider the max value minus the min
  (so we get the proper spread for min to max) and then adds the min
  back on before setting so we can't possibly go below the min.

Change-Id: I8dcdc422f54847940351fae10c74af6301d1e1be

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

settings: Add support for SRE

 * Add support for sunlight readability enhancement
 * Optionally depends on adaptive backlight, depending on HAL

Change-Id: I9ca388ffd68080f0e497edb81d5f8616c194ea1d

Cleanup.

Now that button and keyboard backlight don't use the HW framework
anymore, there's no point in having an abstraction for a single use case.

Change-Id: Ib66b2a29a105d53e3ba4273abb06977b132c1fc8

Conflicts:
	res/values/cm_strings.xml
	res/xml/display_settings.xml
	src/com/android/settings/DisplaySettings.java
	src/com/android/settings/cyanogenmod/BootReceiver.java
Settings: volume wake preference

Change-Id: I6a732e627b75a1be533ecd96cb018307de0e5a77

Conflicts:
	res/values/cm_strings.xml
	src/com/android/settings/ButtonSettings.java
settings: Forward-port notification counters

* Port from CM11

Change-Id: Ie19a6184b1d59676774937084a830ef4c7e8426f

Conflicts:
	res/xml/status_bar_settings.xml
Settings: Fix NPE in Superuser settings

Patch set 2:
These layout files were added with the new profiles ui commit,
they are not needed because profiles has it own, removing these fixes the npe and fc in Superuser settings

Change-Id: I5286c0ace8fff19639efd5685018b2f47e3cf361
Rename Profiles to System profiles

L includes 'Users & Profiles', rename ours to distinguish features
and prevent confusion.

Change-Id: I5a148dcf5fea1b24448d254105b0bd6904a4ddd8
update Japanese translations
Display settings: add touch control packages
    Settings: Date and Time - We want consistence...change from CheckBoxPreference to SwitchPreference

    Google changed it on all main settings. It does not make sense that on system settings
    the old CheckBoxes are still used.

    This commit changes all CheckBoxes in Date and Time settings to Switches

    Same needs to be done for Developer Settings

    Change-Id: I5c1f34b813ede998e4fb9dab2a1184a6db51bf79

Change-Id: I1eecfa0e10054e3acf1d4afd58a31f2f35ab476f
Settings: statusbar clock customization

- added slims clock and date customizations for status bar
- added our own modded marginov color picker which we use as default
- added initial interface settings. A bit empty currently but we are on
  alpha and it will be filled fast for sure. Added as well two empty
classes
  due that we need them later

Originally by kufikugel. I just ported to 5.0

PS:
- small cleanups and adaptions to LP
- add personalization category on dash board.
- go inline with new default values on fb patch
- add correct dialog handling
- use correct reset icon
etc.

Change-Id: I2fee223474b6c8772d6d5abe321fa310a5632794

* added options to Date & Time settings - Altaf-Mahdi
Settings: Accessibility - We want consistence...change from CheckBoxPreference to SwitchPreference

Google changed it on all main settings. It does not make sense that on system settings
the old CheckBoxes are still used.

This commit changes all CheckBoxes in accessibility settings to Switches

Same needs to be done for Date and Time and Developer Settings

Change-Id: I335285270bcb8fa5e6e86f32a099f901e6d44d29

Conflicts:
	res/xml/accessibility_settings.xml
	src/com/android/settings/accessibility/AccessibilitySettings.java
Settings: Fix devloper options FC and remove all bug report options

This change: https://gerrit.slimroms.net/#/c/18820/

removed it just in the xml which is a pretty bad idea if java code
still assumes it is there.

Due that we will never need it we remove the code completely.

As well remove bug report in power menu option.

Change-Id: I234dee3a19639f89b5a7b5295ca408142e4223dc

Conflicts:
	res/xml/development_prefs.xml
	src/com/android/settings/DevelopmentSettings.java
Settings: Remove all system update settings for google OTA

not needed and confuses the user

Change-Id: I49abf0e6418c7b51aba6d3172c39f209d288382e

Conflicts:
	res/xml/device_info_settings.xml
	src/com/android/settings/DeviceInfoSettings.java
Settings: Add ability to control default value of DOZE_ENABLED

Devices can enable the doze feature. Devices without AMODLED screens can use it
but it will use then of course more battery. This devices should disable this f$
by default and let the user decide to turn it on.

to change the default behaviour add into device overlay

config_doze_enabled_by_default and set it to false

Change-Id: Id567cc08b16bdbdbf28f39045f95b2e6c8f06e7b
Settings: StatusBar Ticker (2/2)

PS: MIspeeliings.

Change-Id: I02cf9192c3ba62111a41e7da52cf4c343a589392
Settings: Do not allow to access quick settings on secure lockscreen

We have a lot security guys as user due of using the phones as business phones...that
said a lot complains go into the direction of google how it is possible to have
access to quick settings on a secure lockscreen which is absolutely understandable
due that you are able to control Wifi BT AirplaneMode data etc.

This patch takes care on this problem and adds an option to control this behaviour.

ATTENTION: Due that this is really an UX derp for an average user this feature is
enabled by default now. User need to disable it explicit in settings to get on secure
locksreen the original android behaviour back.

PS2:
- fix derp

Change-Id: Iac8c181767a16d3d198672d16901670984b58f48
Button settings: remove lock screen power menu option if were not secure

-also remove the summary as its not needed now
remove SuperSU icons and use Superusers instead