commit | fc64582485f9c464b04d6a48358fb27a57e27f0c | [log] [tgz] |
---|---|---|
author | Wonsik Kim <wonsik@google.com> | Wed Mar 06 19:39:41 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 14 23:55:59 2024 +0000 |
tree | 482f68a09d59282b4fc470e5e14b733ac7833fbd | |
parent | f02f30c827fe8ab976b4d7053bf7995c43bf67d4 [diff] |
VTS: check ro.vendor.api_level instead of ro.board.(first_)api_level Bug: 327526153 Test: atest VtsHalMediaC2V1_0TargetMasterTest (cherry picked from https://android-review.googlesource.com/q/commit:04c8943004913bb606d959b7f796477016a3b1e0) Merged-In: I130134b791bf9b3ebe1a9687c921dbbd5295e143 Change-Id: I130134b791bf9b3ebe1a9687c921dbbd5295e143
diff --git a/media/codec2/hal/hidl/1.0/vts/functional/master/VtsHalMediaC2V1_0TargetMasterTest.cpp b/media/codec2/hal/hidl/1.0/vts/functional/master/VtsHalMediaC2V1_0TargetMasterTest.cpp index a34cef1..d1f0fb5 100644 --- a/media/codec2/hal/hidl/1.0/vts/functional/master/VtsHalMediaC2V1_0TargetMasterTest.cpp +++ b/media/codec2/hal/hidl/1.0/vts/functional/master/VtsHalMediaC2V1_0TargetMasterTest.cpp
@@ -84,14 +84,11 @@ } TEST_P(Codec2MasterHalTest, MustUseAidlBeyond202404) { - static int sBoardFirstApiLevel = android::base::GetIntProperty("ro.board.first_api_level", 0); - static int sBoardApiLevel = android::base::GetIntProperty("ro.board.api_level", 0); - if (sBoardFirstApiLevel < 202404 && sBoardApiLevel < 202404) { - GTEST_SKIP() << "board first level less than 202404:" - << " ro.board.first_api_level = " << sBoardFirstApiLevel - << " ro.board.api_level = " << sBoardApiLevel; + static int sVendorApiLevel = android::base::GetIntProperty("ro.vendor.api_level", 0); + if (sVendorApiLevel < 202404) { + GTEST_SKIP() << "vendor api level less than 202404: " << sVendorApiLevel; } - ALOGV("HidlCodecAllowed Test"); + ALOGV("MustUseAidlBeyond202404 Test"); EXPECT_NE(mClient->getAidlBase(), nullptr) << "android.hardware.media.c2 MUST use AIDL " << "for chipsets launching at 202404 or above";