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

Commit 8edae519 authored by Emilian Peev's avatar Emilian Peev
Browse files

Camera: Extend camera characteristics test case

Verify that device implementations do not set the
new privacy characteristics key:
ANDROID_REQUEST_CHARACTERISTIC_KEYS_NEEDING_PERMISSION
As required by API contract.

Bug: 112160024
Bug: 115969437
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --module VtsHalCameraProviderV2_4Target -l INFO

Change-Id: I8d8f0d0e1cdec24117d47e7ae45602f56573376f
parent cc7dc2f5
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2080,6 +2080,14 @@ TEST_F(CameraHidlTest, getCameraCharacteristics) {
                    } else {
                        ADD_FAILURE() << "Get camera hardware level failed!";
                    }

                    entry.count = 0;
                    retcode = find_camera_metadata_ro_entry(metadata,
                            ANDROID_REQUEST_CHARACTERISTIC_KEYS_NEEDING_PERMISSION, &entry);
                    if ((0 == retcode) || (entry.count > 0)) {
                        ADD_FAILURE() << "ANDROID_REQUEST_CHARACTERISTIC_KEYS_NEEDING_PERMISSION "
                            << " per API contract should never be set by Hal!";
                    }
                });
                ASSERT_TRUE(ret.isOk());
            }