Commit graph

327 commits

Author SHA1 Message Date
Ram Mohan
179a52cbbf OMX VTS: free graphics buffers at the end of test
Bug: 173454295
Test: atest VtsHalMediaOmxV1_0TargetVideoDecTest
Test: atest VtsHalMediaOmxV1_0TargetVideoEncTest
Change-Id: Ib9660ef8967b34114b36d71f9ed424f819b57e7a
2021-01-20 13:59:50 -08:00
Xin Li
50393137ed Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: I6756cad681e4cfa01868450214da0d7b2d5261e4
Change-Id: Ia529ecf4f48248d5af63673f359916486f71bc35
2020-10-08 23:22:52 -07:00
Dan Shi
ac9cf4482b Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I627d6790aa08aa9c6e3c5b8bdc533213ee08de21
Merged-In: I627d6790aa08aa9c6e3c5b8bdc533213ee08de21
2020-09-11 11:02:25 -07:00
Xin Li
36dcf1a404 Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I6502829205ede2de914b27e6c2c5c42916af2b39
Change-Id: I7cb06511e43bd1fffd5f80a11dbdf5b1314cfe8e
2020-08-28 13:05:04 -07:00
Sungtak Lee
1d5fbadc8b [DO NOT MERGE] resolve merge conflicts of a57cde11c4 to rvc-d1-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: I4f79427ceeaec1b823270bbc8f2513ed28ea8f67
2020-08-05 13:51:48 -07:00
Lajos Molnar
7a3434e08e resolve merge conflicts of ae811bc806 to rvc-dev-plus-aosp
Change-Id: I555ff20739fe7e2ed195d1e670ebec5f1da4aaf0
2020-08-02 23:35:10 -07:00
Lajos Molnar
237e3d7ffc omx vts: update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

BUG=161896447

Change-Id: I0ced401233497bbbfce90e9b84147bb08399e421
2020-07-31 04:35:05 +00:00
Lajos Molnar
3836d5584a omx: rename master to store
Update language to comply with Android's inclusive language guidance

See https://source.android.com/setup/contribute/respectful-code for reference

BUG=161896447

Change-Id: I9b1f8ed9da444024cd2fa2f3a62b6874dcd96cf7
2020-07-31 04:34:57 +00:00
Pawin Vongmasa
0f9e6d56dc OMX VTS: Use GetComponentRole from OMXUtils
Test: atest VtsHalMediaOmxV1_0TargetMasterTest

Bug: 159410244
Change-Id: Iba2a7259ddc5fc634b22d8c5954178dede6b71d5
Merged-In: Iba2a7259ddc5fc634b22d8c5954178dede6b71d5
2020-07-31 04:34:45 +00:00
Devin Moore
34a4184d91 Convert Python OMX VTS test to Gtest
Moving the extra tests from
test/vts-testcase/hal/media/omx/V1_0/host_omxstore/VtsHalMediaOmxStoreV1_0HostTest.py
to the OMX Gtest in VtsHalMediaOmxV1_0TargetMasterTest.

This is mostly validating the RoleInfo and NodeInfo data obtained from
IOmxStore interface.

Bug: 152237762
Test: atest VtsHalMediaOmxV1_0TargetMasterTest on cf and pixel devices
Change-Id: I8174b8953ee5e484777afb21b2d170cec0159edc
Merged-In: I8174b8953ee5e484777afb21b2d170cec0159edc
2020-07-31 04:34:06 +00:00
Dan Shi
e5c9b5e722 Suppress gtest error for tests without any instance am: ba4d532fee am: 73122cd284
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1374050

Change-Id: Ie5e956d4613f5e947c36ba4f1048f0c3aa8944ba
2020-07-29 05:45:58 +00:00
Dan Shi
ba4d532fee Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I8c1a48e6fbd7c8161137902b5332911fa0d7b8b3
2020-07-28 15:12:32 -07:00
Manisha Jajoo
868c18341d [DO NOT MERGE] OMX VTS: Use GraphicBuffer utils from libui
Use GraphicBufferMapper and GraphicBufferAllocator for
gralloc buffers. This makes the tests independent of
gralloc version

