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

Commit ed6ea289 authored by Sai's avatar Sai Committed by Android Build Cherrypicker Worker
Browse files

Update vts test to support automotive devices

Includes LENS_POSE_AUTOMOTIVE as a valid lens_pose_reference value for vts tests.

Bug: 315076224

Test: atest VtsHalCameraProvider
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c6a95c2fd5746d14ec27e6e053d607fff478a97a)
Merged-In: Iafb7963cb828e1b40308fddd6ab417f8bc0c2115
Change-Id: Iafb7963cb828e1b40308fddd6ab417f8bc0c2115
parent 3d9d5d85
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8140,7 +8140,7 @@ void CameraHidlTest::verifyCameraCharacteristics(Status status, const CameraMeta
            ANDROID_LENS_POSE_REFERENCE, &entry);
    if (0 == retcode && entry.count > 0) {
        uint8_t poseReference = entry.data.u8[0];
        ASSERT_TRUE(poseReference <= ANDROID_LENS_POSE_REFERENCE_UNDEFINED &&
        ASSERT_TRUE(poseReference <= ANDROID_LENS_POSE_REFERENCE_AUTOMOTIVE &&
                poseReference >= ANDROID_LENS_POSE_REFERENCE_PRIMARY_CAMERA);
    }

+2 −2
Original line number Diff line number Diff line
@@ -656,7 +656,7 @@ void CameraAidlTest::verifyCameraCharacteristics(const CameraMetadata& chars) {
    retcode = find_camera_metadata_ro_entry(metadata, ANDROID_LENS_POSE_REFERENCE, &entry);
    if (0 == retcode && entry.count > 0) {
        uint8_t poseReference = entry.data.u8[0];
        ASSERT_TRUE(poseReference <= ANDROID_LENS_POSE_REFERENCE_UNDEFINED &&
        ASSERT_TRUE(poseReference <= ANDROID_LENS_POSE_REFERENCE_AUTOMOTIVE &&
                poseReference >= ANDROID_LENS_POSE_REFERENCE_PRIMARY_CAMERA);
    }