commit | cdb89c773dafcfa8e42e300d43810787f02bba0a | [log] [tgz] |
---|---|---|
author | Pawin Vongmasa <pawin@google.com> | Wed Jul 10 17:50:49 2019 -0700 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Fri Jul 12 04:10:10 2019 +0000 |
tree | 77befd5d2a365b9f0c1d6d542f95e534c38763e8 | |
parent | 142c49942474e832674ab45325b549484f76437a [diff] |
Skip secure decoders in C2 VTS Test: vts-tradefed run vts -m VtsHalMediaC2V1_0Host Bug: 136725027 Change-Id: I78e141c04890ab153135a7cc948e2b7dc4897787 (cherry picked from commit 2cd83c9fbbd286768999ade97f7fce4b409b06c4)
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"; }