Bug: 160355727
Test: atest VtsHalMediaOmxV1_0TargetMasterTest \
        VtsHalMediaOmxV1_0TargetComponentTest \
        VtsHalMediaOmxV1_0TargetAudioEncTest \
        VtsHalMediaOmxV1_0TargetAudioDecTest \
        VtsHalMediaOmxV1_0TargetVideoDecTest \
        VtsHalMediaOmxV1_0TargetVideoEncTest

Change-Id: If407ac3d8c0fadc55a8e57627121244a8d5155f8
2020-07-27 23:18:48 +00:00
jack.cc-hsu
69e801624a Update nodeNamePattern rule am: 88990e687c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12134843

Change-Id: Ia0c61c9a02523ba45660e5f699a521ad1fb225fa
2020-07-13 20:32:54 +00:00
jack.cc-hsu
88990e687c Update nodeNamePattern rule
Include '_' which has always been allowed.

Bug: 158645317
Test: VtsHalMediaOmxV1_0TargetMasterTest : OK
Change-Id: Ia1cfc6004961ffad76843920fe4d5423f70244e7
2020-07-13 16:33:08 +00:00
Jooyung Han
d610435ac4 update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-07 16:22:36 +09:00
Jooyung Han
d18cba85fe update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-02 12:26:37 +09:00
TreeHugger Robot
f00aabf409 Merge "OMX VTS: Use GetComponentRole from OMXUtils" into rvc-dev am: da96bb5226
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11945946

Change-Id: If2cede806116884346b60dcdd44a8c91734beb90
2020-06-22 03:51:10 +00:00
Pawin Vongmasa
922654fc4d OMX VTS: Use GetComponentRole from OMXUtils
Test: atest VtsHalMediaOmxV1_0TargetMasterTest

Bug: 159410244
Change-Id: Iba2a7259ddc5fc634b22d8c5954178dede6b71d5
2020-06-21 05:19:14 -07:00
Orion Hodson
9220d84c08 Merge "Use shared library variant of libnativehelper" am: 3f7367a17e am: b23a1ed78c
Change-Id: Id746582ededb3e46aa93483da921e6eb967c823e
2020-05-04 07:43:37 +00:00
Orion Hodson
d1565e78d3 Use shared library variant of libnativehelper
Now available as a public library, static variant will be retired.

Bug: 150252746
Bug: 151443957
Test: mma
Change-Id: I3c0bd3d53eb457577a22cf74c9a6d852ed69c9be
2020-04-28 18:54:31 +01:00
Devin Moore
5bd2a350ad Convert Python OMX VTS test to Gtest
Moving the extra tests from
test/vts-testcase/hal/media/omx/V1_0/host_omxstore/VtsHalMediaOmxStoreV1_0HostTest.py
to the OMX Gtest in VtsHalMediaOmxV1_0TargetMasterTest.

This is mostly validating the RoleInfo and NodeInfo data obtained from
IOmxStore interface.

Bug: 152237762
Test: atest VtsHalMediaOmxV1_0TargetMasterTest on cf and pixel devices
Change-Id: I8174b8953ee5e484777afb21b2d170cec0159edc
2020-04-27 18:42:59 -07:00
Steven Moreland
c6e69bde30 Rename vts-core to vts
Bug: 151896491
Bug: 139438327
Test: local build
Change-Id: Ida36f4e10bbdd72f58039f8ee5ae6f61edac4769
Merged-In: Id542b54ba2da1fca03a9c44bf05d0f68793445cf
2020-04-22 00:06:21 +00:00
Dan Shi
ba894f81db Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 15:17:02 -07:00
Dan Shi
d6fea1eaa1 Convert MediaOmx tests to parameterized gtest
Bug: 142950220
Test: atest VtsHalMediaOmxV1_0TargetMasterTest \
  VtsHalMediaOmxV1_0TargetComponentTest \
  VtsHalMediaOmxV1_0TargetAudioEncTest \
  VtsHalMediaOmxV1_0TargetAudioDecTest \
  VtsHalMediaOmxV1_0TargetVideoDecTest \
  VtsHalMediaOmxV1_0TargetVideoEncTest

