summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAbhishek Pant <apant@codeaurora.org>2013-12-04 15:51:48 +0530
committerAbhishek Pant <apant@codeaurora.org>2014-06-06 18:57:35 +0530
commitcb4748b2c5e264fc5185005d366cbdf5db140674 (patch)
treee66e3261880f96876eac62390562806fec0c2ddd /res
parentae531060071669eb4fcb10f04420f941bc04115c (diff)
downloadandroid_packages_apps_Snap-cb4748b2c5e264fc5185005d366cbdf5db140674.tar.gz
android_packages_apps_Snap-cb4748b2c5e264fc5185005d366cbdf5db140674.tar.bz2
android_packages_apps_Snap-cb4748b2c5e264fc5185005d366cbdf5db140674.zip
Camera2: Adding support for Auto HDR
Adding support for Auto HDR for camera application. CRs-fixed: 629556 Change-Id: I02cdc2accb3e9fd4a9039b7f632ba3eb04fcc798
Diffstat (limited to 'res')
-rw-r--r--res/layout/photo_module.xml6
-rw-r--r--res/values/qcomarrays.xml11
-rw-r--r--res/values/qcomstrings.xml10
-rw-r--r--res/xml/camera_preferences.xml6
4 files changed, 33 insertions, 0 deletions
diff --git a/res/layout/photo_module.xml b/res/layout/photo_module.xml
index c59d74300..89bc1ff39 100644
--- a/res/layout/photo_module.xml
+++ b/res/layout/photo_module.xml
@@ -56,6 +56,12 @@
android:layout_height="200dip"
android:layout_marginTop="60dip"
android:layout_marginLeft="90dip" />
+ <com.android.camera.DrawAutoHDR
+ android:id="@+id/autohdr_view"
+ android:layout_width="200dip"
+ android:layout_height="200dip"
+ android:layout_marginTop="15dip"
+ android:layout_marginLeft="15dip" />
<TableLayout
android:id="@+id/relative_seek"
android:layout_width="match_parent"
diff --git a/res/values/qcomarrays.xml b/res/values/qcomarrays.xml
index c19bd673c..bd808fed3 100644
--- a/res/values/qcomarrays.xml
+++ b/res/values/qcomarrays.xml
@@ -590,5 +590,16 @@
<item>@string/setting_on_value</item>
</string-array>
+ <!-- AUTO HDR dialog box entries -->
+ <string-array name="pref_camera_auto_hdr_entries" translatable="false">
+ <item>@string/pref_camera_auto_hdr_entry_enable</item>
+ <item>@string/pref_camera_auto_hdr_entry_disable</item>
+ </string-array>
+
+ <string-array name="pref_camera_auto_hdr_entryvalues" translatable="false">
+ <item>@string/pref_camera_auto_hdr_value_enable</item>
+ <item>@string/pref_camera_auto_hdr_value_disable</item>
+ </string-array>
+
</resources>
diff --git a/res/values/qcomstrings.xml b/res/values/qcomstrings.xml
index ab5381451..b54fb1f91 100644
--- a/res/values/qcomstrings.xml
+++ b/res/values/qcomstrings.xml
@@ -666,5 +666,15 @@
<!-- Toast showing non-supported functionality for flash in AE bracket -->
<string name="flash_aebracket_message">Flash is not supported in AE-Bracket Mode</string>
+ <!-- Settings screen, setting title text for Auto HDR-->
+ <string name="pref_camera_auto_hdr_title">AUTO HDR</string>
+ <string name="pref_camera_auto_hdr_default" translatable="false">
+ disable</string>
+
+ <!-- Settings screen, Auto HDR location dialog choices -->
+ <string name="pref_camera_auto_hdr_entry_enable">Enable</string>
+ <string name="pref_camera_auto_hdr_entry_disable">Disable</string>
+ <string name="pref_camera_auto_hdr_value_enable">enable</string>
+ <string name="pref_camera_auto_hdr_value_disable">disable</string>
</resources>
diff --git a/res/xml/camera_preferences.xml b/res/xml/camera_preferences.xml
index db56927a7..f1d16fda5 100644
--- a/res/xml/camera_preferences.xml
+++ b/res/xml/camera_preferences.xml
@@ -250,4 +250,10 @@
camera:entries="@array/pref_camera_longshot_entries"
camera:entryValues="@array/pref_camera_longshot_entryvalues" />
+ <ListPreference
+ camera:key="pref_camera_auto_hdr_key"
+ camera:defaultValue="@string/pref_camera_auto_hdr_default"
+ camera:title="@string/pref_camera_auto_hdr_title"
+ camera:entries="@array/pref_camera_auto_hdr_entries"
+ camera:entryValues="@array/pref_camera_auto_hdr_entryvalues" />
</PreferenceGroup>