ImageDecoder: more strict checking criteria for 10-bit HEIF supportibility

Due to b/229387180, software codec has excluded p010 support for pre-S devices. This change adds checking criteria for testDecode10BitHeifWithLowRam() test that we will bypass the test if either first API or VNDK is S or lower. The same checking criteria was applied to testDecode10BitHeif() test.

Bug: b/265735988
Test: ImageDecoderTest
(cherry picked from commit f918894f5d31508685eed0c7c8dd1cc6eb807c8d)
Merged-In: Ie5e0fda13b07818696579746eddd7e7bebc38255
Change-Id: Ie5e0fda13b07818696579746eddd7e7bebc38255

NOTE FOR REVIEWERS - errors occurred while applying the patch.
PLEASE REVIEW CAREFULLY.
Errors:
Error applying patch in tests/tests/graphics/src/android/graphics/cts/ImageDecoderTest.java, hunk HunkHeader[250,9->250,10]: Hunk cannot be applied

Original patch:
 From f918894f5d31508685eed0c7c8dd1cc6eb807c8d Mon Sep 17 00:00:00 2001
From: Dichen Zhang <dichenzhang@google.com>
Date: Mon, 17 Apr 2023 19:03:34 +0000
Subject: [PATCH] ImageDecoder: more strict checking criteria for 10-bit HEIF supportibility

Due to b/229387180, software codec has excluded p010 support for pre-S devices. This change adds checking criteria for testDecode10BitHeifWithLowRam() test that we will bypass the test if either first API or VNDK is S or lower. The same checking criteria was applied to testDecode10BitHeif() test.

Bug: b/265735988
Change-Id: Ie5e0fda13b07818696579746eddd7e7bebc38255
Test: ImageDecoderTest
---
1 file changed