Change-Id: Id1b8f6073c98db36c0ac86a881e7220ecfd0a71f
Merged-In: Id1b8f6073c98db36c0ac86a881e7220ecfd0a71f
2020-04-07 21:31:03 +00:00
Dan Shi
e2a91ed317 Convert MediaOmx tests to parameterized gtest
Bug: 142950220
Test: atest VtsHalMediaOmxV1_0TargetMasterTest \
  VtsHalMediaOmxV1_0TargetComponentTest \
  VtsHalMediaOmxV1_0TargetAudioEncTest \
  VtsHalMediaOmxV1_0TargetAudioDecTest \
  VtsHalMediaOmxV1_0TargetVideoDecTest \
  VtsHalMediaOmxV1_0TargetVideoEncTest

Change-Id: Id1b8f6073c98db36c0ac86a881e7220ecfd0a71f
2020-03-20 11:36:06 -07:00
Pawin Vongmasa
a31394b245 Add media.c2@1.1
Add configureVideoTunnel() to IComponent.

Test: make vts -j123 && vts-tradefed run commandAndExit vts \
-m VtsHalMediaC2V1_0Host

Bug: 136316504
Change-Id: I505b7b89a02e5aaf2bd735dced1e39cd9e8b8991
2019-11-14 21:25:37 -08:00
Pawin Vongmasa
d9ffb184a2 OMX VTS: Move device resource files to data/local/tmp am: a54bf6ed5a
am: 80fb244de2

Change-Id: Ice78802cdf573246e361366cea3c1bc8d2c87629
2019-08-22 18:59:54 -07:00
Pawin Vongmasa
a54bf6ed5a OMX VTS: Move device resource files to data/local/tmp
Some devices make /sdcard a symbolic link to a non-constant target. The
target changes between the setup and the execution, so files pushed to
/sdcard during the setup cannot be found when the test runs.

Test: vts-tradefed run vts -m VtsHalMediaOmxV1_0Host

Bug: 138388013
Change-Id: I824b84ef8570ba501cf8137d695f98c335f92c7b
2019-08-22 07:29:05 +00:00
Pawin Vongmasa
8525533aa3 Merge "Support IMapper@3.0 in OMX VTS" into qt-dev am: 56e9dd901e
am: fe4f9ebb45

Change-Id: I6e0dd790ac8c113b21bfa039cae9bab1a0d22d45
2019-07-09 11:17:26 -07:00
Pawin Vongmasa
94a3234219 Support IMapper@3.0 in OMX VTS
Test: vts-tradefed run vts -m VtsHalMediaOmxV1_0Host

Bug: 135422812

Change-Id: I9a37b4f926813b0cd90f96e318760eecafd04e06
2019-07-08 21:31:33 -07:00
Steven Moreland
99712c08cc Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I53e5bf67a0d314e1b10c0ba0c7172a7af358ddcc
2019-04-18 18:13:05 -07:00
Steven Moreland
6d494b2346 Merge "Update hidl makefiles for bpfmt" am: ff0bd741ca
am: 96f40f7b02

Change-Id: Idbf030e4993067bdb8181321bca2de00c9b6f7ef
2019-04-18 14:34:45 -07:00
Steven Moreland
1ae4615d9f Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
2019-04-17 09:38:50 -07:00
Pawin Vongmasa
4b5dce8bb5 Use safe_union in FieldSupportedValues
Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 129084824
Change-Id: I9ae77a6a6697dcc508415090640a21841caba345
2019-03-22 07:45:36 -07:00
Pawin Vongmasa
d9dcc1752e Use @2.0::IGraphicBufferProducer in media.c2
Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 33350696
Bug: 112362730
Change-Id: I561b96b4a416a92649bd1de174d55c6317d9b40a
2019-03-19 07:48:15 -07:00
Manisha Jajoo
70de321e05 omx:component: add support for tunneled components in ComponentTest am: 4609857ee4 am: f31fd7f8cb
am: 880ef39899

