Commit graph

6418 commits

Author SHA1 Message Date
Kevin Rocard
7c7fc0c69a Audio policy config: Device port (type,address) must be unique am: fa1f597442
am: d4112727b7

Change-Id: I4d24d58034d3a39fee66308b44620c956ad5c345
2017-12-06 19:36:08 +00:00
Kevin Rocard
540748bc80 Audio policy config: allow vendor to extend module name am: 7558e8c6e4
am: ec55b2f024

Change-Id: Ic7c5de5e7c215c43f2ea044a38bbf52ee71984ca
2017-12-06 19:36:03 +00:00
Kevin Rocard
d4112727b7 Audio policy config: Device port (type,address) must be unique
am: fa1f597442

Change-Id: I03176086075fb2c2911edf3a470b0319cb8648b6
2017-12-06 19:30:44 +00:00
Kevin Rocard
ec55b2f024 Audio policy config: allow vendor to extend module name
am: 7558e8c6e4

Change-Id: I2acafb47c986e5886b0bacc0bb6c6419feae69e5
2017-12-06 19:30:34 +00:00
Kevin Rocard
fa1f597442 Audio policy config: Device port (type,address) must be unique
Device port are not identified by names but by their type and address
and the module they are in.

As a result, enforce this constraint in the XSD. Violating it results in
a policy parsing crash.

Bug: 69442986
Test: xmllint invalidates an XML with two devices of the same type
      and address
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
Change-Id: I84245f0fa80fef786a002c98073c166b6aaf2be4
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-12-04 14:29:14 -08:00
Kevin Rocard
7558e8c6e4 Audio policy config: allow vendor to extend module name
Vendor are currently not allowed to extend the XML format.
As some enumeration are allowed to be extended, this mean that
the format must allow some extension mechanism.

This patch relaxes the definition of the module name field.
AOSP names are still allowed, but a vendor can add its own name
if prefixed with "vx_". Eg:
    <module name="vx_google_vr" halVersion="3.0">

Test: xmllint --xinclude --noout --schema hardware/interfaces/audio/2.0/config/audio_policy_configuration.xsd audio_policy_configuration.xml
      with audio_policy_configuration.xml containing a module named vx_google_vr
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
      on Pixel 2
Bug: 69442986
Signed-off-by: Kevin Rocard <krocard@google.com>

Change-Id: I4ead38535cce89bb8fe44cf23fa1146acd1271d6
2017-12-04 14:29:08 -08:00
sqian
3ae5466f16 Set time delay in the vts test setup am: 1a5c25dd95 -s ours
am: 67d324cd02  -s ours

Change-Id: Icecffee0fde6900a2f7723908a7d3cd00a75b7b1
2017-11-29 02:42:59 +00:00
sqian
67d324cd02 Set time delay in the vts test setup
am: 1a5c25dd95  -s ours

Change-Id: Ic27da685b878343b3404432f6135c2dd1f262e07
2017-11-29 02:35:30 +00:00
sqian
88d5ef6944 Set time delay in the vts test setup
am: a54dd6ca33

Change-Id: Ic6e95752069b452d81e5676999483bfb68249dd5
2017-11-29 00:06:38 +00:00
sqian
a54dd6ca33 Set time delay in the vts test setup
Bug: 69398018
Test: run vts
Change-Id: Ibe1e8f1b08342f1b0b867bfa7bcf1b2fe4a85622
Merged-In: Ibe1e8f1b08342f1b0b867bfa7bcf1b2fe4a85622
2017-11-27 14:22:28 -08:00
sqian
1a5c25dd95 Set time delay in the vts test setup
Bug: 69398018
Test: run vts
Change-Id: Ibe1e8f1b08342f1b0b867bfa7bcf1b2fe4a85622
Merged-In: Ibe1e8f1b08342f1b0b867bfa7bcf1b2fe4a85622
2017-11-22 15:16:23 -08:00
Iris Chang
3cc78f1d3b Fix Keymaster VTS for OpenSSL error code change
OpenSSL changes error code of large RSA data from
KM_ERROR_INVALID_INPUT_LENGTH to KM_ERROR_INVALID_ARGUMENT which causes
HidlHalGTest#EncryptionOperationsTest.RsaOaepTooLarge and
HidlHalGTest#EncryptionOperationsTest.RsaPkcs1TooLarge tests failed.
Fix keymaster VTS to accept both the error codes.

