summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'lineage-18.1' of ↵HEADs12.1Julian Veit2022-03-2072-3643/+4337
|\ | | | | | | | | | | https://github.com/LineageOS/android_packages_apps_Snap into HEAD Change-Id: Ia09760085480a6a028c8969f16f503070ab816e5
| * Snap: api2: reduce unneeded animationsTimi2021-05-131-3/+13
| | | | | | | | | | | | * Only hide/show the menu when necessary Change-Id: Id033e6bfb6e48cc907f0f53c5764a1df28361909
| * Snap: api2: add QR scanner modeTimi2021-05-101-4/+18
| | | | | | | | Change-Id: I99a11907ab5bdd04e6c3f9780f8df18265e7d4bf
| * Snap: api2: update promode iconsTimi2021-05-101-6/+5
| | | | | | | | | | | | * Added icons are from https://materialdesignicons.com/. Change-Id: Ibea13476f4bb98089ff1a86540dd3c4913b84edf
| * Snap: api2: close mode switcher on promode eventsTimi2021-05-063-65/+115
| | | | | | | | Change-Id: Id65a9f6bf45edf3d2d4267205050958a7b945f37
| * Snap: api2: close mode switcher on back-keypressTimi2021-05-061-0/+4
| | | | | | | | Change-Id: I3b846031c5cca85dac40eb053dbae54e403cae26
| * Snap: use translucent control background on 16:9Timi2021-05-052-2/+6
| | | | | | | | Change-Id: If7cb54fdb7705c12086c39c81472f735a7f028de
| * Snap: notify user if HFR will not workTimi2021-04-052-0/+11
| | | | | | | | | | | | * Nice to know Change-Id: I649b3b3930ba7fe15be2b130b8bff708921789cd
| * Snap: reorganize api2 layoutTimi2021-04-048-67/+253
| | | | | | | | | | | | | | * added icons from https://material.io/resources/icons/ except ic_switch_{hfr,sat} are self made Change-Id: I9ffc276915297f0cbb31258d325b2459bf20dc1e
| * Snap: Fix SD card visibility for secondary usersArne Coucheron2021-03-261-3/+3
| | | | | | | | | | | | | | | | SD card should not be available for secondary users. It isn't though, but the storage option was visible in settings menu. Reverting this code block to pre-11 Snap seems to fix that. Change-Id: I23ec205ca89a4f96ec69a4a07a12560d76f6af18
| * Snap: Save SDCard photos to legacy pathKevin F. Haggerty2021-03-261-16/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes to fw/b make this possible again. This is a squash of: * Revert "Fix FC of external SD Card path null" This reverts commit 6efe10b068793d6180c851b7443bea2434df47aa. * Revert "Fix issue of can't save image in sdcard on P" This reverts commit 9b4755c0ce090a14dfb7599a238b044dcdfd5ee4. Change-Id: If9721dad3cf63c2d4e155827676f5e78eeb821d9
| * Revert "Snap: Remove saving to sdcard"Arne Coucheron2021-03-2620-9/+413
| | | | | | | | | | | | This reverts commit ae0a8f6a11d4be8234dbe6708676405f98882c95. Change-Id: I47335bd39d4b8a96658a14fd51af6c3d581327af
| * Revert "Snap: Let mediaprovider add entry for newly taken photos"Arne Coucheron2021-02-145-35/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't seem to work quite right. * Take a picture, click on thumbnail, it shows the previous taken picture. * Take a panorama picture, open our gallery app, the picture is not at the top but way down the list. Reverting this, everything appears to work as intended again. This reverts commit 051cdd1d65198a3ecc486fd754c23f3ec57f1eb8. Change-Id: I394c60285de20445670ec1bb47f54604c30602ee
| * SnapCam: Fix thumbnail not updatejunjiez2021-02-091-27/+5
| | | | | | | | | | | | | | | | | | ContentObserver can't in background now, remove it and update thumbnail every time after camera app resume. Change-Id: I78388953f156e794b7d764abb52d38ffe7a45630 CRs-Fixed: 2758579
| * Snap: there is no camera icon shown if have no camera in first boot upzhang sanshan2021-01-151-17/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | image below scene: there is only one external usb camera connect to board, and the usb camera is not connected in first boot up. the camera will not show again even you connect the usb camera to board again in later boot up. the old logic is: system will call DisableCameraReceiver when boot complete. If there is no valid camera reported from camera hal in first boot up, the camera icon will not show again. It will disable component DisableCameraReceiver in first boot up. new logic after apply this patch: system will decide whether show camera icon according that system have valid camera in every boot up rather than first boot up. Bug: 160797712 Signed-off-by: zhang sanshan <pete.zhang@nxp.com> Change-Id: I49ac01feeb7367aa97bed087e7cfba6af6cc05c7
| * {Capture,MultiCamera}UI: Match video stop icon to API1 modePaul Keith2020-12-252-2/+2
| | | | | | | | | | | | * This also fixes the inconsistencies with the start icon Change-Id: I40608806268af954ab5293197f0c2b0bd4977e45
| * Snap: chmod 0644Paul Keith2020-12-2450-0/+0
| | | | | | | | Change-Id: I39c06bdd19d6e4a972f2ade976543781bf2bbe5d
| * Snap: dos2unixPaul Keith2020-12-245-3394/+3394
| | | | | | | | Change-Id: Id16d878b4f5976dd92b6e09a946a06cd1d02b748
| * CaptureModule: Only look for ssm capture results if ssm is enabledPaul Keith2020-12-241-15/+21
| | | | | | | | | | | | | | * Otherwise, this will crash with an IllegalArgumentException * While we're at it, catch the exception anyways Change-Id: I41ff60006e94428236293391ce20173c4cd775d4
| * CaptureModule: Fix init sequencePaul Keith2020-12-241-10/+13
| | | | | | | | | | | | | | | | | | | | | | * Now that we derive camera IDs from scene mode, we must set the current scene mode during the init process * Also, set the next mode index so that the mode default is correct when switching cameras * Additionally, correctly set the current mode index for posterity * This is done before mSettingsManager.init() to match restartAll() Change-Id: I9286d8e50ff956bf3e6903b8db4320fff24c04f4
| * SnapdragonCamera: Correct the mBackCameraId and mFrontCameraIdxianming wang2020-12-211-2/+3
| | | | | | | | | | | | Correct the mBackCameraId and mFrontCameraId. Change-Id: I10904c601801c89b89f1fb21468d5c7a420bfb4a
| * Snap: Fix swipe right to open menuArne Coucheron2020-12-211-3/+10
| | | | | | | | Change-Id: I74b9230e7c63813b3e8b716acf66b10c835f12b5
* | snap: Do not bind with lineage-sdkdoc HD2020-12-211-1/+1
|/ | | | Change-Id: Ia46ef71c443479bae7c88af4f7e15aee84ebaf61
* Snap: Remove saving to sdcardMichael W2020-11-3020-412/+9
| | | | | | | | | * Doesn't work anymore since the introduction of scoped storage * Giving the users this option doesn't make sense anymore -> Not available >> Doesn't work Change-Id: I763ff23b04cd093f15f439a91160c2b086b18f72
* Snap: Let mediaprovider add entry for newly taken photosLuK13372020-11-265-70/+35
| | | | Change-Id: I483daee666c82a794c43407c3ce7f8685e300d12
* Snap: Report device orientation to Audio HALBeYkeRYkt2020-11-261-0/+9
| | | | | | | * Our Audio HAL can connect microphones depending on the orientation of the device. Let him know about it. Change-Id: I56cf0a96cac0226222d666aa3910ea190e3630ca
* CaptureUI: handle secure capture when reviewing picturesAlexander Martinz2020-11-261-4/+11
| | | | | | Test: run cts --skip-preconditions -m CtsProviderUiTestCases -t android.providerui.cts.MediaStoreUiTest#testImageCaptureWithInadequeteLocationPermissions Change-Id: I492103ff68036f4c3474d4172a3ba31ab19efe1b Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* Snap: catch NumberFormatException in getDeviceSocIdJan Altensen2020-11-261-1/+2
| | | | | | * non qcom devices might return a non numeric value Change-Id: I6dcdab18965778053bf10291c9fa86e21d048c4f
* Snap: Convert leftover persist.camera.* to persist.sys.camera.*Michael Bestas2020-11-262-3/+7
| | | | | | Avoid SELinux denials with property isolation enabled Change-Id: I10bc0a406b3702d24ccede845a05ad6eb205b062
* Snap: Handle SDCard-removed caseMichael W2020-11-261-0/+8
| | | | | | | | | | | | | | * When the storage path has been set to SDCard but the card has been removed, there is currently no way to alter the setting and to get your cam to work properly again * Check the writeable-state of the sdcard on startup and fall back to using the internal storage in that case * The startup-flag is used to keep the current behaviour with removed SDcards while cam is still active * Fixes: https://gitlab.com/LineageOS/issues/android/issues/1376 Change-Id: Ib408883a6810693c93488f8a02fe061c56932d1d
* Snap: Don't remove scene modes!dianlujitao2020-11-263-7/+2
| | | | | | This partially reverts commit 8acb462b46c930bf6f6c6192012a11f2e127ecc4. Change-Id: I5864924938189b17efa9a496912a51b9c2b233c1
* Snap: Perform null check on AF state in updateCaptureStateMachinedianlujitao2020-11-261-0/+5
| | | | | | | | | * Some camera HAL implementations don't push AF state to urgent metadata. E.g. for QCOM camera HAL this happens only after https://source.codeaurora.org/quic/la/platform/hardware/qcom/camera/commit/?h=LA.UM.7.2.r1-07700-sdm660.0&id=d276a953295364b967c36038362c1e7ea268bdad * Fix crash on capture after c724bc35a9c5f3b36ce36a2081559e2644993da4 Change-Id: I8980fd3fb7d7db4f61189281580ecb17778602df
* Snap: Fix getting supported ISO with legacy HALdianlujitao2020-11-261-6/+21
| | | | | | | | * org.codeaurora.qcamera3.iso_exp_priority.iso_available_modes is QCOM specific vendor tag and not implemented in legacy HALs. * Restore pre-17.0 behavior by falling back to AOSP camera characteristics Change-Id: I299e7bfb867496c63ec873ea4cea29b0b8bb595f
* Snap: Don't query camera hardware on camera button actionLuK13372020-11-261-11/+0
| | | | | | | | * Android 10 does not allow idle apps to do anything camera related so lets just launch the app unconditionally instead. Change-Id: I117b1442e5ca107205d4b69cbfd32d5375995d78
* Fix NPE when removing RAW settingLuK13372020-11-261-1/+1
| | | | | | | * That preference is already gone when developer options are disabled. Change-Id: I040d153561cce691e8e5689bb810585071cb5836
* Fix use of deprecated SoundPool API in SnapJean-Michel Trivi2020-11-264-17/+45
| | | | | | | | | | | Don't use stream types for operations other than volume control [Chippa_a]: Extended for Snap Bug: 122901916 Test: verify logcat doesn't show warnings, see bug Change-Id: Id5b4f3b3c56c61a2f00172a470410e0670ce81b4 Signed-off-by: Chippa-a <vusal1372@gmail.com>
* Stop using deprecated Canvas APIs.Derek Sollenberger2020-11-261-1/+1
| | | | | | Bug: 73777445 Test: compile Change-Id: Ib8a0b7dcbe606c2a1a9df26549cc805c6eeb892b
* Snap: Fix Undo button behaviourNBruderman2020-11-261-1/+2
| | | | | | | | | | | | | | The undo behaviour depends on if the camera present secure settings or not. If secure, it should have 1 placeholder. 0 in other cases. Repro (for non secure cameras): 1. Leave only 3 pictures on the album. 2. Delete one picture, it will work fine. 3. Leave only 2 pictures on the album. 4. Try to delete, and you will go straight to the camera, without the undo pannel showing up. Change-Id: I360076381867a74628ffa492065ccf2ca53c72d6
* Snap: allow to disable image stabilization per devicecodeworkx2020-11-261-0/+6
| | | | Change-Id: I4317f84285bdf97ba321ad5ddba7453f2b5d3b0c
* Snap: Fix picture size preferencedianlujitao2020-11-261-1/+3
| | | | | | | | * Picture sizes are dynamically generated and no longer come with initial entries, thus reloadInitialEntriesAndEntryValues() would just set it to empty. Change-Id: I4d601bdf0faf8065ada7ea252c9d6120a230a420
* Snap: make support for bokeh mode configurable per devicecodeworkx2020-11-261-3/+20
| | | | | | Support is disabled by default. Change-Id: I5ab480e4eed9d314ae6f5ef78c5246397ebbe587
* Snap: Always allow 100% JPEG quality to be setZhao Wei Liew2020-11-261-17/+11
| | | | | | | | | | Previously, we were checking if the selected JPEG quality was 100% and not setting the JPEG quality if some conditions were met. There isn't any history nor explanation on why we weren't setting the JPEG quality to 100%, so just remove the redundant check. Change-Id: Ie0ab555ad35942bd115751fd10e4f4c11fa7a76d
* Snap: Disable debugging of double open issueWang Han2020-11-261-1/+1
| | | | | | * Slows down camera opening and useless for us Change-Id: I2826704afc6b15fc4ca51ee0d29553f5b3dfb858
* Snap: Add missing NULL check in updatePictureAndVideoSize()Wang Han2020-11-261-3/+5
| | | | | | | * Fixes crash when enabling Qcfa Change-Id: I506a1d7da0b91bc48484bd251e0c6c9042962421 Signed-off-by: Chippa-a <vusal1372@gmail.com>
* Snap: Check various feature support before applyingWang Han2020-11-261-2/+14
| | | | | | * Fixes crash on devices which does not support it Change-Id: I39b9424ad200db6819a11aac6c319a22542d4131
* Fix get aePref is null in PhotoMenujinwu2020-11-261-1/+1
| | | | Change-Id: I225ab63336302ff0b3b863e9cb6d2ba74ed0ac3e
* Fix to change default mode to Camera1 HAL1zhuw2020-11-261-1/+1
| | | | Change-Id: Id8f03260cf4753206240cf829eea9be5735b90e6
* SnapdragonCamera: Fix parameters NullPointerExceptionxianming wang2020-11-261-0/+1
| | | | | | | Fix parameters is NullPointerException in China App Stress. CRs-Fixed: 2307806 Change-Id: I71fff4cb32361ad0e66d6460ca8dc01167c8a009
* SnapdragonCamera: SetParameters use the mParameters Objectmingwax2020-11-261-1/+1
| | | | | | | | User should use the mParameters take the place of mCameraDevice. getParameters. In order to update parameter in time. CRs-Fixed: 2054913 Change-Id: I605f05322a2a6072c40014f7ab472802c0350107
* DisableCameraReceiver: Initialize CameraHolder before usedianlujitao2020-11-261-0/+14
| | | | Change-Id: If4c38d19d3c88317ddd4f651acea5e036dbe8544