summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-07-21 23:43:51 -0700
committerSteve Kondik <steve@cyngn.com>2016-08-05 17:49:54 -0700
commitc094d113153bfba705df2eb58013a2c3314890fe (patch)
treed622e455299ba368ca4293bbe2aaf4143e10c3e2 /res
parent3827d9784da7d74139971100c23dc6156b18b89f (diff)
downloadpackages_apps_Settings-c094d113153bfba705df2eb58013a2c3314890fe.zip
packages_apps_Settings-c094d113153bfba705df2eb58013a2c3314890fe.tar.gz
packages_apps_Settings-c094d113153bfba705df2eb58013a2c3314890fe.tar.bz2
livedisplay: Add picture adjustment settings
* Allow user setting of hue, saturation, intensity, and contrast * These controls are associated by the current display mode Change-Id: I5de24a0b5c2972f115920167fa97afa3a136b80d
Diffstat (limited to 'res')
-rw-r--r--res/layout/display_picture_adjustment.xml125
-rw-r--r--res/values/cm_strings.xml8
-rw-r--r--res/xml/livedisplay.xml21
3 files changed, 142 insertions, 12 deletions
diff --git a/res/layout/display_picture_adjustment.xml b/res/layout/display_picture_adjustment.xml
new file mode 100644
index 0000000..e1d9da9
--- /dev/null
+++ b/res/layout/display_picture_adjustment.xml
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2013-2015 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_horizontal"
+ android:paddingStart="20dip"
+ android:paddingEnd="20dip"
+ android:paddingBottom="20dip">
+
+ <TextView android:id="@+id/adj_hue_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/adj_hue_title"
+ android:paddingTop="10dip" />
+ <TextView android:id="@+id/adj_hue_value"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:paddingTop="10dip" />
+ <com.android.settings.IntervalSeekBar android:id="@+id/adj_hue_seekbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/adj_hue_text"
+ android:paddingTop="2dip"
+ settings:min="0.20"
+ settings:max="1.00"
+ settings:defaultValue="1.00"
+ settings:digits="4" />
+
+ <TextView android:id="@+id/adj_saturation_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/adj_hue_seekbar"
+ android:text="@string/adj_saturation_title"
+ android:paddingTop="10dip" />
+ <TextView android:id="@+id/adj_saturation_value"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/adj_hue_seekbar"
+ android:layout_alignParentRight="true"
+ android:paddingTop="10dip" />
+ <com.android.settings.IntervalSeekBar android:id="@+id/adj_saturation_seekbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/adj_saturation_text"
+ android:paddingTop="2dip"
+ settings:min="0.20"
+ settings:max="1.00"
+ settings:defaultValue="1.00"
+ settings:digits="4" />
+
+ <TextView android:id="@+id/adj_intensity_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/adj_saturation_seekbar"
+ android:text="@string/adj_intensity_title"
+ android:paddingTop="10dip" />
+ <TextView android:id="@+id/adj_intensity_value"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/adj_saturation_seekbar"
+ android:layout_alignParentRight="true"
+ android:paddingTop="10dip" />
+ <com.android.settings.IntervalSeekBar android:id="@+id/adj_intensity_seekbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/adj_intensity_text"
+ android:paddingTop="2dip"
+ settings:min="0.20"
+ settings:max="1.00"
+ settings:defaultValue="1.00"
+ settings:digits="4" />
+
+ <TextView android:id="@+id/adj_contrast_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/adj_intensity_seekbar"
+ android:text="@string/adj_contrast_title"
+ android:paddingTop="10dip" />
+ <TextView android:id="@+id/adj_contrast_value"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/adj_intensity_seekbar"
+ android:layout_alignParentRight="true"
+ android:paddingTop="10dip" />
+ <com.android.settings.IntervalSeekBar android:id="@+id/adj_contrast_seekbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/adj_contrast_text"
+ android:paddingTop="2dip"
+ settings:min="0.20"
+ settings:max="1.00"
+ settings:defaultValue="1.00"
+ settings:digits="4" />
+
+
+ <ImageView android:id="@+id/black_scale_picture_adjustment"
+ android:src="@drawable/color_tuning_preview"
+ android:layout_width="match_parent"
+ android:layout_height="40dip"
+ android:layout_below="@id/adj_contrast_seekbar"
+ android:paddingTop="20dip" />
+
+ </RelativeLayout>
+</ScrollView>
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
index 3f5113d..3e8c02a 100644
--- a/res/values/cm_strings.xml
+++ b/res/values/cm_strings.xml
@@ -708,6 +708,14 @@
<string name="live_display_color_profile_adaptive_title">Adaptive</string>
<string name="live_display_color_profile_adaptive_summary">Colors adapt to ambient conditions</string>
+ <!-- LiveDisplay : Picture Adjustment -->
+ <string name="picture_adjustment_title">Picture adjustment</string>
+ <string name="picture_adjustment_summary">Adjust hue, saturation, intensity, and contrast</string>
+ <string name="adj_hue_title">Hue</string>
+ <string name="adj_saturation_title">Saturation</string>
+ <string name="adj_intensity_title">Intensity</string>
+ <string name="adj_contrast_title">Contrast</string>
+
<!-- Whether to display IME switcher notifcation -->
<string name="ime_switcher_notify">Selector icon</string>
<string name="ime_switcher_notify_summary">Display input method selector icon</string>
diff --git a/res/xml/livedisplay.xml b/res/xml/livedisplay.xml
index fa93a19..3f0af3a 100644
--- a/res/xml/livedisplay.xml
+++ b/res/xml/livedisplay.xml
@@ -52,18 +52,7 @@
android:key="advanced"
android:title="@string/advanced">
- <!-- screen color -->
- <PreferenceScreen
- android:persistent="false"
- android:key="screencolor_settings"
- android:title="@string/screencolor"
- android:summary="@string/screencolor_summary">
- <intent
- android:action="com.qualcomm.display.PPService"
- android:targetPackage="com.android.settings"
- android:targetClass="com.android.settings.ScreenColorSettings" />
- </PreferenceScreen>
-
+ <!-- RGB display color adjustments -->
<com.android.settings.livedisplay.DisplayColor
android:key="color_calibration"
android:title="@string/color_calibration_title"
@@ -71,6 +60,14 @@
android:summary="@string/color_calibration_summary"
android:persistent="false"/>
+ <!-- HSIC display color adjustments -->
+ <com.android.settings.livedisplay.PictureAdjustment
+ android:key="picture_adjustment"
+ android:title="@string/picture_adjustment_title"
+ android:dialogTitle="@string/picture_adjustment_title"
+ android:summary="@string/picture_adjustment_summary"
+ android:persistent="false"/>
+
<!-- Adaptive backlight -->
<com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference
android:key="display_low_power"