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

Commit bb14792e authored by Alec Mouri's avatar Alec Mouri Committed by Automerger Merge Worker
Browse files

Merge "Update Mapper4 SetBadMetadata VTS test for optional metadata" into...

Merge "Update Mapper4 SetBadMetadata VTS test for optional metadata" into tm-dev am: 325d8531 am: d2583441

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18327687



Change-Id: I4b0dee65e301706c7cee00db0d2fd7b1ca92c8f5
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 4aa46103 d2583441
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2212,6 +2212,11 @@ TEST_P(GraphicsMapperHidlTest, SetBadMetadata) {
              mGralloc->set(bufferHandle, gralloc4::MetadataType_Dataspace, vec));
    ASSERT_EQ(Error::UNSUPPORTED,
              mGralloc->set(bufferHandle, gralloc4::MetadataType_BlendMode, vec));

    // Keep optional metadata types below and populate the encoded metadata vec
    // with some arbitrary different metadata because the common gralloc4::decode*()
    // functions do not distinguish between an empty vec and bad value.
    ASSERT_EQ(NO_ERROR, gralloc4::encodeDataspace(Dataspace::SRGB_LINEAR, &vec));
    ASSERT_EQ(Error::UNSUPPORTED,
              mGralloc->set(bufferHandle, gralloc4::MetadataType_Smpte2086, vec));
    ASSERT_EQ(Error::UNSUPPORTED,