summaryrefslogtreecommitdiff
path: root/camera/common/1.0/default/CameraModule.cpp
AgeCommit message (Collapse)Author
2021-03-11Merge SP1A.210311.001Scott Lobdell
Change-Id: Icc232e4382ad1df43912307e19aa40f579396b6b
2021-02-26Camera: Fix double-free in removeCameraJasmine Chen
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)
2020-12-07Merge SP1A.201207.001Daniel Norman
Change-Id: Icc8aa349fe720f7e2fed2880a686f87905d61be0
2020-12-03Camera: fix HAL1 removeCamera crashYin-Chia Yeh
Test: partner testing Bug: 173511749 Change-Id: Ifd5fc7c63e3835945194291d161b491bd5acb342
2020-05-07Merge RP1A.200507.001Steven Laver
Change-Id: I83911d0e47dcccbe00e1a04725b18b09c956c802
2020-05-01Camera: move preCorrectionActiveArraySize override to cameraserverShuzhen Wang
This is to handle the case where HAL isn't using the hidl shim. Test: dumpsys on Pixel 2 Bug: 145300768 Change-Id: I74874a025904887cc27ec00518f4261dd24e291a
2019-11-01Add call to get camera device versionPeter Kalauskas
Bug: 79374634 Test: Start camera CRs-Fixed: 2545487 Change-Id: Iaf0300d0116d5da0694105c82d1e4282f626cb86
2019-02-12Camera: Handle binder call failure due to static metadata sizeShuzhen Wang
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
2019-02-07Camera: Restructure default camera.provider 2.4Eino-Ville Talvala
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
2018-11-29Camera: Add support for stream combination queryEmilian Peev
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
2018-11-14Camera: Fix a crash in removeCamera()Shik Chen
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
2018-10-04VTS: Add test for device version 3.5Shuzhen Wang
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
2018-09-13Camera: Add support for physical camera characteristics queryShuzhen Wang
- 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
2018-05-23Camera: use compact copy when necessaryYin-Chia Yeh
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
2018-01-22camera: add support for camera removalGuennadi Liakhovetski
Add camera removal support to CameraProvider and CameraModule. Change-Id: I047e486d1665ba9e0b1455f77a7bbbb5e0d66653 Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
2017-01-31Camera: call setCallback before open_legacyYin-Chia Yeh
Some open_legacy implementations require a valid callback. Test: the failing open_legacy call succeeds Bug: 34854786 Change-Id: I461c7622bdf46a7cb7febfb7eeeb083288b4af03
2017-01-05Camera: Add default camera provider 2.4Yin-Chia Yeh
Supports legacy camera HAL modules; also exports ICameraDevice instances. Test: compile Bug: 30985004 Change-Id: I2b9624a412de95dd43979a5e6650b170010c577a
2017-01-05Camera: default implementation of device 3.2Yin-Chia Yeh
Test: compile Bug: 30985004 Change-Id: Ibb48673840de6a5f7c75dc6993d5457a272177a2