summaryrefslogtreecommitdiff
path: root/camera/common/1.0/default/CameraModule.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Camera: Fix double-free in removeCameraJasmine Chen2021-02-261-1/+0
| | | | | | | | | | When a camera is removed, |hidlMetadata| takes over ownership of |metadata|. Therefore, we should not free |metadata| again. Bug: 180014486 Test: Remove an external camera, and no crashes were observed. Change-Id: I85246067f8753911cbcb58af24a46f12962226f3 (cherry picked from commit f36a439e3a97315a9f0a8661ea77aff61fb79c82)
* Camera: fix HAL1 removeCamera crashYin-Chia Yeh2020-12-031-15/+20
| | | | | | Test: partner testing Bug: 173511749 Change-Id: Ifd5fc7c63e3835945194291d161b491bd5acb342
* Camera: move preCorrectionActiveArraySize override to cameraserverShuzhen Wang2020-05-011-10/+0
| | | | | | | | This is to handle the case where HAL isn't using the hidl shim. Test: dumpsys on Pixel 2 Bug: 145300768 Change-Id: I74874a025904887cc27ec00518f4261dd24e291a
* Camera: Handle binder call failure due to static metadata sizeShuzhen Wang2019-02-121-3/+71
| | | | | | | | | For physical camera static metadata, we should reduce its size before passing it across binder if possible. Test: Camera CTS Bug: 124129552 Change-Id: I0d9129642ddcbb4c1a1c7fcf7a88bac734be4f5a
* Camera: Restructure default camera.provider 2.4Eino-Ville Talvala2019-02-071-0/+11
| | | | | | | | | | | To allow for implementation inheritance of @2.4 legacy wrapper and @2.4 external webcamera HALs in the @2.5 implementations, restructure the existing default provider to separate the service interface into a thin shim that calls the implementations. Test: Camera starts as usual after refactor, VTS tests pass Bug: 121379978 Change-Id: Id40790ed4fb495577fd2b885c706b2ed7a96d64e
* Camera: Add support for stream combination queryEmilian Peev2018-11-291-0/+10
| | | | | | | | | | | | | | | | | | Camera devices 3.5 and later can optionally support stream combination queries. These use the regular 'StreamConfiguration' structure however in contrast to normal stream configuration, the query will be much faster and will not cause any HW/SW side effects. Additionally it will be possible to run stream combination queries at any time after the camera device is open. Implement stream combination query for the external camera provider. Bug: 111593096 Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --skip-preconditions --module VtsHalCameraProviderV2_4Target -l INFO Change-Id: I59ec936d17dabc89ba49407a750df1cd2e61b145
* Camera: Fix a crash in removeCamera()Shik Chen2018-11-141-2/+2
| | | | | | | | | | | mCameraInfoMap is a KeyedVector, we should use .valueFor() instead of operator[] to get the value from a key. Bug: 118364955 Bug: 118359878 Bug: 77833131 Test: Plug and unplug the external camera 10+ times. Change-Id: Ibf48e5a78b16bdeba08b02242379eaf571fc76cb
* VTS: Add test for device version 3.5Shuzhen Wang2018-10-041-3/+8
| | | | | | | | | | | | | | | Also includes: - Add test for getPhysicalCameraCharacteristics. - Doc update for the new HIDL API. - Tighten boundary check for camera ID in CameraModule. Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --skip-preconditions --module VtsHalCameraProviderV2_4Target -l INFO Bug: 79523700 Bug: 115969176 Bug: 116512585 Change-Id: I051d1b0c91834781a1f8d893ed5ebfa579b03774
* Camera: Add support for physical camera characteristics queryShuzhen Wang2018-09-131-0/+35
| | | | | | | | | | | - Add version 3.5 for ICameraDevice for physical camera characteristics query. - Add version 3.5 for ICameraDeviceSession to work around HIDL versioning bug. Test: Camera CTS Bug: 79523700 Change-Id: I8df6cdd4ee6ac5755758510c0dc1ea1cec31aa73
* Camera: use compact copy when necessaryYin-Chia Yeh2018-05-231-1/+1
| | | | | | | | | When camera HAL sends redundant metadata (reserved space >> actual used space), create a compact copy to save IPC overhead. Test: Camera CTS/camera app smoke test Bug: 79838637 Change-Id: I02657deb377c43c65d111d1fc894eb3c20ad3b8f
* camera: add support for camera removalGuennadi Liakhovetski2018-01-221-0/+7
| | | | | | | Add camera removal support to CameraProvider and CameraModule. Change-Id: I047e486d1665ba9e0b1455f77a7bbbb5e0d66653 Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
* Camera: call setCallback before open_legacyYin-Chia Yeh2017-01-311-2/+4
| | | | | | | | Some open_legacy implementations require a valid callback. Test: the failing open_legacy call succeeds Bug: 34854786 Change-Id: I461c7622bdf46a7cb7febfb7eeeb083288b4af03
* Camera: Add default camera provider 2.4Yin-Chia Yeh2017-01-051-10/+24
| | | | | | | | | Supports legacy camera HAL modules; also exports ICameraDevice instances. Test: compile Bug: 30985004 Change-Id: I2b9624a412de95dd43979a5e6650b170010c577a
* Camera: default implementation of device 3.2Yin-Chia Yeh2017-01-051-0/+437
Test: compile Bug: 30985004 Change-Id: Ibb48673840de6a5f7c75dc6993d5457a272177a2