Commit graph

4855 commits

Author SHA1 Message Date
Ram Mohan M
2aedf7596d Vts Omx Tests: Disable test that are not IOMX compatible
Android IOMX differs slightly from OMX. Disable tests that are not
needed (for now). We will revisit them at a later stage

Bug:32023356
Bug:37501531

Test: make vts.

Change-Id: Iad71d72a4a66d621f415731d2c0e1a3794ed3524
2017-06-07 17:53:26 -07:00
Ram Mohan M
f0e839e0e7 Omx vts tests
Bug:32023356
Test: make vts.

cleanup: move duplicate code to common

moved code shared across application to common and
removed duplicate code

Change-Id: I2dacb9d72bdf545addd2cc377dd4342c92f50f11

restrict secure component testing to VTS*ComponentTest

Change-Id: I1d2878408df2e4cbe31b3b47a3d6500a90692a7a

Master Test: test component node alloc/dealloc

Change-Id: I89ef853cf5a9f6b0a0af9e25ef484968aec614f6

Component Test: fix dispatchMsg test fixture

Change-Id: Ie1068a5d73a3a573e552cf023c9c7dc78a43ea59

AudioDec Test : missing csd in opus resource files

opus decoder test resource files have a missing csd. This is causing
timestamp list empty test to fail. This is fixed

Change-Id: I6ae3b241fbf3e384943a0e6e80838a45c1fc6687

Change-Id: Ie7775456542f12d5f5d87dded4b0a57fd0723037
2017-06-07 17:50:50 -07:00
Yi Kong
15ec48374b Fix build, put back 'this' capture
'this' capture is not unused, need to put back.

This was due to a bad manual merge.

Test: build
Change-Id: I35f7ddbe7bf8a3b57ea8a83f334afee2156109f6
2017-06-07 14:20:31 -07:00
Chih-Hung Hsieh
d3bc681f26 Remove unused lambda capture
New clang compiler gives warning to unused lambda captures.
Apply clang-format.

Bug: 37423073
Test: Build

Change-Id: Icdf019df1a6c9dcadeb35551377d7afa09eebb3e
(cherry picked from commit 7eb57b60ab)
2017-06-07 12:57:20 -07:00
Janis Danisevskis
538b7d85ef Fix expected attestation version.
The attestation version cannot be infered from the keymaster version
because we provide software attestation for legacy keymaster 1 keys.
This patch changes the attestation test to expect either attestation
version 1 or 2.

Bug: 37351644
Test: VtsHalKeymasterV3_0TargetTest
Change-Id: I4db83a543db20191d288b2ca8308aa6597cd8e22
2017-06-07 11:49:56 -07:00
Zhuoyao Zhang
176c564b54 Merge "Omx vts tests." into oc-dev
am: 89ed70727d

Change-Id: I83ae4865778f42a768a556bebfc6524cbfbc0918
2017-06-06 18:36:48 +00:00
Zhuoyao Zhang
89ed70727d Merge "Omx vts tests." into oc-dev 2017-06-06 18:29:15 +00:00
Brian Duddie
7e4e4f57ca Merge "contexthub: Handle service death" into oc-dev
am: bbcf199e93

Change-Id: Icdb7d82550743333a373bdc08b061751999dc54b
2017-06-06 16:49:48 +00:00
Brian Duddie
bbcf199e93 Merge "contexthub: Handle service death" into oc-dev 2017-06-06 16:28:38 +00:00
Kevin Rocard
7b9e6a5300 Merge changes from topic 'vts-validate-policy-conf' into oc-dev
am: 024e0cd27d  -s ours

Change-Id: If42bf61dbaac6796b46cc1cc80c138003cb093c6
2017-06-06 04:52:40 +00:00
Kevin Rocard
024e0cd27d Merge changes from topic 'vts-validate-policy-conf' into oc-dev
* changes:
  Audio VTS: Enforce policy configuration format
  Audio VTS: Test now use Android.mk
2017-06-06 02:55:24 +00:00
Kevin Rocard
cbf9c08116 Audio VTS: Enforce policy configuration format
Validate the audio_policy_configuration.xml supplied in /vendor against
the format schema.

Test: Run the VTS test on target
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
Bug: 35700978
Change-Id: I800e692a6ff4f64655007c33af7e34d879ee1132
Signed-off-by: Kevin Rocard <krocard@google.com>
(cherry picked from commit 06a2a40309)
2017-06-06 01:55:49 +00:00
Sanket Padawe
1c87d14016 Fix some stk api Radio Vts tests.
am: 2ab0ec0626

Change-Id: Ib4063e3c10dbf161c9e8fa479dc6bb8c2345a6ac
2017-06-05 23:13:48 +00:00
Brian Duddie
154b0883f9 contexthub: Handle service death
Register for notification of service death for callbacks registered with
the context hub HAL. Upon this notification, unregister the callback to
avoid crashing if an event occurs prior to the service coming back up.

Bug: 36202367
Test: adb shell stop, confirm death notification received via log;
  vts-tradefed run commandAndExit vts --module VtsHalContexthubV1_0Target
Change-Id: I3c25229806cb9f2a116007939c752841edbf0985
2017-06-05 14:16:22 -07:00
Sanket Padawe
2ab0ec0626 Fix some stk api Radio Vts tests.
Bug: 37502436
Test: Manual vts
Change-Id: Idd9a1fd38413aed89aaa152cb9a91c001f18b339
Merged-in: Idd9a1fd38413aed89aaa152cb9a91c001f18b339
2017-06-05 19:35:35 +00:00
Miao Wang
60a43b499a Merge "[RenderScript] Use OVERRIDE_RS_DRIVER string in the default implementation." am: 292cddf6be am: 0a8c6b55cf
am: 4c9037094a  -s ours

Change-Id: Ibbbf9dc4780190850214b6431d9be0a9eb849375
2017-06-02 23:45:50 +00:00
Kevin Rocard
19b3e43fb4 Audio VTS: Enforce policy configuration format
Validate the audio_policy_configuration.xml supplied in /vendor against
the format schema.

Test: Run the VTS test on target
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
Bug: 35700978
Change-Id: I800e692a6ff4f64655007c33af7e34d879ee1132
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-06-02 16:43:32 -07:00
Kevin Rocard
88e8f90e7f Audio VTS: Test now use Android.mk
To validate the audio_policy_configuration.xml against a schema,
libxml2 is used.
Unfortunately, libxml2 uses Android.mk in oc-dev thus can not be used
from the tests which uses Android.bp.

It has been deemed safer to transform the tests to use Android.mk rather
than backporting the Android.bp patch from master.

Test: Compile
Bug: 35700978
Merged-In: I800e692a6ff4f64655007c33af7e34d879ee1132
Change-Id: Ie3f2069d60be369b4c37c27e9c1cf9372323a19c
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-06-02 16:43:21 -07:00
Miao Wang
0fd82f993e Merge "[RenderScript] Use OVERRIDE_RS_DRIVER string in the default implementation." into oc-dev
am: 827e291043

Change-Id: I1b6548be61440b195d283b929792a2342810120d
2017-06-02 23:28:07 +00:00
Miao Wang
4c9037094a Merge "[RenderScript] Use OVERRIDE_RS_DRIVER string in the default implementation." am: 292cddf6be
am: 0a8c6b55cf

Change-Id: I1d455bd66ac297518c6521348f86200fbc5d4642
2017-06-02 23:27:26 +00:00
Miao Wang
0a8c6b55cf Merge "[RenderScript] Use OVERRIDE_RS_DRIVER string in the default implementation."
am: 292cddf6be

Change-Id: Ia0792574c4ecc6120cf1ff85af38f3325933245d
2017-06-02 23:24:13 +00:00
Miao Wang
827e291043 Merge "[RenderScript] Use OVERRIDE_RS_DRIVER string in the default implementation." into oc-dev 2017-06-02 23:21:00 +00:00
Miao Wang
41d8a44280 [RenderScript] Use OVERRIDE_RS_DRIVER string in the default
implementation.

Bug: 37035983
Test: mm
Test: manually push to sailfish & angler, verify GPU driver successfully
load, and tests are passing.

Change-Id: Ic55c74228e7eae599702365c513009aa3454656b
Merged-In: Ic55c74228e7eae599702365c513009aa3454656b
2017-06-02 23:17:31 +00:00
Miao Wang
292cddf6be Merge "[RenderScript] Use OVERRIDE_RS_DRIVER string in the default implementation." 2017-06-02 23:16:07 +00:00
Mikhail Naganov
dd5605c4fb VTS Audio Effect: Do not check the result of IEffect::offload method
am: 5abb15e987

Change-Id: I266ac43808d0e9002822ea4d589d17bfc9995d84
2017-06-02 18:23:54 +00:00
Mikhail Naganov
5abb15e987 VTS Audio Effect: Do not check the result of IEffect::offload method
HAL may not support offloading, and a call to IEffect::offload
is allowed to return an error code.

Update the test to only check that the call to the method doesn't
crash.

Bug: 38437110
Test: still passes
Change-Id: I6cfd25998edb9c68d2e585e572ba8ba3a3427e98
2017-06-02 15:54:43 +00:00
Alex Yakavenka
a7e01d7d71 Merge "Compile manager-lib shared library" into oc-dev
am: fe4705facb

Change-Id: Ia54a09338625ddd4006b4c831e6000317ce69ede
2017-06-01 22:21:33 +00:00
TreeHugger Robot
fe4705facb Merge "Compile manager-lib shared library" into oc-dev 2017-06-01 22:07:01 +00:00
Eric Laurent
e18fdf9ea7 Merge "Audio: Add XML schema for audio policy configuration" into oc-dev
am: 49f3b03348

Change-Id: Ifc0584bb4c03deb9ed2139f9b5f9b5c5df1c6782
2017-06-01 20:01:20 +00:00
TreeHugger Robot
49f3b03348 Merge "Audio: Add XML schema for audio policy configuration" into oc-dev 2017-06-01 19:56:21 +00:00
Mikhail Naganov
f652c9e031 Merge "Revert "audiohal: Add diagnostics to investigate HAL call crashes"" into oc-dev
am: 5482fe026c

Change-Id: I2a0d9aa82ec5cc2d6c593ae08f7b58ca91747860
2017-06-01 16:37:07 +00:00
TreeHugger Robot
5482fe026c Merge "Revert "audiohal: Add diagnostics to investigate HAL call crashes"" into oc-dev 2017-06-01 16:32:29 +00:00
Shawn Willden
392db77668 Annotate DeleteKey test with bug number.
am: abcd323019

Change-Id: I1e3eb2b93c0054fb48fc8dbd9e844a74736afe46
2017-06-01 15:26:30 +00:00
Shawn Willden
abcd323019 Annotate DeleteKey test with bug number.
Bug: 37623742
Change-Id: I2cb4bb39bacb3aabf5fff7937f60c7355c9636e3
Test: VTS test, manually run
2017-06-01 07:47:04 -06:00
Shawn Willden
1c69c5fcb8 Check return from DeleteKey correctly.
DeleteKey may legitimately return ErrorCode::UNIMPLEMENTED rather than
ErrorCode::OK, but the VTS test didn't allow that in all cases.  In many
case the return code was also left unchecked.

Test: adb shell/data/nativetest64/VtsHalKeymasterV3_0TargetTest/VtsHalKeymasterV3_0TargetTest
Bug: 62193967
Change-Id: I19a90a87850675b0700baf7409e57098e0584d54
2017-06-01 07:44:27 -06:00
sqian
d8256c6a85 Generate serial number randomly in VTS unit test
am: fcc6118882  -s ours

Change-Id: Ie549cb60e50e05006302e1766f3d751aff7a27b9
2017-06-01 07:02:29 +00:00
Mikhail Naganov
f74df70fd7 audiohal: Prevent logspam when calling get_presentation_position
get_presentation_position can return ENODATA if the stream
has stopped but the write is still querying the position.

Bug: 38376424
Change-Id: I9d516a19fb347843a8ec8e8e9a0f5eab0b0798e6
Test: no log messages from StreamHAL about get_presentation_position
(cherry picked from commit 96a3a19bed)
2017-05-31 23:01:59 +00:00
Eric Laurent
524bdd39bf Audio: Add XML schema for audio policy configuration
The schema describes the XML format for audio policy
configuration.
It will be enforced in a follow up vts test.

Bug: 35700978
Test: schema is parsed with xmllint with no errors
Test: xmllint  --xinclude --noout --schema audio_policy_configuration.xsd  out/target/product/sailfish/vendor/etc/audio_policy_configuration.xml

Change-Id: Ic6830446b54b3e02e4bca9b0a392523a8fb359e1
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-05-31 15:29:17 -07:00
sqian
4e49d8d43b resolve merge conflicts of 0e50326a to oc-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I91fb2abbee5db431e8dc5dbfc8fc9fe0b9179b0c
2017-05-31 15:27:25 -07:00
sqian
0e50326a40 Merge "Generate serial number randomly in VTS unit test" am: 0c49ae609f
am: 63724d3555

