From 47640027f28ee6525c6eff30e57d5fd1b36d92d7 Mon Sep 17 00:00:00 2001 From: Changyeon Jo Date: Sat, 22 Apr 2023 22:34:13 +0000 Subject: [PATCH] Modify CameraUseStreamConfigToDisplay Exclude logical camera devices from CameraUseStreamConfigToDisplay test case. Bug: 275049370 Test: atest VtsHalEvsV1_0TargetTest and atest VtsHalEvsV1_1TargetTest Change-Id: If6b31d94bdbffd2f4e9ab9bd5c8957ec85904187 (cherry picked from commit d5732b6bbf25374d9e5a0f9f5e521c972f790283) --- .../evs/1.1/vts/functional/VtsHalEvsV1_1TargetTest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/automotive/evs/1.1/vts/functional/VtsHalEvsV1_1TargetTest.cpp b/automotive/evs/1.1/vts/functional/VtsHalEvsV1_1TargetTest.cpp index 03f256ec81..ff7f41c119 100644 --- a/automotive/evs/1.1/vts/functional/VtsHalEvsV1_1TargetTest.cpp +++ b/automotive/evs/1.1/vts/functional/VtsHalEvsV1_1TargetTest.cpp @@ -2010,6 +2010,13 @@ TEST_P(EvsHidlTest, CameraUseStreamConfigToDisplay) { // Test each reported camera for (auto&& cam: cameraInfo) { + bool isLogicalCam = false; + getPhysicalCameraIds(cam.v1.cameraId, isLogicalCam); + if (isLogicalCam) { + LOG(INFO) << "Skip a logical device " << cam.v1.cameraId; + continue; + } + // Request exclusive access to the EVS display sp pDisplay = pEnumerator->openDisplay(); ASSERT_NE(pDisplay, nullptr);