Bug: 68289922
Test: HidlHalGTest#EncryptionOperationsTest.RsaOaepTooLarge and
      HidlHalGTest#EncryptionOperationsTest.RsaPkcs1TooLargeHidlHalGTest#EncryptionOperationsTest.RsaOaepTooLarge
      and HidlHalGTest#EncryptionOperationsTest.RsaPkcs1TooLarge are
      passed after applying this modification and other Keymaster 3.0
      VTS test cases are not affected.
Change-Id: I493bfa1c6e4b69560dfae3585a416b5c3d33e215
Merged-In: I493bfa1c6e4b69560dfae3585a416b5c3d33e215
(cherry picked from 890d3dfe27)
2017-11-22 12:06:33 +08:00
TreeHugger Robot
436ca9240e Merge "wifi(vts): Ignore HAL stop failure" into oc-mr1-dev 2017-11-20 20:22:09 +00:00
Keun Soo Yim
4949283158 Merge "Loosen speed check for first GPS location" into oc-dev am: dda16e990b -s ours
am: ee9021e20d  -s ours

Change-Id: I8661c4ed8ac876cbb096a0a19d4e3e554a8bf15f
2017-11-20 02:31:25 +00:00
Keun Soo Yim
ee9021e20d Merge "Loosen speed check for first GPS location" into oc-dev
am: dda16e990b  -s ours

Change-Id: I16309ef4faf6ffc9225c4a1509ace1519c60c273
2017-11-20 02:29:22 +00:00
Keun Soo Yim
dda16e990b Merge "Loosen speed check for first GPS location" into oc-dev 2017-11-20 02:26:24 +00:00
Roshan Pius
2d6676a1ce wifi(vts): Ignore HAL stop failure
The stop may fail if the interface down operation takes too long on some
devices. This is not fatal as long as we're able to bring up the
interfae for the next HAL start.

Bug: 68303248
Test: VTS tests
Change-Id: I93943f9d0cfb83cf07253c6f9b3866d6d137028f
2017-11-17 11:02:38 -08:00
Keun Soo Yim
6d73f04788 Merge "VTS: fix RadioHidlTest.getAvailableNetworks issue" into oc-mr1-dev 2017-11-17 04:41:07 +00:00
Shuo Qian
ac20dd4a58 Merge "Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests" into oc-dr1-dev
am: 3f7603e3c7  -s ours

Change-Id: I6d38d10d3da7d456a5189bdf98cf5b3051d49da1
2017-11-17 01:54:53 +00:00
Shuo Qian
3f7603e3c7 Merge "Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests" into oc-dr1-dev 2017-11-17 01:46:33 +00:00
sqian
aae77c7fef Merge "Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests" into oc-dev am: 545d21c91f -s ours
am: a8ed4185d5

Change-Id: I2af7758b2eea161bee61be78ad751e357651bd56
2017-11-17 00:26:15 +00:00
sqian
a8ed4185d5 Merge "Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests" into oc-dev
am: 545d21c91f  -s ours

Change-Id: I83d54e6f658f940267350d6aee205ec663d03f08
2017-11-17 00:20:47 +00:00
sqian
5e5b441361 Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests
Bug: 65230472
Test: run vts
Change-Id: I1fab6f49f04a04a7f1cd3b613fe7049f927171d1
2017-11-16 19:57:27 +00:00
sqian
297522bd65 Fix merge conflict CL for o-dr hashing
Bug: 65230472
Test: run vts
Change-Id: I25e2e8390d7d4c2ce45c0c0378435754ddb81ac0
2017-11-16 11:25:32 -08:00
Wyatt Riley
763b4eab01 Loosen speed check for first GPS location
As it is often found in a short integration
window with very high Doppler uncertainty.

Bug: 67877519
Merged-In: Ia05359f572f4ea7be81f9d5fe30bd619322bebd3
Test: Verified Pixel still passes VTS
Change-Id: Ia05359f572f4ea7be81f9d5fe30bd619322bebd3
2017-11-15 11:47:29 -08:00
Iris Chang
8dc6db217d VTS: fix RadioHidlTest.getAvailableNetworks issue
Analysis: VtsHalRadioV1_0Target's timeout is too short for
getAvailableNetworks, because this request duration depends on NW
environment or frequency.

