summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawin Vongmasa2018-05-10 21:05:09 -0500
committerPawin Vongmasa2018-07-11 20:05:25 -0500
commitb92f1d2e1be35b331b18589a8cde81d51ddd31d6 (patch)
treeeaebf9a46e6f25827b4d37485f7d73dc5ff726fa /media/omx/1.0
parent01ead7c96b67f230425e8c131258d5ff9b8aa3ff (diff)
downloadplatform-hardware-interfaces-b92f1d2e1be35b331b18589a8cde81d51ddd31d6.tar.gz
platform-hardware-interfaces-b92f1d2e1be35b331b18589a8cde81d51ddd31d6.tar.xz
platform-hardware-interfaces-b92f1d2e1be35b331b18589a8cde81d51ddd31d6.zip
Disable tests for secure audio decoders
Test: make vts -j123 && vts-tradefed run commandAndExit vts \ --skip-all-system-status-check \ --skip-preconditions -m VtsHalMediaOmxV1_0Host \ -l INFO Bug: 70933963 Change-Id: Iaaf3b7d382e7df4374dd7e03e5cc7b2ae6861fad
Diffstat (limited to 'media/omx/1.0')
-rw-r--r--media/omx/1.0/vts/functional/audio/VtsHalMediaOmxV1_0TargetAudioDecTest.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/media/omx/1.0/vts/functional/audio/VtsHalMediaOmxV1_0TargetAudioDecTest.cpp b/media/omx/1.0/vts/functional/audio/VtsHalMediaOmxV1_0TargetAudioDecTest.cpp
index 9e5dde1f..346605ae 100644
--- a/media/omx/1.0/vts/functional/audio/VtsHalMediaOmxV1_0TargetAudioDecTest.cpp
+++ b/media/omx/1.0/vts/functional/audio/VtsHalMediaOmxV1_0TargetAudioDecTest.cpp
@@ -209,7 +209,16 @@ class AudioDecHidlTest : public ::testing::VtsHalHidlTargetTestBase {
209 framesReceived = 0; 209 framesReceived = 0;
210 timestampUs = 0; 210 timestampUs = 0;
211 timestampDevTest = false; 211 timestampDevTest = false;
212 if (disableTest) std::cerr << "[ ] Warning ! Test Disabled\n"; 212 isSecure = false;
213 size_t suffixLen = strlen(".secure");
214 if (strlen(gEnv->getComponent().c_str()) >= suffixLen) {
215 isSecure =
216 !strcmp(gEnv->getComponent().c_str() +
217 strlen(gEnv->getComponent().c_str()) - suffixLen,
218 ".secure");
219 }
220 if (isSecure) disableTest = true;
221 if (disableTest) std::cout << "[ WARN ] Test Disabled \n";
213 } 222 }
214 223
215 virtual void TearDown() override { 224 virtual void TearDown() override {
@@ -300,6 +309,7 @@ class AudioDecHidlTest : public ::testing::VtsHalHidlTargetTestBase {
300 OMX_AUDIO_CODINGTYPE eEncoding; 309 OMX_AUDIO_CODINGTYPE eEncoding;
301 bool disableTest; 310 bool disableTest;
302 bool eosFlag; 311 bool eosFlag;
312 bool isSecure;
303 uint32_t framesReceived; 313 uint32_t framesReceived;
304 uint64_t timestampUs; 314 uint64_t timestampUs;
305 ::android::List<uint64_t> timestampUslist; 315 ::android::List<uint64_t> timestampUslist;