Commit graph

154 commits

Author SHA1 Message Date
Ram Mohan M
09c89966bf omxvts:vid:dec: modify resource files for avc dec and mpeg4 dec
Resource files for avc and mpeg4 are at higher resolutions than what the
CDD requires. This CL corrects the issue.

Test: make vts -j123 && vts-tradefed run commandAndExit vts \
--skip-all-system-status-check \
--skip-preconditions -m VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 68828675
Change-Id: I5a32bccae1b14a72ae0db2ffafd4a0e86cced74b
2017-11-09 00:19:23 +00:00
Ram Mohan M
a0698429dd bug fix: during fatal fails bypass freeNode() calls
If test application undergoes a fatal failure bypass all the omx
api calls till the application safely returns.

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 63796949

Change-Id: If5a33672a31665db913e53c6f8ba8bea6cfd3ebd
2017-10-17 04:34:30 -07:00
Ram Mohan M
7bb5670322 omxvts: exit gracefully during fatal fails
Bug: 63796949

Change-Id: I735db42f7de6926adddd328db1a48de35faaa608
2017-10-05 00:41:43 -07:00
Ram Mohan M
9502b237f7 omxvts: fix binary for 64bit platforms
Bug: 63796949

Change-Id: Ieddae0bd9fc45a88c6e1579bdd588b77b4174a1f
2017-09-29 04:41:41 -07:00
Ram Mohan M
028540b3a1 omxvts: misplaced lock can cause race condition
upon unsuccessful return during timed wait, relock the mutex before
accessing message list.

Bug: 63796949

Change-Id: I84a43e148a6415e629cb39a6b9dfe27259f8f2fd
2017-09-29 04:39:48 -07:00
TreeHugger Robot
f213eca917 Merge "Add flush test" into oc-mr1-dev 2017-09-21 01:01:13 +00:00
TreeHugger Robot
f11a1ef8b5 Merge "Enable EOSTest_M test" into oc-mr1-dev 2017-09-21 01:00:47 +00:00
TreeHugger Robot
98d4fd9ed6 Merge "Signal eof flag for each input buffer" into oc-mr1-dev 2017-09-21 01:00:22 +00:00
TreeHugger Robot
5f03369e25 Merge "Add support for preset ANW buffer mode" into oc-mr1-dev 2017-09-21 00:59:59 +00:00
TreeHugger Robot
97d9efb4e0 Merge changes I4a4aad3a,I40b94919 into oc-mr1-dev
* changes:
  Extend adaptive playback test for graphic buffer modes
  Move graphic buffer allocation to common
2017-09-21 00:59:35 +00:00
TreeHugger Robot
404a1c69c1 Merge "Add vts audio dec test for flac decoder" into oc-mr1-dev 2017-09-21 00:59:09 +00:00
TreeHugger Robot
f4570eb0d0 Merge "Add adaptive playback test" into oc-mr1-dev 2017-09-20 10:14:12 +00:00
Ram Mohan M
b7de1a6ae3 Add vts audio dec test for flac decoder
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 63796949

Change-Id: Ie504de96007c1c0ec6dc9c8b7da78f6c1da45631
2017-09-17 05:24:08 -07:00
Ram Mohan M
17fa59b431 Add support for preset ANW buffer mode
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 63796949

Change-Id: I17452d9f83cf9749cd654eaf55735563f0c5f82f
2017-09-17 05:20:19 -07:00
Ram Mohan M
500052d8f0 Extend adaptive playback test for graphic buffer modes
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 63796949

Change-Id: I4a4aad3a0dd4f528c8e855164cbb2998b33be1cd
2017-09-17 05:19:16 -07:00
Ram Mohan M
957367805b Move graphic buffer allocation to common
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 63796949

Change-Id: I40b949199856beab73933a083045ed2e4e018c75
2017-09-17 05:17:34 -07:00
Ram Mohan M
0a9ac2ac78 Enable EOSTest_M test
eostest_m was disabled during the time of o-release. This is
enabled now. Also improved logging

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 63796949

Change-Id: I4797fce4f5911d9f37f5c91f179d9ab9263177f0
2017-09-17 05:10:39 -07:00
Ram Mohan M
05f81e4d07 Add adaptive playback test
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 63796949

Change-Id: I96f19946edb9a333776a60fa2c159dad67801b27
2017-09-17 05:05:21 -07:00
Ram Mohan M
3ca3988e4e Add flush test
1. omx api allows flushing all ports at once by passing the
argument OMX_ALL. This fixture tests the flush call with the
arg OMX_ALL and expects behavior to be same as when the ports
are individually flushed.
2. Flush a port that is not listed and the api call shall
return with error code OMX_ErrorBadPortIndex
3. Test the behavior of flush API call when the component is
not in Execute State (expects OMX_ErrorIncorrectStateOperation)

