mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
resolve merge conflicts of cd02298b46 to oreo-mr1-vts-dev
Bug: None Test: none Change-Id: I1d705ee440f49b1d7713b9225cbfb1815b79d5a0
This commit is contained in:
@@ -1914,6 +1914,19 @@ TEST_F(CameraHidlTest, getCameraCharacteristics) {
|
||||
// characteristics keys we've defined.
|
||||
ASSERT_GT(entryCount, 0u);
|
||||
ALOGI("getCameraCharacteristics metadata entry count is %zu", entryCount);
|
||||
|
||||
camera_metadata_ro_entry entry;
|
||||
int retcode = find_camera_metadata_ro_entry(metadata,
|
||||
ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL, &entry);
|
||||
if ((0 == retcode) && (entry.count > 0)) {
|
||||
uint8_t hardwareLevel = entry.data.u8[0];
|
||||
ASSERT_TRUE(
|
||||
hardwareLevel == ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED ||
|
||||
hardwareLevel == ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL_FULL ||
|
||||
hardwareLevel == ANDROID_INFO_SUPPORTED_HARDWARE_LEVEL_3);
|
||||
} else {
|
||||
ADD_FAILURE() << "Get camera hardware level failed!";
|
||||
}
|
||||
});
|
||||
ASSERT_TRUE(ret.isOk());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user