summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CameraModule.java
Commit message (Collapse)AuthorAgeFilesLines
* snap: Improve transitionsSteve Kondik2016-11-171-2/+2
| | | | | | | | * Synchronize animation to filmstrip with input * More code cleanups, introduce BaseModule * Animations are hard Change-Id: Ie664bb2059a28b3a9f3957fb491ec28fede521e5
* Reenable left swipe for FilmstripSteve Kondik2016-11-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * These commits are from the CameraNext application in COS. * Credits: Ed Carrigan, Ed Mancebo, Wilhelm Fitzpatrick Revert "SnapdragonCamera: Fix preview broken when coming back from gallery" This reverts commit 5b8948f83a65e8f9bd1b419bd11511e48dc34887. Revert "SnapdragonCamera: fix crash after photo deletion" This reverts commit 171d2b253a752ca104ccf4a58f4e9d6d82bd7b28. CameraNext: Fix camera crash on device unlock This patch from the plugin branch also fixes CYNGNOS-1878 Due to the bug below, when the camera is fore-grounded when device is unlocked, the SurfaceView is getting recreated, which caused it to be in a weird state when we were trying to reattach the preview to it. ----- Fixed Black Screen On Back. The issue was that mCameraView was not being populated when it should have been (after it had been added to the view hierarchy). The problem was the SurfaceView was being removed from the hierarchy when it shouldn't have been. Issue-Id: CP-129 (cherry picked from commit 4010462fe0b4cf1c15624cfca7d6a3d4d380613a) CameraNext: avoid scaling camera preview in filmstrip (cherry picked from commit 823ed983c4dccac3959635f1a14fcfe47cd7b120) CameraNext: fade camera preview to black during film strip transition Instead of scaling and translating the camera preview to make room for film strip images, we leave the preview in place and cover it gradually with the black preview cover. CameraNext : Add offset calculation for left navbar Also prevent preview from translating while hidden - was causing occasional glimpses of it in filmstrip. CameraNext : Ensure vertical/horizontal swipes don't conflict Ensure that the user can't swipe horizontally while trying to delete the image. Avoids all sorts of synching issues between mViewItem and the data adapter since the buffer is trying to constantly keep its center to be the current visible item CYNGNOS-1069 CameraNext: fix crash on entering filmstrip via thumbnail tap mVerticalViewId was getting initialized in onUp, but if filmstrip was entered without a swipe, no onUp occurred. Fixed by directly initializing the field on object creation. CameraNext: Fix ZoomView in the filmstrip The ZoomView was getting covered in the Z axis while scrolling. issue-id: SAMBAR-862 Revert "SnapdragonCamera: fix camera preview broken when resume from gallery" This reverts commit 0acc1f027637c4f0126883be68f97817d7306032. Change-Id: If4dd591c5c752a7fa33c669c15875c0077446a37
* SnapdragonCamera: Remove custom location permission request windowJay Wang2016-07-191-0/+4
| | | | | | | | 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: Switch to SD card when internal storage is fullkaiyiz2014-08-211-0/+2
| | | | | | | | | | | | | | | | 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
* Update preview as per aspect ratio on back key press.Santhosh Kumar H E2013-11-121-0/+2
| | | | | | | | | | | | 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
* Set camera controls visibility based on whether the camera preview is centered.Erin Dahlgren2013-10-141-0/+2
| | | | | Bug: 10861015 Change-Id: Ib0c4945e35cee16b73a4bba913e11d0f79a26176
* Fix the flash mode transition in video modeztenghui2013-09-111-4/+1
| | | | | | | | | | onSwitchMode is wrongly overloaded, now is fixed. Basically, onCurrentDataChanged will handle the switching in and out of Camera. onDataFullScreenChange will handle full screen change on non-preview data. bug:10610967 Change-Id: I199a20d40d66b78302e90e0f96826d03076b0e39
* Switch over to use new camera activityDoris Liu2013-06-181-8/+2
| | | | Change-Id: Ib907b5ab5d0e818261e95edd182f2e20c3bbebe0
* Spring cleaningMichael Kolb2013-03-111-2/+0
| | | | Change-Id: I00d7176301501784a6a400bc9ea2cb23ff9ec90a
* Flatten view hierarchy and rotate viewsDoris Liu2013-03-041-0/+2
| | | | | | | | | TODO: SRI pano and Lightcycle can use a bit more flattening. I will get to them next. (Maybe in a different CL.) TODO: Need to cancel capture animation in onConfigurationChanged() Change-Id: I00fd3e098117d9fb74fde2c128407ab6275bcedf
* Make video snapshot save images in the background.Angus Kong2013-01-311-0/+1
| | | | | bug:8114662 Change-Id: I4e96269bd7723dd9a82d2905a01f736c8982c4ed
* Move Camera Java/Native source into Gallery2Michael Kolb2013-01-291-0/+75
Change-Id: I968efe4d656e88a7760d3c0044f65b4adac2ddd1