summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2023-07-07 11:17:49 -0400
committerJohn Reck <jreck@google.com>2023-07-19 13:16:26 -0400
commitf878a1abab0741ad4e47a3141bd416569d0e0cec (patch)
treef90ef5785e113ece640b9a95ba5f3a1a03271885
parent02ecc2dd320658c0aafedf3ed16bdc8d8ca479a2 (diff)
downloadhal-f878a1abab0741ad4e47a3141bd416569d0e0cec.tar.gz
Update gralloc HAL testcase
Bug: 280901110 Test: atest vts_treble_vintf_vendor_test Change-Id: I59861c0289861e02a03c4a47872d21b60e6f1e94
-rw-r--r--treble/vintf/DeviceManifestTest.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/treble/vintf/DeviceManifestTest.cpp b/treble/vintf/DeviceManifestTest.cpp
index c156dea0..594c0e05 100644
--- a/treble/vintf/DeviceManifestTest.cpp
+++ b/treble/vintf/DeviceManifestTest.cpp
@@ -70,7 +70,8 @@ TEST_F(DeviceManifestTest, GraphicsMapperHalVersionCompatibility) {
bool is_go_device =
android::base::GetBoolProperty("ro.config.low_ram", false);
if (shipping_fcm_version == Level::UNSPECIFIED ||
- shipping_fcm_version < Level::R || is_go_device) {
+ shipping_fcm_version < Level::R ||
+ (is_go_device && shipping_fcm_version < Level::V)) {
GTEST_SKIP() << "Graphics mapper 4 is only required on launching R devices";
}
@@ -195,7 +196,8 @@ TEST_F(DeviceManifestTest, GrallocHalVersionCompatibility) {
bool is_go_device =
android::base::GetBoolProperty("ro.config.low_ram", false);
if (shipping_fcm_version == Level::UNSPECIFIED ||
- shipping_fcm_version < Level::T || is_go_device) {
+ shipping_fcm_version < Level::T ||
+ (is_go_device && shipping_fcm_version < Level::V)) {
GTEST_SKIP() << "Gralloc 4.0/AIDL is only required on launching T devices";
}