summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreeHugger Robot2017-10-05 08:08:16 -0500
committerAndroid (Google) Code Review2017-10-05 08:08:16 -0500
commit7a3de797e0158e0100a1adf672001b73395bcb85 (patch)
treebf0cd4bb607a976aa3a65d1061f803100ead9555 /media/omx/1.0
parent65f07d30942f517ffd3bd368e19eb8133bab1e4e (diff)
parentcfc4b13b7b5ae748aee9bb2ed5f985fa4377b3a8 (diff)
downloadplatform-hardware-interfaces-7a3de797e0158e0100a1adf672001b73395bcb85.tar.gz
platform-hardware-interfaces-7a3de797e0158e0100a1adf672001b73395bcb85.tar.xz
platform-hardware-interfaces-7a3de797e0158e0100a1adf672001b73395bcb85.zip
Merge "Revert "Port mode configuration test - II""
Diffstat (limited to 'media/omx/1.0')
-rw-r--r--media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoDecTest.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoDecTest.cpp b/media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoDecTest.cpp
index 3e09353e..a2547e89 100644
--- a/media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoDecTest.cpp
+++ b/media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoDecTest.cpp
@@ -857,20 +857,6 @@ TEST_F(VideoDecHidlTest, DecodeTest) {
857 status = setPortBufferSize(omxNode, kPortIndexInput, maxBytesCount); 857 status = setPortBufferSize(omxNode, kPortIndexInput, maxBytesCount);
858 ASSERT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK); 858 ASSERT_EQ(status, ::android::hardware::media::omx::V1_0::Status::OK);
859 859
860 // Change the port modes arbitrarily at the start before finialising on the
861 // desired values.
862 PortMode dummyPM[] = {
863 PortMode::PRESET_BYTE_BUFFER, PortMode::PRESET_ANW_BUFFER,
864 PortMode::PRESET_SECURE_BUFFER, PortMode::DYNAMIC_ANW_BUFFER,
865 PortMode::DYNAMIC_NATIVE_HANDLE,
866 };
867 for (size_t k = 0; k < sizeof(dummyPM) / sizeof(dummyPM[0]); k++) {
868 // ports may or may not support these modes. These are not the final
869 // values. This init is done to test if causes any problems.
870 status = omxNode->setPortMode(kPortIndexInput, dummyPM[k]);
871 status = omxNode->setPortMode(kPortIndexOutput, dummyPM[k]);
872 }
873
874 // set port mode 860 // set port mode
875 portMode[0] = PortMode::PRESET_BYTE_BUFFER; 861 portMode[0] = PortMode::PRESET_BYTE_BUFFER;
876 portMode[1] = PortMode::DYNAMIC_ANW_BUFFER; 862 portMode[1] = PortMode::DYNAMIC_ANW_BUFFER;