Suggested solution: Add a timeout parameter to wait() and default
timeout value is 5 minutes in order to avoid timeout fail due to NW
environment.

Bug: 68834032
Test: getAvailableNetworks can be passed after we apply this patch and
      test result for all other telephony 1.0 and 1.1 test cases are not
      changed.
Change-Id: Iaae71e0abacd28275d86a19264813ff209ddb79c
Merged-In: Iaae71e0abacd28275d86a19264813ff209ddb79c
(cherry picked from commit 6429f0677f)
2017-11-15 07:08:05 +00:00
sqian
9545fed275 Fix merge conflict CL
Test: Treehugger
Bug: 65230472
Change-Id: Ie131c9a4fa5b42c7779fca70ce2233b24e5f8825
2017-11-14 22:29:29 +00:00
Wyatt Riley
3200996d4b Loosen speed check for first GPS location
am: f926e11c89

Change-Id: Icb4b4a21afcc86d743f2f2c159cb54c9b0231a96
2017-11-13 21:01:59 +00:00
TreeHugger Robot
3a29e0d0ad Merge "omxvts:vid:dec: modify resource files for avc dec and mpeg4 dec" into oc-mr1-dev 2017-11-11 02:15:35 +00:00
TreeHugger Robot
545d21c91f Merge "Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests" into oc-dev 2017-11-10 20:12:19 +00:00
Etan Cohen
1acc63f9cf [VTS][NAN] Fix VTS tests: didn't abort early enough for non-NAN devices
The NAN-specific VTS tests check whether the device supports NAN.
However, the tests did not abort early enough.

Bug: 68302113
Test: builds
Change-Id: Ie6fb0e2b0bd12840ce6bc52fab1b6d4e8c5a571e
2017-11-10 10:41:51 -08:00
Chong Zhang
6a8fab9781 Merge "cas: validate shared buffer size before using" into oc-mr1-dev 2017-11-10 09:01:08 +00:00
Ram Mohan M
09c89966bf omxvts:vid:dec: modify resource files for avc dec and mpeg4 dec
Resource files for avc and mpeg4 are at higher resolutions than what the
CDD requires. This CL corrects the issue.

Test: make vts -j123 && vts-tradefed run commandAndExit vts \
--skip-all-system-status-check \
--skip-preconditions -m VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 68828675
Change-Id: I5a32bccae1b14a72ae0db2ffafd4a0e86cced74b
2017-11-09 00:19:23 +00:00
Wyatt Riley
f926e11c89 Loosen speed check for first GPS location
As it is often found in a short integration
window with very high Doppler uncertainty.

Bug: 67877519
Test: Verified Pixel still passes VTS
Change-Id: Ia05359f572f4ea7be81f9d5fe30bd619322bebd3
(cherry picked from commit adca98d590)
2017-11-08 16:05:22 +00:00
Edwin Wong
36c9c34bdb Add tests to validate key length for clearkey plugin. am: cc77a50e96
am: 01802815eb

Change-Id: I298891316951cc6ba5f000b796fb60c0b4f76290
2017-11-03 05:42:54 +00:00
Edwin Wong
01802815eb Add tests to validate key length for clearkey plugin.
am: cc77a50e96

Change-Id: Id61b8d76ef30a6c66edd10cd48b4ecdad795165d
2017-11-03 05:40:23 +00:00
Edwin Wong
cc77a50e96 Add tests to validate key length for clearkey plugin.
AesCtrDecryptor::decrypt() doesn't check whether the size of "key"  is
equal to 16 bytes,  which may lead to an OOB read problem in the context
of mediadrmserver. The fix is in clearkey plugin. Add tests to validate
the fix.

Test: VTS test
  adb shell /data/nativetest/VtsHalDrmV1_0TargetTest/VtsHalDrmV1_0TargetTest

bug: 63982768

Merged-In: Ife2da17e7f39d8031bc36b83c3b27ba5e9d83eb7
Change-Id: Ife2da17e7f39d8031bc36b83c3b27ba5e9d83eb7
2017-11-02 14:46:43 -07:00
Steven Moreland
c6141a9932 Add missing hash.
am: f4c0e837eb

Change-Id: I560964a00c241bf64231769df06ee069c2f94a3e
2017-11-02 02:02:03 +00:00
Chong Zhang
16a3cd0b07 cas: validate shared buffer size before using
bug: 67962232

test:
cts MediaCasTest
vts VtsHalCasV1_0Target

Change-Id: I20b89d5971db4c89704245bb00c281af8c943697
2017-10-31 11:53:39 -07:00
sqian
83cc3ab888 Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests
Bug: 65230472
Test: run vts
Change-Id: I1fab6f49f04a04a7f1cd3b613fe7049f927171d1
2017-10-25 20:32:02 +00:00
Lorenzo Colitti
3189d9de81 Don't expect stopOffload to succeed if interface doesn't exist.
The AdditionalStopsWithInitReturnFalse test inits offload and
then checks that stopOffload returns true. However, the HAL is
allowed to return false to stopOffload if no upstream was ever
successfully programmed.

To ensure this test doesn't fail in the common case that the
interface is not up, don't expect stopOffload to return true in
this case.

Bug: 67439856
Test: VtsHalTetheroffloadControlV1_0TargetTest passes with and without mobile data connection
Change-Id: I245f9e3e4376a7799572a3b3967e2bf6c52b5e4d
2017-10-25 11:51:13 +09:00
Steven Moreland
f4c0e837eb Add missing hash.
This hash was added in O, but was given automerger flags
which made it disappear in subsequent releases. Adding it back
so that O vendor images can pass VTS with VTS in subsequent
releases.

Fixes: 68061860
Test: hash added to list of allowed hashes

Change-Id: Idfc9a4832a163e5786443fe743f67dae263b3dbd
2017-10-23 02:52:31 +00:00
Erik Kline
d97f8714f0 Fixup netlink socket creation to make corresponding fix in JNI
Corresponding JNI fix is:

    aosp/516339
    oc-mr1-dev:3102743

Test: as follows
    - built
    - flashed
    - booted
    - make vts -j30 BUILD_GOOGLE_VTS=true && \
      vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalTetherOffloadControlV1_0Target -l DEBUG

      10-20 17:48:28 I/ResultReporter: Invocation finished in 5m 32s. PASSED: 38, FAILED: 0, MODULES: 1 of 1

Bug: 68018148

Change-Id: I5aa019d708abaff61387b83a857e9e8226709842
2017-10-20 18:33:40 +09:00
Sanket Padawe
a555e04f8c Fix VTS test which turns off radio. am: 536818d17a
am: 340619c703  -s ours

Change-Id: I4d4c0998ac28fabef207dfb0ce8fae8f08c0afd4
2017-10-18 23:57:54 +00:00
Sanket Padawe
340619c703 Fix VTS test which turns off radio.
am: 536818d17a

Change-Id: I74ebfa3894e27bdf0e02671cbeccac83b1917424
2017-10-18 23:56:12 +00:00
Sanket Padawe
536818d17a 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
Merged-In: I4fb9f18884f7ef21162015a0032c4431444f7025
Bug: 65230472
(cherry picked from commit 9a721b8087)
2017-10-18 23:41:05 +00:00
TreeHugger Robot
b70f1bda1f Merge "Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests" into oc-mr1-dev 2017-10-18 03:35:42 +00:00
sqian
bc1c9295a3 Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests
Bug: 65230472
Test: run vts
Change-Id: I1fab6f49f04a04a7f1cd3b613fe7049f927171d1
2017-10-17 16:02:04 -07:00
TreeHugger Robot
ae62942b1c Merge "bug fix: during fatal fails bypass freeNode() calls" into oc-mr1-dev 2017-10-17 22:37:56 +00:00
Ram Mohan M
a0698429dd bug fix: during fatal fails bypass freeNode() calls
If test application undergoes a fatal failure bypass all the omx
api calls till the application safely returns.

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: 63796949

Change-Id: If5a33672a31665db913e53c6f8ba8bea6cfd3ebd
2017-10-17 04:34:30 -07:00