Commit graph

6295 commits

Author SHA1 Message Date
Chia-I Wu
710b7085f9 Merge "graphics: discard stale data from message queue" into oc-mr1-dev 2017-09-08 22:31:31 +00:00
Kevin Rocard
81c04d9510 Audio VTS: remove expectation of policy configuration unicity am: 76efe01bbd
am: 6b51d9a855

Change-Id: I59bb70fbc000f424beeb938a08c1fcb24dc08037
2017-09-08 22:14:14 +00:00
Kevin Rocard
6b51d9a855 Audio VTS: remove expectation of policy configuration unicity
am: 76efe01bbd

Change-Id: I23948718eaed0a687cc7dbd6b4940fc8514fbe1b
2017-09-08 22:12:14 +00:00
Chia-I Wu
48ffe289b0 graphics: discard stale data from message queue
Our use of message queues is synchronous.  If there are already data
in the queue when writeQueue is called, we know they are stale and
can be discarded.

Bug: 65449888
Test: manual
Change-Id: Ie29b8a7386c9733c183a6c3569e3572efa62cbc2
2017-09-08 11:51:57 -07:00
Kevin Rocard
76efe01bbd Audio VTS: remove expectation of policy configuration unicity
The XML audio policy configuration is expected to be located in /vendor.
Additionally for AOSP builds (no vendor) and as a fallback in case of
missing vendor configuration, the system supports loading the XML from
/system.
This fallback config is not guaranty to be compatible with the phone HAL,
but probably does for a wide range of android phones
(at least for basic use cases).

In each of those cases, there is only one configuration file, either in
/vendor or /system.
As a result, the audio policy configuration VTS test was asserting that
only one audio_policy_configuration.xml could be found.
If multiple were found, one was useless and the platform integrator
should remove it.

But VTS are now run on phone with a /system partition from an AOSP
build and a /vendor partition from a device build.
In such scenario two audio policy config are now present on the device,
thus breaking the VTS expectation.

This is not a problem for the framework because it does not look for a /system
config if one was found in /vendor.

In the future, the /system XML might be removed as boards
specific config should be found in /vendor only as per treble
requirements.

Test: Compile
Bug: 65482614
Change-Id: I7cd7eb7284c0aa52782aa591411f8a9bf2a87a76
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-09-08 11:29:32 -07:00
Sanket Padawe
6fb8b93bb4 Merge "Fix VTS test which turns off radio." into oc-mr1-dev 2017-09-08 18:14:16 +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
TreeHugger Robot
e1b1788b4d Merge "Bluetooth: Remove credit check from Loopback tests" into oc-mr1-dev 2017-09-07 17:39:27 +00:00
Chia-I Wu
884cb32225 Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev am: ef3389add5 -s ours
am: b2f558e267

Change-Id: Ie634e5172b1e4ebeb98f11a43f8462db67230de0
2017-09-07 17:38:17 +00:00
Chia-I Wu
b2f558e267 Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev
am: ef3389add5  -s ours

Change-Id: I9cee260396d3f24e86443afe36780894397638e1
2017-09-07 17:36:15 +00:00
Chia-I Wu
ef3389add5 Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev 2017-09-07 17:18:25 +00:00
Myles Watson
c7c333931c Bluetooth: Remove credit check from Loopback tests
The Bluetooth specification doesn't require data credits
to come back within a specific timeframe, so the VTS test
can not require it.

Bug: 65269854
Test: VtsHalBlueoothV1_0TargetTest with simulated chip (no credits)
Change-Id: If2fc052d3b5236f6a3097f3d5403882226561404
(cherry picked from commit 0e06a63c76)
2017-09-07 13:41:58 +00:00
TreeHugger Robot
b0977150b0 Merge "HAL interface libs for testing are now built as test lib" into oc-mr1-dev 2017-09-07 12:16:20 +00:00
Kevin Rocard
97cba2d295 Allow partially dynamic profile in the audio policy config am: 3092b31b14
am: 0aaff8bead  -s ours

Change-Id: I04b522582d2861af37ae68729254105e701fd666
2017-09-06 23:44:17 +00:00
Kevin Rocard
0aaff8bead Allow partially dynamic profile in the audio policy config
am: 3092b31b14

Change-Id: Ibafc8f571bdc32353bd974a7fce6e3fd84238711
2017-09-06 23:35:24 +00:00
TreeHugger Robot
ecc01b9c36 Merge "Additonal usage note updates for Audio properties" into oc-mr1-dev 2017-09-06 21:32:30 +00:00
Kevin Rocard
3092b31b14 Allow partially dynamic profile in the audio policy config
The audio policy configuration deserializer supports fully dynamic
profiles by not setting a profile in a port.
It also supports partially dynamic profile by
not setting @format, @samplingRates or @channelMasks

Nevertheless this last feature of partial dynamic profile
was mistakenly not allowed by the configuration xsd.

Bug: 63541622
Change-Id: I78f77a77a3c62bba28a7da5a0e3c8c608b5a01d9
Merged-In: I78f77a77a3c62bba28a7da5a0e3c8c608b5a01d9
Signed-off-by: Kevin Rocard <krocard@google.com>
(cherry picked from commit 43d25f2f26)
2017-09-06 21:16:51 +00:00
Sanket Padawe
9a721b8087 Fix VTS test which turns off radio.
Since the purpose of most of the test cases in current VTS is to check
if proper errors are returned and there is no crash seen in vendor code,
updating setRadioPower test case to turn on the radio instead of
turning off. We want to avoid test cases which turn off
radio or leads to modem shut down as those test cases affect other tests.

