summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* SnapdragonCamera: Add focus-mode option to camcorderSultanxda2017-01-048-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 Bestas2017-01-0449-16/+3030
| | | | Change-Id: Ibf6570431f34e33bdcec72bcae2a93aa3aabba80
* Snap: Don't crash when hardcoded gallery intent failsEthan Chen2017-01-041-8/+16
| | | | | | | * startActivity may also throw IllegalArgumentException in addition to ActivityNotFoundException when the component can't be found. Change-Id: Ia3124591c625f4c249f3c6f76a226e8178df6e9d
* Automatic translation importMichael Bestas2017-01-04103-15655/+11651
| | | | Change-Id: I8a5ba161884f24c304c4ed250f1a68f3177a5f68
* Snap: Add icons to all remaining preferencesjrizzoli2017-01-0433-55/+593
| | | | | Change-Id: I0a06b550ae4137d0e665947d8a8574c3b26fcb95 Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
* Snap: update shutter button stylejrizzoli2017-01-049-25/+73
| | | | Change-Id: Ide5fc0ff1c54e216ac7cd9bea202002d1d4dfa12
* Snap: do not restart preview during longshotscodeworkx2017-01-041-8/+9
| | | | Change-Id: I6ad439dc0be7c6e0d13ac7c22aacdc0ad559d051
* Avoid static member variable.Danny Baumann2017-01-046-16/+22
| | | | Change-Id: I3758bb219552d22768afa0af83c69c6a5460693b
* Fix transparent background color.Danny Baumann2017-01-041-1/+1
| | | | | | Got broken in commit a4a443b4e2e393d3b0d0e201075a95b02fe0c377 Change-Id: I56d09ebcf762e51c98bd979541a65dad3037e1c0
* SnapdragonCamera: Fix UI alignment glitches when nav-bar is enabledSultanxda2017-01-042-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 M2017-01-041-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 rotationSultanxda2017-01-041-2/+2
| | | | Change-Id: I534c0e36ac826b1d46befe99182bfbfb3b0f22da
* Drop new focus indicator into Camera2.Paul Rohde2017-01-0440-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. Palmer2017-01-042-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 Kondik2017-01-042-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 pngdrawablesjrizzoli2017-01-0448-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 devicescodeworkx2017-01-043-16/+44
| | | | Change-Id: Iefee1f15f5649c2f93c59fcbdedcf953e9e0bc54
* Don't do touch-to-focus for touches outside of the preview.Danny Baumann2017-01-042-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()LuK13372017-01-041-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 overlaycodeworkx2017-01-042-44/+18
| | | | Change-Id: I14c17aec6e5d582cc1f884eba40868a58cab1d03
* Snap: Fall back to default quality instead of 352x288Michael Bestas2017-01-041-9/+2
| | | | | | * Not all devices support this resolution Change-Id: I42d2037b4e32c7f5c88a60b5da1895dcb761d176
* Snap: Fix aapt warningsLars Greiss2017-01-0460-398/+0
| | | | Change-Id: I6d48105f0407ded104244eb5ace4a3ace76eb402
* Snap: support usage of preview size 2560x1440 via system propcodeworkx2017-01-041-0/+7
| | | | Change-Id: I52b0f7aab55d0a001fc1149fbd82c8188f57be9d
* Snap: Set parameters before starting previewlion07382017-01-041-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 Bestas2017-01-042-349/+8
| | | | Change-Id: Icb15ed42b62a8a85a7691c5cfc606307689cbcae
* Snap: Fix jni compiler warningsMichael Bestas2017-01-043-4/+4
| | | | Change-Id: I091a8928a9a0674c54759ff8b384259d8f16793e
* CameraActivity: Handle NPE when film strip view is nullLuK13372017-01-041-1/+3
| | | | Change-Id: I0de4ec0f2cb4653822249ea97e8a07c890fc7231
* Snap: initial materializationjrizzoli2017-01-04268-125/+1034
| | | | | | | Just for initial ship Change-Id: I8d6c0d71d1b94e6eb2f43ab962fb92de0e6c7093 Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
* SnapdragonCamera: fix screen flash on resumingLikai Ding2017-01-041-0/+7
| | | | | | | | | Currently preview cover will be hidden shortly after preview started, but if the actual first frame comes late, the main screen will flash. Register a oneshot preview callback to hide preview cover. Change-Id: I81fabf2d97c32fc2112cf4fceef4edd0872439e2 CRs-Fixed: 889021
* Snap: fix typo in PhotoModulecodeworkx2017-01-041-1/+0
| | | | Change-Id: Ied37999553d04dcc970da23ccce4dd7c9abf3b48
* Snap: 100 chars!codeworkx2017-01-041-1/+2
| | | | Change-Id: Ia48f48fcd8b8546ca68969198a60f568bae805d6
* Snap: restart preview when shutter-speed gets disabledcodeworkx2017-01-041-1/+13
| | | | Change-Id: I3884b23f1c855cfffeb20ca6e2a760732370d772
* tests: fix class nameDan Pasanen2017-01-042-2/+2
| | | | | | * fixes compile, we are not camera2 Change-Id: Ia7c463745e91ee02aa12f77c9e9d06b602692c4c
* SnapdragonCamera: Fix incorrect viewfinder ratio for 13.1MP shotsSultanxda2017-01-041-1/+1
| | | | | | Set the aspect tolerance to 0.02 to compensate for 13.1MP (4208x3120) shots. 13.1MP will now be properly registered as a 4/3 resolution when the viewfinder ratio is calculated. Change-Id: I41540a0d5fbe11f59d776a6e70e82baa463fff59
* Snap: Fix NPE when switching flash modesmyfluxi2017-01-041-3/+5
| | | | | | If device does not support AE bracketing. Change-Id: I6ec89518addbc786a01291e9f7dd3be3d83cb588
* Snap: add fallback for invalid video qualitiescodeworkx2017-01-041-0/+7
| | | | | | Might happen when updating from previous versions of Snap Change-Id: Ib52a2daff5a45c33ede1effd7cb7bed2fe61e5cc
* Snapdragon Camera: fix face blinking during caf scanGjorgji Rosikopulos2017-01-041-1/+1
| | | | | | | | | Focus overlay should be cleared only when focus scan is started without face present. Currently is cleared every time on lens movement and face flickering during scan is present. Change-Id: I7f4fb1b6032b9b65e13d902b8348ba07333d67f9
* Snap: add support for mw_continuous-picture focus modecodeworkx2017-01-044-12/+31
| | | | Change-Id: If165370b52d7454c69e2cdeb9d837d049010b0e8
* Snap: add support for shutter speedcodeworkx2017-01-046-0/+114
| | | | Change-Id: Id3393280c7c1c2f292d71587ba099e8dbafd1340
* Get rid of Holo...LuK13372017-01-041-4/+4
| | | | Change-Id: I7f350882e828a4e4829ecd794c75f05e8a80f627
* add options to restart preview onPictureTakencodeworkx2017-01-042-0/+23
| | | | Change-Id: I7ce9d6f2323e367743e6d4c9662b846d3052f2a4
* add support for luminance-condition parametercodeworkx2017-01-043-0/+29
| | | | Change-Id: Idf845a5f55abf9b72f61ac4bac59ee2258043482
* option to set manufacturer specific parameters on startupcodeworkx2017-01-042-5/+15
| | | | Change-Id: If734a7f4c25465876e657926700763b9169d786e
* add support for non-standard iso keys and valuescodeworkx2017-01-043-9/+83
| | | | Change-Id: I3a948495cdf84dae3c1734d50ff91b4a5d3d9fc0
* add support for lge-camera parametercodeworkx2017-01-043-1/+32
| | | | Change-Id: Ib31557eb15c37bc928fa259bb098924f72f39da2
* Camera2: Prevent propogating CancelAutoFocus during Video RecordingDheeraj CVR2017-01-041-1/+0
| | | | | | | | | | 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
* Camera2: Prevent autofocus when video snapshot is in progressDheeraj CVR2017-01-041-1/+1
| | | | | | | | | 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
* camera: Touch focus support for camcorderSteve Kondik2017-01-045-10/+189
| | | | | | | | | * Available when video snapshots are not supported. * Original from CodeAurora Forum. Sultanxda: Adapted to Snapdragon Camera Change-Id: I232c178430db08e7366aa9f91b4926d07e7c225d
* Snap: Fix filtering of unsupported camcorder color effectsMichael Bestas2017-01-041-0/+6
| | | | Change-Id: I365deeb17995175db873f6799cf0cde43ee61e96
* Snap: Add touch-to-focus timeout duration settingsjt11342017-01-047-5/+57
| | | | | | Signed-off-by: Michael Bestas <mikeioannina@gmail.com> Change-Id: Ib2c2c152a52b2616dd0da6f071f572d34fe64065