Bug: 32023356
Test: make vts.
cover basic encoder & decoder test to all components
Till the previous commit, few components went untested.
This commit covers all softomx components.
Test: tested on softomx components
Change-Id: I4c996a3743a6190d9c6d4c835aa89daefdc14658
enumerate profile and level for encoder components
Change-Id: I4b9d3b3106d33a0241a7e36bd7189c1b3ef40ef0
bug fix: omx android compile as 32bit on 64bit platforms
thanks lajos
Change-Id: If11b20eeb6a75319f9e0cd6a62524dadab2ba8af
Add more VTS tests for IOmxStore and IOmxNode
Change-Id: I3401025b4f0b821f469222707c75b49fe4f0b0c5
avoid false flagging of errors
If testing of the given component is not supported application do not flag
an error, instead exit gracefully.
Change-Id: Ic91a92614d18b204cc50b7d8f6dc1a0ca81ff782
Add support for g711, gsm and raw audio decoder components
Change-Id: Ied70abdabb397a7a63e13293a8b35365a6b23e4f
split eos test
the eos test in decoders handles three different cases. These are now
separated in to different test fixtures.
Change-Id: I30c102109ce60a345f878d03d481337462fc817f
Change-Id: I3401025b4f0b821f469222707c75b49fe4f0b0c5
Bug: 32023356
Test: make vts.
preload elementary stream information during decoding
instead of using extractor to get the frame boundaries, frame
flags and timestamp information, they are read from a metadata
file in the resources directory on demand. Instead of doing it
on demand, we load the entire file information and use it. This
modification comes in handy for future test fixtures
Change-Id: I3a434018111eb66008f17c24b4c2c16d0db22ed1
bug fix: wait on input consumption
after queuing all the frames that need to be processed by
the component, the application continues its job of deinitializing
the component before ensuring all the inputs were decoded.
This is corrected.
Change-Id: I09a11fd5badabe2889ba243383145be07be51953
add end of stream test for audio decoder
component is provided an input with nFlags field set OMX_BUFFERFLAG_EOS.
the application expects this flag to be returned via one of its output
buffers. this flag is passed to the component at different timings to test
the robustness.
Change-Id: I00e3fdd5ef50d93f2620d8b0e9fc3c358de428d7
add timestamp deviation test for decoder components
the list of timestamps received from the component is
compared with the list provided to the component for any
differences
Change-Id: Ifcc16b7a00f58e1c1dfdba9f538d307ddcbfcc71
add option to configure resource files path
default location of resource files is /sdcard/media/. client can provide
choice of this location via the option -P.
example: VtsHalMediaOmxV1_0TargetVideoDecTest -C <component> -R <role> -P /sdcard/res/
Change-Id: Ib8d3af03c19a171e3bbb9839f7e331cbe576b24b
add flush test for audio & video dec components
while decoding a group of frames, flush call is made and it is
checked if all the i/o buffers are sent back to client. we then
seek to the next keyframe and test for decoding. monotonous
increase of timestamps is ensured.
Change-Id: Id48c76c157ebdfdefd3003e57519da3bd9715973
android.hidl.base@1.0 and android.hidl.manager@1.0 are built into libhidltransport.
Test: links
Bug: 33276472
Merged-In: I08aaad80f7e2fc262aa3a8b66fe932e8133a928d
Change-Id: I08aaad80f7e2fc262aa3a8b66fe932e8133a928d
Bug: 32023356
TODO: cleanup the test code b/37719510
ComponentTest :-
1. allocatePortBuffers cleanup
2. More than one test fixture performs State transitions
(Loaded <-> Idle <-> Execute). So, this is moved to a routine and
invoked when needed.
3. Dispatch input/output buffers code section is moved to a routine
4. Seperated Test fixtures StateTransitions_Flush
5. Added Doc string
6. Test component port population
AudioDecTest :-
1. Backport Cleanup changes from ComponentTest to AudioDecTest
2. Added elementary streams for the following codecs mp3, amr-nb &
Updated paths to elementary streams in audio decoder test
Test: Tested ComponentTest and AudioDecTest for mp3
Change-Id: I90decde4dfab55c3d456dfd88b474dd5abe8eebc
List Available components (roles) in android media framework
Change-Id: I210665843e997e60b167f2d680c87b1cc4f90c58
add README.md
Change-Id: I3a2a057d10b18f4f374928a996b8b4ea4b084770
add basic video decoder tests
for a given component test for successful decoding of an input clip
Test: tested for softavc decoder
Change-Id: I2f4c034c34a456e1ed0c2d32ef381ca48aeda8ff
add basic audio encoder tests
for a given component, test for successful encoding of an input clip
Test: tested on softaac, softamrnb, softamrwb & softflac components
Change-Id: I05f5646ffed37143a21ea72f0fd782c2bb5c4d82
add basic video encoder tests
For a given component test successful encoding of nframes of a
raw video clip
Test: tested on softavc encoder.
Change-Id: Ia1d754061e8362f6c08a2be3d6384c95589a36de
Test: Manual use of Camera, Movies, Photos and YouTube apps.
Test: With CtsMediaTestCases.apk installed,
adb shell am instrument -e size small -w
'android.media.cts/android.support.test.runner.AndroidJUnitRunner'
Bug: 37302530
Change-Id: I63ba807955c2e2a7ec7f6ecc2d8a832f252c0c1b
Change-Id: I0cb1997e9cc0427fdfe8091de84e8cb75c7bab14
Test GetPortIndices
Tests support for omx index type: OMX_IndexParamAudioInit,
OMX_IndexParamImageInit, OMX_IndexParamVideoInit, OMX_IndexParamOtherInit.
Change-Id: I50c7c70c8e000684ef02a6e372be32f9c178e74d
Test Port Enabling/Disabling
Enumerate the list of ports available on the component.
Test if they can be disabled and enabled. This test is carried
when the component is in Loaded state. Also, omx-il specification
allows enabling and disabling all ports at once by passing the
argument OMX_ALL. The behavior of the component on this argument
is tested. Disable and enable a port index that is not supported
by the component is also tested.
Change-Id: I1ab3cc3652a63d05bd0c3ceae92e01ebd4aae12d
Test State Transitions
Change the states of the component from loaded->idle->execute->idle->loaded
While the component is switching states, make sure the below dependencies are met.
1. When the component is switching from Loaded to Idle,
ensure this transition does not take place until the supplier has provided
the ports their necessary buffers
2. When the component is switching from Idle to execute,
change the buffer owner from Client to Component.
3. When the component is switching from execute to Idle,
ensure the client got all the buffers it supplied to the component back.
4. When the component is switching from Idle to loaded,
ensure this transition takes place only after freeing all the buffers
Change-Id: I7c3f6f65adf3afda4e54ca7cafb5bb7799a5b2d6
Test for Flush
When the component is in execute state and as buffers are being
exchanged between client and component, call a flush. Test that all
the unprocessed buffers are returned to the client
Change-Id: I00f4c356df0e832aecc457a53163532e82ead9a3
Fix object labels for master and component
This changes maintains consistency across Vts test folders
Change-Id: I0f3e40db04876a3dab170936037c42f994d67c18
Audio_enc/Audio_dec folders are removed.
The current folders needs work. We will revisit this again
Change-Id: Ic8287288d0727f1384e096b846e0066b2ec9f95f
Fix Object labels for common
Change-Id: I8f19a339983aa81d581ed3d55780180f8d976382
Test Port Definition structures
Tests support for omx index type OMX_IndexParamPortDefinition
Change-Id: I45d82199c6cf20f24aa42d9fea69bd1c88a51757
Bug fix : Pass i/o buffer structure information while dequeueing messages
Also fixed sending false port id during freeBuffer call.
Change-Id: Id5c4f67cccea6b577880e42ee0d294cc55d534ad
Test port reconfiguration and buffer flow in audio decoder
In the current commit we have added tests for audio decoder
components. The selected component decodes an elementary stream
and in this process port reconfiguration, buffer flow and flush
are tested.
Test: mma
Change-Id: I42c8397f704f5fa69878efe91932c477ac66d1b2
IOmxStore is used for passing results from parsing media_codecs.xml and
related XML files to the framework. Once XML parsing is moved to the HAL
side, IOmxNode::setQuirks will not be needed anymore.
Test: Media post-submit tests on Pixel phone.
Test: Manual use of Camera, Photos, Play Movies and YouTube apps.
Bug: 36952714
Change-Id: I6b24c486c6f8afcbef6ee88a13b2b5bb08d3e656
Now, only the transport-level status is needed, so
::android::hardware::Status is sufficient.
Also simplify IOmxNode::sendCommand().
Test: Compiles
Bug: 31399200
Change-Id: Ia4cfc16681d19eb96f89d8db715fcc14516cb41a
The server side only needs information of type ANativeWindowBuffer, not
GraphicBuffer.
Test: Compiles
Bug: 31399200
Change-Id: Ic967c58d8c922e0c422e5b63fa5ce2188da89010