Test: VTS
Change-Id: I4fb9f18884f7ef21162015a0032c4431444f7025
Bug: 65230472
2017-09-06 06:46:49 +00:00
TreeHugger Robot
05143cf85e Merge "Remove media.cas requirement." into oc-mr1-dev 2017-09-06 04:24:35 +00:00
TreeHugger Robot
a9082750f4 Merge "Allow partially dynamic profile in the audio policy config" into oc-mr1-dev 2017-09-06 01:27:51 +00:00
Scott Randolph
66339cfc3a Additonal usage note updates for Audio properties
Mostly comment updates for clarification.
Updates the names of a few constants (but not their value nor usage).

Test: build for Mojave
Change-Id: Ic9021f82fa4bd960189e005f074f2b407be13ae7
bug: 65384336
2017-09-05 16:49:00 -07:00
Steven Moreland
cd8d92d06e Remove media.cas requirement.
This is a requirement on android phones and tv but
not on watches. Owner will handle putting that requirement
in place, but removing requirement from this file
specifically only in order to have O-MR1 interfaces
frozen.

Bug: 63603463
Test: m system_compatibility_matrix.xml compatibility_matrix.xml manifest.xml system_manifest.xml -j
Change-Id: Iefdc231c2928dfdb8e04a5de8a08ab9b23bae73d
2017-09-05 22:59:21 +00:00
Roshan Pius
12d6df4a2a Merge "wifi(implementation): Remove unnecessary local variable" into oc-mr1-dev 2017-09-05 22:35:58 +00:00
TreeHugger Robot
ac2cd9e8ea Merge "wifi(implementation): Make WifiLegacyHal.stop() blocking" into oc-mr1-dev 2017-09-05 22:33:07 +00:00
Scott Randolph
b58c3ccdde Merge "Add RINGTONE to Vehicle HAL AUDIO_FOCUS" into oc-mr1-dev 2017-09-05 21:51:35 +00:00
TreeHugger Robot
0289fc42b4 Merge "Finalize O-MR1 compat matrix." into oc-mr1-dev 2017-09-05 20:54:28 +00:00
Scott Randolph
065a085a3f Add RINGTONE to Vehicle HAL AUDIO_FOCUS
Test:  build on Mojave with associated CarService changes
Change-Id: I7fcf9b4bb1808971f4fc8265a7d581dce57be3d3
Bug: 64729839
2017-09-05 12:12:16 -07:00
Tri Vo
79069b1961 Merge changes I931dafbb,I845672b2 into oc-mr1-dev
* changes:
  Thermal 1.1 test statically links to hal def libs.
  Update thermal hal Android.bp.
2017-09-05 18:42:17 +00:00
Zhuoyao Zhang
8d2d1d08a1 Merge "Fix VtsHalGraphicsComposerV2_1TargetTest" into oc-mr1-dev 2017-09-05 18:33:42 +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
David Gross
6ebe4bd842 Merge "NNAPI Concurrent Query Management -- HAL and VTS update" into oc-mr1-dev 2017-09-02 22:56:48 +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
Kevin Rocard
43d25f2f26 Allow partially dynamic profile in the audio policy config
The audio policy configuration deserializer supports fully dynamic
profiles by not setting a profile in a port.
It also supports partially dynamic profile by
not setting @format, @samplingRates or @channelMasks

Nevertheless this last feature of partial dynamic profile
was mistakenly not allowed by the configuration xsd.

Bug: 63541622
Change-Id: I78f77a77a3c62bba28a7da5a0e3c8c608b5a01d9
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-09-02 02:37:50 +00:00
Chia-I Wu
83b64ff054 graphics: ignore/reduce spurious vsync in VTS
Bug: 62802718
Test: VTS
Change-Id: I1ed73e0b2f14414f540865a96e6bd5ac1599fbf3
(cherry picked from commit e0ff3e4a26)
2017-09-01 15:40:05 -07:00
Michael Butler
0e2ac1bb88 NNAPI Concurrent Query Management -- HAL and VTS update
The NNAPI requires requests on a model to be asynchronously
processed. This CL implements a basic Event that can later
be used to block the runtime thread until the asynchronous
request has completed.

Bug: 63905942
Test: VtsHalNeuralnetworksV1_0TargetTest (32-bit, 64-bit) with sample driver enabled by cherry-pick
      frameworks/ml/nn/runtime/test with and without sample driver enabled
Change-Id: Ie27a574aaaac312e7cbb731750f9c06278357a1c
2017-09-01 11:07:56 -07: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
Jean-Luc Brouillet
5d143d2a0f Cleanup the constants.
- Alphabetize the operations.
- Remove N_GRAM operation.
- Add TENSOR_INT32.

Test: Compiled and ran the tests.
Bug: 63905942
Change-Id: Ie7d9dec671a409256b686ef4665171492d1ac16a
2017-08-31 23:25:57 -07:00
Jiyong Park
9a4b17e3e1 HAL interface libs for testing are now built as test lib
The HAL interfaces for testing were copied to /system/lib[64]/vndk
directory since they are built as cc_library and thus falsely recognized
as members of VNDK, which isn't true.

Build them as cc_test_library so that they are filtered out. To do so,
.hidl_for_test files are added for the test HALs and update-makefiles.sh
were ran.

Bug: 64776708
Test: no android.hardware.tests.*.so file in /system/lib[64]/vndk on
2017 pixel devices

Change-Id: I5314db6cc08a43bccfc4521d4b80b614a91e7e48
2017-09-01 09:54:16 +09:00