summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorPawin Vongmasa <pawin@google.com>2018-07-11 23:22:17 -0700
committerPawin Vongmasa <pawin@google.com>2018-07-11 23:29:14 -0700
commitc0243f2ff85d3d8d897f34d063177169e736a500 (patch)
treefd09cd3ac28593b3fa9bc148d9c4b6ee0061e9e3 /media
parent70d13c2ad31cf8e9bcf2d9c81e0161ba3295cc1e (diff)
parentb92f1d2e1be35b331b18589a8cde81d51ddd31d6 (diff)
downloadandroid_hardware_interfaces-c0243f2ff85d3d8d897f34d063177169e736a500.tar.gz
android_hardware_interfaces-c0243f2ff85d3d8d897f34d063177169e736a500.tar.bz2
android_hardware_interfaces-c0243f2ff85d3d8d897f34d063177169e736a500.zip
resolve merge conflicts of b92f1d2e1be35b331b18589a8cde81d51ddd31d6 to oreo-mr1-vts-dev
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: I38f6309b638e604403dba15fa1fe1022b298c5b2
Diffstat (limited to 'media')
-rw-r--r--media/omx/1.0/vts/functional/audio/VtsHalMediaOmxV1_0TargetAudioDecTest.cpp10
1 files changed, 10 insertions, 0 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 38cdcd650..0b661c94e 100644
--- a/media/omx/1.0/vts/functional/audio/VtsHalMediaOmxV1_0TargetAudioDecTest.cpp
+++ b/media/omx/1.0/vts/functional/audio/VtsHalMediaOmxV1_0TargetAudioDecTest.cpp
@@ -225,6 +225,15 @@ class AudioDecHidlTest : public ::testing::VtsHalHidlTargetTestBase {
framesReceived = 0;
timestampUs = 0;
timestampDevTest = false;
+ isSecure = false;
+ size_t suffixLen = strlen(".secure");
+ if (strlen(gEnv->getComponent().c_str()) >= suffixLen) {
+ isSecure =
+ !strcmp(gEnv->getComponent().c_str() +
+ strlen(gEnv->getComponent().c_str()) - suffixLen,
+ ".secure");
+ }
+ if (isSecure) disableTest = true;
if (disableTest) std::cout << "[ WARN ] Test Disabled \n";
}
@@ -321,6 +330,7 @@ class AudioDecHidlTest : public ::testing::VtsHalHidlTargetTestBase {
OMX_AUDIO_CODINGTYPE eEncoding;
bool disableTest;
bool eosFlag;
+ bool isSecure;
uint32_t framesReceived;
uint64_t timestampUs;
::android::List<uint64_t> timestampUslist;