summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Snap: update iconjrizzoli2016-11-025-0/+0
| | | | | Change-Id: Ib155068ae1d4cb8f799fb06b4b37aa6dc4ce6417 Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
* Snap: Fix incorrect preview layout surface size in landscape modeNikita2016-11-021-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
* Snap: Remove face detection option if not supportedArne Coucheron2016-11-021-0/+14
| | | | | | | Removes the face detection option from preference list if the "face-detection" camera parameter is blank/doesn't exist. Change-Id: I2ec82ae38505b6674f1a34e98d1b1fb2dbc2a714
* Automatic translation importMichael Bestas2016-11-0240-60/+211
| | | | Change-Id: Ic01c27ccf8e2f1d063c14c605a1f6ca41fd8532a
* Snap: fix camera hang on LGE G4 when flash got usedcodeworkx2016-11-021-3/+10
| | | | Change-Id: I23e53333a0bbe2a12e64e87ec8594aeaa503e9fc
* Snap: Remove video snapshot size when not supportedMichael Bestas2016-11-021-2/+6
| | | | Change-Id: I3f4dd8b76044389ee4d0d257e47b4ac90262ccc1
* Snap: Remove auto HDR option when not supportedMichael Bestas2016-11-021-3/+8
| | | | Change-Id: Iaff1bee5ad6d48df2efe189955ba91bca8ec5c32
* camera: Keep touch focus intact during back-to-back ZSL shotsSteve Kondik2016-11-022-2/+12
| | | | | | | | * If ZSL is enabled, we should not resetTouchFocus between shots. * Instead, re-kick the timer for each shot. If I set a focus point, I want that point to stick while I take a succession of shots. Change-Id: I407bb1e248cc902355d0294f47b071cc8a32fac3
* SnapdragonCamera: Scale up bitrate for HSR recordingsSultanxda2016-11-021-1/+2
| | | | | | | | | | Currently, bitrate is only scaled up for HFR (slow-mo) recordings, not HSR (full high-speed) recordings. Scale up the bitrate for HSR to prevent video-quality degradation. Change-Id: Icc009ad4b22d990cc6df6773d965579a7d9cb091 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* Snap: Cleanup flash iconsMichael Bestas2016-11-026-2/+15
| | | | | | * Adapt some forgotten ones to material Change-Id: Ie50a7f58b78def8e1da2eae92ae458c729fd7ddb
* De-uglify menu.Danny Baumann2016-11-0222-137/+46
| | | | Change-Id: I19d8a3d5a12c4be06bced056b80ad1a354c6b761
* Automatic translation importMichael Bestas2016-11-0255-112/+2276
| | | | Change-Id: I7590024e38db54ca4ee8cab74e0683196a65089f
* Snap: Material toastsMichael Bestas2016-11-0210-3/+9
| | | | | | * Match the framework toast appearance Change-Id: I886862f3087bcd5cb1cfa76f72731292b7511d07
* Fix crash if Exif-Tag buffer-length and component-count are both 0tobigun2016-11-021-1/+1
| | | | Change-Id: Iad9b60d135b4f682c08c3bfc9698cdd10e1086ab
* Camera2: Only autofocus before a snap if we are actually in "auto" mode.Steve Kondik2016-11-021-4/+1
| | | | | | Original commit by cyanogen 7daaa72d35c1f8820117768e4b129acd030bcefb Change-Id: I51853913f6459b599176910f7f486f59972eaf36
* Snap: Fix crash when set infinite touch-focus durationMichael Bestas2016-11-022-2/+2
| | | | | | | * java.lang.Integer.valueOf(string) method can't parse hexadecimal values Change-Id: I42706db72fc9c1093a7aa16440af449f731e5176
* Snap: Expose video snapshot size settingMichael Bestas2016-11-021-0/+1
| | | | Change-Id: I6bf76a0a607e4c275a63c60b042ae239d893095f
* SnapdragonCamera: Set camera parameters before restarting previewSultanxda2016-11-021-0/+1
| | | | | | | | | Ensure that all of the updated camera parameters are propagated to the camera HAL prior to restarting the preview. This fixes the split-exposure observed when turning ZSL off and on without exiting the app. Change-Id: I392549ae7cc75b150e01cf8b635d2e3f1ad6ffb9 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* Snap: Separate default focus time between camera/videoSultanxda2016-11-023-2/+3
| | | | | | | | | | | | | | For the camera, the user expects a default tap-to-focus duration of 3 seconds with exposure locking. For the camcorder, however, the user expects a tap-to-focus duration of 0 seconds with no exposure locking, as the rapid change in exposure while recording would negatively impact the video. Separate the tap-to-focus option to reflect the recommended defaults. [mikeioannina]: Adapted to Snap Change-Id: I75bc0610f5d301c9728b4bc104b86e0fab5493fb Signed-off-by: Sultanxda <sultanxda@gmail.com>
* Snap: Cleanup focus time duration entriesMichael Bestas2016-11-022-10/+4
| | | | | | | | * Add 3s which was the default before we added the option * Remove 15/20/30s * Fix default duration Change-Id: Ieaad13f248ec9966eefb546beeb6b386156e3b11
* Snap: Add ability to set the tap-to-focus duration to 0 secSultanxda2016-11-023-9/+19
| | | | | | | | | | | Setting a tap-to-focus duration of 0 seconds allows for a quick, manual refocus of the subject without interfering with the exposure. This is particularly useful when recording videos. [mikeioannina]: Adapted to Snap Change-Id: Ie3d92e50f755c938e9725438ba5baad0d0985485 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* Snap: Add focus time support in camcorderMichael Bestas2016-11-024-0/+15
| | | | Change-Id: I5432554a40d7375ed7893c38cb2741a12cc8cc80
* SnapdragonCamera: Unlock AE/AWB after taking a photo with ZSLSultanxda2016-11-021-0/+1
| | | | | | | | | The exposure and white balance get stuck after taking photos with ZSL. Always unlock the exposure and white balance after taking photos with ZSL. Change-Id: Ia34a54522048fdd619f44ac1f6d2924ce2c3fc6a
* SnapdragonCamera: Lock AE and AWB for tap-to-focus in camcorderSultanxda2016-11-021-0/+20
| | | | | | | | Lock the auto exposure (AE) and auto white balance (AWB) when tap-to-focus is used in the camcorder. Change-Id: Ieb24e04b74a06b2390eb9302e74b4f69b1486951 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* SnapdragonCamera: Always lock AE and AWB when auto-focus is usedSultanxda2016-11-021-0/+7
| | | | | | | | Lock the auto exposure (AE) and auto white balance (AWB) when tap-to-focus is used. Change-Id: I9d8e9b4928516e8b2bad7be958e5c4849db19ab6 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* SnapdragonCamera: Add focus-mode option to camcorderSultanxda2016-11-028-27/+59
| | | | | | | User can now control the focus mode used while recording video. Change-Id: I340c01a3f88314de67ca024279672276eff453ed Signed-off-by: Sultanxda <sultanxda@gmail.com>
* Automatic translation importMichael Bestas2016-11-0249-16/+3030
| | | | Change-Id: Ibf6570431f34e33bdcec72bcae2a93aa3aabba80
* Snap: Don't crash when hardcoded gallery intent failsEthan Chen2016-11-021-8/+16
| | | | | | | * startActivity may also throw IllegalArgumentException in addition to ActivityNotFoundException when the component can't be found. Change-Id: Ia3124591c625f4c249f3c6f76a226e8178df6e9d
* Automatic translation importMichael Bestas2016-11-02103-15655/+11651
| | | | Change-Id: I8a5ba161884f24c304c4ed250f1a68f3177a5f68
* Snap: Add icons to all remaining preferencesjrizzoli2016-11-0233-55/+593
| | | | | Change-Id: I0a06b550ae4137d0e665947d8a8574c3b26fcb95 Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
* Snap: update shutter button stylejrizzoli2016-11-029-25/+73
| | | | Change-Id: Ide5fc0ff1c54e216ac7cd9bea202002d1d4dfa12
* Snap: do not restart preview during longshotscodeworkx2016-11-021-8/+9
| | | | Change-Id: I6ad439dc0be7c6e0d13ac7c22aacdc0ad559d051
* Avoid static member variable.Danny Baumann2016-11-026-16/+22
| | | | Change-Id: I3758bb219552d22768afa0af83c69c6a5460693b
* Fix transparent background color.Danny Baumann2016-11-021-1/+1
| | | | | | Got broken in commit a4a443b4e2e393d3b0d0e201075a95b02fe0c377 Change-Id: I56d09ebcf762e51c98bd979541a65dad3037e1c0
* SnapdragonCamera: Fix UI alignment glitches when nav-bar is enabledSultanxda2016-11-022-2/+2
| | | | | | | | | 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>
* Snap: Don't enable ZSL when disabling HDRGabriele M2016-11-021-1/+2
| | | | | | | Instead, restore the default value. This prevents issues on devices that don't support ZSL. Change-Id: I9c456cd6503df29800e2bc7ccaa691cb3fb42681
* SnapdragonCamera: Fix overly-aggressive auto rotationSultanxda2016-11-021-2/+2
| | | | Change-Id: I534c0e36ac826b1d46befe99182bfbfb3b0f22da
* Drop new focus indicator into Camera2.Paul Rohde2016-11-0240-344/+2193
| | | | | | | * 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
* Snap: Actually select the highest quality video by defaultChristopher R. Palmer2016-11-022-2/+9
| | | | | | | | | | | Prior to this commit Snap assumes that the HAL returns the list of supported video sizes in descending order of quality and simply picks the first one from the list as the default quality. Instead, find the first matching entry of pref_video_quality_entryvalues that the HAL indicated was supported. Change-Id: Ifea79e0e16a9015557539e098317536a32b9ff1f
* Snap: Support for HTC's HDR modeSteve Kondik2016-11-022-12/+13
| | | | | | | | | | * HDR was never actually working on CM because we did not instruct the camera to take all exposures. The HAL tells us that we'll get one JPEG, but we should snap 3 times. We handle this behavior in the framework now, but we should honor the num-jpegs-per-shutter value in the JPEG callback. Change-Id: I7124bf08985ae23b21ac4e294fb889ac4106946b
* Snap: remove captureUI pngdrawablesjrizzoli2016-11-0248-1/+0
| | | | | | | CM now supports 90/270 degrees rotated vectordrawables Change-Id: I13b36463c60430564c00bd1e36393fff7ddbfdae Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
* Snap: special handling of hdr-mode parameter for lge devicescodeworkx2016-11-023-16/+44
| | | | Change-Id: Iefee1f15f5649c2f93c59fcbdedcf953e9e0bc54
* Don't do touch-to-focus for touches outside of the preview.Danny Baumann2016-11-022-7/+1
| | | | | | | | | | Issue was twofold: - Preview size was updated from the root view instead of the preview surface view. As the preview rect is already correctly updated from the surface view, remove the redundant size update code. - Touches outside of the preview rect weren't discarded properly. Change-Id: I1c9a4398aa51a828b5362fcd7bcd5a7a7e4691db
* Move mApplicationContext to init()LuK13372016-11-021-2/+1
| | | | | | | | | | | | | | Fixes following NPE: 01-11 17:36:42.607 4329 4391 E AndroidRuntime: FATAL EXCEPTION: Thread-235 01-11 17:36:42.607 4329 4391 E AndroidRuntime: Process: org.cyanogenmod.snap, PID: 4329 01-11 17:36:42.607 4329 4391 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference 01-11 17:36:42.607 4329 4391 E AndroidRuntime: at com.android.camera.PhotoModule.updateCameraParametersPreference(PhotoModule.java:3492) 01-11 17:36:42.607 4329 4391 E AndroidRuntime: at com.android.camera.PhotoModule.setCameraParameters(PhotoModule.java:3714) 01-11 17:36:42.607 4329 4391 E AndroidRuntime: at com.android.camera.PhotoModule.startPreview(PhotoModule.java:2715) 01-11 17:36:42.607 4329 4391 E AndroidRuntime: at com.android.camera.PhotoModule.-wrap14(PhotoModule.java) 01-11 17:36:42.607 4329 4391 E AndroidRuntime: at com.android.camera.PhotoModule$OpenCameraThread.run(PhotoModule.java:265) Change-Id: I6ca0dfe402cab46dd7b6f102921062f3c7ec8d43
* Snap: support setting default preview resolution via overlaycodeworkx2016-11-022-44/+18
| | | | Change-Id: I14c17aec6e5d582cc1f884eba40868a58cab1d03
* Snap: Fall back to default quality instead of 352x288Michael Bestas2016-11-021-9/+2
| | | | | | * Not all devices support this resolution Change-Id: I42d2037b4e32c7f5c88a60b5da1895dcb761d176
* Snap: Fix aapt warningsLars Greiss2016-11-0260-398/+0
| | | | Change-Id: I6d48105f0407ded104244eb5ace4a3ace76eb402
* Snap: support usage of preview size 2560x1440 via system propcodeworkx2016-11-021-0/+7
| | | | Change-Id: I52b0f7aab55d0a001fc1149fbd82c8188f57be9d
* Snap: Set parameters before starting previewlion07382016-11-021-6/+7
| | | | | | | Old parameters are used when grabbing focus mode. Camera parameters should be set to FocusOverlayManager before starting preview. Change-Id: I908559e1c2003be47b486996b0ec016b78107468
* Snap: Remove CAF Chinese translationsMichael Bestas2016-11-022-349/+8
| | | | Change-Id: Icb15ed42b62a8a85a7691c5cfc606307689cbcae