summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoUI.java
Commit message (Collapse)AuthorAgeFilesLines
* Snap: Add support for focus distanceSteve Kondik2019-11-091-1/+0
| | | | | | * Hook up available metadata to the new focus manager. Change-Id: I793df67a2682d8bb2dee994193111227dd8c8d5a
* Drop new focus indicator into Camera2.Paul Rohde2019-11-091-44/+5
| | | | | | | * Create a new custom focus view that interacts with physical lens diopter changes. * Replace all occurances of the old focus indicator with the new one. Change-Id: Ia02646ce4d1eb059ecb8a1dfccc15dfc9c167e1b
* De-uglify menu.Danny Baumann2019-10-251-2/+2
| | | | Change-Id: I19d8a3d5a12c4be06bced056b80ad1a354c6b761
* Remove unused menu indicators code.Danny Baumann2019-10-251-25/+0
| | | | Change-Id: I0ce48da277a532b46fdde15027f636de4d7585b7
* camera: Touch focus support for camcorderSteve Kondik2019-10-251-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: Steve Kondik <shade@chemlab.org> Date: Wed Aug 28 14:21:49 2013 +0800 camera: Touch focus support for camcorder * Available when video snapshots are not supported. * Original from CodeAurora Forum. Change-Id: I232c178430db08e7366aa9f91b4926d07e7c225d Author: Dheeraj CVR <cvr.dheeraj@gmail.com> Date: Sat Apr 19 02:33:46 2014 +0530 Camera2: Prevent autofocus when video snapshot is in progress During video recording if screen is tapped repeatedly, autofocus is started while the snapshot is taken. This would either result in an out of focus snapshot which would also disturb the focus in the recorded video or crash the sensors that can't handle autofocus during snapshot. Change-Id: If2763094f5ab7536e4409469276de54580e803c8 Author: Dheeraj CVR <cvr.dheeraj@gmail.com> Date: Mon Jun 23 22:00:07 2014 +0530 Camera2: Prevent propogating CancelAutoFocus during Video Recording When AutoFocus is started during Video Recording, CancelAutoFocus is called after KEY_FOCUS_TIME seconds. CancelAutoFocus has the side effect of resetting the sensor AF position and will result in instant loss of focus which is not a desired event when AF is manually triggered in case of Video Recording. Change-Id: Icee7f6dfd4ad083c9b383ee2a4df6a34e4668de6 Author: lion0738 <lion0738@naver.com> Date: Sun Jan 10 16:55:01 2016 +0900 Snap: Set parameters before starting preview Old parameters are used when grabbing focus mode. Camera parameters should be set to FocusOverlayManager before starting preview. Change-Id: I908559e1c2003be47b486996b0ec016b78107468 Change-Id: I8be16315ccede388e590e81e93f0dd417ae51c4a
* Add orientation correction for landscape devicesandralex82019-10-251-0/+3
| | | | | | | | | | | | | Snap does not correctly handle devices with a landscape screen as rotation is 0 when device is in landscape while Snap assume that 0 is portrait. This lead to a rotated gui and a deformed preview. This commit: - Solve the gui rotation for Photo, Video and Panorama modules - Solve the deformed preview for Photo and Video (Panorama preview was ok with gui fix) - Solve the PhotoMenu rotation (all devices, it was also broken on portrait devices) Change-Id: Ic0b95904da6e13946c7e46e2e571b26da498db02
* SnapdragonCamera: Fix UI alignment glitches when nav-bar is enabledSultanxda2019-10-251-1/+1
| | | | | | | | | Snapdragon Camera is immersive (i.e. fullscreen), so we expect to receive the actual size of the display here, not the modified size when the nav-bar is enabled. Change-Id: I942829f77dda0dbb9dd65a60e66a540eecf708e7 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* Camera: Change volume hard key button to zoom functionSu Liu2019-10-251-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: Su Liu <suliu@codeaurora.org> Date: Wed Sep 4 18:16:50 2013 +0800 Camera: Change volume hard key button to zoom function Able to capture image through volume hard key button in camera application, change the function to zoom function. Change-Id: Iab9fc2492b2e2ff89cd58c21bac2f147f47b77e2 Author: jt1134 <jt1134@gmail.com> Date: Sat Jan 4 20:52:27 2014 -0600 Camera2: implement volume key zoom in video mode Change-Id: I140e8cfb3e39700f60e40c35b38e92c83a3c26de Author: Lars Greiss <kufikugel@googlemail.com> Date: Sun Feb 2 03:09:22 2014 +0100 Camera2: tweak volume key zoom and cleanup - cleanup unused code - cleanup codestyle - add more zoom steps for smother zooming - show zoom circle indicator during zoom Change-Id: I5214fc2620a0c5167bfdc8e85f7115966c3b8bcf Change-Id: I99dd2fffc92985156eece67c19435a71d14cd928
* Camera2: implement exposure compensation settings in video modejt11342019-10-251-0/+2
| | | | Change-Id: I83a2675e109dc7924cdd9240b26051ac218f532a
* Camera: fix preview for landscape devicesPawit Pornkitprasan2019-10-251-6/+2
| | | | | | | | | | Landscape devices have broken preview because PORTRAIT mode is being abused to check for screen rotation. Use proper rotation check to fix. Ported from cm-10.2 Change-Id: I75588cbce9843e180e4be7591f6a43bcec788506
* SnapdragonCamera: Initialize overlay before control-by-intentSultanxda2019-10-251-1/+1
| | | | | | | | * initializeControlByIntent() expects mVideoMenu to not be null and initializeOverlay() initializes mVideoMenu when it isn't null * Change the order the functions are called to prevent possible NPE Change-Id: I6d240892f3bd318031983243760d87ab46b25edb
* SnapdragonCamera: Modify video preview UIjunjiez2016-12-121-0/+4
| | | | | | | | Ensure all the unuseful icons are hide when Show the video preivew UI. Change-Id: Ia59bb9d50a0d4e2cd8892faa74e6074725c4776e CRs-Fixed: 1099277
* SnapdragonCamera: GPS location can't be turn On in camera settingsweijiew2016-11-241-1/+1
| | | | | | | | | In Camera2, SharedPreferences persistes GPS location value by key(pref_camera2_recordlocation_key), but gets GPS location value by key(pref_camera_recordlocation_key). CRs-Fixed: 1088262 Change-Id: I33ddeb8f20fed03449bded2760c0ad1b8e36c91c
* SnapdrgaonCamera: Putting TrackingFocus jni hookJack Yoo2016-09-271-1/+1
| | | | | | | | Adding tracking focus jni library loading part and touch event Change-Id: Ic570a09a0d93eb4b81e52334ba4a1bee2b67cb12 CRs-Fixed: 1067848
* Merge "SnapdragonCamera: Preview button should not work in secure mode" into ↵Linux Build Service Account2016-09-261-10/+11
|\ | | | | | | camera.lnx.1.0-dev.1.0
| * SnapdragonCamera: Preview button should not work in secure modeJing (Mia) Wang2016-09-121-10/+11
| | | | | | | | | | | | | | | | | | When camera is in secure mode, it will still listen to the preview event although the circle is invisible to the user. So disable the event listener of preview button. Change-Id: Ic4f1dbf32163a7f210e3f4b87599699f44e8f7b0 CRs-Fixed: 1002685
* | Merge "SnapdragonCamera:Fix Face circles are drawn at an offset" into ↵Linux Build Service Account2016-09-261-3/+4
|\ \ | | | | | | | | | camera.lnx.1.0-dev.1.0
| * | SnapdragonCamera:Fix Face circles are drawn at an offsetjunjiez2016-09-141-3/+4
| |/ | | | | | | | | | | | | | | | | | | The layoutParam of FaceView is not the same as prview surface, and cause the offset.Remove setting layoutParam in the method onStartFaceDetection() and calculate the screen ratio in the VideoModule to get the correct layoutParam for FaceView Change-Id: I9bc2759bcb50514c183628e9d4f31d2f54437dc7 CRs-Fixed: 1064295
* / SnapdragonCamera:Fix NullPointerException in monkey testjunjiez2016-08-301-2/+5
|/ | | | | | | | | When mMenuLayout was null, invoking sendTouchToMenu in VideoUI will cause NullPointerException.Add a judgement to avoid mMenuLayout to be null. Change-Id: I7278d01fe62928efd93fade919ffd474b7ce6ebc CRs-Fixed: 1060918
* Merge "SnapdragonCamera:Fix abnormal menu after switch camcorder to camera" ↵Linux Build Service Account2016-08-251-7/+9
|\ | | | | | | into camera.lnx.1.0-dev.1.0
| * SnapdragonCamera:Fix abnormal menu after switch camcorder to camerajunjiez2016-08-111-7/+9
| | | | | | | | | | | | | | | | | | VedioUI don't calculate margins for cameraControls when the screen ratio isn't 16:9, this will cause abnormal menu in the device, so alway calculate margins. Change-Id: If55008bc549c852ee499228094d49d7eb1d80c5d CRs-Fixed: 1052562
* | Merge "SnapdragonCamera: Fix circles not drawn first time switch to ↵Linux Build Service Account2016-08-181-0/+3
|\ \ | | | | | | | | | camcoder" into camera.lnx.1.0-dev.1.0
| * | SnapdragonCamera: Fix circles not drawn first time switch to camcoderjunjiez2016-07-291-0/+3
| |/ | | | | | | | | | | | | | | | | OnDraw method can't be triggered by invalidate(), so set LayoutParams of the faceview to request a layout, and then OnDraw method will work when invalidate() is called. Change-Id: I7407700befad925e73ca8ce9eaa01fc7d3de1ab0 CRs-Fixed: 1043599
* / SnapdragonCamera: Force removing preview cover for camcorderJay Wang2016-07-281-0/+9
|/ | | | | | | | 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: Add SettingsManager, scene, and filterByunghun Jeon2016-05-311-2/+1
| | | | | | | | | | | 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
* Merge "SnapdragonCamera: Fix viewfinder flashing issue in camcorder mode" ↵Linux Build Service Account2016-04-261-2/+0
|\ | | | | | | into camera.lnx.1.0-dev.1.0
| * SnapdragonCamera: Fix viewfinder flashing issue in camcorder modeJay Wang2016-04-151-2/+0
| | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "SnapdragonCamera: Adjusting view initialization" into ↵Linux Build Service Account2016-04-171-9/+13
|\ \ | |/ |/| | | camera.lnx.1.0-dev.1.0
| * SnapdragonCamera: Adjusting view initializationJack Yoo2016-04-061-9/+13
| | | | | | | | | | | | | | | | Instead of removing and adding the entire root view, changing only core surface view on module change. Change-Id: I5c39cf23b2a58280f4e4e8484865bbed0b12e1cf CRs-Fixed: 979254
* | SnapdragonCamera: Camera2 add zoom supportByunghun Jeon2016-03-301-0/+5
|/ | | | | | | Add zoom support to Camera2 CRs-Fixed: 989750 Change-Id: Id6b558ff5215f04ca7c201b1d1807521d615c353
* SnapdragonCamera: Reset menu when device is rotatedByunghun Jeon2016-03-181-3/+6
| | | | | | | Reset the settings menu when the device is rotated Change-Id: I6c4fed7207a4d26a9d7c29d18f6a7af17ef3d4f9 CRs-Fixed: 981504
* SnapdragonCamera: Add face detection icon to videoJay Wang2016-03-021-2/+80
| | | | | | | Add video face detection to developer option CRs-Fixed: 978207 Change-Id: I9308573a5a1004fc3803a955bc96f495ecbfc6c7
* SnapdragonCamera: Fix flickering Video previewByunghun Jeon2016-02-191-1/+1
| | | | | | | Fix flickering Video preview when pause/resuming Change-Id: I7e20cfdc06fc940f4fc96f408ce6ab570b0d8e64 CRs-Fixed: 971394
* SnapdragonCamera: Recording screen to be dynamicJack Yoo2016-02-061-4/+3
| | | | | | | | Let the recording rotate layout to be removed by default and added when it's needed. Change-Id: I2b910897956b914c150941276b299160e9147055 CRs-Fixed: 958510
* SnapdragonCamera: Fix the memory leak on view.Jack Yoo2016-01-301-1/+5
| | | | | | | | Keep using modules instead of creating. Don't remove the view without cleaning it. Change-Id: I260a660cac3d770f7d02dfdc1881e15490da66a0 CRs-Fixed: 958510
* Revert "SnapdragonCamera: Set navigation bar according to flag"Camera Software Integration2015-12-301-2/+2
| | | | | | This reverts commit 8fce47a5fb0277b3763b94a1fd23ea499d35e4b1. Change-Id: I955f7ad42df89d30b39b8c7c26473ceac69a9c9d
* SnapdragonCamera: Introducing mute buttonCamera Software Integration2015-12-221-0/+21
| | | | | | | Introducing audio mute button on video recording Change-Id: I69ff6fe97c4b8d76a890b5e41667dab534d69ba8 CRs-Fixed: 937239
* SnapdragonCamera: Moving Image Stabilization option to the menuCamera Software Integration2015-12-221-0/+7
| | | | | | | Moving Image Stabilization option to the menu Change-Id: I7fb025a3d1909af436e7a52ee9d602b2ce2dc68b CRs-Fixed: 937237
* Revert "SnapdragonCamera: Use floating components during video record."Byunghun Jeon2015-10-291-78/+3
| | | | | | This reverts commit 59b05fd1d75943f037aec41def16cdceb6443ecf. Change-Id: I807bdbf0fe669a989d58484ab11451c891acaf5b
* SnapdragonCamera: Use floating components during video record.Jay Wang2015-09-161-3/+78
| | | | | | | | During recording, there are only 2 widgets on UI. Directly attaching them to window manager and making main UI layer fully transparent can reduce power consumption. Change-Id: I8c4f4768ab91d50fc72080f0f6d7316ee2e60ef4
* SnapdragonCamera: show pause button for time lapse recordingLikai Ding2015-09-081-1/+1
| | | | | | | Time lapse recording now has pause/resume support, so don't hide pause button. Change-Id: Ia1b4f1bd2f571cb4a2b9f6f27f07d442eb43be61
* Merge "SnapdragonCamera: Fixing NullPointerException in onCreate of VideoModule"Linux Build Service Account2015-08-171-0/+3
|\
| * SnapdragonCamera: Fixing NullPointerException in onCreate of VideoModuleSanjeev Garg2015-08-131-0/+3
| | | | | | | | | | | | | | | | | | | | As per new open camera optimization, setContentView is called after init. But VideoModule has a dependency in initialization on setContentView as if setContentView is not called before using mFilmStripView then its value is null. To avoid this changed the location of using mFilmStripView from initialization to onResume. Change-Id: I6f0116fa82554b11b06d733b3952e6596daa50d3
* | Merge "SnapdragonCamera: Hide the top menu items on captured preview"Linux Build Service Account2015-08-171-1/+3
|\ \ | |/ |/|
| * SnapdragonCamera: Hide the top menu items on captured previewlikaid2015-08-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | The menu items will make user confused if show them on the captured preview view. Hide them in that scene, show them again after restart camera preview. CRs-Fixed: 851505 Change-Id: I16df39645209621058a644e2da17e22010a7f451
* | SnapdragonCamera: Set navigation bar according to flagByunghun Jeon2015-08-071-2/+2
|/ | | | | | Set navigation bar according to flag and set it to show by default Change-Id: I5ddb9d5f8150d7fd1d182bacb25cd02651a2db5b
* SnapdragonCamera: remove nav bar to enable full screen previewByunghun Jeon2015-07-281-97/+71
| | | | | | | Remove the navigation bar in order to take advantage of full screen. Change-Id: I25f42af825c4f3b7ad6521c2ee6d62fa4219044a CRs-Fixed: 865254
* SnapdragonCamera: Hide the preview cover when preview has startedlikaid2015-07-151-3/+7
| | | | | | | | | | | The preview cover was shown when onPause, but didn't hide after resume. That caused the video preview turned to black screen. After the camera preview starts, hide the preview cover if it is still showing. Change-Id: I79fdcd45d46d7c083a132e864bbf42649b100ae4 CRs-Fixed: 865933
* SnapdragonCamera: Fix Zoom orientationByunghun Jeon2015-06-281-0/+3
| | | | | | Fix Zoom UI's orientation Change-Id: I9c14b08729e099c263d612289ccb8b7ed757168b
* SnapdragonCamera: Popup menu doesn't support RTL modelikaid2015-04-091-2/+5
| | | | | | | | | Coordinate direction is opposite in RTL mode. Modify Coordinate direction in RTL mode. Change-Id: I3fcd42fc27d430b486f9cccdde5ecec0d0468d30 CRs-Fixed: 819310