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

Skip to content
Commit 42a88242 authored by Jason Macnak's avatar Jason Macnak
Browse files

Updates encoding/decoding of optional metadata

... to always encode/decode the metadata type with a "is present"
value in order to be able to differentiate bad optional metadata from
unset optional metadata. The SetBadMetadata test in
VtsHalGraphicsMapperV4_0TargetTest.cpp expects that

gralloc->set(Smpte2086, <empty vec>)

returns Error::UNSUPPORTED. However, prior to this change,

android::gralloc4::decodeSmpte2086()

would return NO_ERROR as an empty stream was equivalent to an unset
optional.

Bug: b/207388558
Test: VtsHalGraphicsMapperV4_0TargetTest
Test: GrallocTypes_test
Change-Id: Ie47d3146f4e76c5c38919b776826d707e85aa438
parent 18e8bbb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment