Commit graph

7277 commits

Author SHA1 Message Date
TreeHugger Robot
febad058bd Merge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev 2017-09-02 03:40:15 +00:00
TreeHugger Robot
aa93654feb Merge "Enable SetDefaultPortParams and EOSTest_M tests" 2017-09-02 03:11:49 +00:00
TreeHugger Robot
d47447af96 Merge "Add portMode configuration test" 2017-09-02 03:11:23 +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
TreeHugger Robot
dfbd66358a Merge "Augment HotSwitchOperation to test slow to fast case" 2017-09-02 00:38:58 +00:00
Peng Xu
a825a1804b Merge "Sensor direct report test - gralloc support" 2017-09-01 23:08:23 +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
Peng Xu
9444475f5f Augment HotSwitchOperation to test slow to fast case
Originally, SamplingRateHotSwitchOperation only tests the case
in which requested sensor sampling rate goes from fast to slow.
Recent regression demonstrates that it is also worthwhile to test
transition in the other direction, i.e. from slow to fast. This
CL add the slow to fast transition test.

Bug: 65138983
Test: sailfish failed the test before being patched.
Test: sailfish passed after being patched (ag/2824590)
Change-Id: If02509c75f74145544f0a2ce5d2aaec24e7326b8
2017-09-01 18:57:05 +00: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
845d9fc89c 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 13:45:03 +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
42958b71b0 Enable SetDefaultPortParams and EOSTest_M tests
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: Ib341c977256b33f22aedaa3e1ae05db96ef89d26
2017-09-01 13:32:12 +00: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
Jean-Luc Brouillet
eff1140e73 Cleanup the constants. am: 5d143d2a0f
am: fba0265cd4

Change-Id: Iec55ec320b5d0a1d60a3700327621a1c6c6896a5
2017-09-01 10:02:41 +00:00
Jean-Luc Brouillet
fba0265cd4 Cleanup the constants.
am: 5d143d2a0f

Change-Id: I97618dacd6cbc3f37974bb44ac0d6514dd93ab52
2017-09-01 09:57:10 +00: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
Timur Iskhakov
34e70f2737 Check array dimenstion order am: a3b0f1f431 am: 57aa0f1bb3 am: 96df229fec
am: f1a2a4d953

Change-Id: I7ef2f019e291903863b14f48b2c2a69ee3b7307d
2017-09-01 06:23:02 +00:00
Timur Iskhakov
f1a2a4d953 Check array dimenstion order am: a3b0f1f431 am: 57aa0f1bb3
am: 96df229fec

Change-Id: I05392d5f5bfde7f16e1a7b8dc6323a8964a18163
2017-09-01 06:18:32 +00:00
Timur Iskhakov
96df229fec Check array dimenstion order am: a3b0f1f431
am: 57aa0f1bb3

Change-Id: I01a2f8c0bb2c39dd97071273774de7541060b616
2017-09-01 06:12:06 +00:00
Timur Iskhakov
57aa0f1bb3 Check array dimenstion order
am: a3b0f1f431

Change-Id: Ia6e5ef02bc7be0c64a619347d61c627af120f9d3
2017-09-01 06:04:32 +00:00
Sundong Ahn
4586fb7454 Configstore HAL is down-revisioned to 1.0
Configstore was down-revisioned from 1.1 to 1.0 in oc-dr1-dev,
oc-mr1-dev and oc-mr1-dev-plus-aosp. Therefore configstore in
oc-dr1-dev-plus-aosp will also be down-revisioned to 1.0.

Bug: 65124635
Test: build & boot test on sailfish + walleye
Change-Id: Ia2614439cd620fbe5fbd427571ab55a15089cc47
Merged-In: Ia68993a22b975d9a5dd19175988077481ded7559
2017-09-01 04:53:46 +00: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
Steven Moreland
cc718d56ac Finalize O-MR1 compat matrix.
Note, only new HALs for various shipping API levels
are added. No required HALs are added.

Test: (sanity) boot device w/o 'internal problem' error
Bug: 63603463
Change-Id: Ia400bdaf5d167ce8637ecdf940c5ccd629c8a09a
2017-08-31 16:04:08 -07:00
Timur Iskhakov
a3b0f1f431 Check array dimenstion order
Bug: 65257916
Test: mma
Change-Id: I5dcd859120800909b6fc4811c5e5a0d2f8790bcd
2017-08-31 15:18:45 -07:00
Miao Wang
ef51f5e146 Add OEM_OPERATION to NN HAL. am: df5dd34d65
am: a5570f8836

Change-Id: I21827278a5c6d8c2c5a5c0cbe9c3d27d15fed29c
2017-08-31 22:18:32 +00:00
Peng Xu
f3d3f9d629 Sensor direct report test - gralloc support
Bug: 37794556
Test: sensor vts passes on 2016 and 2017 devices
Change-Id: Ibe1d076c24dc2cfe61dfd19aa5055c9075aa9e14
2017-08-31 22:04:56 +00:00
Miao Wang
a5570f8836 Add OEM_OPERATION to NN HAL.
am: df5dd34d65

