From 2c83037f8c1b4296c9ad503a17dc89e5b617ea80 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Sat, 7 Dec 2013 07:12:04 -0800 Subject: camera: Add all resolutions, focus modes, scene modes, and color effects. Change-Id: I255d73b6e221655f9592047ccf848460d985c3b3 --- res/values/arrays.xml | 194 ++++++++++++++++++++++++----- res/values/cm_strings.xml | 142 +++++++++++++++++++++ res/values/qcomarrays.xml | 14 +++ res/values/qcomstrings.xml | 33 ----- res/values/strings.xml | 17 +-- src/com/android/camera/CameraSettings.java | 6 +- 6 files changed, 320 insertions(+), 86 deletions(-) create mode 100644 res/values/cm_strings.xml diff --git a/res/values/arrays.xml b/res/values/arrays.xml index a4cc51928..b2f277eb3 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -175,86 +175,133 @@ - @string/pref_camera_picturesize_entry_20mp + @string/pref_camera_picturesize_entry_20_7mp + @string/pref_camera_picturesize_entry_18mp @string/pref_camera_picturesize_entry_16mp + @string/pref_camera_picturesize_entry_15_9mp_wide @string/pref_camera_picturesize_entry_13mp + @string/pref_camera_picturesize_entry_13mp + @string/pref_camera_picturesize_entry_12_8mp + @string/pref_camera_picturesize_entry_12_7mp @string/pref_camera_picturesize_entry_12mp + @string/pref_camera_picturesize_entry_11_9mp + @string/pref_camera_picturesize_entry_11_5mp + @string/pref_camera_picturesize_entry_10_4mp + @string/pref_camera_picturesize_entry_10mp + @string/pref_camera_picturesize_entry_9_7mp_wide + @string/pref_camera_picturesize_entry_9mp + @string/pref_camera_picturesize_entry_8_2mp_wide @string/pref_camera_picturesize_entry_8mp - @string/pref_camera_picturesize_entry_8mp - @string/pref_camera_picturesize_entry_square + @string/pref_camera_picturesize_entry_7_7mp + @string/pref_camera_picturesize_entry_6_4mp + @string/pref_camera_picturesize_entry_6mp_wide + @string/pref_camera_picturesize_entry_6mp_wide @string/pref_camera_picturesize_entry_5mp @string/pref_camera_picturesize_entry_5mp @string/pref_camera_picturesize_entry_5mp + @string/pref_camera_picturesize_entry_4_5mp @string/pref_camera_picturesize_entry_4mp_wide + @string/pref_camera_picturesize_entry_4mp + @string/pref_camera_picturesize_entry_3_7mp_wide @string/pref_camera_picturesize_entry_3mp @string/pref_camera_picturesize_entry_3mp - @string/pref_camera_picturesize_entry_1920x1080 + @string/pref_camera_picturesize_entry_2_5mp + @string/pref_camera_picturesize_entry_2_1mp_wide @string/pref_camera_picturesize_entry_2mp @string/pref_camera_picturesize_entry_2mp_wide + @string/pref_camera_picturesize_entry_1_9mp @string/pref_camera_picturesize_entry_1_5mp @string/pref_camera_picturesize_entry_1_3mp - @string/pref_camera_picturesize_entry_1280x768 - @string/pref_camera_picturesize_entry_1280x720 @string/pref_camera_picturesize_entry_1mp - @string/pref_camera_picturesize_entry_800x600 - @string/pref_camera_picturesize_entry_800x480 - 960 x 720 - 720 x 480 + @string/pref_camera_picturesize_entry_wxga + @string/pref_camera_picturesize_entry_xga + @string/pref_camera_picturesize_entry_svga + @string/pref_camera_picturesize_entry_wvga @string/pref_camera_picturesize_entry_vga - @string/pref_camera_picturesize_entry_352x288 + @string/pref_camera_picturesize_entry_nhd_wide + @string/pref_camera_picturesize_entry_wqvga @string/pref_camera_picturesize_entry_qvga - @string/pref_camera_picturesize_entry_176x144 + 5248x3936 + 4992x3744 4608x3456 + 5312x2988 + 4208x3120 4160x3120 + 4128x3096 + 4128x3088 4000x3000 + 3984x2988 + 3920x2940 + 4128x2528 + 4320x2432 + 4160x2340 + 3920x2204 3840x2160 3264x2448 - 2976x2976 + 3200x2400 + 3264x1968 + 3264x1840 + 3264x1836 2592x1944 2592x1936 2560x1920 - 2688x1512 + 2592x1728 + 2688x1520 + 2560x1536 + 2560x1440 2048x1536 2048x1520 + 2048x1232 1920x1080 1600x1200 1920x1088 - 1440x1080 + 1392x1392 + 1600x960 1280x960 - 1280x768 1280x720 1024x768 + 1024x600 800x600 800x480 - 960x720 - 720x480 640x480 - 352x288 + 640x360 + 480x320 320x240 - 176x144 @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 @@ -399,16 +446,55 @@ @string/pref_camera_scenemode_entry_auto @string/pref_camera_scenemode_entry_hdr @string/pref_camera_scenemode_entry_refocus - @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 @@ -447,16 +533,55 @@ auto hdr @string/pref_camera_advanced_feature_value_refocus_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 @@ -571,6 +696,7 @@ + continuous-picture auto diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml new file mode 100644 index 000000000..930db48c4 --- /dev/null +++ b/res/values/cm_strings.xml @@ -0,0 +1,142 @@ + + + + + + 20.7M pixels + + 18M pixels + + 16M pixels + + 15.9M pixels (16:9) + + 12.8M pixels + + 12.7M pixels + + 12M pixels + + 11.9M pixels + + 11.5M pixels + + 10.4M pixels + + 10M pixels + + 9.7M pixels (16:9) + + 9M pixels + + 8.2M pixels (16:9) + + 7.7M pixels + + 6.4M pixels + + 6M pixels (16:9) + + 4.5M pixels + + 4M pixels + + 3.7M pixels (16:9) + + 2.5M pixels + + 2.1M pixels (16:9) + + 1.9M pixels + + WXGA + + XGA + + SVGA + + nHD (16:9) + + WVGA + + WQVGA + + + Macro+ + 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 sensivity + 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 ca6ddc2e8..3af2153e1 100644 --- a/res/values/qcomarrays.xml +++ b/res/values/qcomarrays.xml @@ -233,6 +233,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 @@ -269,6 +276,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 a2b6b7231..b3af06b89 100644 --- a/res/values/qcomstrings.xml +++ b/res/values/qcomstrings.xml @@ -743,39 +743,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 e2d627df5..8ba8295df 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -247,10 +247,6 @@ Videos will be recorded in 4k UHD quality. [CHAR LIMIT=24] --> 4k UHD - - - 4k UHD HD 1080p @@ -271,18 +267,11 @@ Picture size - - 20M pixels - - 16M pixels + 13M pixels - - 12M pixels 8M pixels - - Square (1:1) 5M pixels @@ -374,7 +363,7 @@ Scene mode - Automatic + Auto HDR+ @@ -395,8 +384,6 @@ Sunset Party - - Macro+ NONE diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java index 70263da20..db3bf274c 100644 --- a/src/com/android/camera/CameraSettings.java +++ b/src/com/android/camera/CameraSettings.java @@ -819,10 +819,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