Note: 2, 3 tests are disabled as of now

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 63796949

Change-Id: I6f0cccea0c923116f7e41ed0ef7d8d584631256b
2017-09-17 04:23:25 -07:00
Ram Mohan M
0cf6b3df5b Signal eof flag for each input buffer
As the client sends single frame worth of data for processing all
the time, at the time of dispatch, signal eof flag for each buffer.

Also code that was repititive and doesnt serve any need is removed.

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 63796949

Change-Id: I530cbe69c27f5e4b1fae56ab808ef63107586275
2017-09-17 04:09:18 -07:00
Pawin Vongmasa
ed95ab31e1 Fix typos in IOmxStore.hal
Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 65719609
Bug: 65769027
Change-Id: I44d62cd5a8aa21d9fa816d5f0bf663e943a21bb5
2017-09-16 23:10:51 -07:00
TreeHugger Robot
6a56323738 Merge "bug fix: add missing color formats to the check for valid formats" into oc-mr1-dev 2017-09-13 22:12:19 +00:00
TreeHugger Robot
a5a5586dd1 Merge "Add portMode configuration test" into oc-mr1-dev 2017-09-12 02:21:17 +00:00
Ram Mohan M
a24f85f9b9 Merge "bug fix: handle multiple port settings change events signalled at once" into oc-dev am: f8677dcfdb
am: 37b490df35

Change-Id: I028c248ebef366eb439b369adad87047086aa07b
2017-09-07 23:45:42 +00:00
Ram Mohan M
37b490df35 Merge "bug fix: handle multiple port settings change events signalled at once" into oc-dev
am: f8677dcfdb

Change-Id: If65c243e72e890660fc4481b375b23ba109ae577
2017-09-07 23:40:43 +00:00
TreeHugger Robot
f8677dcfdb Merge "bug fix: handle multiple port settings change events signalled at once" into oc-dev 2017-09-07 23:30:17 +00:00
Ram Mohan M
fee5be0064 Merge "bug fix: restore support for broken flag" into oc-dev am: 40aad4e988
am: 062192a1be

Change-Id: I8349103fed48e5eafeffa9ea4dfc78cbe82e1d1b
2017-09-03 13:02:34 +00:00
Ram Mohan M
062192a1be Merge "bug fix: restore support for broken flag" into oc-dev
am: 40aad4e988

Change-Id: Ied23d04f5c38f81ad732424d3577edf4d3cc085d
2017-09-03 12:55:06 +00:00
TreeHugger Robot
40aad4e988 Merge "bug fix: restore support for broken flag" into oc-dev 2017-09-03 12:42:39 +00:00
Ram Mohan M
dc6270ecc1 bug fix: restore support for broken flag
timestampDevTest flag can be used to disable timestamp deviation
tests. The flag is not working as intended. This is corrected.

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 64743270
Bug: 65166112

Merged-In: I611e96498a4677b6ccbff33c291d56eed7b48f6f
Change-Id: I611e96498a4677b6ccbff33c291d56eed7b48f6f
2017-09-02 01:39:07 -07:00
TreeHugger Robot
5fe60768c2 Merge "Modify SetDefaultPortParams test" into oc-mr1-dev 2017-09-02 08:22:50 +00:00
Ram Mohan M
f88227bd94 Merge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev am: febad058bd
am: a87079c3d4

Change-Id: Ied9396646a58ca9b3f123c7db25df418b040a478
2017-09-02 03:50:43 +00:00
Ram Mohan M
a87079c3d4 Merge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev
am: febad058bd

Change-Id: I09128311ab40316b17d99daeae375ff7535d0e63
2017-09-02 03:44:45 +00:00
TreeHugger Robot
febad058bd Merge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev 2017-09-02 03:40:15 +00:00
Ram Mohan M
7fe0b2bfac Add portMode configuration test
Configuration of port mode of a component is allowed only when the
component is in loaded state. When the component is in idle/execute
state this operation is denied. This commit adds a test fixture that
verifies this.

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 63796949

Merged-In: Ib958c671873fe1d9bb4227ce3e7214f948469f19
Change-Id: Ib958c671873fe1d9bb4227ce3e7214f948469f19
2017-09-01 06:41:10 -07:00
Ram Mohan M
9fe004c216 Modify SetDefaultPortParams test
1. For output port in video encoder and input port in video decoder,
it is allowed to configure the size of the buffer. Make adjustments
in the test application to validate this scenario.

2. useBuffer api call is allowed only after sending loaded to idle
state transition command. Ensure this requirement is met.

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 63796949

