Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8d40f90 authored by Shuzhen Wang's avatar Shuzhen Wang Committed by Android (Google) Code Review
Browse files

Merge "Camera: VTS: Skip session characterstics test for older HAL" into main

parents 05d18ed9 ced09a50
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -300,6 +300,15 @@ TEST_P(CameraAidlTest, getSessionCharacteristics) {
            ASSERT_TRUE(ret.isOk());
            ASSERT_NE(device, nullptr);

            int32_t interfaceVersion = -1;
            ret = device->getInterfaceVersion(&interfaceVersion);
            ASSERT_TRUE(ret.isOk());
            bool supportSessionCharacteristics =
                    (interfaceVersion >= CAMERA_DEVICE_API_MINOR_VERSION_3);
            if (!supportSessionCharacteristics) {
                continue;
            }

            CameraMetadata meta;
            openEmptyDeviceSession(name, mProvider, &mSession /*out*/, &meta /*out*/,
                                   &device /*out*/);