summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/WideAnglePanoramaModule.java
Commit message (Collapse)AuthorAgeFilesLines
* SnapdragonCamera: Remove custom location permission request windowJay Wang2016-08-181-0/+18
| | | | | | | | 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: Add manufacture and model infoJay Wang2016-08-031-0/+1
| | | | | | | | Manufacture and model information is added to the EXIF tag of saved panorama image file Change-Id: Ie5688032abc2278718dfcc0bf9129a35dedc7b8b CRs-Fixed: 1011930
* SnapdragonCamera: Do not update panorama thumbnail when cancelledCamera Software Integration2016-08-031-3/+4
| | | | | | | Do not update thumbnail when panorama is cancelled. Change-Id: I3db9f9614b35ee4e475fbb7b1dc801b77e6ed6bd CRs-Fixed: 934157
* SnapdragonCamera: Reduce the latency for panorama preview startinglikaid2016-08-031-6/+8
| | | | | | | | | | | In panorama mode preview, the stopPreview and startPreview were called three times after onResume from lockscreen, that caused the preview showing delay. Reduce the unnecessary stopPreview to improve the preview performance. CRs-Fixed: 876035 Change-Id: Ice5b0c305edb773867fd4803c190c98f5518ecb2
* SnapdragonCamera: Fix app freeze when connect to camera failedlikaid2016-08-031-0/+1
| | | | | | | | | | In Panorama mode, the app wasn't closed directly when connected to camera failed, that may cause more serious issue. Finish the activity immediately when open camera failed. Change-Id: I057611a3baf37ef915b3c182e5c3b5f12413c134 CRs-Fixed: 882041
* SnapdragonCamera: fix camera FC when internal storage isn't enoughlikaid2016-07-301-1/+1
| | | | | | | | | 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 the memory leak on view.Jack Yoo2016-05-261-0/+17
| | | | | | | | Keep using modules instead of creating. Don't remove the view without cleaning it. Change-Id: I260a660cac3d770f7d02dfdc1881e15490da66a0 CRs-Fixed: 958510
* SnapdragonCamera: Fix to make camera display normallylikaid2016-02-161-4/+10
| | | | | | | | | | Camera params is initialized twice when power on screen which cause this bug happen. Add judgement to make Camera params only be initialized once. CRs-Fixed: 914993 Change-Id: I825afe1e8fa9cda0d971c6f9bb4fe5677e06d809
* Snapdragon Camera: Check mosaic preview dimensionsEmilian Peev2016-01-071-3/+8
| | | | | | | | | The preview dimensions used during the Mosaic libray initialization should be verified. Using invalid values like "0x0" could result in a crash of the JNI library. Change-Id: I812b9d1cb3cf6e664eaa582ee553d3af08d02bcb
* Camera2: Headset shutter modeDave Daynard2015-09-171-0/+5
| | | | | | | Use play button on headset to take a picture/video/panorama Use media next/previous for zoom Change-Id: I25c22646b041e5e0941fbe361eccfe77a2a1e42f
* Camera: Handle keys only while in appMichael Bestas2015-09-171-0/+8
| | | | | | Thanks to Lars Greiss (SlimRoms) Change-Id: I63f757d25260fba4683f494f8b4daf178a2b4e13
* Camera: Cleanup hardware key handlingMichael Bestas2015-09-171-1/+32
| | | | | | | | | | | | | | | | | * 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
* SnapdragonCamera: customize camera picture qualitylikaid2015-04-091-1/+1
| | | | | | | regional feature Change-Id: I4c80b4970ff4f628080cad20980aa545add6fdcf CRs-Fixed: 815630
* Merge "SnapdragonCamera: Stop panorama capture when move to opposite direction"Linux Build Service Account2015-04-021-0/+11
|\
| * SnapdragonCamera: Stop panorama capture when move to opposite directionlikaid2015-03-211-0/+11
| | | | | | | | | | | | | | | | In panorama capture mode, when user moved to the opposite from the original direction, stop the capture and save current picture. Change-Id: I716a08f2fc497301fb8a6c6a124211b855cd9a77 CRs-Fixed: 801022
* | SnapdragonCamera: Handle CAMERA_ERROR_SERVER_DIED message gracefully.Sai Kumar Sanagavarapu2015-03-201-1/+1
|/ | | | | | | | | Handle CAMERA_ERROR_SERVER_DIED message from lower layers by finishing the activity and there by closing camera session and app gracefully. In all other error cases, raise exception and kill app as exists already. Change-Id: I86c4caf174356148bd4725329ea13ec82e944b94
* Merge "SnapdragonCamera: fix panorma capture direction issue"Linux Build Service Account2015-02-231-0/+4
|\
| * SnapdragonCamera: fix panorma capture direction issuelikaid2015-02-151-0/+4
| | | | | | | | | | | | | | | | | | | | When the orientation is 90 or 180, the indicator direction is opposite to the moving direction. Correct the direction when orientation is 90 or 180. Change-Id: If2cda1da6db2e6ae219cb57567801fed0b4ca012 CRs-Fixed: 792977
* | Merge "SnapdragonCamera: circular thumbnail icon"bait_dispatcher_monitor_system2015-02-191-4/+0
|\ \ | |/ |/|
| * SnapdragonCamera: circular thumbnail iconLikai Ding2015-02-101-4/+0
| | | | | | | | | | | | | | | | | | 1. change thumbnail icon to circular and its background to transparent 2. speed up loading with optimal sample size and region decoder 3. fix orientation bug regarding panorama photos 4. don't fire load task on fake onDataLoaded() call Change-Id: I7f4eb8dad4c54a01a7ccd98907e06952e470840b
* | SnapdragonCamera: Add FullScreen Preview when in Panoramic shootJay Wang2015-02-091-5/+13
|/ | | | | | | | | Changed the Panoramic preview to full screen Resized the warped preview image to smaller Size and render on top of the full screen preview image Warped preview image can be turned on/off Change-Id: I859839542ce94c5f70d7fe7983e93b5e9534b415
* SnapdragonCamera: fix portrait orientationLikai Ding2015-02-021-4/+12
| | | | | | | | | | | | Fix camera activity to portrait, so there is no delay when rotation occurs. Main changes are: 1. RotateLayout now supports padding and dynamically added child. 2. Camera controls and gesture detetion are now orientation-aware. 3. Toasts are replaced with RotateTextToast. 4. Obselete layout files are removed. Change-Id: I338849bd7fb84b847eb357f771a24a5cc09bf6fa
* Revert "SnapdragonCamera: Fixed aspect ratio in panormic shoot"Jay Wang2015-01-131-28/+6
| | | | This reverts commit 1ea460a89823864216b47aae767b0d8f5dceb3ee.
* SnapdragonCamera: Fixed aspect ratio in panormic shootJay Wang2015-01-061-6/+28
| | | | | | | Fixed aspect ratio of the full screen preview. The camera preview size is chosen based on the aspect ratio of device screen. Change-Id: Ibc7c497a87d8f0cca2701d8709f010caa6f79308
* SnapdragonCamera: Add preview thumbnail buttonByunghun Jeon2014-11-191-0/+4
| | | | | | Add preview thumbnail button and touch it to go to gallery Change-Id: Ib80ef94c677c204d7f0826356792aba2aa11d4d1
* SnapdragonCamera: Modify SnapdragonCamera UIByunghun Jeon2014-11-171-0/+4
| | | | | | Modified SnapdragonCamera setting menus with new icons Change-Id: I726296dfb100ac81ad6f1cd84420ae27c0ae1201
* SnapdragonCamera: lock AE and AWB while taking panorama snapshotVijay kumar Tumati2014-11-051-0/+8
| | | | | | | Need to lock AE and AWB to avoid discrete AE and AWB values in a panorama snapshot Change-Id: I10bb43bf2e5bc31d67ccf8b086999e762541b950
* SnapdragonCamera: Add camera error callback to WideAngle PanoramaSanthosh Kumar Thimmanna Bhattar2014-10-101-0/+4
| | | | | | | | | | | | - Panorama preview is getting stuck when media server or camera daemon crashed as these error callbacks are not handled in Panorama - Fix is to add camera error callback to camera WideAngle Panorama to handle errors like media server or camera daemon crash. CRs-Fixed: 736404 Change-Id: I4b0f9883ca57b7a2fc93e0b31fee7b908bb18242
* SnapdragonCamera: Switch to SD card when internal storage is fullkaiyiz2014-08-211-0/+8
| | | | | | | | | | | | | | | | When internal storage is full, switch to SD card for storage. Change the save path from internal storage to SD card when updateStorageSpace is called if: 1. Internal storage is the current save path and does not have enough space 2. SD card has enough space Display a toast message and update display of the save path menu item when the storage path is switched. CRs-Fixed: 687210 Change-Id: I6a9804e4f64e6d55c6aebd889ac2ce5e887cfa5a
* SnapdragonCamera: Make panorama frame size configurableLikai Ding2014-08-211-2/+10
| | | | | | | | For low RAM devices, allow reduction of the panorama frame size to save memory via the 'panorama_frame_size_reduction' config option. Change-Id: I26b98699341d5eedfe2ebe8a6ed417fe62933bd5 CRs-Fixed: 669381
* Rename module and package name to co-exist with AOSP appSachin Shah2014-08-161-1/+1
| | | | | | | | Rename package from com.android.camera2 to org.codeaurora.snapcam, module name from Camera2 to SnapdragonCamera and app name from "Camera" to "Snapdragon Camera" Change-Id: I2800070e72631e119a15fe0132424d1047be9f0c
* Revert "Camera: Mem-leak"Vijay kumar Tumati2014-06-191-1/+1
| | | | | | | | | | This reverts commit 46b761ab50e36daa2ff79527553014905e784895. We see some regressions with this change so we are reverting it for now. We will fix the issues soon. Change-Id: I59da92087006cef0da16c8a11fe7c31f32aa0312
* Camera: Mem-leakSuman Mukherjee2014-06-091-1/+1
| | | | | | | | | | | Hprof identified memleak in localdatalist from list and hashmap Reason: removedata was not getting invoked. Fix Made: Invoke removedata from ondestroy and onresume of camera activity Cleanup bitmaps before reallocation on same variable. CRs-Fixed: 655256 Change-Id: I42d99beb7e493eea2394462ee02cbe956e86c502
* Merge "Camera2: wait for previous saving picture done during panorama capture"Linux Build Service Account2014-04-211-1/+1
|\
| * Camera2: wait for previous saving picture done during panorama captureFei Zhang2014-04-101-1/+1
| | | | | | | | | | | | | | | | If saving pano picture thread is still running during onResume, we need to wait until it completes. CRs-fixed: 637244 Change-Id: I9ae5cb75a930421325d2e7d4d1b30306c867c6cf
* | Camera2: save the picture when rotate the deviceKerong Sui2014-03-311-1/+3
|/ | | | | | | | | If we rotate the device, the panoroma can not mosaic image, so if we rotate the device, we should stop capture immediately and save the previous capture frames. Change-Id: I4ba304957d4083b4ae58c084239d6dc3d7f4dc89 CRs-fixed: 627105
* Camera2: Inverted preview in PanoramaSuman Mukherjee2014-01-201-5/+3
| | | | | | | | | | | | For 8x26MTP device, panorama preview is coming as inverted. In present android version flippreview is itself taking care of rotation. This additional rotation is causing the inverted preview for the device where mount angle for sensor is more than 180degree. The logic related to mPanoAngle is not needed which had been added for previous android version. Change-Id: I6c5ed526382e0971e555a70946adb63a2acdf180 CRs-Fixed: 591767
* Set original camera parameters while switching between modules.Santhosh Kumar H E2013-12-111-7/+0
| | | | | | | | | | | | | | | | | Camera holder maintains a local variable to get original params and set those params back when user switch between modules. But these parameters were obtained from the instance of camera manager. So object in Camera holder will be a reference to an object in camera manager. Becasue of this all the parameters set in photo module are getting reflected in other modules. This change makes sure the camera holder's parameters object is created separately by getting data from camera device. Also reverted the alternative solution to reset scene mode in video and panorama module. CRs-Fixed: 579747 Change-Id: I02637fb2c215aeb1ba9076629400a339c31178ad
* Merge "Do not add screen hint dialog when window is not available."Linux Build Service Account2013-12-071-1/+6
|\
| * Do not add screen hint dialog when window is not available.Santhosh Kumar H E2013-11-291-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | SD card screen hint is directly added to activity window. In the error case its trying to add the screen hint dialog even before the activity window is available. This change check for the availability through window focus. In photo module update hint is called through handler to make sure it adds the dialog in UI thread, which was missing in panorama modo. This change as photomodule kind of UI updation calls in Panorama mode. Change-Id: I5cad2e86a23aceff290ef8d4ef89dbfdaaeb683d CRs-Fixed: 573549
* | Merge remote-tracking branch into merge_branchSanthosh Kumar H E2013-12-061-5/+9
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Delay onResume tasks to speed up lockscreen onResume->onPause->onResume launch sequence. Import translations. DO NOT MERGE gcam: Clean up placeholders, and add deletion robustness. Fix issue of focus indicator staying on without being hidden Ensure view size gets updated after phone decors change. Show the 100% state of the progress at least one frame. Add parameters and deduplicate parameter changes Revert parallel opening camera in photo mode. Differentiate the InProgressData from the normal PhotoData. Close mode menus if another control is touched Start gcam module directly when handling capture intent. Import translations. DO NOT MERGE Add a null check to fix NPE Add logging to various actions Ensure mOpenCameraThread has been setup before dereferencing. Add logging to various actions Ensure mOpenCameraThread has been setup before dereferencing. Add GCam progress indicator. hide preview cover on arrival of new preview data if hidden Fix photo mode is getting stuck in a single CameraState. ... Conflicts: res/layout/photo_module.xml res/values/arrays.xml src/com/android/camera/CameraActivity.java src/com/android/camera/PhotoUI.java src/com/android/camera/Storage.java src/com/android/camera/WideAnglePanoramaModule.java src/com/android/camera/ui/FilmStripView.java Change-Id: Ic41b4e7e07b2b0ed7936b78a6c5f05270d05985f
| * Add logging to various actionsSeth Raphael2013-11-071-0/+4
| | | | | | | | | | | | Bug: 11514148 Change-Id: Ib31a74a6badc4dcdeaa316e032f4aef17edd06b2
| * gcam: Add placeholder image.Ruben Brunk2013-10-281-2/+3
| | | | | | | | | | | | Bug: 11050749 Change-Id: I374c5919d6da0609fccd21c09775fa91894d5a24
| * Fix skipped hide review layout callsDoris Liu2013-10-251-1/+1
| | | | | | | | | | | | Bug: 11338381 Change-Id: I39c9541638f3e8c2a2f96ae4b1be7692a6db0e1c
| * The initial focus value should be true.ztenghui2013-10-211-1/+1
| | | | | | | | | | | | | | | | Every time when we enter the wide angel (SRI) module, the preview should be in focus. bug:11234723 Change-Id: I218573946609f1e0e4415621a71b96a20775237d
| * Fix SRI orientation on mantaDoris Liu2013-10-181-0/+7
| | | | | | | | | | Bug: 11292213 Change-Id: I7977de4c5bb906eec5431e706e28118837a682e7
| * Show a preview cover until real preview is readyDoris Liu2013-10-151-1/+1
| | | | | | | | | | Bug: 11211650 Change-Id: Ic4b26ef0f03eac0682e7be0d4bcb1c4632d85f39
* | Merge "Update preview as per aspect ratio on back key press."Linux Build Service Account2013-11-221-0/+4
|\ \
| * | Update preview as per aspect ratio on back key press.Santhosh Kumar H E2013-11-121-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If user is not in full screen camera preview mode, pressing back key will take user to full screen preview mode. During this all views on filstrip are reloaded and shifted to full screen preview. While reloading preview aspect ratio was not considered so user could see stretch preview in case of front camera. This change calls resize of preview as per aspect ratio after reload. Change-Id: I3dc8db3cc9917f9db33f5101f6c39cf38b950264 CRs-Fixed: 568855
* | | Merge "Reset scene mode to Auto in camcoder and panorama modes."Linux Build Service Account2013-11-191-0/+7
|\ \ \