aboutsummaryrefslogtreecommitdiffstats
path: root/packages/CMSettingsProvider
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2015-11-10 18:10:54 -0800
committerAdnan Begovic <adnan@cyngn.com>2015-11-10 18:10:54 -0800
commita09defa3c908589ad47cac7cd0de80c02832d532 (patch)
tree393a1c6d8d580316bde5c6bfdc3be1bb144ed120 /packages/CMSettingsProvider
parentb006e980e73b60a71139fda3c4fb9e6e1f97d9c8 (diff)
downloadvendor_cmsdk-a09defa3c908589ad47cac7cd0de80c02832d532.zip
vendor_cmsdk-a09defa3c908589ad47cac7cd0de80c02832d532.tar.gz
vendor_cmsdk-a09defa3c908589ad47cac7cd0de80c02832d532.tar.bz2
cmsdk: Move LiveDisplay settings and resources.
Change-Id: I6d0c3f8b645e2c8cca059ff343a774eab1933a9b
Diffstat (limited to 'packages/CMSettingsProvider')
-rw-r--r--packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java69
1 files changed, 69 insertions, 0 deletions
diff --git a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java
index 00b3574..979be3f 100644
--- a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java
+++ b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java
@@ -580,6 +580,59 @@ public class CMSettingsProvider extends ContentProvider {
*/
public static final String WIFI_AUTO_CONNECT_TYPE =
CMSettings.System.WIFI_AUTO_CONNECT_TYPE;
+
+ /**
+ * Color temperature of the display during the day
+ * @hide
+ */
+ public static final String DISPLAY_TEMPERATURE_DAY =
+ CMSettings.System.DISPLAY_TEMPERATURE_DAY;
+
+ /**
+ * Color temperature of the display at night
+ * @hide
+ */
+ public static final String DISPLAY_TEMPERATURE_NIGHT =
+ CMSettings.System.DISPLAY_TEMPERATURE_NIGHT;
+
+ /**
+ * Display color temperature adjustment mode, one of DAY (default), NIGHT, or AUTO.
+ * @hide
+ */
+ public static final String DISPLAY_TEMPERATURE_MODE =
+ CMSettings.System.DISPLAY_TEMPERATURE_MODE;
+
+ /**
+ * Automatic outdoor mode
+ * @hide
+ */
+ public static final String DISPLAY_AUTO_OUTDOOR_MODE =
+ CMSettings.System.DISPLAY_AUTO_OUTDOOR_MODE;
+
+ /**
+ * Use display power saving features such as CABC or CABL
+ * @hide
+ */
+ public static final String DISPLAY_LOW_POWER = CMSettings.System.DISPLAY_LOW_POWER;
+
+ /**
+ * Use color enhancement feature of display
+ * @hide
+ */
+ public static final String DISPLAY_COLOR_ENHANCE = CMSettings.System.DISPLAY_COLOR_ENHANCE;
+
+ /**
+ * Manual display color adjustments (RGB values as floats, separated by spaces)
+ * @hide
+ */
+ public static final String DISPLAY_COLOR_ADJUSTMENT =
+ CMSettings.System.DISPLAY_COLOR_ADJUSTMENT;
+
+ /**
+ * Did we tell about how they can stop breaking their eyes?
+ * @hide
+ */
+ public static final String LIVE_DISPLAY_HINTED = CMSettings.System.LIVE_DISPLAY_HINTED;
}
/**
@@ -664,6 +717,22 @@ public class CMSettingsProvider extends ContentProvider {
CMSettings.System.DIALER_OPENCNAM_AUTH_TOKEN);
systemToCmSettingsMap.put(LegacyCMSettings.WIFI_AUTO_CONNECT_TYPE,
CMSettings.System.WIFI_AUTO_CONNECT_TYPE);
+ systemToCmSettingsMap.put(LegacyCMSettings.DISPLAY_TEMPERATURE_DAY,
+ CMSettings.System.DISPLAY_TEMPERATURE_DAY);
+ systemToCmSettingsMap.put(LegacyCMSettings.DISPLAY_TEMPERATURE_NIGHT,
+ CMSettings.System.DISPLAY_TEMPERATURE_NIGHT);
+ systemToCmSettingsMap.put(LegacyCMSettings.DISPLAY_TEMPERATURE_MODE,
+ CMSettings.System.DISPLAY_TEMPERATURE_MODE);
+ systemToCmSettingsMap.put(LegacyCMSettings.DISPLAY_AUTO_OUTDOOR_MODE,
+ CMSettings.System.DISPLAY_AUTO_OUTDOOR_MODE);
+ systemToCmSettingsMap.put(LegacyCMSettings.DISPLAY_LOW_POWER,
+ CMSettings.System.DISPLAY_LOW_POWER);
+ systemToCmSettingsMap.put(LegacyCMSettings.DISPLAY_COLOR_ENHANCE,
+ CMSettings.System.DISPLAY_COLOR_ENHANCE);
+ systemToCmSettingsMap.put(LegacyCMSettings.DISPLAY_COLOR_ADJUSTMENT,
+ CMSettings.System.DISPLAY_COLOR_ADJUSTMENT);
+ systemToCmSettingsMap.put(LegacyCMSettings.LIVE_DISPLAY_HINTED,
+ CMSettings.System.LIVE_DISPLAY_HINTED);
int rowsMigrated = migrateCMSettingsForTable(userId,
CMDatabaseHelper.CMTableNames.TABLE_SYSTEM, systemToCmSettingsMap);