Change-Id: I268104aa25c7ed3305d607e71e9ba66dc268f489
2019-03-11 13:22:09 -07:00
Manisha Jajoo
880ef39899 omx:component: add support for tunneled components in ComponentTest am: 4609857ee4
am: f31fd7f8cb

Change-Id: I114e154d9d912094d06fe1785aff20c77c3cb7fd
2019-03-11 12:45:32 -07:00
Steven Moreland
87f43604b9 Merge "Update makefies: no 'types' internal" 2019-03-05 17:40:03 +00:00
Steven Moreland
7f4e21adda Merge "Update makefies: no 'types'" am: 4ee5ec1469 am: bab622f6a6
am: 7224bc9bcf

Change-Id: I434939e0770afa436c532a945542fce30a71ef7d
2019-03-04 16:05:59 -08:00
Steven Moreland
b91ac5c6a0 Update makefies: no 'types' internal
Bug: 123976090
Test: N/A
Change-Id: I84b659b163b63d39535b462a3df8a9c19f680976
2019-03-04 14:09:25 -08:00
Steven Moreland
a878aee9ab Update makefies: no 'types'
Bug: 123976090
Test: N/A
Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
2019-03-04 11:27:17 -08:00
Pawin Vongmasa
b58b311ac7 Add asInputSink() to IComponent
By making IComponent present itself as an IInputSink, the wrapper code
can be made to execute in the same process as the IComponent instance,
hence reducing an IPC hop in the case where an InputSurface comes from a
different process.

Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 126296132
Change-Id: I61409ccfa9a9d6b152e2c9363ff119302ce8ae1a
2019-03-02 02:18:59 -08:00
Manisha Jajoo
4609857ee4 omx:component: add support for tunneled components in ComponentTest
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: 70933963

Change-Id: I5695820b225041f5b764506cdafacf7c95d836aa
2019-02-04 18:58:12 -08:00
Pawin Vongmasa
6c9e784822 Revert to new Codec2 HAL
This includes the following changes:
1. Revert commit 7570e3cd4b.
2. Revert commit 2a40d309b7eefe36d2f78bbff42aafad24eb65b0.
3. Use the new bufferpool (@2.0).
4. Use the old bufferqueue (@1.0).
5. Add IInputSink to eliminate downcasting from IBase.

Test: Builds
Bug: 112362730
Change-Id: I2b5f2e2821c62cbb7166320e1e128d883e278480
2019-01-23 22:33:40 -08:00
Sungtak Lee
b1d28b751b Use bufferpool@2.0
Use bufferpool@2.0 instead of bufferpool@1.0 from Codec2 HIDL

Change-Id: I55044f367a4ff3facb8bc81929350eb78df067a8
2018-12-11 17:36:56 -08:00
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
Keun Soo YIM
ff84c37bc1 pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-11-27 16:11:41 -08:00
Pawin Vongmasa
9d1cf2ab29 Copy from the old version of Codec2 HAL
This CL makes transitioning of Codec2 HAL from private to public
smoother. The CL will be reverted later.

Test: Builds
Bug: 112362730
Change-Id: Id0e199112e968e35ed3b27413baae810f1ecb2df
2018-11-14 23:53:36 -08:00
Pawin Vongmasa
7570e3cd4b Use old version of IGBP and bufferpool
The purpose of this CL is to make transitioning smoother. This CL
will be reverted later.

Test: Builds
Bug: 112362730
Change-Id: I65bf589facd0dda7a9af8b552eb795153dc1bd87
2018-11-12 16:30:22 -08:00