commit | 50d83c78558fc64309ecb0c6431201c92e9c4e5f | [log] [tgz] |
---|---|---|
author | Pawin Vongmasa <pawin@google.com> | Thu Jul 11 18:12:18 2019 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Thu Jul 11 18:12:18 2019 -0700 |
tree | fb5e222a96b08baac0a09ba0e672ad7d76181e4e | |
parent | e84253d7e3925c2404b7c76def6878740db124b2 [diff] | |
parent | ace31cd04a8dfc37d488c8118818525ae8a733ed [diff] |
Merge "Skip secure decoders in C2 VTS" into qt-dev am: ace31cd04a Change-Id: I6887ec10db867a766765fe5d6fe95c5df2388522
diff --git a/media/codec2/hidl/1.0/vts/functional/video/VtsHalMediaC2V1_0TargetVideoDecTest.cpp b/media/codec2/hidl/1.0/vts/functional/video/VtsHalMediaC2V1_0TargetVideoDecTest.cpp index 0e20b47..5e28750 100644 --- a/media/codec2/hidl/1.0/vts/functional/video/VtsHalMediaC2V1_0TargetVideoDecTest.cpp +++ b/media/codec2/hidl/1.0/vts/functional/video/VtsHalMediaC2V1_0TargetVideoDecTest.cpp
@@ -124,6 +124,13 @@ mTimestampUs = 0u; mTimestampDevTest = false; if (mCompName == unknown_comp) mDisableTest = true; + + C2SecureModeTuning secureModeTuning{}; + mComponent->query({ &secureModeTuning }, {}, C2_MAY_BLOCK, nullptr); + if (secureModeTuning.value == C2Config::SM_READ_PROTECTED) { + mDisableTest = true; + } + if (mDisableTest) std::cout << "[ WARN ] Test Disabled \n"; }