summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CameraSettings.java
Commit message (Collapse)AuthorAgeFilesLines
* CameraNext: don't crash when pref is not booleanKeith Mok2018-01-261-4/+8
| | | | | | | | | | | | | | | | | | | | | In some situation, a portion of pref (enableRecordingLocation) is created without first calling upgradeGlobalPreference first. Leaving the pref without the version field and makes the application thinks that the pref is in old version. When it tries to do an upgrade on the pref later, it tries to getBoolean for that location field, but that location field is already in string format, making getBoolean throws an exception. The best is to call upgradeGlobalPreference and upgradeLocalPreference when the application starts. However it should be no harm just add a simple guard in getBoolean to avoid that sitation. FEIJ-1258 Change-Id: Ic73078556b1a198a58968806091f8b0afd1ad6cc
* snap: Fixes for advanced features and scene modesSteve Kondik2018-01-261-1/+20
| | | | | | | | * Get rid of the annoying toast when longshot is disabled * Add support for ChromaFlash as a scene mode * Adjust overrides for various scene modes Change-Id: Ifda1990f4e9b3435655664f2a6c2b31fc3ae23fa
* Snap: Add focus time support in camcorderMichael Bestas2018-01-261-0/+1
| | | | Change-Id: I5432554a40d7375ed7893c38cb2741a12cc8cc80
* SnapdragonCamera: Add focus-mode option to camcorderSultanxda2018-01-261-0/+6
| | | | | | | User can now control the focus mode used while recording video. Change-Id: I340c01a3f88314de67ca024279672276eff453ed Signed-off-by: Sultanxda <sultanxda@gmail.com>
* CameraNext: dynamically generate available photo resolutionsWilhelm Fitzpatrick2018-01-261-19/+208
| | | | | | | | | | Instead of depending on a large matching table, generated the list of picture sizes to show to the user directly from the supported list returned by the camera. The list is filtered to remove uselessly small resolutions on modern devices, to group resolutions by aspect ratio, and to filter out fairly similar sizes. Change-Id: I47a67a89786543baec133cf7e71df9819793ebac
* Snap: Remove storage menu if no external storage availablemaxwen2018-01-261-2/+9
| | | | | Change-Id: I9807c7f9303f17eb971ff1a82fbd35dfbdbfa529 Signed-off-by: Zdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>
* Snap: Remove face detection option if not supportedArne Coucheron2018-01-261-0/+14
| | | | | | | Removes the face detection option from preference list if the "face-detection" camera parameter is blank/doesn't exist. Change-Id: I2ec82ae38505b6674f1a34e98d1b1fb2dbc2a714
* Snap: Remove video snapshot size when not supportedMichael Bestas2018-01-261-3/+7
| | | | Change-Id: I3f4dd8b76044389ee4d0d257e47b4ac90262ccc1
* Snap: Remove auto HDR option when not supportedMichael Bestas2018-01-261-3/+8
| | | | Change-Id: Iaff1bee5ad6d48df2efe189955ba91bca8ec5c32
* Snap: Fix filtering of unsupported HFR/HSR modesMichael Bestas2018-01-261-3/+26
| | | | Change-Id: I7721613f10a24cbd36eb0a3c5b0a46a98e828679
* Snap: Actually select the highest quality video by defaultChristopher R. Palmer2018-01-261-1/+8
| | | | | | | | | | | 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: Remove touch AF/AEC optionSteve Kondik2018-01-261-7/+0
| | | | | | | | * Drop the use of the touchaf-aec parameter entirely. No camera needs this anymore. Change-Id: I83154a75e5375901dc6c0fc93aef23637cfdf425 (cherry picked from commit 8ba41f452222c87a733fd2d045f9c513fd8d7799)
* Snap: special handling of hdr-mode parameter for lge devicescodeworkx2018-01-261-0/+3
| | | | Change-Id: Iefee1f15f5649c2f93c59fcbdedcf953e9e0bc54
* Snap: Fix NPE when parameters.getSupportedVideoSizes() is nullMichael Bestas2018-01-261-102/+21
| | | | | | | | * Older devices do not support parameters.getSupportedVideoSizes() * Assume that the device reports valid profiles in media_profiles * Remove dead code Change-Id: Ic3488b6762496bd9498bc6bf8b48b2a2212bad51
* Snap: add support for shutter speedcodeworkx2018-01-261-0/+20
| | | | Change-Id: Id3393280c7c1c2f292d71587ba099e8dbafd1340
* Snap: Add touch-to-focus timeout duration settingsjt11342018-01-261-0/+1
| | | | | | Signed-off-by: Michael Bestas <mikeioannina@gmail.com> Change-Id: Ib2c2c152a52b2616dd0da6f071f572d34fe64065
* add support for luminance-condition parametercodeworkx2018-01-261-0/+4
| | | | Change-Id: Idf845a5f55abf9b72f61ac4bac59ee2258043482
* add support for non-standard iso keys and valuescodeworkx2018-01-261-1/+65
| | | | Change-Id: I3a948495cdf84dae3c1734d50ff91b4a5d3d9fc0
* Snap: Fix filtering of unsupported camcorder color effectsMichael Bestas2018-01-261-0/+6
| | | | Change-Id: I365deeb17995175db873f6799cf0cde43ee61e96
* Camera2: Add option to set max screen brightnessMichael Bestas2018-01-261-0/+1
| | | | | | * Set maximum screen brightness while the user is inside the camera app Change-Id: I8b16ba47a933bc7d6b0c1cd62bfd6ca54875ce1e
* Camera: Cleanup hardware key handlingMichael Bestas2018-01-261-0/+4
| | | | | | | | | | | | | | | | | * Fix power shutter behaviour in camcorder mode * Disable volume change while in panorama mode, volume buttons should only handle camera operations while in the camera * Add camera/power/volume key shutter handling in panorama mode On devices with a hardware camera key: * Disable power & volume shutter features * Volume buttons control the zoom On devices without a hardware camera key: * When power shutter is disabled, volume buttons control the shutter (like AOSP) * When power shutter is enabled, volume buttons control the zoom Change-Id: I141946d5b6f5aec8b1e9a9f99270d30295596079
* Camera: Powerkey shutter (2/2)Michael Bestas2018-01-261-0/+4
| | | | | | | | | | | | | | Ported from cm-10.1 Including cm-10.1 camera commit: aa4ae80a41fbab763891c5ef6d67a9e5b4bb981b Don't mess around with pref local ID for power shutter initialization. Includes http://review.cyanogenmod.org/56986 [mikeioannina]: Updates for L Signed-off-by: Michael Bestas <mikeioannina@gmail.com> Change-Id: I0992baa558eefd306d00fbece59cb5c512d9448b
* Camera: separate settings for color effectsjt11342018-01-261-0/+1
| | | | | | | Store color effect settings for the camera and video camera in their own separate preferences. Change-Id: I8faa59b8663154737910b338906d27f9736d5ad9
* Camera2: Remove CAF video duration codeMichael Bestas2018-01-261-20/+0
| | | | Change-Id: I583e212f3c43a5ddf80fdb16557b3ddd9e3161c2
* Camera2: Don't report incorrect supported picture formatsLars Greiss2018-01-261-1/+1
| | | | | | | | | | | If camera HAL does not return valid picture formats do not show wrong defaults Currently it falls back to jpeg and raw to choose for the user. All our devices which do not have a proper return of picture format only support jpg. So remove the entry to choose in this case completely Change-Id: Ib4e4094ba0a57e7751f6568f6ec3c3f1dfc1ffb8
* Camera: Fix saturation, contrast, sharpness parametersEthan Chen2018-01-261-3/+3
| | | | | | | * Old-style QCOM HALs use <setting>-max, new style HALs use max-<setting> for these parameters. Change-Id: I3b0dbd04f072cb69d09c44b5b3af1097560205b3
* Camera2: More thorough compatibility fixesRyuinferno2018-01-261-3/+6
| | | | | | | Certain chipsets (such as omap) have contrast, sharpness and saturation set, but no max integer given for those Change-Id: I58efaef4d0a511aefc803a440e0c3aa3dbdc9483
* camera: Proper fix for the missing video-sizes issueSteve Kondik2018-01-261-2/+5
| | | | | | * Just honor the defined camcorder profiles. Change-Id: I83e8fe2ca9bb489332f37767906bc7c56389f949
* camera: Check if video sizes are availableSteve Kondik2018-01-261-2/+3
| | | | | | | * Some drivers don't report video sizes and we should avoid using fine resolution lookup, otherwise a crash results. Change-Id: I8010e66d1a3a5e6f8a505ff3b50146cd24fc2b9c
* camera: Add all focus modes, scene modes, and color effects.Steve Kondik2018-01-261-4/+2
| | | | Change-Id: I255d73b6e221655f9592047ccf848460d985c3b3
* camera: Cleanup and compatibility fixesSteve Kondik2018-01-261-0/+12
| | | | | | | * Don't crash for unavailable integer parameters * Kill logspam Change-Id: I6dbcf5560f96ce6173a847501721f589766889bc
* SnapdragonCamera: Add video encoder bit rate for 3840x2160@60FPSWeijie Wang2017-07-261-0/+4
| | | | | | Add video encoder bit rate for 3840x2160@60FPS Change-Id: Ieb7dc37dc658462b06dd316553fd6478b5132d01
* SnapdragonCamera: Move property to PersistUtilWeijie Wang2017-07-211-1/+2
| | | | | | Move property to PersistUtil Change-Id: I0735d8215ba302ef4c632d6a15ad95a04cd259a0
* SnapdragonCamera: Hide Chromaflash on Android Oweijiew2017-04-201-0/+2
| | | | | | | Hide Chromaflash on Android O Change-Id: I0a1e8f6db21fc3c9009fb50c3c090d2cd5c820d1 CRs-Fixed: 2027214
* SnapdragonCamera: Wrapper for QC APIweijiew2017-03-291-24/+52
| | | | | | | | | 1. Wrapper for Parameters 2. Wrapper for CameraInfo 3. Wrapper for CamcorderProfile 4. Wrapper for Camera 5. Wrapper for ExtendedFace Change-Id: I8c8605db3696bffc4d975c0bb6f74944ed23a6bd
* Merge "SnapdragonCamera: Add zoom option to developer option" into ↵Camera Software Integration2017-02-281-0/+20
|\ | | | | | | camera.lnx.1.0-dev.1.0
| * SnapdragonCamera: Add zoom option to developer optionJay Wang2017-02-191-0/+20
| | | | | | | | | | | | | | | | For automation testing, we need a way to adjust the zoom without using the pinch gesture. Therefore, adding zoom option preference to the developer option. Change-Id: I37f8c1b4f51682cb398d0a5f779f45128bdc19ec
* | SnapdragonCamera: Fix a green line in BestPicture and Ubifocusmingwax2017-02-221-0/+0
|/ | | | | | | | When mStride > mWidth, use the whole yuv bytebuffer to save JPG. Add properties to control whether to print log. CRs-Fixed: 1101620 Change-Id: I18cd27de8be542fc9440be6071ee55149b598ac5
* SnapdragpmCamera:Support W+T bokeh featurejunjiez2017-01-191-0/+64
| | | | Change-Id: Ic681e0bcfabddcb313943d64e4487f15b934bd50
* SnapdragonCamera: revert CR1088821weijiew2017-01-031-4/+0
| | | | | | | | Revert "SnapdragonCamera: Camera switches from bayer and mono on switching to front camera" CR1088821 issue only fix in C7, revet on mainline CRs-Fixed: 1088821 Change-Id: Iaf97765c1e9e77a1be92010b9503c7066ef21b96
* SnapdragonCamera: Camera switches from bayer and mono on switching to front ↵weijiew2016-11-241-0/+4
| | | | | | | | | | | camera Dual camera was not supported, camera was switched one by one. Solution: only select bayer when user switch front camera to rear camera Change-Id: I814552aed1ee8889f309cb5de8df84f9bee42093 CRs-Fixed: 1088821
* SnapdragonCamera: Adjust video encoder bit rate and add 60fps supportJay Wang2016-11-071-0/+10
| | | | | | | | - Configure the video encoder bit rate to the recommended value - Add 60fps video frame rate support Change-Id: I477487c4c4fab5479534896d90e08c3eadddc54f CRs-Fixed: 1074187
* SnapdragonCamera: run-time updates the video encoder listJay Wang2016-11-071-2/+2
| | | | | | | | | | | Update the supported video encoder list based on video resolution. In addition, re-factor the run-time filtering of HFR list to follow the same approach. Finally, simplify the beautification dependency handling logic by fixing the supported video resolution to 720x480. CRs-Fixed: 1081552 Change-Id: I32b96f7ccf152ddf01400e9564e072e1bf1b68d1
* SnapdragonCamera: Add OneUI to Camera2Byunghun Jeon2016-09-271-5/+7
| | | | | | | | | | Add new UI called OneUI to Camera2. It replaces icons, adds 2 new activities for scene menu and setting menu. There is no module change anymore Change-Id: If712e6af7bbc29726dae387168aefbcd2d7c1ea9 CRs-Fixed: 1066519
* SnapdragonCamera: Shutter sound menuJack Yoo2016-08-161-0/+1
| | | | | | | Shutter sound menu to choose on/off Change-Id: Id5ea22a837cd658c3278160a21c74b519f1bc212 CRs-Fixed: 1050663
* SnapdragonCamera: Selfie Mirror modeJack Yoo2016-08-161-0/+1
| | | | | | | Selfie mirror menu for front camera1. Change-Id: I2e6845c9e25481106f51772b5d3dfd0a971a2be7 CRs-Fixed: 1050663
* Merge "SnapdragonCamera: Filter duplicate picture resolution" into ↵Camera Software Integration2016-06-201-1/+1
|\ | | | | | | camera.lnx.1.0-dev.1.0
| * SnapdragonCamera: Filter duplicate picture resolutionByunghun Jeon2016-06-091-1/+1
| | | | | | | | | | | | | | | | | | Filter picture resolution with duplicate name. There can be 2 different picture resolutions with the same name. Take only the first one. Change-Id: I9a472d958b829d3dce9559d4fcacb5d0dfd3e598 CRs-Fixed: 1025767
* | Merge "SnapdragonCamera: Fix initial camera id" into camera.lnx.1.0-dev.1.0Camera Software Integration2016-06-201-5/+0
|\|
| * SnapdragonCamera: Fix initial camera idByunghun Jeon2016-06-091-5/+0
| | | | | | | | | | | | | | | | Fix initial camera id to proper value. Previously it was always using 0 as initial id Change-Id: Ifc8d63ba2bccb4afcc25445d6713e28732e7deb4 CRs-Fixed: 1018118