summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorEmilian Peev <epeev@google.com>2018-06-07 17:49:26 +0100
committerEmilian Peev <epeev@google.com>2018-06-07 18:21:25 +0100
commite0c4c497b3f21098f57c082b6cbf8b4f5fd72d36 (patch)
tree8db1be446f5907fc8d00e40c228a8e0074c06b81 /camera
parent0be954949ddf098fb9ab28c523b04aceeb575323 (diff)
downloadplatform_hardware_interfaces-e0c4c497b3f21098f57c082b6cbf8b4f5fd72d36.tar.gz
platform_hardware_interfaces-e0c4c497b3f21098f57c082b6cbf8b4f5fd72d36.tar.bz2
platform_hardware_interfaces-e0c4c497b3f21098f57c082b6cbf8b4f5fd72d36.zip
Camera: Add only physical ids during multi-camera configuration
Per API specification "physicalCameraId" must not contain any logical camera ids. The test case should only use the physical ids it receives from the camera static metadata. Bug:109874630 Test:run vts --skip-all-system-status-check --skip-preconditions --primary-abi-only --module VtsHalCameraProviderV2_4Target -l INFO Change-Id: I82c5bf44f4572b3a6abdbb3101a11140907b1c9e
Diffstat (limited to 'camera')
-rw-r--r--camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp
index ff7c0ee862..95c7167c3b 100644
--- a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp
+++ b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp
@@ -3480,11 +3480,10 @@ TEST_F(CameraHidlTest, processMultiCaptureRequestPreview) {
ret = session->close();
ASSERT_TRUE(ret.isOk());
+ // Leave only 2 physical devices in the id set.
auto it = physicalIds.begin();
- string physicalDeviceId = *it;
- // Leave only the first physical device in the id set and insert the logical device.
+ string physicalDeviceId = *it; it++;
physicalIds.erase(++it, physicalIds.end());
- physicalIds.emplace(deviceId);
ASSERT_EQ(physicalIds.size(), 2u);
V3_4::HalStreamConfiguration halStreamConfig;