summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Snap: Fix possible NPEstable/cm-13.0-ZNH5YMichael W2016-12-031-2/+4
| | | | | | | | | | Seems like getSupportedFocusModes() can return null. Check for null before using it further RM-290 Change-Id: I46860f780b99970cbe9857c8ba73691d69321488 Reference: BugDumps 20161014-20 L#131
* Snap: Fix possible RuntimeException (due to NPE)Michael W2016-12-031-1/+1
| | | | | | | | | | | When the pref can't be found, index "-1" is returned, causing an NPE resulting in an RTE. Add check for a positive index before accessing the array RM-290 Change-Id: Ifa80077c2090a9df449be608feaf4390c875ff0f Reference: BugDumps 13-20161014-20 L#40
* Fix off-by-one error in sub menu selection highlight.Danny Baumann2016-12-031-1/+2
| | | | | | RM-290 Change-Id: I975495526671a4aa5311a471026831e0096a873c
* Fix off-by-one error in submenu selection handling.Danny Baumann2016-12-031-0/+4
| | | | | | RM-290 Change-Id: I7e0f44110735d8e098abdf9724e89a837b96c3e9
* Furtherly improve list menu handling.Danny Baumann2016-12-037-39/+87
| | | | | | | | | Improve layout of top-level menu items, and avoid second level menu items being obscured by the navigation bar. RM-290 Change-Id: Ic3ee983e33613f7337839d11cae9520b86636b7d
* Snap: Add picture resolutions for Axon 7c4572016-12-032-0/+16
| | | | | | RM-290 Change-Id: Ia6a1ca122a04d3d8291aa588277237a6a45d11b3
* Automatic translation importclyde@build012016-09-0611-2/+20
| | | | | Change-Id: Ie982101ee79a6889fdee9d195ceb3939fcd771f6 Ticket: -
* Automatic translation importpinky@build012016-08-290-0/+0
| | | | | Change-Id: I0bdf8427a36d80fe4457af03a762809604393bc5 Ticket: -
* Automatic translation importpinky@build012016-08-27294-342/+2088
| | | | | Change-Id: Ie60269c6a734486ab20d56397bb8bf11c612c9cb Ticket: -
* SnapdragonCamera: Adding PRIVILEGED trueJack Yoo2016-08-251-0/+1
| | | | | | | Promoting privilege for direct SD card path access. Change-Id: I10f28606a646a85c0cb23e4cf8e617eafdcaa2b4 CRs-Fixed: 1032564
* SnapdragonCamera: Fix first-time crash and cleanup permissionsJay Wang2016-08-213-13/+3
| | | | | | | | | | | As onCreate skips the creation of setting manager when the critical permissions are not granted, this causes the onDestroy to call setting manager destroy function with null pointer. Fix the issue with null check. In addition, remove unused permissions from manifest file Change-Id: I99b5f09449aacfb7eb9a5771e446df75956a9827 CRs-Fixed: 1034202
* Snap: Fix bad merge of "Fixed M permission issue"Michael Bestas2016-08-211-7/+7
| | | | Change-Id: I493cac1abc38323a4f91506898d25b4f9aea1c79
* Snap: Make developer menu more accessibleMichael Bestas2016-08-203-25/+58
| | | | | | | | | | | | | | * Not all devices have red eye reduction, which made it impossible to enable advanced options. Move the toggle to max brightness option which is present in all devices. * Allow enabling advanced options through camcorder settings. * Move hardcoded strings to cm_strings for translations. * Close menus when developer mode is toggled so we can see the extra options when the menu is reopened. * Decrease taps to 7, matching Settings tap-to-enable. * Properly reset tap counter. Change-Id: Iac39b9309388b92bf75a49a6091b483b13bd9154
* SnapdragonCamera: Force removing preview cover for camcorderJay Wang2016-08-182-1/+14
| | | | | | | | A workaround to remove preview cover when starting recording, if preview cover is not removed right after preview started. Change-Id: I0870ddeec9d3f40a1459315e91e5230155be9f13 CRs-Fixed: 1016691
* SnapdragonCamera: Fix NPE caused by empty permission resultJay Wang2016-08-181-8/+12
| | | | | | | | | When request permission is cancelled, it returns empty result. Making change to check the length of result before accessing the result. Change-Id: Ic3e35c822e053fac7786d5e924ead8935feb1794 CRs-Fixed: 1041464
* snap: Change to target SDK 23Steve Kondik2016-08-181-1/+1
| | | | Change-Id: I0260710461d61d48211fe8a9efdeb5d192f862ff
* SnapdragonCamera: Remove custom location permission request windowJay Wang2016-08-189-67/+136
| | | | | | | | 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
* Minimum viable Android M runtime permissions handling for H.zafir2016-08-186-6/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creates new activity for permissions handling: both checking for permissions and handling error condition when critical permissions are not present. The reason for creating a new activity is so the app does not attempt to continue executing OnCreate, OnResume etc, which opens the camera while the dialogs are showing. This should not slow the app down because the permissions activity will only run when a) the first time the app has insufficient permissions and b) when a critical permission is missing and the app needs to shut down. Bug: 21273463 CRs-Fixed: 1019847 Change-Id: I603acfb3057ba26b9cfa7935eb4cb24b5d547cb5 (cherry picked from commit ad44cda82fe6ec5ee090115129223c6314f9e1bb) Fixes to M permissions. Previously, we called PermissionsActivity with startActivityForResult(). However, this creates race conditions as we check for permissions and the CameraActivity continues to operate. Now, we end CameraActivity and launch a new instance upon successful permissions resolution. We can also put the preload filmstrip logic back in its original place in onCreate. The checks for permissions happen in both onCreate and onResume. Bug: 22442745, 22478144, 22497152 CRs-Fixed: 1019847 Change-Id: I82e9125a46581db44aa61d4ee94aec5a820e9df0 (cherry picked from commit ac0e2425e77a9b69e76d2f31876798825ea44584) SnapdragonCamera: Fixed M permission issue - 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 snap: Remove platform signature * We are using runtime permissions now. Change-Id: I3386214dbbc0915251941ef490e7cbaf27e6ed45
* SnapdragonCamera: Force removing preview coverJay Wang2016-08-182-0/+14
| | | | | | | | 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-146-23/+44
| | | | | | | | 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
* Automatic translation importblinky@build012016-08-13104-1/+121
| | | | | Change-Id: Icde9e62950b8ae18e970956d74f13ef5c812047a Ticket: -
* Snap: String improvementsMichael Bestas2016-08-142-9/+9
| | | | Change-Id: I19f2f857afc848502fded5cc0632e94cf3a65152
* Snap: Support 9.6 MP 16:9 picture resolutionZhao Wei Liew2016-08-112-0/+4
| | | | | | This is the highest 16:9 picture resolution supported by Galaxy S4. Change-Id: I61ce779d7965ec87478ed31f8a1e7595c8eba7b0
* Snap: Remove storage menu if no external storage availablemaxwen2016-08-103-5/+22
| | | | | Change-Id: I9807c7f9303f17eb971ff1a82fbd35dfbdbfa529 Signed-off-by: Zdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>
* Automatic translation importblinky@build012016-08-07191-0/+311
| | | | | Change-Id: I617b9f444fcef38ad4a1a0c02923d8c7fa368144 Ticket: -
* snap: fix untraslatablesJoey Rizzoli2016-08-051-2/+2
| | | | | Change-Id: I3e07d9f4d641470c225f86c4516fc45256678bb3 Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it>
* 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-032-1/+26
| | | | | | | | | * 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-033-37/+60
| | | | | | | | * 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
* snap: Add missing resourceSteve Kondik2016-08-031-0/+2
| | | | Change-Id: Ia0fb05bc14c8f332ad685e905eaf1ad75cba39e7
* 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-0312-1/+70
| | | | | | add scene mode for optizoom and preference entry for chromaflash Change-Id: I859a42e3273d340a7dda7e24c6cb2e08ddb0f7bf
* SnapdragonCamera: Fix panorama cancel button locationByunghun Jeon2016-08-031-1/+1
| | | | | | | | | Panorama cancel button location is not correct when device is rotated by 180 degrees. Set the proper value to the button when rotated by 180 degrees. Change-Id: I16cb6978f9b612944413fbc400d6aec920599ba7 CRs-Fixed: 1035742
* SnapdragonCamera: Fix the issue that camera control is removedJay Wang2016-08-031-4/+7
| | | | | | | | Fix the issue that camera control menu is removed after HDR icon is clicked from camera control menu. Change-Id: I6e7c1a81fa356d0fa6cb5eb336ef844266a1bbf0 CRs-Fixed: 1038311
* SnapdragonCamera: Add manufacture and model infoJay Wang2016-08-032-0/+17
| | | | | | | | Manufacture and model information is added to the EXIF tag of saved panorama image file Change-Id: Ie5688032abc2278718dfcc0bf9129a35dedc7b8b CRs-Fixed: 1011930
* SnapdragonCamera: adjust video recording duration marginsJay Wang2016-08-032-3/+3
| | | | | | | | | Video recording duration overlays with mute button for low resolution display. Resolve the issue but adjusting the margins Change-Id: I526529dd71190f65b2b97c1bd79844129e2773f9 CRs-Fixed: 1019589
* 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: resolve touch af issue during countdownJay Wang2016-08-031-1/+1
| | | | | | | | | | Allow to cancel any on-going focus request when new touch focus request is issued. In previous implementation, the CAF was not cancelled before re-issuing new focus region, and it causes the focus to freeze. Change-Id: I51365b4d363e5d8af3eac8fb0af0d6955f86ff33 CRs-Fixed: 1007029
* SnapdragonCamera: Add support for outputting MPO format filesJay Wang2016-08-039-12/+1210
| | | | | | | | Add support for generating MPO formatted files from the application layer. CRs-Fixed: 993611 Change-Id: I9a78d33e1d80b7da748f9bc75446f49172342078
* SnapdragonCamera: Removing unnecessary orientation checkJack Yoo2016-08-031-15/+0
| | | | | | | | | Removing unnecessary code of checking the orientation. Swapping width and height causes redundant shrinking resulting to the wrong size calculation. Change-Id: I64badc2bd3198e409fe5673198e864d5025364e9 CRs-Fixed: 979254
* SnapdragonCamera: Fix viewfinder flashing issue in camcorder modeJay Wang2016-08-032-4/+1
| | | | | | | | | | | The preview cover is removed before the preview frame is generated and causes the homescreen shows up for a short duration. To resolve the issue, show the preview cover by default until the first preview frame is generated by camera framework. Change-Id: I1e193b64689b8b51eaa0e3891974405536869efd CRs-Fixed: 1003977
* SnapdragonCamera: hide the preview surface during suspendJay Wang2016-08-032-0/+9
| | | | | | | | | | | | 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: Resolve camera control overlapping issueJay Wang2016-08-031-0/+4
| | | | | | | | | | Clicking beautification icon right after clicking camera switching icon can cause overlapping of camera controls and beautification controls. To resolve issue, hide the UI controls during camera switching. Change-Id: I5c4b96ce10c0d44e8c63c41207a4ec3d09312b51 CRs-Fixed: 977967
* Fix android.process.media got killed when capturezfu2016-08-031-0/+5
| | | | | | | | | | | | android.process.media has a very low priority as Cached app in background. When snapdragon camera using ContentResolver and do query/updating it will promot to foreground priority, but there may have some race condition that lmk in the progress to kill media, and AMS want set to foreground. So, keep this process as foreground during the whole ActivityLife time, by hold a query cursor onCreate and destory onStop. CRs-Fixed: 984061 Change-Id: I530fddfa240030ad84dc09b599ad783f6a2f21e0
* SnapdragonCamera: Fix missing icon issue in error conditionJay Wang2016-08-031-0/+1
| | | | | | | | When onError is called from media recorder, re-draw the video control icons after stopping the recording session. Change-Id: If7a38ff4c12ec90018fe0d1a89d08fd94bf89f6f CRs-Fixed: 982804
* SnapdragonCamera: Reset menu when device is rotatedByunghun Jeon2016-08-034-5/+14
| | | | | | | Reset the settings menu when the device is rotated Change-Id: I6c4fed7207a4d26a9d7c29d18f6a7af17ef3d4f9 CRs-Fixed: 981504
* SnapdragonCamera: fix null pointer exceptionJay Wang2016-08-031-1/+3
| | | | | | | | | | During layout change, it is possible camera preview is not configured, yet and Camera.Parameters.getPreviewSize() returns null pointer. Adding a null check to skip the layout change if the pointer is null Change-Id: Icb3ecf60c261e68cc5f2b05eba4df020857022eb CRs-Fixed: 945969