summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/PhotoModule.java
Commit message (Collapse)AuthorAgeFilesLines
* SnapdragonCamera: Fix timing of preference initializationByunghun Jeon2016-08-251-5/+7
| | | | | | | Initialize preference before making the views visible. Change-Id: Ie3d541c7fcb29ed86e0e9fd52a1a1e4ea870f009 CRs-Fixed: 982842
* SnapdragonCamera: Add SettingsManager, scene, and filterByunghun Jeon2016-08-251-6/+3
| | | | | | | | | | | 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
* SnapdragonCamera: Camera2 add zoom supportByunghun Jeon2016-08-251-0/+5
| | | | | | | Add zoom support to Camera2 CRs-Fixed: 989750 Change-Id: Id6b558ff5215f04ca7c201b1d1807521d615c353
* SnapdragonCamera: Remove custom location permission request windowJay Wang2016-08-181-3/+21
| | | | | | | | When user enables the GPS locaion setting, use Android's run-time permission request interface to get the permission. Change-Id: Ib17171aeff5ccf20e2b00da08243dee1a3383611 CRs-Fixed: 1038039
* SnapdragonCamera: Force removing preview coverJay Wang2016-08-181-0/+5
| | | | | | | | A workaround to remove preview cover after picture is taken, if preview cover is not removed right after preview started. Change-Id: I723d70fde6ecaf7302714daa6648c85d8a40d1b4 CRs-Fixed: 1016691
* SnapdragonCamera: Adjusting view initializationJack Yoo2016-08-141-0/+6
| | | | | | | | Instead of removing and adding the entire root view, changing only core surface view on module change. Change-Id: I5c39cf23b2a58280f4e4e8484865bbed0b12e1cf CRs-Fixed: 979254
* SnapdragonCamera: Turn off LONGSHOT on ubifocus scene modeJack Yoo2016-08-141-1/+3
| | | | | | | Turning off LONGSHOT mode to off when ubifocus scene mode is enabled. Change-Id: I5a1ce6a2c9fa08715da40a41f4aae694bd7f8654 CRs-Fixed: 984742
* Revert "SnapdragonCamera: Fix AEC lock issue after non-zsl snapshot."Michael Bestas2016-08-041-4/+0
| | | | | | | | * Duplicate commit This reverts commit 5933a0b131eb0d53f3ae0fb06d3a76a8f7a6c6a2. Change-Id: Ib60d5c9dd463c007a3cffdc9be7897539713cd3d
* snap: Add constrained longshot modeSteve Kondik2016-08-031-1/+20
| | | | | | | | | * On the OP3, we can only use Longshot in a single scene mode without conflicting with other built-in postprocessing features which cannot be disabled. Add support for this. When a scene specified in the longshot-scenemodes list is active, continuous shot will be enabled. Change-Id: I79878e5ac918e907ddc5b3ca168e49f4e06656c3
* snap: Additional fixes for auto-HDR modeSteve Kondik2016-08-031-9/+30
| | | | Change-Id: I0d9b982dc9d817b40d59fc5fa58d542a213a3d1f
* snap: Fixes for advanced features and scene modesSteve Kondik2016-08-031-36/+29
| | | | | | | | * 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
* snap: Always turn touch-af-aec onSteve Kondik2016-08-031-0/+6
| | | | | | | | * Most cameras do this by default, but on at least one device it starts with the option disabled. This stops AEC from updating during touch focus. Change-Id: I4bdb6cdbad86f3798c0288d6a32b7e8062e297f3
* SnapdragonCamera: Fix the advanced features relative toast issuelikaid2016-08-031-2/+30
| | | | | | | | | | | | The toast "Enable Advanced Capture will disable Continuous Shot" was shown every time when update the camera parameters, that made user confused. Move the toast to onSharedPreferenceChanged, show it only when turn on the advanced features. Change-Id: I34df735bb3928597093ba91a0ad10542014eeaae CRs-Fixed: 869438
* SnapdragonCamera: implement optizoom and chromaflash UILikai Ding2016-08-031-1/+16
| | | | | | add scene mode for optizoom and preference entry for chromaflash Change-Id: I859a42e3273d340a7dda7e24c6cb2e08ddb0f7bf
* SnapdragonCamera: Fix incorrect focus modeJay Wang2016-08-031-1/+5
| | | | | | | | | | The camera device parameter was not re-set when the camera is switched back from camcorder mode. This causes the camera mode uses previous camera focus mode which was selected before switching to camcorder mode. CRs-Fixed: 1006900 Change-Id: I20bce0413d7f422da86acd44c39b27582593614d
* SnapdragonCamera: hide the preview surface during suspendJay Wang2016-08-031-0/+2
| | | | | | | | | | | | Occasionally, the previous preview frame is presented and caused the screen flashing, when continuously triggering suspend/resume. To resolve the issue, hide the preview surface during suspend and make it visible during resume. This helps to clear the remaining preview frames in the buffer. CRs-Fixed: 991416 Change-Id: I96fff0fdae6bd14263f33b1a9032604596cf49c1
* SnapdragonCamera: Reset menu when device is rotatedByunghun Jeon2016-08-031-0/+1
| | | | | | | Reset the settings menu when the device is rotated Change-Id: I6c4fed7207a4d26a9d7c29d18f6a7af17ef3d4f9 CRs-Fixed: 981504
* SnapdragonCamera: Improving Burstmode performanceCamera Software Integration2016-08-031-7/+45
| | | | | | | | Calling media notify only once after the burst mode is finished. This reduces latency of the processing call back. Change-Id: I5ff4a369705cab4c8cee95f793733d2a0046e1d0 CRs-Fixed: 933866
* SnapdragonCamera: Fix crash issue with enable FD with TruePortraitByunghun Jeon2016-08-031-2/+13
| | | | | | | Fixes ui operation on background thread issue with always enabling FD with TruePortrait on. Change-Id: I976d206c2114aba1e1c5ae4b53959093c2836942
* SnapdragonCamera: Always enable FD with TruePortrait onJay Wang2016-08-031-16/+34
| | | | | | | | Face detection should always be on when TruePortrait is enabled. Menu item for FD will show on and disabled (not toggleable) when TruePortrait is on. Change-Id: Ibbe8b5aaede2590d2587e9f8094d84f8717a037a
* SnapdragonCamera: Fix not able to view other pictures when macro modelikaid2016-08-031-0/+1
| | | | | | | | | | | In Macro+ mode, it always started the refocus editor view when clicked the preview thumbnail, that caused user could not view other pictures. Reset the flag mLastPhotoTakenWithRefocus to false when onResume,start the refocus editor only one time after take a picture with macro+ mode. Change-Id: I07772772be0e6227b87c4f58c900a6c024cd2fdc CRs-Fixed: 896098
* SnapdragonCamera: Fix app crash when taking longshot during countdownlikaid2016-07-301-0/+4
| | | | | | | Cancel countdown capture when long press shutter button for longshot. Change-Id: Ie33aba13139b0476085eb1f5256459f289d8af86 CRs-Fixed: 823502
* SnapdragonCamera: Fix app auto close when repeat plug in/out USB cablelikaid2016-07-301-21/+1
| | | | | | | | | | When the system try to unmount SDcard, it will kill the process which hold the instance of media provider. When camera is in idle state, do not keep the media provider instance. Change-Id: Ie1edf2397544e613435f0930dba73da9660616cd CRs-Fixed: 823334
* SnapdragonCamera: fix camera FC when internal storage isn't enoughlikaid2016-07-301-1/+7
| | | | | | | | | The menu may be not initialized when switch save path in PhotoModule. Check the menu initialized state before switch save path. Change-Id: Ibdc8d5510924b45f5abfc13f4d70dcf9620c8b7d CRs-Fixed: 801619
* SnapdragonCamera: Fix AEC lock issue after non-zsl snapshot.Sai Kumar Sanagavarapu2016-07-301-0/+4
| | | | | | | | | In non-zsl snapshot, focus manager is set to unlock AEC after setting camera parameters in startpreview(). Due to this, AEC gets unlocked only after next touch focus or any set param call. Fixed this by changing the order during startpreview(). Change-Id: I320d7b37c7107ce2242a52979505ff04029a83fa
* SnapdragonCamera: Disable continuous shot when HDR is enabledJay Wang2016-07-301-8/+9
| | | | | | | | HDR and continuous shot cannot be enabled at the same time. When HDR scene mode is selected, disable the continuous shot feature Change-Id: I2ba6d0fd6d09a3cd9de393e7d2c16303d434f972 CRs-Fixed: 979676
* SnapdragonCamera: Disable CDS and TNR if SeeMore is enabledShwetha Kotekar2016-07-301-9/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If seeMore is enabled, send a disable command to HAL to disable the CDS and TNR features. Change-Id: I91bac0a01c58cb13ba32296739b47f74dc296003 SnapdragonCamera: Enable SeeMore option for 4k. Currently SeeMore option for 4k recording is disabled. As per requirements, enabling the same. Change-Id: I69e84e0c20c199d80fc819f8aa6be62605bfbd79 SnapdragonCamera: Turning off CDS and TNR while SeeMore is on. Ensuring turning off of CDS and TNR while see more feature is on. Change-Id: I74c76f8b07046b8dca9db2be162b7ef20ba2d96d CRs-Fixed: 937242 Camera2: Add StillMore option in Camera app menu Add menu item for StillMore feature under the Advanced Features item during camera preview. Change-Id: I89ae260339896878ff4f1c5099885c6f3b05a18b SnapdragonCamera: Changes to enable TNR processing by default. TNR was disabled by default from UI. Change configures TNR for camera stream to improve image quality. CDS is disabled as TNR is enabled by default from now. Change-Id: I7c1bf9533c52b8642fb15f79625cec57cc85b6cf Crs-fixed: 890243 SnapdragonCamera: Checking whether SeeMore is available Checking if the preference is available. Change-Id: Ie885b9312f2fe054e272d15b9a38e2cedf756632 CRs-Fixed: 957117
* Snap: Unbreak auto-HDRSteve Kondik2016-07-301-1/+1
| | | | Change-Id: Id93d5807fb4c4d14eeea33be0776a6f705a6c435
* Snap: Always allow 100% JPEG quality to be setZhao Wei Liew2016-07-181-15/+10
| | | | | | | | | | Previously, we were checking if the selected JPEG quality was 100% and not setting the JPEG quality if some conditions were met. There isn't any history nor explanation on why we weren't setting the JPEG quality to 100%, so just remove the redundant check. Change-Id: Ie0ab555ad35942bd115751fd10e4f4c11fa7a76d
* SnapdragonCamera: Fix the memory leak on view.Jack Yoo2016-05-261-0/+7
| | | | | | | | Keep using modules instead of creating. Don't remove the view without cleaning it. Change-Id: I260a660cac3d770f7d02dfdc1881e15490da66a0 CRs-Fixed: 958510
* Snap: force enable zsl for lge hdrcodeworkx2016-05-091-0/+5
| | | | | | LGE HDR needs ZSL enabled Change-Id: I563b7f7cd49fcf8aad35ca4b93f839dc0a591f01
* Snap: Only set preferred preview sizes if they are validEthan Chen2016-05-021-2/+6
| | | | | | * Check if a preferred photo preview size is valid before using it. Change-Id: Ia9580b68b60df9784f657df16b317748ff40a696
* Snap: Support override maker and model exif tagKetut Putu Kumajaya2016-05-011-1/+15
| | | | | | Camera HAL not always return proper values Change-Id: Id81fe40ac84b0ffb70560e55077d90544139e463
* Snap: Add support for focus distanceSteve Kondik2016-04-201-0/+19
| | | | | | * Hook up available metadata to the new focus manager. Change-Id: I793df67a2682d8bb2dee994193111227dd8c8d5a
* Revert "Snap: Improve focusing"Ethan Chen2016-04-201-45/+14
| | | | | | This reverts commit 57799db3c1757618e00d331fe659ac4058624352. Change-Id: I6027d853c9791a1b14c0dffcce038b450019735a
* Snap: Improve focusingSteve Kondik2016-04-141-14/+45
| | | | | | | * Don't needlessly break touch-to-focus during various modes * Set focus parameters immediately for better UX Change-Id: I39b287562c3d2b62a1d5c8953577e366b11b8e15
* SnapdragonCamera: Fix crash issue when changing TNR settingJay Wang2016-04-111-3/+14
| | | | | | | | Move the UI setting change to the UI thread instead of in Camera thread. CRs-Fixed: 931802 Change-Id: Ia38d0adf426c4ef7b3424df9649392ead9b0e604
* Protect against multiple shutter callbacks per frame in longshot mode.Danny Baumann2016-03-281-0/+8
| | | | | | | | | | Some devices send multiple shutter callbacks for one captured frame in longshot mode. As this causes mismatch between the calculated number of captured frames and the calculated number of JPEGs received for those, which in turn leads to longshot mode never being ended properly, protect against that scenario by discarding all but the first callback. Change-Id: I0c3a270f664a0cd16354fb0a13c5941a52001650
* Snap: Do not crash when cur-focus-scale is nullLuK13372016-03-091-2/+10
| | | | | | | * Some cameras simply don't set this parameter. * Also set cur-focus-diopter to 0 if it's null. Change-Id: Ib1049012de9a58279560c14ed77f83f52c07fe30
* Snap: fix camera hang on LGE G4 when flash got usedcodeworkx2016-02-211-3/+10
| | | | Change-Id: I23e53333a0bbe2a12e64e87ec8594aeaa503e9fc
* camera: Keep touch focus intact during back-to-back ZSL shotsSteve Kondik2016-02-201-2/+2
| | | | | | | | * If ZSL is enabled, we should not resetTouchFocus between shots. * Instead, re-kick the timer for each shot. If I set a focus point, I want that point to stick while I take a succession of shots. Change-Id: I407bb1e248cc902355d0294f47b071cc8a32fac3
* SnapdragonCamera: Implementing SelfieFlash featureCamera Software Integration2016-02-171-1/+44
| | | | | | | Introducing SelfieFlash feature. Change-Id: I7b73d9db585038640b715092b01e037538ef68aa CRs-Fixed: 937232
* SnapdragonCamera: Updating preview size againCamera Software Integration2016-02-161-0/+5
| | | | | | | | On layout change, need to call preview size change again as it's not guaranteed it's called first always. Change-Id: I8a687fbf162924f36f2ff7be2a3ba1c6304b27f6 CRs-Fixed: 893423
* SnapdragonCamera: Fix NULL pointer exceptionJay Wang2016-02-111-1/+2
| | | | | | | | | There is a corner case that onShutterButtonClick() is called before camera device is configured. The change will make sure the camera device exists before continuing the operation. Change-Id: I2212572ea5c6073c3f62bdd38e83716b2427c87d CRs-Fixed: 962579
* Snap: Fix crash when set infinite touch-focus durationMichael Bestas2016-02-101-1/+1
| | | | | | | * java.lang.Integer.valueOf(string) method can't parse hexadecimal values Change-Id: I42706db72fc9c1093a7aa16440af449f731e5176
* SnapdragonCamera: Set camera parameters before restarting previewSultanxda2016-02-071-0/+1
| | | | | | | | | Ensure that all of the updated camera parameters are propagated to the camera HAL prior to restarting the preview. This fixes the split-exposure observed when turning ZSL off and on without exiting the app. Change-Id: I392549ae7cc75b150e01cf8b635d2e3f1ad6ffb9 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* SnapdragonCamera: Unlock AE/AWB after taking a photo with ZSLSultanxda2016-02-071-0/+1
| | | | | | | | | The exposure and white balance get stuck after taking photos with ZSL. Always unlock the exposure and white balance after taking photos with ZSL. Change-Id: Ia34a54522048fdd619f44ac1f6d2924ce2c3fc6a
* SnapdragonCamera: Add focus-mode option to camcorderSultanxda2016-02-071-14/+14
| | | | | | | User can now control the focus mode used while recording video. Change-Id: I340c01a3f88314de67ca024279672276eff453ed Signed-off-by: Sultanxda <sultanxda@gmail.com>
* Snap: Restore flash mode settingCamera Software Integration2016-01-241-8/+33
| | | | | | | | | | | After user changes the scene mode back to "AUTO", making sure the flash mode is restored back to the correct value. Previously, the flash mode is forced to "OFF" if the scene mode is changed from others to "AUTO". Change-Id: I648ecc6945abb108c7bafa00c8e3e6d0cdd8f086 CRs-fixed: 927985 Signed-off-by: Zdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>
* Snap: do not restart preview during longshotscodeworkx2016-01-221-8/+9
| | | | Change-Id: I6ad439dc0be7c6e0d13ac7c22aacdc0ad559d051