Change-Id: I1aba7703e1344b87f556d3388a4cde8199898499
2017-09-01 06:37:21 -07:00
Ram Mohan M
a230bad8d4 bug fix: handle multiple port settings change events signalled at once
Components can send various kinds of port settings changed events all
at once. During a full port reconfiguration this is causing problems
due to limited flexibility in the message handling design. For now,
before committing to a full port reconfiguration defer any events
waiting in the queue to be addressed to a later point.

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 64468705

Change-Id: I537cdd3e7d92cdc6d54168f091d7897afe541599
2017-09-01 06:23:39 -07:00
Ram Mohan M
eb9e25a3e2 bug fix: disable timestamp deviation test for audio decoder
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 64128634
Bug: 65166112

Change-Id: I8a08a8da7dd203cd16cbfbfd3f15e27966db711f
2017-09-01 06:22:17 -07:00
Ram Mohan M
a7ea9ae197 bug fix: add missing color formats to the check for valid formats
Component can support 420PackedPlanar and 420PackedSemiPlanar as
their choice of color formats. The current test application can
fail in this case. This is corrected.

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 63796949

Change-Id: I38bbbb40b34dcdd4526e87708667dc116af900f1
2017-09-01 05:56:54 -07:00
Ram Mohan M
0e42ac3399 Merge "bug fix: output colorformat configuration fixed" into oc-dev
am: 1e15657ca1

Change-Id: I1bf3c443058ab57baba7c51e3f9f0ae662e61882
2017-08-25 05:16:14 +00:00
Ram Mohan M
51f04884ba Merge "bug fix: close file pointer" into oc-dev
am: 8735fb45a5

Change-Id: I7ca0f4992804da30eaac7ca24b2dbe9004a5ac55
2017-08-19 01:45:20 +00:00
Ram Mohan M
2eedb46745 Merge "bug fix: configure input port buffer size" into oc-dev
am: bc769a7e5a

Change-Id: I3a9b89f4c64d1129ea59a0144937832d93ed81fd
2017-08-19 01:44:50 +00:00
Ram Mohan M
1441864f4c bug fix: output colorformat configuration fixed
The eColorFormat field in OMX_PARAM_PORTDEFINITIONTYPE structure
has no effect on the component. This has to be configured from
OMX_VIDEO_PARAM_PORTFORMATTYPE. This is corrected. This color format
information is passed to graphic buffer during its allocation

Bug: 63796949

Merged-In: I51b1e59631647d1291ecfac373781ac5e5a0ffd5
Change-Id: I51b1e59631647d1291ecfac373781ac5e5a0ffd5
2017-08-17 21:29:32 -07:00
Ram Mohan M
727b2ba98c bug fix: close file pointer
Bug: 63796949

Merged-In: Ifd8a27d851cbc659ea8108e0879747cd9169680a
Change-Id: Ifd8a27d851cbc659ea8108e0879747cd9169680a
2017-08-17 05:31:52 -07:00
Ram Mohan M
9ce313a7b3 bug fix: configure input port buffer size
In video decoders, size of a single input frame (elementary-stream)
is dependent on width, height, color format, profile settings, ...
Most of this information is part of sps, pps and requires parsing.
But as the max size of the stream is known ahead, use it to configure
the input buffer size requirements

Bug: 63875287
Bug: 63796949

Merged-In: Ib760c4f55b094260a0abd120f852dcf1899df4e0
Change-Id: Ib760c4f55b094260a0abd120f852dcf1899df4e0
2017-08-17 05:31:33 -07:00
Ram Mohan M
0bd706936f Modify StateTransitions test
During loaded <-> idle state transition, check for events
is done after allocating all the buffers on a port. This is now
done after allocation of every single buffer. This is done to
improve scope of testing

Bug: 63796949

Change-Id: Icf3405ac6716f9533d31189f6c4a4c4ac908da5f
2017-08-15 04:57:15 -07:00
Ram Mohan M
285f8b116e bug fix: close file pointer
Bug: 63796949

Change-Id: Ifd8a27d851cbc659ea8108e0879747cd9169680a
2017-08-15 04:56:40 -07:00
Ram Mohan M
96743b4257 bug fix: configure input port buffer size
In video decoders, size of a single input frame (elementary-stream)
is dependent on width, height, color format, profile settings, ...
Most of this information is part of sps, pps and requires parsing.
But as the max size of the stream is known ahead, use it to configure
the input buffer size requirements

Bug: 63875287
Bug: 63796949

Change-Id: Ib760c4f55b094260a0abd120f852dcf1899df4e0
2017-08-15 04:55:40 -07:00
Tri Vo
24ea76c31c Merge "Media omx tests static link to dependencies." into oc-mr1-dev 2017-08-09 23:41:15 +00:00
TreeHugger Robot
438bbdac30 Merge changes I51b1e596,I3aece23a into oc-mr1-dev
* changes:
  bug fix: output colorformat configuration fixed
  bug fix: android list management in dequeueMsg()
2017-08-09 21:23:20 +00:00