CodecInfoTest: Re-enable HDRDisplayCapabilities test

testHDRDisplayCapabilities was disabled as there was no way at
codec2 framework level to query HDR display capabilities to list
all supported HDR display types.

Using a system property ro.surface_flinger.has_HDR_display, it is
possible to check if a device has HDR display. With this, we can at
least test that HDR10 and HDR10+ profiles are not advertised
on devices that do not support HDR display.

Test is now re-enabled and tweaked such that a device listing
HDR10 profiles must have HDR10 display and device that lists HDR10+
profiles must have either HDR10 or HDR10+ display.

Once there is a way to list HDR10+ display support at framework level,
the HDR10+ profiles can mandate support for HDR10+ display.

Since HLG profiles and default 10-bit profiles without any
color-transfer can't be distinguished, those profiles are excluded from
this test.

Bug: 228237404
Test: atest CtsMediaV2TestCases:CodecInfoTest

Change-Id: I5c594cc6e5ab8f85f087cc1dcae5e63fb867df4b
(cherry picked from commit b567bb14be42b8f52845dfe7233f7f5b7467f787)
Merged-In: I5c594cc6e5ab8f85f087cc1dcae5e63fb867df4b
1 file changed