summaryrefslogtreecommitdiff
path: root/devices
AgeCommit message (Collapse)Author
2021-04-14Migrate EmulatedCamera to `ro.boot` emulator propertiesandroid-s-beta-2android-s-beta-1Roman Kiryanov
`ro.kernel` is deprecated. Bug: 182291166 Test: presubmit Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: Ia9075218a4ac75c9400e83e66e6f842e75f51b85
2021-04-13EmulatedCamera: Disable HQ edge enhancementEmilian Peev
when the emulator is launched with ro.kernel.qemu.camera_hq_edge_processing=0, disable HQ edge enhancement. It is default to 1. Bug: 168607027 Test: emulator -qemu -append qemu.camera_hq_edge_processing=0 Test: run cts -m CtsCameraTestCases -t \ android.hardware.camera2.cts.RecordingTest#testVideoSnapshot Change-Id: I18e6f0ffd295fce43d867ad7608fff46e5e389bc Merged-In: I18e6f0ffd295fce43d867ad7608fff46e5e389bc
2021-03-24Merge "EmulatedCamera: Implement pixel binning." into sc-devJayant Chowdhary
2021-03-23EmulatedCamera: Implement pixel binning.Jayant Chowdhary
Bug: 152813564 Test: CTS in binned mode Test: CTS test for mandatory maximum resolution streams Change-Id: I6e716c87a81986b14da6e4f87061824e4f8aede3 Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2021-03-22EmulatedCamera: Add a vendor extended scene modeShuzhen Wang
Verify that vendor scene mode can be set from the application. Test: Camera CTS Bug: 177683154 Bug: 159047727 Change-Id: Id58701546926556ba0adc0e23903726a736515a4
2021-03-17Camera: Use zoom ratio to switch between physical camerasShuzhen Wang
- Switch from using focal length to zoom ratio to switch from physical cameras. This enables testing of different physical cameras across the full zoom ratio range. - Pass input_width and input_height from GCH to HWL layer. - Modify the pending request tracker to handle multi-resolution ImageReader. Test: Camera CTS Bug: 156254356 Change-Id: I7f807d8b0840046a36515a0cf3d1194639675914
2021-03-12Use `ro.boot.qemu` to check if the device is an emulator am: 03ce26263d am: ↵Roman Kiryanov
a0bfbc4db7 am: 003734dd33 Original change: https://android-review.googlesource.com/c/platform/hardware/google/camera/+/1627761 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I720ee44b18fdfc3e8529d2769a81d560c6f47325
2021-03-10Use `ro.boot.qemu` to check if the device is an emulatorRoman Kiryanov
`ro.kernel.qemu` is deprecated. Bug: 182291166 Test: presubmit Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: Ic0c0620046b812cf3f455e0cb1f88471b6fd6739
2021-03-05Merge "Camera: Bump up HAL version to support multi-resolution ↵TreeHugger Robot
ImageReader/ImageWriter" into sc-dev
2021-03-04Camera: Bump up HAL version to support multi-resolution ImageReader/ImageWriterShuzhen Wang
- Update HAL version to latest ICameraDevice and ICameraDeviceSession versions - Implement multi-resolution ImageReader/ImageWriter support in cuttlefish HAL - Enable HAL buffer manager for front logical camera - EmulatedCamera: Convert front camera to have different size physical cameras Test: Camera CTS Bug: 156254356 Change-Id: I4fdd73c1cc22bd08e08487ab4b1729ff41782c68
2021-03-02[EmulatedCamera] Use new jsoncpp API am: 25c3ad24ca am: b0bd09ea63 am: ↵Haibo Huang
d352bc92a3 Original change: https://android-review.googlesource.com/c/platform/hardware/google/camera/+/1606919 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ifb752be550455d6d0fbb84a88aaed0a612e8a203
2021-03-01[EmulatedCamera] Use new jsoncpp APIHaibo Huang
Reader / StyledWriter are deprecated upstream Bug: 170642246 Change-Id: Ie6590bebebca67140bfb0144efe4d77208a3ded2
2021-02-20[LSC] Add LOCAL_LICENSE_KINDS to hardware/google/camera am: 4799f30c97 am: ↵Bob Badour
bba007df69 am: c377f0dda1 Original change: https://android-review.googlesource.com/c/platform/hardware/google/camera/+/1588479 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I43af4f5c3c51c8da9b017671b0fcb1a7f94e46f0
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to hardware/google/cameraBob Badour
Added SPDX-license-identifier-Apache-2.0 to: common/hal/google_camera_hal/Android.bp common/hal/tests/Android.bp common/lib_depth_generator/Android.bp common/profiler/Android.bp devices/EmulatedCamera/Android.bp devices/EmulatedCamera/hwl/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: common/hal/hidl_service/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_unencumbered to: Android.bp common/hal/Android.bp Added SPDX-license-identifier-Apache-2.0 legacy_unencumbered to: common/hal/utils/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I0afaf0782c18a05c96965665fe410a8ee983aa00
2021-02-08Merge "EmulatedCamera: cleanup CaptureRaw arguments." into sc-devJayant Chowdhary
2021-02-05EmulatedCamera: cleanup CaptureRaw arguments.Jayant Chowdhary
Raw buffer height and width must be the same as sensor height and width. We don't need to pass the buffer width to CaptureRaw. Bug: 152813564 Test: Camera CTS Change-Id: I12d75850b8cd830d2e28cf21a0b73ecf44294b37 Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2021-02-05Prefix vendor. to qemu.sf.fake_camera property am: fc9060b4c7 am: 012ee5d2fb ↵Huan Song
am: aff79244c1 Original change: https://android-review.googlesource.com/c/platform/hardware/google/camera/+/1575994 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ia6ebfc2101233993a1baef2a8088aaf308f372a2
2021-02-04Prefix vendor. to qemu.sf.fake_camera propertyandroid-s-preview-1Huan Song
Bug: 178144237 Test: fake camera, virtualscene camera Change-Id: I48bf48d4bab2826b592fe68c5f1a75db0bfac5d7
2021-02-04EmulatedCamera: Enable 2 byte per pixel YUV output supportEmilian Peev
Extend the YUV420 capture sequence to support 2 bytes per pixel input buffer with interleaved and subsampled U/V plane. The currently generated 8-bit YUV channel value will be stored in the most significant byte. Bug: 147711411 Test: Camera CTS Change-Id: I9679967239a22a5bce700a9629c907dad7b90359
2021-01-08Merge "EmulatedCamera: Use only one HandleImporter for sensor buffers"TreeHugger Robot
2020-11-13Merge "EmulatedCamera: Release the request processor along with the ↵Treehugger Robot
pipelines" am: 38ddbe0d22 am: 505633e490 am: 15c958990d am: 870a924d21 Original change: https://android-review.googlesource.com/c/platform/hardware/google/camera/+/1443309 Change-Id: If4cf1592b227416c867e2b7c074f8b5753831b55
2020-11-13Merge "EmulatedCamera: Release the request processor along with the pipelines"Treehugger Robot
2020-11-13Enable RAW_SENSOR output for front facing cameras on CuttlefishLawrence Huang
Test: atest CtsCameraTestCases Change-Id: I7acebe5380d4f27c004e7fa932f4d8f012dc670e
2020-10-01EmulatedCamera: Release the request processor along with the pipelinesEmilian Peev
The request processor and associated emulated sensor are currently active and can continue processing pending requests until the end of the emulated capture session lifetime. However the upper GCH layer will usually destroy the GCH&HIDL session context before releasing the HWL implementation. This can lead to some timing issues specifically when dealing with the last capture result notification. Once the HIDL callback reaches CameraService the stream configuration can be changed immediately and the GCH&HIDL resources of the old session released before the HWL implementation is able to complete the notification. To avoid this, use the pipeline destroy method to release the emulated request processor and sensor instance. This will allow any pending callbacks to complete before the GCH resources are de-allocated. Bug: 169770971 Test: Camera CTS Change-Id: I9ca8188f763476e73b96441a06fe86ff79cd1744
2020-09-26EmulatedCamera: Switch Exif tags make and model source am: 48c7384c4c am: ↵Emilian Peev
10c2b9e040 am: 3bdbcd525c am: 0842a19fcc am: cbf3f2bdff Original change: https://android-review.googlesource.com/c/platform/hardware/google/camera/+/1439216 Change-Id: I62c99d532db3ee29f142e1dc9f3a1c2e1d020ac9
2020-09-25EmulatedCamera: Switch Exif tags make and model sourceplatform-tools-30.0.5Emilian Peev
Align the publicly accessible make and mode values with the Exif tag information by retrieving their values from "ro.product.manufacturer" and "ro.product.model' respectively. Bug: 169387326 Test: atest cts/tests/camera/src/android/hardware/camera2/cts/ReprocessCaptureTest.java#testReprocessJpegExif atest cts/tests/camera/src/android/hardware/camera2/cts/StillCaptureTest.java#testFocalLengths atest cts/tests/camera/src/android/hardware/camera2/cts/StillCaptureTest.java#testJpegExif Change-Id: I3e93f817f90eb648425d23c05617753c8a2d1f4b
2020-09-22EmulatedCamera: Disable HQ edge enhancementEmilian Peev
when the emulator is launched with ro.kernel.qemu.camera_hq_edge_processing=0, disable HQ edge enhancement. It is default to 1. Bug: 168607027 Test: emulator -qemu -append qemu.camera_hq_edge_processing=0 run cts -m CtsCameraTestCases -t android.hardware.camera2.cts.RecordingTest#testVideoSnapshot Change-Id: I18e6f0ffd295fce43d867ad7608fff46e5e389bc
2020-08-21EmulatedCamera: Correct depth only sensor max durationEmilian Peev
The depth only device supports frame rate ranges starting with 5 fps. The device also advertises max frame duration close to but less than 200 ms. Update the supported max frame duration so that the device is completely consistent with the minimum fps. Bug: 165950734 Test: Camera CTS Change-Id: Ibf642c538ba018d46e2d7b81b8417d273c4aa0ea
2020-08-20Merge "EmulatedCamera: Add QCIF & XGA support for back camera"TreeHugger Robot
2020-08-20EmulatedCamera: Add QCIF & XGA support for back cameraClément Julliard
Bug: 165601644 Test: atest android.media.cts.MediaPlayerTest#testRecordedVideoPlayback0 Camera CTS Change-Id: Ie9b611543bef1f4a11d3d203765a58c6f9401b49
2020-08-18Camera: Correct back camera extended zoom ratiosEmilian Peev
Do not advertise zoom ratio ranges for extended scenes that are beyond what the device supports. Bug: 164538300 Test: Camera CTS Change-Id: I12522e0750254fe6fd8f3acf004746adfad544d2
2020-07-21EmulatedCamera: Use only one HandleImporter for sensor buffersEmilian Peev
Avoid having multiple connections to gralloc by re-using the request processor HandleImporter instance. Bug: 161183515 Test: Camera CTS Change-Id: Id4bb833c39f687287c9525a0ddb35361e5e4a03b
2020-06-24Merge "Allow getConcurrentStreamingCameraIds to advertise depth only ↵TreeHugger Robot
cameras." into rvc-dev am: 12b57f330a am: cc5b869e86 am: a1c66ff625 am: 97bb3ec079 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/camera/+/11962792 Change-Id: I18c43876b384a46003e150c189d4a942bd64aab0
2020-06-23Allow getConcurrentStreamingCameraIds to advertise depth only cameras.Jayant Chowdhary
Also fix SupportsMandatoryStreamCombination check Bug: 159247271 Test: atest ConcurrentCameraTest.java Change-Id: I5cb1ee3a7b9106c29ad9558ab8f4f2b68e946efb Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-05-26Merge "Provide verbose error info for ProcessAE"Anton Kachalov
2020-05-26Typo fix with entries iterationAnton D. Kachalov
Bug: 157501775 Test: Camera CTS Change-Id: Iff82a374501e2938af515f04af84df6a003b2fcc
2020-05-26Provide verbose error info for ProcessAEAnton D. Kachalov
Test: presubmit builds Bug: 157500141 Change-Id: I056efd4f4ae651c7c827fced452fa87325c72522
2020-05-22Merge "EmulatedCamera: Do not send ERROR_BUFFER in case of ERROR_REQUEST" ↵TreeHugger Robot
into rvc-dev am: d886a60ddc am: 729a6769bb am: 4314992905 am: 99a0f82169 Change-Id: I9952211250815b381044ffa05dd4412b359da3a2
2020-05-22Merge "EmulatedCamera: Do not send ERROR_BUFFER in case of ERROR_REQUEST" ↵TreeHugger Robot
into rvc-dev
2020-05-21EmulatedCamera: Do not send ERROR_BUFFER in case of ERROR_REQUESTShuzhen Wang
Per HAL spec, in case the request is marked as ERROR_REQUEST, do not send ERROR_BUFFER. Test: Camera CTS Bug: 155353799 Change-Id: I9b6bdca4ada611f3d41fec654849409de78f1f73
2020-05-18Merge "EmulatedCamera: Avoid event queue setup in scene constructor" into ↵TreeHugger Robot
rvc-dev am: 6a266d0f9b am: db0fe9195c am: 5a1d7ed6af am: b34d3ba80d Change-Id: I7d60876b4d428668e8f2fdc153bfa4243a17f885
2020-05-15Adds libgralloctypes to libgooglecamerahwl_impl am: 19495e8a81 am: ↵Jason Macnak
d579680fd3 am: 63d7bde1bc am: e0bdef1d18 Change-Id: I4db2d1eb636775d50ad158589ab090a48335fa2f
2020-05-15EmulatedCamera: Avoid event queue setup in scene constructorEmilian Peev
The sensor event manager can in theory trigger event callbacks at any time after the event queue initialization. If an event is triggered before the scene strong pointer is incremented by the emulated sensor, then the event handler will promote its weak pointer and be able to release the emulated scene instance. This code path will eventually result in instability within the reference counting logic which does not expect to receive and work with an invalid scene instance. Avoid this possibility by removing the event queue initialization from the scene constructor. Bug: 156682736 Test: Camera CTS Change-Id: I2637504ca58d6ac84628444f31dacca971558a51
2020-05-14Adds libgralloctypes to libgooglecamerahwl_implJason Macnak
... which is a new dependency of android.hardware.camera.common@1.0-helper. Bug: b/146515640 Test: m Change-Id: Id59636314acb68c6135b87899e174cf39e1d699a
2020-05-14Merge "Update emulated camera to use gralloc lock w/ region" into rvc-dev ↵Jason Macnak
am: 2fe79a38b5 am: 1923ff53e8 am: b00bb7f269 am: f3d3108342 Change-Id: Iede6016f8ef3b62f4aff4a99898f2b420c6bf1f8
2020-05-14Merge "Update emulated camera to use gralloc lock w/ region" into rvc-devJason Macnak
2020-05-14Merge "Import gralloc buffers before use in EmulatedCamera" into rvc-dev am: ↵Jason Macnak
4b33a6ff0a am: ca08a37fad am: a21731f7ca am: 98e46098cb Change-Id: Id4eadb4dd3182b9766cd9380ae23e554e637bb7a
2020-05-14Merge "Lock gralloc buffers with SW_READ/SW_WRITE usage" into rvc-dev am: ↵Jason Macnak
f7d3d8e856 am: 93da09a347 am: 180e8e50ef am: 8b54930ff9 Change-Id: I12ceae6491a986e1eace16af27f8ebf82d31b18d
2020-05-14Fix CaptureDepth stride usage am: 8b9d7fc0a8 am: 5a799c5e89 am: afb9db35ac ↵Jason Macnak
am: 83255e26dd Change-Id: I243d35d0be9af73f7492e635dc7939f52af75589
2020-05-14Merge "EmulatedCamera: Pass dedicated sensor handler to sensor manager" into ↵TreeHugger Robot
rvc-dev am: e2a94baf65 am: a0e5124141 am: f78a9aae53 am: 453535f5d6 Change-Id: I33273edd8ff609580815bbad9044cbf85cf920d4