summaryrefslogtreecommitdiff
path: root/camera/provider
AgeCommit message (Collapse)Author
2022-12-06Merge t-qpr-2022-12Matt Lee
Change-Id: I86a901f08eb87588bd2163cf8287e7dacea699b6
2022-07-28Camera: Import gralloc buffers before metadata queriesEmilian Peev
Raw buffer handles do not support metadata queries and need to be imported first. Additionally map the result buffer ids to the inflight buffers and queue the maximum amount of inflight buffers as advertised by Hal. Since we will be streaming a set of buffers, use an appropriate preview size. Bug: 237576060 Test: adb shell /data/nativetest64/VtsAidlHalCameraProvider_TargetTest/VtsAidlHalCameraProvider_TargetTest --gtest_filter=PerInstance/CameraAidlTest.process10BitDynamicRangeRequest/0_android_hardware_camera_provider_ICameraProvider_internal_0 Change-Id: Id854c2a8d1588a151240d1b32197dbace7e1a057
2022-06-02Merge TP1A.220527.002Erik Sanders
Change-Id: Ie4be52e09287e13a57c2f8b40656bae7f4de7ecb
2022-05-26Merge "Delete HIDL 3.8" into tm-devJayant Chowdhary
2022-05-25Delete HIDL 3.8Jayant Chowdhary
- HIDL camera device@3.8, metadata@3.8 were temporary interfaces Bug: 221108824 Test: GCA Test: Camera CTS Merged-In: I44cd1ac0e2f6647e3e9d5c60a535faf716d5ed93 Change-Id: I44cd1ac0e2f6647e3e9d5c60a535faf716d5ed93 Signed-off-by: Jayant Chowdhary <jchowdhary@google.com> (cherry picked from commit 406da449098d5afb6812d600ba76ea2bb1c16ff9)
2022-05-24Camera VTS: remove duplicate function in anonymous namespaceAvichal Rakesh
The anonymous namespace in camera_aidl_test.cpp contained a buggy implementation of `matchDeviceName` can was being called into by a few tests. This CL removes the buggy implementation and fixes the faulty calls to call into the correct function. Bug: 233252432 Bug: 233221359 Test: atest VtsAidlHalCameraProvider_TargetTest Change-Id: Icfe9bbc75e38d4d23bdcf64a048120708045b639
2022-05-24Camera VTS: Fix incorrect return value checkAvichal Rakesh
The AIDL interface specificies that ICameraProvider::setCallback should return Status::ILLEGAL_ARGUMENT if the provided callback is null. The setCallback test incorrectly checked for the return value to be OK instead. This CL fixes the test to check for ILLEGAL_ARGUMENT and removes setting callback to null from setTorchMode test. In addition it fixes `setCallback` test to use Bn* variant of ICameraProviderCallback to ensure that the object makes it through the binder. Bug: 233221359 Test: atest VtsAidlHalCameraProvider_TargetTest Change-Id: Ia33226b15efd9628bf8e1b53ec2a3012b08eaaac
2022-05-03Merge TP1A.220422.001Deyao Ren
Change-Id: Ic995758f9abfaf9d0ac14cfe1d182387f988e42c
2022-04-20Camera: Correct request settings R&C overrideEmilian Peev
Assign the R&C overriden 'settingsMetadata' in the capture request. Bug: 222648486 Test: adb shell VtsAidlHalCameraProvider_TargetTest --gtest_filter=PerInstance/CameraAidlTest.processMultiCaptureRequestPreview/0_android_hardware_camera_provider_ICameraProvider_internal_0 Change-Id: I5825ebae59e8d3c05e5c301825b0ab8e6c1f50dc
2022-04-08Merge TP1A.220404.001Scott Lobdell
Change-Id: I3bce78ab5d441ef9e6c038cf7ebea0adcc41d47e
2022-04-02Merge TP1A.220328.001Rob Seymour
Change-Id: Ibc87b2e88d675d4fb85b2de1778d093e4e4c2d9f
2022-03-31Freeze AIDL APIs for TMJiyong Park
Bug: 225941299 Test: m Change-Id: Ie41cc0797710f813f92c65c387f247c7806d8394
2022-03-25Merge TP1A.220321.002Scott Lobdell
Change-Id: If51d1324897593e6bb61bf4795bc157004c10083
2022-03-22Camera: Fix test to use 64 bit pointer in stream use casesAvichal Rakesh
I23a4324602 updated stream use cases to use 64 bit integers. The `configureStreamUseCases` test was still using a pointer to 32 bit integer to determine supported use cases. This CL updates how supported use cases are populated to use a pointer to 64 bit integers instead. Bug: 226171215 Test: `configureStreamUseCases` which was failing on cuttlefish is now passing Change-Id: I5b1ef4e8e344e43b10ea5c992afaace03608660d
2022-03-17Merge TP1A.220310.002Daniel Norman
Change-Id: Ic15874018152ca90e6f51bdb1be1b24eb32d57dd
2022-03-14Merge "Camera: Increase bit depth of stream use case to 64" into tm-devShuzhen Wang
2022-03-11Merge TP1A.220225.003Scott Lobdell
Change-Id: Iad9e960e034127e3320f78d2eadd23e36300b10c
2022-03-09Camera: Increase bit depth of stream use case to 64Shuzhen Wang
Test: Camera CTS Bug: 223387965 Change-Id: I23a4324602ed37cf38c7a1a34dade615c4adb72b
2022-03-09Camera: Misc VTS test fixesAvichal Rakesh
This CL fixes two tests: * `systemCameraTest`: Fix incorrect vector initialization. The test was accidentally using the size constructor instead of initialization list constructor. * `processMultiCaptureRequestPreview`: Allow unsupported stream configs. The test assumed that all stream combinations from physical cameras that back a LogicalMultiCamera were supported. This led to false test failures. This CL allows the test to exit early if the HAL reports that a stream combination is not supported. Bug: 222648486 Test: `test VtsAidlHalCameraProvider_TargetTest` pass on failing devices Change-Id: I009cc2f4b8b94a26b813883cdc1403ae0eb5c477
2022-03-07Merge TP1A.220209.001Deyao Ren
Change-Id: Ia39c40c82efb5b7c7d2ad4c464b75e6fd4e073aa
2022-02-25camera: Fix AIDL VTS testAvichal Rakesh
The default value of a Stream's `dynamicRangeProfile` field is invalid, which means the caller needs to set it to a sensible default with each call. This CL updates the Stream creation in VTS test to use `ANDROID_REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_STANDARD` wherever a Stream object was being created with implicit default. Bug: 210912368 Test: Existing VTS tests now pass on Cuttlefish Change-Id: Iaae2f6dfde852fc9c076a6029854ccdf8f68d39a
2022-02-24camera: Fix build errors due to CLs interleaving.Avichal Rakesh
ag/16982347 and ag/16988237 were submitted around the same time, but can cause build failure when put together. This CL fixes the compilation issues and a few other other warnings. Fix: 221154052 Test: Existing Change-Id: Ia865e3bfc6cd77e7eff1efa5729d6db0d58c279d
2022-02-24Merge "Camera: Migrate VTS tests to AIDL" into tm-devAvichal Rakesh
2022-02-24Merge "Add timed out test files to tidy_timeout_srcs" am: ff54f73b4f am: ↵Chih-hung Hsieh
fa83970b3a am: 581616e658 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1992232 Change-Id: I2eac13fe3b5ab0b4f15d6ceadf376e5e74124a81
2022-02-24Merge "Add timed out test files to tidy_timeout_srcs" am: ff54f73b4fChih-hung Hsieh
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1992232 Change-Id: Ic6072a539d185abc0bcce2ef1dd4a96ddf70e3b8
2022-02-24Merge "Camera: Use 64bit integers for dynamic range profile values" into tm-devTreeHugger Robot
2022-02-23Camera: Migrate VTS tests to AIDLAvichal Rakesh
This CL migrates the existing camera VTS tests to AIDL Bug: 210912368 Test: Migrated all HIDL tests to AIDL Change-Id: I4da6d38105d96908684a754da73699486295da8b
2022-02-23Camera: Use 64bit integers for dynamic range profile valuesEmilian Peev
Additionally extend the dynamic range profile map to include hints about extra lookahead latency. Bug: 215396395 Test: Camera CTS Change-Id: I600a3147d94a9aad1a312b92aacee014c05db16f
2022-02-22camera: Address ANAPIC review comments and additional cleanupJayant Chowdhary
Bug: 218911443 Test: build Change-Id: Ia6d3f4d73e9ff29fa5fca2e11e0b9cb5a8d1e2ac Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2022-02-18Add timed out test files to tidy_timeout_srcsChih-Hung Hsieh
* Timed out runs do not show any warning messages. * These test files cannot finish clang-tidy runs with the following settings: TIDY_TIMEOUT=90 WITH_TIDY=1 CLANG_ANALYZER_CHECKS=1 * When TIDY_TIMEOUT is set, in Android continuous builds, tidy_timeout_srcs files will not be compiled by clang-tidy. When developers build locally without TIDY_TIMEOUT, tidy_timeout_srcs files will be compiled. * Some of these test modules may be split into smaller ones, or disable some time consuming checks, and then enable clang-tidy to run within limited time. Bug: 201099167 Test: make droid tidy-hardware-interfaces_subset Change-Id: I1de28f1572fff368f67eab512fffec9f2e5c2a9b
2022-02-15Camera: Update constrained HFR VTS test.Rucha Katakwar
Added a check that HAL does not advertise multiple preview rates for the same recording rate and size. Bug: 200310682 Change-Id: Ia213f152ad00c846a533577e552b668efdde6f3d
2022-02-11Merge sc-v2-dev-plus-aosp-without-vendor@8084891Xin Li
Bug: 214455710 Merged-In: Id9e06f88539b59480d5cf57a4ba67cef4676c1d5 Change-Id: Id6b1ea4f8700446b044255e80f21c137aeb7acf1
2022-02-09Merge TP1A.220126.001Haamed Gheibi
Change-Id: Ibf6bd2c20d9927fde8b2a05dde2b58bd8faea20f
2022-02-05Merge "Camera: Add stream use case API"Shuzhen Wang
2022-02-04Merge TP1A.220120.003Haamed Gheibi
Change-Id: Ie5eba313ee102e452f5f96942ed2f3a7bb4e8f01
2022-02-04Add AIDL interfaces for camera HAL provider.Jayant Chowdhary
Bug: 196432585 Test: build; Implementation will be submitted later. Change-Id: Ia50fe0502c811dddd706781c653f038e0415eb4d Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2022-02-03Camera: Add stream use case APIShuzhen Wang
- Add availableStreamUseCase static metadata tag - Add STREAM_USE_CASE camera capability - Add useCase flag in camera stream interface Test: atest VtsHalCameraProviderV2_4TargetTest Bug: 200307880 Change-Id: I4e473edcb52a97fa0e1b27cf94603cf9f9984f82
2022-01-30Merge TP1A.220107.002Scott Lobdell
Change-Id: I655d5412ccd734059dfb19075bb9abc810396975
2022-01-24Merge TP1A.211214.001Scott Lobdell
Change-Id: Ib12bd53bdfdf84dde7b986f5e2ae5392cd672882
2022-01-21Avoid multiple map lookupsGreg Kaiser
We directly use erase(), and its return value, so we only need to look up 'deviceName' once. Test: TreeHugger Bug: 191248460 Change-Id: I7c229e7d1de5f76071f55f965eab447b6c868bcc
2022-01-21Merge TP1A.211206.001Scott Lobdell
Change-Id: I8b3a43021a3328cf6afb4e7e157339d8e214ddbe
2022-01-20Merge "Add external lazy camera provider 2.7"Iavor-Valentin Iftime
2022-01-20Camera: VTS: Remove GRF MultiCamera for Android 12Shuzhen Wang
Certain OEMs' new S launches with vendor freeze cannot implement multi-camera API. Bug: 189053514 Bug: 211709637 Change-Id: I71b46f1e8343a5848cbe3fa55bbcd427c87b05dd Merged-In: I71b46f1e8343a5848cbe3fa55bbcd427c87b05dd (cherry picked from commit 30a198ded0bf3e03ac37470d8c2a58504c9b75d3)
2022-01-20Merge "Camera: VTS: Remove GRF MultiCamera for Android 12"TreeHugger Robot
2022-01-19Camera: VTS: Remove GRF MultiCamera for Android 12Shuzhen Wang
Certain OEMs' new S launches with vendor freeze cannot implement multi-camera API. Test: Build Bug: 189053514 Bug: 211709637 Change-Id: I71b46f1e8343a5848cbe3fa55bbcd427c87b05dd (cherry picked from commit 30a198ded0bf3e03ac37470d8c2a58504c9b75d3)
2022-01-14Merge TP1A.211116.001Scott Lobdell
Change-Id: Iba540947aa34084b7ef3210f93332bb757b4bb43
2022-01-05Camera: Add device 3.8 and HDR10 native APIsEmilian Peev
Initial set of native API extensions to support 10-bit output capable device: - Identification - Configuration - Data plumbing Bug: 195946346 Test: adb shell /data/nativetest64/VtsHalCameraProviderV2_4TargetTest/VtsHalCameraProviderV2_4TargetTest --gtest_filter=PerInstance/CameraHidlTest.process10BitDynamicRangeRequest/0_internal_0 Change-Id: I526120944232ce211259cbd215935db7e445a6c5
2021-12-29Merge "VTS test for previewStabilization"Jayant Chowdhary
2021-12-27Add external lazy camera provider 2.7Valentin Iftime
Add default implementation for external camera provider with lazy HAL support v2.7. Test configuration for devices: PRODUCT_PACKAGES += android.hardware.camera.provider@2.7-impl PRODUCT_PACKAGES += android.hardware.camera.provider@2.7-external-service-lazy PRODUCT_PROPERTY_OVERRIDES += ro.camera.enableLazyHal=true Test: atest CtsCameraTestCases atest VtsHalCameraProviderV2_4TargetTest Bug: 191248460 Change-Id: I57c8130d7c331028eff35dc68e360fdd8d8c32e2
2021-12-15VTS test for previewStabilizationJayant Chowdhary
Bug: 200197440 Test: VtsHalCameraProviderV2_4TargetTest --gtest_filter=PerInstance/CameraHidlTest.processCaptureRequestPreviewStab* Change-Id: Iba71983a69d20af605924fa6f1c0697e49d911f8 Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>