summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CameraSettings.java
Commit message (Collapse)AuthorAgeFilesLines
* Snap: Remove touch AF/AEC optionSteve Kondik2017-02-091-7/+0
| | | | | | | | * Drop the use of the touchaf-aec parameter entirely. No camera needs this anymore. Change-Id: I83154a75e5375901dc6c0fc93aef23637cfdf425 (cherry picked from commit 8ba41f452222c87a733fd2d045f9c513fd8d7799)
* Snap: Remove storage menu if no external storage availablemaxwen2017-01-041-2/+9
| | | | | Change-Id: I9807c7f9303f17eb971ff1a82fbd35dfbdbfa529 Signed-off-by: Zdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>
* CameraNext: don't crash when pref is not booleanKeith Mok2017-01-041-4/+8
| | | | | | | | | | | | | | | | | | | | | In some situation, a portion of pref (enableRecordingLocation) is created without first calling upgradeGlobalPreference first. Leaving the pref without the version field and makes the application thinks that the pref is in old version. When it tries to do an upgrade on the pref later, it tries to getBoolean for that location field, but that location field is already in string format, making getBoolean throws an exception. The best is to call upgradeGlobalPreference and upgradeLocalPreference when the application starts. However it should be no harm just add a simple guard in getBoolean to avoid that sitation. FEIJ-1258 Change-Id: Ic73078556b1a198a58968806091f8b0afd1ad6cc
* snap: Fixes for advanced features and scene modesSteve Kondik2017-01-041-1/+20
| | | | | | | | * Get rid of the annoying toast when longshot is disabled * Add support for ChromaFlash as a scene mode * Adjust overrides for various scene modes Change-Id: Ifda1990f4e9b3435655664f2a6c2b31fc3ae23fa
* CameraNext: dynamically generate available photo resolutionsWilhelm Fitzpatrick2017-01-041-19/+207
| | | | | | | | | | Instead of depending on a large matching table, generated the list of picture sizes to show to the user directly from the supported list returned by the camera. The list is filtered to remove uselessly small resolutions on modern devices, to group resolutions by aspect ratio, and to filter out fairly similar sizes. Change-Id: I47a67a89786543baec133cf7e71df9819793ebac
* Snap: Fix incorrect default ISO values parameterZhao Wei Liew2017-01-041-1/+1
| | | | | | | | | | | | This is a typo introduced by commit: c544747c2892b3984357a86b4116e1faa2be2210 We intend to default the ISO values parameter to "iso-values", but we are currently setting the ISO parameter instead. Fix the typo. Change-Id: Icea4771767c04b08e2b888bc8fb55a05fc69fa91
* Snap: Remove face detection option if not supportedArne Coucheron2017-01-041-0/+14
| | | | | | | Removes the face detection option from preference list if the "face-detection" camera parameter is blank/doesn't exist. Change-Id: I2ec82ae38505b6674f1a34e98d1b1fb2dbc2a714
* Snap: Remove video snapshot size when not supportedMichael Bestas2017-01-041-2/+6
| | | | Change-Id: I3f4dd8b76044389ee4d0d257e47b4ac90262ccc1
* Snap: Remove auto HDR option when not supportedMichael Bestas2017-01-041-3/+8
| | | | Change-Id: Iaff1bee5ad6d48df2efe189955ba91bca8ec5c32
* Snap: Add focus time support in camcorderMichael Bestas2017-01-041-0/+1
| | | | Change-Id: I5432554a40d7375ed7893c38cb2741a12cc8cc80
* SnapdragonCamera: Add focus-mode option to camcorderSultanxda2017-01-041-0/+6
| | | | | | | User can now control the focus mode used while recording video. Change-Id: I340c01a3f88314de67ca024279672276eff453ed Signed-off-by: Sultanxda <sultanxda@gmail.com>
* Snap: Actually select the highest quality video by defaultChristopher R. Palmer2017-01-041-1/+8
| | | | | | | | | | | Prior to this commit Snap assumes that the HAL returns the list of supported video sizes in descending order of quality and simply picks the first one from the list as the default quality. Instead, find the first matching entry of pref_video_quality_entryvalues that the HAL indicated was supported. Change-Id: Ifea79e0e16a9015557539e098317536a32b9ff1f
* Snap: special handling of hdr-mode parameter for lge devicescodeworkx2017-01-041-0/+3
| | | | Change-Id: Iefee1f15f5649c2f93c59fcbdedcf953e9e0bc54
* Snap: add support for shutter speedcodeworkx2017-01-041-0/+20
| | | | Change-Id: Id3393280c7c1c2f292d71587ba099e8dbafd1340
* add support for luminance-condition parametercodeworkx2017-01-041-0/+4
| | | | Change-Id: Idf845a5f55abf9b72f61ac4bac59ee2258043482
* add support for non-standard iso keys and valuescodeworkx2017-01-041-1/+65
| | | | Change-Id: I3a948495cdf84dae3c1734d50ff91b4a5d3d9fc0
* Snap: Fix filtering of unsupported camcorder color effectsMichael Bestas2017-01-041-0/+6
| | | | Change-Id: I365deeb17995175db873f6799cf0cde43ee61e96
* Snap: Add touch-to-focus timeout duration settingsjt11342017-01-041-0/+1
| | | | | | Signed-off-by: Michael Bestas <mikeioannina@gmail.com> Change-Id: Ib2c2c152a52b2616dd0da6f071f572d34fe64065
* Camera2: Add option to set max screen brightnessMichael Bestas2017-01-041-0/+1
| | | | | | * Set maximum screen brightness while the user is inside the camera app Change-Id: I8b16ba47a933bc7d6b0c1cd62bfd6ca54875ce1e
* Camera: Cleanup hardware key handlingMichael Bestas2017-01-041-0/+4
| | | | | | | | | | | | | | | | | * Fix power shutter behaviour in camcorder mode * Disable volume change while in panorama mode, volume buttons should only handle camera operations while in the camera * Add camera/power/volume key shutter handling in panorama mode On devices with a hardware camera key: * Disable power & volume shutter features * Volume buttons control the zoom On devices without a hardware camera key: * When power shutter is disabled, volume buttons control the shutter (like AOSP) * When power shutter is enabled, volume buttons control the zoom Change-Id: I141946d5b6f5aec8b1e9a9f99270d30295596079
* Camera: Powerkey shutter (2/2)Michael Bestas2017-01-041-0/+4
| | | | | | | | | | | | | | Ported from cm-10.1 Including cm-10.1 camera commit: aa4ae80a41fbab763891c5ef6d67a9e5b4bb981b Don't mess around with pref local ID for power shutter initialization. Includes http://review.cyanogenmod.org/56986 [mikeioannina]: Updates for L Signed-off-by: Michael Bestas <mikeioannina@gmail.com> Change-Id: I0992baa558eefd306d00fbece59cb5c512d9448b
* Camera: separate settings for color effectsjt11342017-01-041-0/+1
| | | | | | | Store color effect settings for the camera and video camera in their own separate preferences. Change-Id: I8faa59b8663154737910b338906d27f9736d5ad9
* Camera2: Remove CAF video duration codeMichael Bestas2017-01-041-20/+0
| | | | Change-Id: I583e212f3c43a5ddf80fdb16557b3ddd9e3161c2
* Camera2: Don't report incorrect supported picture formatsLars Greiss2017-01-041-1/+1
| | | | | | | | | | | If camera HAL does not return valid picture formats do not show wrong defaults Currently it falls back to jpeg and raw to choose for the user. All our devices which do not have a proper return of picture format only support jpg. So remove the entry to choose in this case completely Change-Id: Ib4e4094ba0a57e7751f6568f6ec3c3f1dfc1ffb8
* Camera: Fix saturation, contrast, sharpness parametersEthan Chen2017-01-041-3/+3
| | | | | | | * Old-style QCOM HALs use <setting>-max, new style HALs use max-<setting> for these parameters. Change-Id: I3b0dbd04f072cb69d09c44b5b3af1097560205b3
* Camera2: More thorough compatibility fixesRyuinferno2017-01-041-3/+6
| | | | | | | Certain chipsets (such as omap) have contrast, sharpness and saturation set, but no max integer given for those Change-Id: I58efaef4d0a511aefc803a440e0c3aa3dbdc9483
* camera: Proper fix for the missing video-sizes issueSteve Kondik2017-01-041-2/+5
| | | | | | * Just honor the defined camcorder profiles. Change-Id: I83e8fe2ca9bb489332f37767906bc7c56389f949
* camera: Check if video sizes are availableSteve Kondik2017-01-041-2/+3
| | | | | | | * Some drivers don't report video sizes and we should avoid using fine resolution lookup, otherwise a crash results. Change-Id: I8010e66d1a3a5e6f8a505ff3b50146cd24fc2b9c
* camera: Add all resolutions, focus modes, scene modes, and color effects.Steve Kondik2017-01-041-4/+2
| | | | Change-Id: I255d73b6e221655f9592047ccf848460d985c3b3
* camera: Cleanup and compatibility fixesSteve Kondik2017-01-041-0/+12
| | | | | | | * Don't crash for unavailable integer parameters * Kill logspam Change-Id: I6dbcf5560f96ce6173a847501721f589766889bc
* SnapdragonCamera: Camera switches from bayer and mono on switching to front ↵weijiew2016-11-221-0/+4
| | | | | | | | | | | camera Dual camera was not supported, camera was switched one by one. Solution: only select bayer when user switch front camera to rear camera Change-Id: I814552aed1ee8889f309cb5de8df84f9bee42093 CRs-Fixed: 1088821
* SnapdragonCamera: Shutter sound menuJack Yoo2016-08-161-0/+1
| | | | | | | Shutter sound menu to choose on/off Change-Id: Id5ea22a837cd658c3278160a21c74b519f1bc212 CRs-Fixed: 1050663
* SnapdragonCamera: Selfie Mirror modeJack Yoo2016-08-161-0/+1
| | | | | | | Selfie mirror menu for front camera1. Change-Id: I2e6845c9e25481106f51772b5d3dfd0a971a2be7 CRs-Fixed: 1050663
* Merge "SnapdragonCamera: Filter duplicate picture resolution" into ↵Camera Software Integration2016-06-201-1/+1
|\ | | | | | | camera.lnx.1.0-dev.1.0
| * SnapdragonCamera: Filter duplicate picture resolutionByunghun Jeon2016-06-091-1/+1
| | | | | | | | | | | | | | | | | | Filter picture resolution with duplicate name. There can be 2 different picture resolutions with the same name. Take only the first one. Change-Id: I9a472d958b829d3dce9559d4fcacb5d0dfd3e598 CRs-Fixed: 1025767
* | Merge "SnapdragonCamera: Fix initial camera id" into camera.lnx.1.0-dev.1.0Camera Software Integration2016-06-201-5/+0
|\|
| * SnapdragonCamera: Fix initial camera idByunghun Jeon2016-06-091-5/+0
| | | | | | | | | | | | | | | | Fix initial camera id to proper value. Previously it was always using 0 as initial id Change-Id: Ifc8d63ba2bccb4afcc25445d6713e28732e7deb4 CRs-Fixed: 1018118
* | Merge "SnapdragonCamera: Fixed M permission issue" into camera.lnx.1.0-dev.1.0Linux Build Service Account2016-06-101-0/+2
|\ \
| * | SnapdragonCamera: Fixed M permission issueJay Wang2016-06-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Resolved NPE while sending permission request - Made change to request non-critical permissions once only, but the critical permssions all th time. - Removed unused contant defines CRs-Fixed: 1019847 Change-Id: Ib997244cbcc041d86c094c7ee7a902bff56e92ad
* | | Merge "SnapdragonCamera: Using reflection to remove compilation error" into ↵Linux Build Service Account2016-06-101-1/+7
|\ \ \ | |_|/ |/| | | | | camera.lnx.1.0-dev.1.0
| * | SnapdragonCamera: Using reflection to remove compilation errorSanjeev Garg2016-06-061-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue: Currently the camera app is being used across multiple PLs, which are on different android versions (Android M, N). There are different variables being used for h256 across different android framework - M and N. Hence using one variable name is causing compilation error in other android version Fix: Using java reflection to access variables to avoid any compilation dependency on different android versions CRs-Fixed: 1015477 Change-Id: I68519223dbe9825e8b1a7f5d1a8e509713a743c6
| * | Revert "Revert "Revert "SnapdragonCamera: Update encoder from H265 to HEVC"""Camera Software Integration2016-06-031-1/+1
| |/ | | | | | | | | | | This reverts commit dba00aac4e44a91bc55b0aabca9f191d03994edf Change-Id: I9a34c8640f26f16b6b30e36af7a3ab7a5c4e1b03
| * Revert "Revert "SnapdragonCamera: Update encoder from H265 to HEVC""Camera Software Integration2016-05-311-1/+1
| | | | | | | | | | | | | | | | | | | | Resinstating Change-Id: Ib17de6f778166f3a7cb7b8e403a9b3c7fb0b3f0c CRs-fixed: 1015477 This reverts commit e8d4ba774d224e5076576ba4c29d1fc248456b40 Change-Id: I9dd2dc05068e73edd9bad617480cff5c77015b58
* | Merge "SnapdragonCamera: Update settingsManager and add Dual mode to Scene ↵Camera Software Integration2016-06-071-8/+2
|\ \ | | | | | | | | | mode" into camera.lnx.1.0-dev.1.0
| * | SnapdragonCamera: Update settingsManager and add Dual mode to Scene modeByunghun Jeon2016-05-311-8/+2
| | | | | | | | | | | | | | | | | | | | | Update settingsManager and add Dual mode to Scene mode Change-Id: I508430840c3fb8c7d0b56a2a63e09b271754fcb4 CRs-Fixed: 1018118
* | | Merge "SnapdragonCamera: Add SettingsManager, scene, and filter" into ↵Camera Software Integration2016-06-071-7/+13
|\| | | | | | | | | | | camera.lnx.1.0-dev.1.0
| * | SnapdragonCamera: Add SettingsManager, scene, and filterByunghun Jeon2016-05-311-7/+13
| |/ | | | | | | | | | | | | | | | | | | | | Add SettingsManager to work as a database for settings. It will handle all dependencies and populate the values. Add scene mode and filter. Restructure UI and menu by combining them and leave the handling of settings to SettingsManager Change-Id: I185163fdddbffd29434e6a9c41b33be6d3388f88 CRs-Fixed: 1018118
| * Revert "SnapdragonCamera: Update encoder from H265 to HEVC"Camera Software Integration2016-05-311-1/+1
| | | | | | | | | | | | This reverts commit 08f68a1e4d05ae996f6bf42c83d692a182a8f34b Change-Id: I659dd68861b30b6d79545ba3574320b63e4c4196
| * SnapdragonCamera: Update encoder from H265 to HEVCSusmitha Gummalla2016-05-131-1/+1
| | | | | | | | | | | | | | | | Update Camera setting to use HEVC instead of H265 as per latest AOSP changes CRs-fixed: 1015477 Change-Id: Ib17de6f778166f3a7cb7b8e403a9b3c7fb0b3f0c
* | SnapdragonCamera: disable instant capture in some cases.Jay Wang2016-05-261-6/+4
|/ | | | | | | | | | | 1. Disable instant capture when ZSL is off or advanced features are enabled 2. Change the instant capture option to support the selection of aggressive AEC and fast AEC CRs-Fixed: 998509 Change-Id: I60f7ed3a0fc93627dbf7527fbec2a60605aad683