summaryrefslogtreecommitdiff
path: root/camera/provider/aidl/vts/camera_aidl_test.cpp
AgeCommit message (Collapse)Author
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-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-03-14Merge "Camera: Increase bit depth of stream use case to 64" into tm-devShuzhen Wang
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-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-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