From 8eeff7b4042f41cc8bc894e54e141c36e38a7835 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Sat, 7 Dec 2013 07:12:04 -0800 Subject: camera: Add all focus modes, scene modes, and color effects. Change-Id: I255d73b6e221655f9592047ccf848460d985c3b3 --- res/values/arrays.xml | 170 +++++++++++++++++++++++++---- res/values/cm_strings.xml | 82 ++++++++++++++ res/values/qcomarrays.xml | 21 ++++ res/values/qcomstrings.xml | 33 ------ res/values/strings.xml | 18 +-- src/com/android/camera/CameraSettings.java | 6 +- 6 files changed, 260 insertions(+), 70 deletions(-) create mode 100644 res/values/cm_strings.xml diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 1bae1a800..0e83c5278 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -310,18 +310,30 @@ @string/pref_camera_focusmode_entry_auto + @string/pref_camera_focusmode_entry_continuous + @string/pref_camera_focusmode_entry_extended + @string/pref_camera_focusmode_entry_facedetect + @string/pref_camera_focusmode_entry_facepriority + @string/pref_camera_focusmode_entry_fixed @string/pref_camera_focusmode_entry_infinity @string/pref_camera_focusmode_entry_macro @string/pref_camera_focusmode_entry_normal - @string/pref_camera_focusmode_entry_continuous + @string/pref_camera_focusmode_entry_portrait + @string/pref_camera_focusmode_entry_hyperfocal auto + continuous-picture + extended + facedetect + face-priority + fixed infinity macro normal - continuous-picture + portrait + hyperfocal @@ -477,16 +489,55 @@ @string/pref_camera_scenemode_entry_hdr @string/pref_camera_scenemode_entry_refocus @string/pref_camera_scenemode_entry_optizoom - @string/pref_camera_scenemode_entry_portrait - @string/pref_camera_scenemode_entry_landscape - @string/pref_camera_scenemode_entry_sports - @string/pref_camera_scenemode_entry_flowers + @string/pref_camera_scenemode_entry_action + @string/pref_camera_scenemode_entry_antimotionblur + @string/pref_camera_scenemode_entry_aqua + @string/pref_camera_scenemode_entry_ar + @string/pref_camera_scenemode_entry_baby + @string/pref_camera_scenemode_entry_backgroundblur @string/pref_camera_scenemode_entry_backlight + @string/pref_camera_scenemode_entry_backlight + @string/pref_camera_scenemode_entry_backlightportrait + @string/pref_camera_scenemode_entry_backlightportrait + @string/pref_camera_scenemode_entry_barcode + @string/pref_camera_scenemode_entry_beach + @string/pref_camera_scenemode_entry_beauty @string/pref_camera_scenemode_entry_candlelight - @string/pref_camera_scenemode_entry_sunset + @string/pref_camera_scenemode_entry_cine + @string/pref_camera_scenemode_entry_closeup + @string/pref_camera_scenemode_entry_dark + @string/pref_camera_scenemode_entry_dish + @string/pref_camera_scenemode_entry_duskdawn + @string/pref_camera_scenemode_entry_document + @string/pref_camera_scenemode_entry_fallcolor + @string/pref_camera_scenemode_entry_fireworks + @string/pref_camera_scenemode_entry_flowers + @string/pref_camera_scenemode_entry_handheldtwilight + @string/pref_camera_scenemode_entry_highsensitivity + @string/pref_camera_scenemode_entry_indoor + @string/pref_camera_scenemode_entry_landscape + @string/pref_camera_focusmode_entry_macro + @string/pref_camera_scenemode_entry_mix_illuminant + @string/pref_camera_scenemode_entry_mood @string/pref_camera_scenemode_entry_night - @string/pref_camera_scenemode_entry_beach + @string/pref_camera_scenemode_entry_nightportrait + @string/pref_camera_scenemode_entry_nightportrait + @string/pref_camera_scenemode_entry_nightindoor + @string/pref_camera_scenemode_entry_oldfilm + @string/pref_camera_scenemode_entry_party + @string/pref_camera_scenemode_entry_pet + @string/pref_camera_scenemode_entry_portrait @string/pref_camera_scenemode_entry_snow + @string/pref_camera_scenemode_entry_softskin + @string/pref_camera_scenemode_entry_sports + @string/pref_camera_scenemode_entry_spotlight + @string/pref_camera_scenemode_entry_steadyphoto + @string/pref_camera_scenemode_entry_sunset + @string/pref_camera_scenemode_entry_supernight + @string/pref_camera_scenemode_entry_sweepstitch + @string/pref_camera_scenemode_entry_text + @string/pref_camera_scenemode_entry_theatre + @string/pref_camera_scenemode_entry_whiteboard @string/pref_camera_scenemode_entry_asd @@ -495,16 +546,55 @@ @drawable/ic_scene_mode_hdr @drawable/ic_scene_mode_refocus @drawable/ic_scene_mode_optizoom - @drawable/ic_scene_mode_portrait - @drawable/ic_scene_mode_landscape - @drawable/ic_scene_mode_sports - @drawable/ic_scene_mode_flower + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce @drawable/ic_scene_mode_backlight + @drawable/ic_scene_mode_backlight + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_scene_mode_beach + @drawable/ic_sce @drawable/ic_scene_mode_candlelight - @drawable/ic_scene_mode_sunset + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_scene_mode_flower + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_scene_mode_landscape + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce @drawable/ic_scene_mode_night - @drawable/ic_scene_mode_beach + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_scene_mode_portrait @drawable/ic_scene_mode_snow + @drawable/ic_sce + @drawable/ic_scene_mode_sports + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_scene_mode_sunset + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce + @drawable/ic_sce @drawable/ic_scene_mode_smartauto @@ -529,16 +619,55 @@ hdr @string/pref_camera_advanced_feature_value_refocus_on @string/pref_camera_advanced_feature_value_optizoom_on - portrait - landscape - sports - flowers + action + anti-motion-blur + aqua + AR + baby + background-blur + back-light backlight + backlight_portrait + backlight-portrait + barcode + beach + beauty-mode candlelight - sunset + cine + closeup + dark + dish + dusk-dawn + document + fall-color + fireworks + flowers + handheld-twilight + high-sensitivity + indoor + landscape + macro + mix-illuminant + mood night - beach + night-portrait + nightportrait + night-indoor + old-film + party + pet + portrait snow + soft-skin + sports + spot-light + steadyphoto + sunset + super-night + sweep-stitch + text + theatre + white-board asd @@ -655,6 +784,7 @@ continuous-picture + auto diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml new file mode 100644 index 000000000..db63addad --- /dev/null +++ b/res/values/cm_strings.xml @@ -0,0 +1,82 @@ + + + + + + Motion blur reduction + Aqua + Augmented reality + Best shot + Baby + Background blur + Backlight + Backlight portrait + Barcode + Beach + Beauty + Candlelight + Cine + Closeup + Dark + Dish + Duskdawn + Document + Fallcolor + Fireworks + Flowers + Handheld twilight + High sensitivity + Indoor + Landscape + Mixed lighting + Mood + Night portrait + Night indoor + Old film + Pet + Portrait + Snow + Soft skin + Sports + Spotlight + Steady photo + Dark night + Sweep stitch + Text + Theatre + Whiteboard + + + Continuous + Extended + Face detect + Face priority + Fixed + Normal + Portrait + Hyperfocal + + + Washed + Vintage warm + Vintage cold + Point blue + Point green + Point red-yellow + Cartoonize + + diff --git a/res/values/qcomarrays.xml b/res/values/qcomarrays.xml index abe18706d..53b2ba7d1 100755 --- a/res/values/qcomarrays.xml +++ b/res/values/qcomarrays.xml @@ -215,6 +215,13 @@ @string/pref_camera_coloreffect_entry_redtint @string/pref_camera_coloreffect_entry_bluetint @string/pref_camera_coloreffect_entry_greentint + @string/pref_camera_coloreffect_entry_washed + @string/pref_camera_coloreffect_entry_vintage_warm + @string/pref_camera_coloreffect_entry_vintage_cold + @string/pref_camera_coloreffect_entry_point_green + @string/pref_camera_coloreffect_entry_point_blue + @string/pref_camera_coloreffect_entry_point_red_yellow + @string/pref_camera_coloreffect_entry_cartoonize @@ -233,6 +240,13 @@ 0 0 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 @@ -251,6 +265,13 @@ red-tint blue-tint green-tint + washed + vintage-warm + vintage-cold + point-green + point-blue + point-red-yellow + cartoonize diff --git a/res/values/qcomstrings.xml b/res/values/qcomstrings.xml index 7ceb400dd..a367a1022 100755 --- a/res/values/qcomstrings.xml +++ b/res/values/qcomstrings.xml @@ -802,39 +802,6 @@ CIF QCIF - Normal - CAF - - ASD - - Portrait - - Landscape - - - Night Portrait - - Theatre - - Beach - - Snow - - - Steady Photo - - Fireworks - - Sports - - Candlelight - - Backlight - - Flowers - - AR - off diff --git a/res/values/strings.xml b/res/values/strings.xml index 604697412..3ef70c630 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -245,18 +245,10 @@ Video quality 1920x1080 - - - 4k DCI - - - 4k UHD - - - 4k UHD + + 4k DCI + + 4k UHD HD 1080p @@ -391,7 +383,7 @@ Scene mode - Automatic + Auto HDR+ diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java index 04db45fc3..00288ee16 100755 --- a/src/com/android/camera/CameraSettings.java +++ b/src/com/android/camera/CameraSettings.java @@ -1088,10 +1088,8 @@ public class CameraSettings { disMode, getSupportedDISModes(mParameters)); } if (focusMode != null) { - if (!CameraUtil.isFocusAreaSupported(mParameters)) { - filterUnsupportedOptions(group, - focusMode, mParameters.getSupportedFocusModes()); - } + filterUnsupportedOptions(group, + focusMode, mParameters.getSupportedFocusModes()); } if (videoFlashMode != null) { filterUnsupportedOptions(group, -- cgit v1.2.3