Change-Id: If619499836455c2c5168b36fee9473429295df64
2017-08-31 21:58:49 +00:00
Tri Vo
a1b981b710 Thermal 1.1 test statically links to hal def libs.
Bug: 64040096
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --module VtsHalThermalV1_1Target
Change-Id: I931dafbbdb518e387615909a69f83e6a37c4a62f
2017-08-31 13:35:05 -07:00
Tri Vo
85db47a590 Update thermal hal Android.bp.
Bug: 32920003
Bug: 64040096
Test: compiles
Change-Id: I845672b2b07ddba9b73f702555231674b4f45ad1
2017-08-31 13:31:54 -07:00
Zhuoyao Zhang
425e9672d5 Fix VtsHalGraphicsComposerV2_1TargetTest
Bug: 65252969
Test: make vts
Change-Id: Id4543b385ca9dce532bbf08ef206897924d66acb
2017-08-31 19:57:17 +00:00
Miao Wang
df5dd34d65 Add OEM_OPERATION to NN HAL.
Bug: 63905942
Test: mm
Test: All unit tests pass on Sailfish
Change-Id: I8c8068b248d682fbf1db37de78666c9cbca376b4
2017-08-31 10:57:29 -07:00
Yang Ni
04d61552c7 Merge "Replace LOOKUP with EMBEDDING and HASHTABLE_LOOKUP" into oc-mr1-dev am: 9e06ee8c54
am: f22b69789b

Change-Id: Ia6f5e963ebdb0a7fa04a2ebba63265239cbf2263
2017-08-31 15:26:27 +00:00
Yang Ni
f22b69789b Merge "Replace LOOKUP with EMBEDDING and HASHTABLE_LOOKUP" into oc-mr1-dev
am: 9e06ee8c54

Change-Id: I87b5fd45ccbb09cfd9e33f6bd11a9086bead3d05
2017-08-31 15:14:24 +00:00
Yang Ni
9e06ee8c54 Merge "Replace LOOKUP with EMBEDDING and HASHTABLE_LOOKUP" into oc-mr1-dev 2017-08-31 15:11:04 +00:00
Wyatt Riley
7d43d56883 Merge "Adding owners for gnss hardware interfaces" into oc-mr1-dev am: f5c1dc8d31
am: be60baf628

Change-Id: I0b961f42e44fcf53c470b07c6ffb35f5b3f2e1c4
2017-08-31 00:35:03 +00:00
Wyatt Riley
be60baf628 Merge "Adding owners for gnss hardware interfaces" into oc-mr1-dev
am: f5c1dc8d31

Change-Id: Ic10186038702d7aa5368e956abc1e22f17b996cc
2017-08-31 00:23:46 +00:00
Chong Zhang
3229455a74 Merge "cas: fix missing error code conversion" into oc-mr1-dev am: e1333de647
am: 771b0d75bd

Change-Id: I9f270161dc3057a185427d6e63368c1b9bbe4ac4
2017-08-31 00:02:36 +00:00
Wyatt Riley
f5c1dc8d31 Merge "Adding owners for gnss hardware interfaces" into oc-mr1-dev 2017-08-30 23:57:23 +00:00
Chong Zhang
771b0d75bd Merge "cas: fix missing error code conversion" into oc-mr1-dev
am: e1333de647

Change-Id: I4767afc50305e53deb2c76c229eb25aca039a698
2017-08-30 23:54:45 +00:00
Zhuoyao Zhang
211b44792e Merge "Update vts test to use the updated test template." into oc-mr1-dev am: 69270ce30f
am: 4cf8cc0348  -s ours

Change-Id: I1c59e64fb2d9c245df93a8243dc59d1180dfb18c
2017-08-30 23:27:49 +00:00
TreeHugger Robot
e1333de647 Merge "cas: fix missing error code conversion" into oc-mr1-dev 2017-08-30 22:35:31 +00:00
Zhuoyao Zhang
4cf8cc0348 Merge "Update vts test to use the updated test template." into oc-mr1-dev
am: 69270ce30f

Change-Id: I6c34ee4d363c3d485abc8e71d938c1e3a98e6f51
2017-08-30 22:19:55 +00:00
Shawn Willden
02ffb2be41 Don't send more than 2K to addRngEntropy
Bug: 63745893
Test: VtsHalKeymasterV3_0TargetTest
Change-Id: I136920d3b62e026b22fbe06594bc40ccddc57dc3
(cherry picked from commit 3e1267edf0)
2017-08-30 22:13:30 +00:00
Zhuoyao Zhang
69270ce30f Merge "Update vts test to use the updated test template." into oc-mr1-dev 2017-08-30 21:50:20 +00:00
Zhuoyao Zhang
114972a7b7 Merge "Revert "Revert "Update vts test to use the updated test template.""" 2017-08-30 19:50:33 +00:00
Steven Moreland
0f6b22147e Merge "Fix HALs to not have transitive depends." into oc-mr1-dev am: cf0ee37180
am: 87b997de66

Change-Id: I44ac13171655c10f10a397b956df9b5c70321983
2017-08-30 16:28:17 +00:00
Steven Moreland
87b997de66 Merge "Fix HALs to not have transitive depends." into oc-mr1-dev
am: cf0ee37180

Change-Id: Idf2b0e4e4e27d1fa92359d1226f9a0608be133cd
2017-08-30 16:19:43 +00:00
TreeHugger Robot
cf0ee37180 Merge "Fix HALs to not have transitive depends." into oc-mr1-dev 2017-08-30 16:10:37 +00:00