summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/PhotoUI.java
Commit message (Collapse)AuthorAgeFilesLines
* SnapdragonCamera: Force removing preview coverJay Wang2016-08-181-0/+9
| | | | | | | | 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-4/+16
| | | | | | | | Instead of removing and adding the entire root view, changing only core surface view on module change. Change-Id: I5c39cf23b2a58280f4e4e8484865bbed0b12e1cf CRs-Fixed: 979254
* 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: hide the preview surface during suspendJay Wang2016-08-031-0/+7
| | | | | | | | | | | | 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-2/+6
| | | | | | | 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
* SnapdragonCamera: Fix the memory leak on view.Jack Yoo2016-05-261-0/+5
| | | | | | | | Keep using modules instead of creating. Don't remove the view without cleaning it. Change-Id: I260a660cac3d770f7d02dfdc1881e15490da66a0 CRs-Fixed: 958510
* Improve RTL layout behaviour.Danny Baumann2016-04-251-25/+16
| | | | | | | | | | - Swap top menu items order in RTL - Swipe in menu from the right in RTL - Make it possible to select scene/filter items in RTL - Remove/clean up some nonsense code Change-Id: I884a06f5cc6e72a1d2ee19dbdf32ce511c8466ec JIRA:NIGHTLIES-2849
* Snap: Add support for focus distanceSteve Kondik2016-04-201-1/+0
| | | | | | * Hook up available metadata to the new focus manager. Change-Id: I793df67a2682d8bb2dee994193111227dd8c8d5a
* Revert "Snap: Improve focusing"Ethan Chen2016-04-201-0/+1
| | | | | | This reverts commit 57799db3c1757618e00d331fe659ac4058624352. Change-Id: I6027d853c9791a1b14c0dffcce038b450019735a
* Snap: Improve focusingSteve Kondik2016-04-141-1/+0
| | | | | | | * Don't needlessly break touch-to-focus during various modes * Set focus parameters immediately for better UX Change-Id: I39b287562c3d2b62a1d5c8953577e366b11b8e15
* Properly respect navigation bar size when laying out menus.Danny Baumann2016-04-031-30/+28
| | | | | | | | For top level menus, add padding so all menu items can be scrolled to not be covered by the navigation bar. For sub menus, place them to not be covered by the navigation bar. Change-Id: I22961c19b7bf80a26eec03b5feabfda10e910669
* Snap: Fix incorrect preview layout surface size in landscape modeNikita2016-02-291-4/+9
| | | | | | If height is smaller than width it means that orientation sets to horizontal and we should decrease width instead height to get normal preview size. Change-Id: Ifa211ad2604fb730fb85b01ae1d7c93c9b7aa2ce
* SnapdragonCamera: Implementing SelfieFlash featureCamera Software Integration2016-02-171-0/+31
| | | | | | | Introducing SelfieFlash feature. Change-Id: I7b73d9db585038640b715092b01e037538ef68aa CRs-Fixed: 937232
* SnapdragonCamera: Calculate in top bottom margin for the previewJack Yoo2016-02-161-2/+7
| | | | | | | | Subtract top and bottom margin from the max height of the preview Let it be aligned correctly to the top and center horizontally. Change-Id: I6c5b3fde57c1a514725a6316dbe8e0c799a928d0 CRs-Fixed: 965033
* SnapdragonCamera: Adjust margin on PhotoUICamera Software Integration2016-02-161-7/+9
| | | | | | | Adjust top and bottom margin on every ratio. Change-Id: I755c15039e355d13bcc08e6463f38deba668a234 CRs-Fixed: 951525
* SnapdragonCamera: Updating preview size againCamera Software Integration2016-02-161-0/+6
| | | | | | | | 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
* De-uglify menu.Danny Baumann2016-02-151-2/+3
| | | | Change-Id: I19d8a3d5a12c4be06bced056b80ad1a354c6b761
* Fix up layout of auto HDR notice and histogram view.Danny Baumann2016-01-201-0/+12
| | | | Change-Id: I61f93c68b52d81c5e19919a5b0b894cf51dd35c4
* Remove unused menu indicators code.Danny Baumann2016-01-201-43/+0
| | | | Change-Id: I0ce48da277a532b46fdde15027f636de4d7585b7
* Avoid static member variable.Danny Baumann2016-01-201-1/+5
| | | | Change-Id: I3758bb219552d22768afa0af83c69c6a5460693b
* SnapdragonCamera: Fix UI alignment glitches when nav-bar is enabledSultanxda2016-01-201-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>
* Drop new focus indicator into Camera2.Paul Rohde2016-01-151-56/+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
* SnapdragonCamera: Hide all camera setting when countdown timer startslikaid2016-01-141-0/+12
| | | | | | | | | | | | Camera setting including module switcher scene mode filter mode and front/back camera switcher should not be used during countdown timer, since it may cause unexpected concurrent errors. Hide all the camera settings when countdown timer starts, show them again after countdown. Change-Id: I79c2add63c61d304fe0948e1c9fefe3a8c1a6fee CRs-Fixed: 900086
* SnapdragonCamera: Hide camera controllers when review captured imagelikaid2016-01-111-0/+2
| | | | | | | | | | | | The camera settings options including scene mode, color effect, switcher for back/front camera, and the beautification make-up should only be shown on camera preview, since they are not used for editing pictures. Hide these camera setting options to avoid making user confused. Change-Id: I26599c4d97043069eee9c1a069325735ba625a94 CRs-Fixed: 895938
* Snap: initial materializationjrizzoli2016-01-091-16/+1
| | | | | | | Just for initial ship Change-Id: I8d6c0d71d1b94e6eb2f43ab962fb92de0e6c7093 Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
* SnapdragonCamera: notify focus manager about surface changeLikai Ding2016-01-081-0/+4
| | | | | | | | | | If device and preview have different aspect ratio, preview doesn't occupy full screen. So SurfaceView's dimensions including margins need to be considered for transformation matrix. Otherwise touch focus area set to HAL won't match with actual user touch point on screen. Change-Id: I6b7bfa6e3cb831592615dc5dfc45622f106c99d0
* PhotoUI: Calling layoutPreview on holdersize become validJack Yoo2016-01-081-1/+3
| | | | | | | Need to ensure calling layoutPreview on max size change Change-Id: I8c49397c85c592879c38585ff66d1d24bde72d86 CRs-Fixed: 927240
* SnapdragonCamera: Make camcorder switcher icon invisible.likaid2016-01-081-0/+1
| | | | | | | | | | | When take photo for contact and back from setting ,the camcorder switcher icon will show. When take photo from contact,then set the camcoder switcher icon invisible. Change-Id: If0153650d131c5b1ee78a79c255c637aab410d8e CRs-Fixed: 884351
* Snap: Remove CAF beautification featureMichael Bestas2015-09-201-29/+2
| | | | | | | | | | | | Revert "SnapdragonCamera: Move the files to the correct location" This reverts commit c25b2d510285512dbb60547353190433f1dbb984. Revert "SnapdragonCamera: Add beautification feature to SnapdragonCamera." This reverts commit c1cea7c15b2e463f37c17f2a4ce61ce689ec7088. Change-Id: If01e4f438a58e4210a3eddf090d426895ecbae87
* Camera2: tweak volume key zoom and cleanupLars Greiss2015-09-171-11/+1
| | | | | | | | | - cleanup unused code - cleanup codestyle - add more zoom steps for smother zooming - show zoom circle indicator during zoom Change-Id: I5214fc2620a0c5167bfdc8e85f7115966c3b8bcf
* Camera: Change volume hard key button to zoom functionSu Liu2015-09-171-0/+17
| | | | | | | | Able to capture image through volume hard key button in camera application, change the function to zoom function. Change-Id: Iab9fc2492b2e2ff89cd58c21bac2f147f47b77e2
* Camera: fix preview for landscape devicesPawit Pornkitprasan2015-09-171-3/+1
| | | | | | | | | | 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
* Merge fa458f0a64a6b4412912c9177ec0fbeed084a28f on remote branchLinux Build Service Account2015-08-061-65/+71
|\ | | | | | | Change-Id: Ib0ecc314a7bd0b76c8e955402d9adfe0a4989223
| * SnapdragonCamera: remove nav bar to enable full screen previewByunghun Jeon2015-08-031-65/+71
| | | | | | | | | | | | | | Remove the navigation bar in order to take advantage of full screen. Change-Id: I25f42af825c4f3b7ad6521c2ee6d62fa4219044a CRs-Fixed: 865254
* | SnapdragonCamera: Fix Zoom orientationByunghun Jeon2015-06-241-0/+3
|/ | | | | | Fix Zoom UI's orientation Change-Id: I9c14b08729e099c263d612289ccb8b7ed757168b
* SnapdragonCamera: Popup menu doesn't support RTL modelikaid2015-04-111-2/+5
| | | | | | | | | Coordinate direction is opposite in RTL mode. Modify Coordinate direction in RTL mode. Change-Id: I3fcd42fc27d430b486f9cccdde5ecec0d0468d30 CRs-Fixed: 819310
* Merge "SnapdragonCamera: Fix capture picture not to store"Linux Build Service Account2015-04-021-1/+2
|\
| * SnapdragonCamera: Fix capture picture not to storelikaid2015-03-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | When enter gallery quickly after taking snap,the onPictureTaken in framework will not response which cause the picture can not be saved and make this bug happen. When judge the camera state is in the snap progress,not enter to gallery so that the picture can be saved. Change-Id: I79f74cdaf4c90ad71eb3f9b10a46027939fbffa7 CRs-Fixed: 811686
* | SnapdragonCamera: Add beautification feature to SnapdragonCamera.Zhang Zhenzhen2015-03-231-2/+29
|/ | | | Change-Id: Ie585527fc0b8679359753b3ff6245add3d1e5530
* Merge "SnapdragonCamera: Fix settings menu layout dirction from right to ↵Linux Build Service Account2015-03-131-7/+19
|\ | | | | | | left in RTL mode."
| * SnapdragonCamera: Fix settings menu layout dirction fromlikaid2015-03-061-7/+19
| | | | | | | | | | | | | | | | | | right to left in RTL mode. Use gravity of RIGHT instead of LEFT in RTL mode. Change-Id: I879fd0351c447b35a5dac7fe14e1698b08883583 CRs-Fixed: 801704
* | SnapdragonCamera: Draw the mouth position according to the orientationlikaid2015-03-101-0/+3
|/ | | | | | | | | | The mouth position on FaceView wasn't right in landscape mode because the orientation didn't change when rotated device. Re-correct the position of mouth when the device orientation changed. Change-Id: I81115bda8636e24484f2bda55415ebc0fa0a1f9a CRs-Fixed: 792980
* Snapdragon: Fix photo/video preview to match with captured photo/videoByunghun Jeon2015-02-201-1/+1
| | | | | | | | Photo and video preview and the captured results are different for some resolutions. Fix them to match the result. Change-Id: Ie5fb1954448fa54ffb968f2882e74bfd98c97548 CRs-Fixed: 791082
* SnapdragonCamera: circular thumbnail iconLikai Ding2015-02-171-27/+5
| | | | | | | | | | 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 (cherry picked from commit ac714ea974b4bd0ef99403def5aa7d8a3deecc5d)
* Merge "SnapdragonCamera: Add FullScreen Preview when in Panoramic shoot"Linux Build Service Account2015-02-101-1/+1
|\
| * SnapdragonCamera: Add FullScreen Preview when in Panoramic shootJay Wang2015-02-091-1/+1
| | | | | | | | | | | | | | | | | | 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
* | Merge "SnapdragonCamera: Cover the preview until the preview really starts"Linux Build Service Account2015-02-101-4/+7
|\ \
| * | SnapdragonCamera: Cover the preview until the preview really startslikaid2015-02-051-4/+7
| |/ | | | | | | | | | | | | | | | | | | When the surface was ready, the preview data may not come yet, that caused the desktop ui flashed in the camera when relaunching camera. Delay the occasion of dismissing preview cover until onPreviewStarted. Change-Id: I80b751bd19889683d784b94827b668efa817ff02 CRs-Fixed: 789076
* / SnapdragonCamera: fix preview not shown bugLikai Ding2015-02-061-0/+2
|/ | | | | | | | resizeForPreviewAspectRatio() might be called before SurfaceView's layout process, which causes SurfaceView being set to 0 width and height. Add check before adjusting SurfaceView's dimensions. Change-Id: I66bf6dfcef74253429b2c6cd1a80031d8e30f95d