Commit graph

6434 commits

Author SHA1 Message Date
Mikhail Naganov
57895f9993 Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits am: c5103e68ae am: 896830ff6f
am: ac8d483030  -s ours

Change-Id: I708545d9e0cc9abb2408f0180320e99842d5c021
2017-12-14 20:44:56 +00:00
Chia-I Wu
df93992df7 graphics: ignore/reduce spurious vsync in VTS am: 353cc075bf am: ca8ced7a5c
am: 7b332605c2

Change-Id: Ie80f0e4e60cdd608968c8e9cef5506ceb69140dd
2017-12-14 20:44:10 +00:00
Mikhail Naganov
ac8d483030 Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits am: c5103e68ae
am: 896830ff6f

Change-Id: If183286271444b625b33cf5a70132c2bd954bd71
2017-12-14 20:42:11 +00:00
Chia-I Wu
7b332605c2 graphics: ignore/reduce spurious vsync in VTS am: 353cc075bf
am: ca8ced7a5c

Change-Id: I62dd91f412581d871d4f1e8b569731d6a901b7fd
2017-12-14 20:41:37 +00:00
Mikhail Naganov
896830ff6f Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits
am: c5103e68ae

Change-Id: I9d55c73cd61f954b271d89044a96a18c1fde98f1
2017-12-14 20:39:35 +00:00
Chia-I Wu
ca8ced7a5c graphics: ignore/reduce spurious vsync in VTS
am: 353cc075bf

Change-Id: I27381f1e34191e4af28f79ce035458165ca845b3
2017-12-14 20:39:06 +00:00
Kevin Rocard
abec925f05 Merge changes from topic "b/69811500" into oc-dev am: 61ae0a1fc7
am: d7d5d7a22d

Change-Id: Id4c64ec8339a7a4112b482a3cef33095c3dabc79
2017-12-06 20:31:08 +00:00
Kevin Rocard
d7d5d7a22d Merge changes from topic "b/69811500" into oc-dev
am: 61ae0a1fc7

Change-Id: I8d3e90d9695330b87f8e93dff84b752ec18e5254
2017-12-06 20:28:07 +00:00
TreeHugger Robot
61ae0a1fc7 Merge changes from topic "b/69811500" into oc-dev
* changes:
  Audio HAL: Allow setters to not be implemented
  Audio VTS: HAL can support more than the native sampling rates
2017-12-06 20:18:12 +00:00
Kevin Rocard
e8e9cdcf5e Audio policy config: remove cross-module device port name uniqueness am: 503c3e0a4e
am: c5ce355c24

Change-Id: I1e9225d0acd5515890fec9bc259b39f26b3c8e5e
2017-12-06 19:36:16 +00:00
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
c5ce355c24 Audio policy config: remove cross-module device port name uniqueness
am: 503c3e0a4e

Change-Id: Ibeef7dd1ad8db4a55b9e323c07d3a499289f7d73
2017-12-06 19:30:49 +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
3bcba14c36 Audio HAL: Allow setters to not be implemented
setSampleRate, setChannelMask, setFormat
may not be implemented by the HAL, although this is not documented in
the HAL API.
Currently the VTS test requires their implementation if the respective
getSupported{SampleRate,ChannelMask,Format} are supported.

Relax this requirement as the framework never calls those setters.

Note that the optionality of those functions will be documented
in the next HAL API version.

Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
Bug: 69811500
Change-Id: I3a390ae925cabd99e7f1ed4a627e71ad87b1b437
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-12-05 15:42:10 -08:00
Kevin Rocard
02025847de Audio VTS: HAL can support more than the native sampling rates
getSupportedSampleRate should return the native sampling rates,
(IE. the sampling rates that can be played without resampling)
but other sampling rates can be supported by the HAL.

The test was too strict as it was failing if HALs were supporting more
sample rates than there native (optimized) ones.

For example, a HAL might have its best performance (no resampling)
on 48kHz but still support 16kHz through resampling.

Note: getSupportedSampleRate might be renamed to getNativeSampleRate in
the next major HAL revision to avoid ambiguity.

Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
Bug: 69811500
Change-Id: I1ec1ce422bc5039637463c6641060508f4ee892b
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-12-05 15:14:17 -08:00
Kevin Rocard
503c3e0a4e Audio policy config: remove cross-module device port name uniqueness
This constraint was added due to an incorrect assumption
that device ports were identified by names whereas
they are by the (module,type,address) triplet.

Bug: 69442986
Test: xmllint validates an XML with two identically named devices in
      different modules.
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
Change-Id: I66d890d3c967bead4f2a287202c259009217996a
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-12-04 14:29:19 -08: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