Change-Id: I54fc99af3346af269719ac802b081fa5ad3b26da
2017-05-31 21:39:50 +00:00
sqian
63724d3555 Merge "Generate serial number randomly in VTS unit test"
am: 0c49ae609f

Change-Id: Ie1b1a3bcb2ae5f2412c75f09bdab4c50bc50e715
2017-05-31 21:38:19 +00:00
Treehugger Robot
0c49ae609f Merge "Generate serial number randomly in VTS unit test" 2017-05-31 21:26:32 +00:00
sqian
fcc6118882 Generate serial number randomly in VTS unit test
Any fixed integer can be returned by vendor's APIs response.
Ideally it should be a random value for testing a vendor library.

Applying this to all the unit tests serial number.

Cherry-pick from:
  https://googleplex-android-review.git.corp.google.com/#/c/2330821/

Bug: 38499889
Test: adb shell data/local/tmp/VtsHalRadioV1_0TargetTest
Change-Id: I491db829cca607fad9f6a21987de92269d115253
Merged-In: I491db829cca607fad9f6a21987de92269d115253
(cherry picked from commit 0e8a3be41c)
2017-05-31 14:21:43 -07:00
sqian
0e8a3be41c Generate serial number randomly in VTS unit test
Any fixed integer can be returned by vendor's APIs response.
Ideally it should be a random value for testing a vendor library.

Applying this to all the unit tests serial number.

Cherry-pick from:
  https://googleplex-android-review.git.corp.google.com/#/c/2330821/

Bug: 38499889
Test: adb shell data/local/tmp/VtsHalRadioV1_0TargetTest
Change-Id: I491db829cca607fad9f6a21987de92269d115253
Merged-In: I491db829cca607fad9f6a21987de92269d115253
2017-05-31 13:21:38 -07:00
Mikhail Naganov
f811acf049 Revert "audiohal: Add diagnostics to investigate HAL call crashes"
This reverts commit 6c0f76a684.

Since the root cause of the crash has been established, there is no need to keep this code around.

Bug: 36225019
Change-Id: I74e570e863a0cdec5d9029f1672e2e8066c246b5
2017-05-31 19:59:21 +00:00
Ram Mohan M
92fb9ab603 Omx vts tests.
Bug:32023356
Test: make vts.

bug fix : fix issues in port reconfiguration

soft and vendor omx components communicate differently. The existing
design doesnt cover this. This is now fixed

Change-Id: I898e60c93961f468e749ab5f13db996c5fd53967

add support for additional color formats

tested encoder for bgra & 420sp color format inputs.
added code to get/set encoder latency.
some more necessary code cleanup.

Change-Id: I05b79d0a7706e20afaf91c88caf3e523c98b4540

IOmxBufferSource callback tests

Change-Id: I2826597c6ab110a0bf52290e3c52ff3fb3c6ea23
2017-05-31 12:53:37 -07:00
Etan Cohen
0a2ef0302e [WIFI] Remove dependency on vendor-specific library
The libcld80211 is vendor-specific. Remove from dependecy list.

(cherry-pick of commit aa281aa266)

Bug: 37901207
Test: builds and runs
Merged-In: If251002c2dd7a0e30ca18620edd905a63217f28a
Change-Id: If251002c2dd7a0e30ca18620edd905a63217f28a
2017-05-31 11:15:31 -07:00
Jayant Chowdhary
d40b89d117 Merge "configstore-utils: vendor_available" into oc-dev
am: 3dca679b80  -s ours

Change-Id: Ic88ab64c96a097bbaa032f4ac6ce82cfc2c669db
2017-05-31 04:14:07 +00:00
Steven Moreland
ecb931ab78 configstore-utils: vendor_available
am: 632579d979  -s ours

Change-Id: I2e05066b5e95a7abf46e17ac1a658775f5f7d366
2017-05-31 04:05:11 +00:00
Wyatt Riley
22d5682994 Merge "GNSS HAL radio group for E911 SUPL" into oc-dev
am: 2888555e9f

Change-Id: I4de153702f9df1a34fedaa4267192ae35e2498d4
2017-05-31 04:03:35 +00:00