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
This commit is contained in:
parent
cc7dc2f54d
commit
8edae5199e
1 changed files with 8 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue