Commit Graph

6553 Commits

Author SHA1 Message Date
Kevin Rocard
70d13c2ad3 [automerger skipped] Audio VTS: run tear-down hooks in LIFO instead of FIFO
am: 01ead7c96b  -s ours

Change-Id: I827c0bd5011129a704d35cdcd2df9f9bbe7eadfe
2018-07-11 17:56:31 -07:00
Kevin Rocard
01ead7c96b Audio VTS: run tear-down hooks in LIFO instead of FIFO
The audio tests use a static cache of some HAL objects for
performance reasons (speed up by 10x on Pixel).
Those object are destroy during the test environment tear-down.

This tear-down was destroying the objects in a FIFO instead of LIFO
order. Thus the DeficesFactory was destroyed before the Device it
created.

Bug: 79889318
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target
      check that the device destructor is called before the
      devicesFactory one.
Change-Id: I1b4345158139ba14a8779a9508f7ebdc41129d1d
Merged-In: I1b4345158139ba14a8779a9508f7ebdc41129d1d
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-06-29 13:37:42 -07:00
Kevin Rocard
cfab8dac2b Audio VTS: run tear-down hooks in LIFO instead of FIFO
The audio tests use a static cache of some HAL objects for
performance reasons (speed up by 10x on Pixel).
Those object are destroy during the test environment tear-down.

This tear-down was destroying the objects in a FIFO instead of LIFO
order. Thus the DeficesFactory was destroyed before the Device it
created.

Bug: 79889318
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target
      check that the device destructor is called before the
      devicesFactory one.
Change-Id: I1b4345158139ba14a8779a9508f7ebdc41129d1d
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-06-29 20:09:50 +00:00
sqian
d1e489c94c [automerger skipped] Fix setBandMode.
am: ab2b8bf919  -s ours

Change-Id: Ibbdfad48f943c35419a91ccf8b3d4651bfab88f1
2018-06-18 14:10:59 -07:00
sqian
ab2b8bf919 Fix setBandMode.
Bug: 67834975
Test: sanity

Merged-In: Ie907cdb464a44d92be47d898151d71eb2d83a11c
2018-06-18 17:10:08 +00:00
Pawin Vongmasa
9886d749d4 Add multichannel support
am: c678d51bdc

Change-Id: I523732b9a00c079d84a3e594ba6b35ee09989a52
2018-05-24 06:57:00 -07:00
Pawin Vongmasa
c678d51bdc Add multichannel support
Test: make vts -j123 && vts-tradefed run commandAndExit vts \
--skip-all-system-status-check \
--skip-preconditions -m VtsHalMediaOmxStoreV1_0Host \
-l INFO

Bug: 69811887
Change-Id: I6ddf882d5a0d991acc8123ed6d220835fc6cce5c
2018-05-10 18:39:25 -07:00
Michael Butler
af5e03a692 Relax NeuralNetwork's VTS positive and negative base tests
There are some NN VTS tests that assume a service is able to generate a
model consisting only of a floating point add operation. However, some
drivers do not support floating point operations. This CL relaxes the
test requirements to allow a test to be skipped if the service does not
support floating point add.

Bug: 77227504
Test: mma
Test: VtsHalNeuralnetworksV1_0TargetTest
Test: https://drive.google.com/open?id=1P-rEzUMK0EoWSrOFuXy46EubpwC3A1cs
Change-Id: Ied49c96af975eff734377b7b7445c6f5e63e117e
(cherry picked from commit 25d9dd7346d995b40e1d370eb9d12bb7e3f03396)
2018-04-25 23:32:09 +00:00
Iris Chang
7ace8b81e8 [automerger skipped] VTS: fix RadioHidlTest.getAvailableNetworks issue
am: 14ad821b0a  -s ours

Change-Id: I18bcb31f812e36c21309713450b2693990c98584
2018-04-24 01:55:24 -07:00
Iris Chang
14ad821b0a 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 test cases are not changed.

Change-Id: Iaef7e8eefa8fcfde0ff8030cba1f9753a28eac61
Merged-In: Iaae71e0abacd28275d86a19264813ff209ddb79c
2018-04-16 05:53:27 +00:00
Peng Xu
bfc5b817e7 Merge "Ignore meta sensor events when checking values" into oreo-vts-dev
am: d09fdd6ca1

Change-Id: I4623dce53e1cc5102d943c21944820c108466157
2018-04-10 14:21:57 -07:00
Treehugger Robot
d09fdd6ca1 Merge "Ignore meta sensor events when checking values" into oreo-vts-dev 2018-04-10 21:16:19 +00:00
Srinivas Dasari
65e9588fd2 [WIFI][VTS]: Check for the Logger capability Support
am: 020374e42b

Change-Id: I23e51b94c625fff660cac05ea23386fa398f0f0a
2018-04-10 10:10:48 -07:00
Srinivas Dasari
020374e42b [WIFI][VTS]: Check for the Logger capability Support
Check for WiFi Logger capability Support and do not
assert if it returns ERROR_NOT_SUPPORTED.

Bug: 69094019
Test: VTS tests for module VtsHalWifiV1_0TargetTest.
(cherry-picked from 2b7b24b245a6099fdb127d38a99d7608a6c5bc91)

Change-Id: Id8eb171937b66221a5c9303e377310db54202f71
2018-04-10 09:42:30 -07:00
Emilian Peev
f4483700a8 Camera: Allocate graphics buffers via 'IAllocator'
Camera graphic buffers should always be allocated using the
respective HIDL API.

Bug: 77681294
Test: run vts --skip-all-system-status-check --skip-preconditions
--primary-abi-only --module VtsHalCameraProviderV2_4Target -l INFO

Change-Id: Ibef88548fc3d29df606e4f66f5f3f4e89d3bf654
Merged-In: Ibef88548fc3d29df606e4f66f5f3f4e89d3bf654
2018-04-10 16:22:49 +00:00
Yuexi Ma
e41f291381 resolve merge conflicts of a9543fee6b to oreo-mr1-vts-dev
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I09c7c008bfe071e8108cee0b86b660625d33ca6e
2018-03-29 15:15:23 -07:00
Treehugger Robot
a9543fee6b Merge "rename VtsHalEvsV1_0Target module to VtsHalEvsV1_0TargetTest" into oreo-vts-dev 2018-03-29 06:41:26 +00:00
Roshan Pius
e7ec531394 wifi(vts): Skip tests if feature not supported
am: d01fcb402f

Change-Id: Ibdadb2e4dbd03f888782c70603f5bdc3873dbb66
2018-03-28 17:44:02 +00:00
Yuexi Ma
74d8a5ebb1 rename VtsHalEvsV1_0Target module to VtsHalEvsV1_0TargetTest
Test: run vts-selftest
Change-Id: Ib413d3ee2bffbb98489a5e787b83014c3b2e3af9
Merged-In: Ib413d3ee2bffbb98489a5e787b83014c3b2e3af9
(cherry picked from commit c446be1563)
2018-03-22 18:54:18 -07:00
Peng Xu
23c91a2b54 Ignore meta sensor events when checking values
Bug: 68729931
Test: verified by vendor, see b/68729931#comment5
Change-Id: I0f729c33409e409f0a64d9d4f609215cffde71f5
2018-03-21 17:58:41 -07:00
Roshan Pius
d01fcb402f wifi(vts): Skip tests if feature not supported
Bug: 69338713
Test: `make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module VtsHalWifiV1_0Target -l
INFO`
Change-Id: If70050811ce87f8eff32696ecdd4d3f49646bad0
(cherry picked from commit fbe5aff5e4)
2018-03-21 20:30:22 +00:00
Emilian Peev
51aba6781c Camera: Remove length check in case of 'getCameraIdList'
Camera providers must be able to report 0 camera devices.

Bug: 75234850
Test: vts-tradefed run vts --skip-all-system-status-check
--skip-preconditions --primary-abi-only --module
VtsHalCameraProviderV2_4Target -l INFO
Change-Id: Id3103ddcb4336fee01ee287c9e450b6f204a3da3
2018-03-20 09:57:07 +00:00
Myles Watson
4891a02bbc resolve merge conflicts of 8a28de7a8c to oreo-mr1-vts-dev
Test: Manually inspected the diffs.
Change-Id: I185caef3e3ee6ad3678e5f9035986d74d266d186
Merged-In: Ia1ead7ff942ffa369f88f61bcaaa8e03d7973179
2018-03-06 23:30:18 +00:00
Myles Watson
8a28de7a8c Bluetooth: Relax NO_OP and SCO checks
Ignore NO_OP complete events.
Ignore ordering for Loopback Mode Connection/Command Complete.
Only check for SCO buffer size when SCO connections are made.

Bug: 69785298
Test: VtsHalBluetoothV1_0TargetTest
Change-Id: Ia1ead7ff942ffa369f88f61bcaaa8e03d7973179
Merged-In: Ia1ead7ff942ffa369f88f61bcaaa8e03d7973179
(cherry picked from commit 72382e3014)
2018-03-05 21:42:39 +00:00
Polina Bondarenko
c76249045b thermal: fix VTS test for default implementation
am: 3e4a4ce3ae

Change-Id: Ib00466fc0ac1a0e35843e4acf170a916447f92e0
2018-02-24 19:06:06 +00:00
Polina Bondarenko
3e4a4ce3ae thermal: fix VTS test for default implementation
Bug: 36097196
Test: vts
Change-Id: I67cceb672a9ba67ae760019c0521d31544416882
2018-02-23 16:01:07 -08:00
sqian
efebbbeeea Merge "Add None into cancelPendingUssd" into oreo-vts-dev
am: 4ccc3b0140

Change-Id: Iad35b1764095d6b4bdd52dfd8f8e6a73940bfab5
2018-01-25 02:40:26 +00:00
Treehugger Robot
4ccc3b0140 Merge "Add None into cancelPendingUssd" into oreo-vts-dev 2018-01-25 02:36:50 +00:00
Keun Soo Yim
59e97b05f0 Merge "DO NOT MERGE Resolve merge conflict for VtsHalCameraProviderV2_4TargetTest.cpp" into oreo-vts-dev
am: c85833780f  -s ours

Change-Id: Ib0d50b801ba91217df8cf13f64ea62dfbd785ecb
2018-01-24 18:59:51 +00:00
Ram Mohan M
c6b7256ae7 Merge "bug fix: close file pointer" into oreo-vts-dev
am: e4fb4e20e7  -s ours

Change-Id: I6641da7c3cad16b710db76465cb7bd79c4fb316a
2018-01-24 18:59:45 +00:00
Kevin Rocard
73f2fd9728 Audio policy config: remove cross-module device port name uniqueness
am: 079fdeb1d1  -s ours

Change-Id: I79c10d0defa29acf07839870276fd5ef79258bcd
2018-01-24 18:59:33 +00:00
Treehugger Robot
c85833780f Merge "DO NOT MERGE Resolve merge conflict for VtsHalCameraProviderV2_4TargetTest.cpp" into oreo-vts-dev 2018-01-24 18:54:02 +00:00
Treehugger Robot
e4fb4e20e7 Merge "bug fix: close file pointer" into oreo-vts-dev 2018-01-24 18:54:01 +00:00
Kevin Rocard
079fdeb1d1 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
Merged-In: I66d890d3c967bead4f2a287202c259009217996a
Change-Id: I66d890d3c967bead4f2a287202c259009217996a
Signed-off-by: Kevin Rocard <krocard@google.com>
(cherry picked from commit 503c3e0a4e)
2018-01-24 02:07:21 +00:00
Ram Mohan M
6729c05751 bug fix: close file pointer
Bug: 63796949

Merged-In: Ifd8a27d851cbc659ea8108e0879747cd9169680a
Change-Id: Ifd8a27d851cbc659ea8108e0879747cd9169680a
(cherry picked from commit 727b2ba98c)
2018-01-24 02:03:56 +00:00
Keun Soo Yim
7d39f9ea82 DO NOT MERGE Resolve merge conflict for
VtsHalCameraProviderV2_4TargetTest.cpp

Merged-In: I5c0c678e74d56cd8307d2f4e63b7c6dfa95d210d
Merged-In: Ia7b1e8e9baae2885d9c43821fe2933df883f7892
Merged-In: I5fad0a5b7aafd208c3a1b2f62a2b9046cde858d1
2018-01-23 17:56:43 -08:00
sqian
40c4ff77c6 Add None into cancelPendingUssd
Bug: 67834975
Test: Compile
2018-01-23 16:36:05 -08:00
Kevin Rocard
ec65974f60 Audio HAL: Allow setters to not be implemented
am: 5b21eaa608  -s ours

Change-Id: I14f534be8a78e52287673d200f7050a1a5d38616
2018-01-23 22:46:06 +00:00
Kevin Rocard
0b304504b5 Merge "Audio VTS: HAL can support more than the native sampling rates" into oreo-vts-dev
am: 96b6fcdc4f  -s ours

Change-Id: I3e2c23a1442726e742c41909f87a42e2e2e8d8c6
2018-01-23 22:44:23 +00:00
Kevin Rocard
f4f190fd03 Audio policy config: Device port (type,address) must be unique
am: 117188b315  -s ours

Change-Id: I73ce4291045840041d7c40ed13d3015ddc6e2be3
2018-01-23 22:44:14 +00:00
Kevin Rocard
6834a7bea7 Audio policy config: allow vendor to extend module name
am: eb488fad65  -s ours

Change-Id: Ic43abe7100e5dbc92f8143db25e78034e9da7f20
2018-01-23 22:44:05 +00:00
sqian
633778a470 Set time delay in the vts test setup
am: d4c4a4edfb  -s ours

Change-Id: Iecd99a7bd79988394c192bdf0aad4d4783c9e8a3
2018-01-23 22:42:29 +00:00
Wyatt Riley
f657ce53b4 Loosen speed check for first GPS location
am: bf4f6db431  -s ours

Change-Id: I20c516409df5251bedcd284df4ea3b1f8f4bff0f
2018-01-23 22:42:20 +00:00
Kevin Rocard
5b21eaa608 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
Merged-In: I3a390ae925cabd99e7f1ed4a627e71ad87b1b437
Signed-off-by: Kevin Rocard <krocard@google.com>
(cherry picked from commit 3bcba14c36)
2018-01-23 22:42:18 +00:00
Treehugger Robot
96b6fcdc4f Merge "Audio VTS: HAL can support more than the native sampling rates" into oreo-vts-dev 2018-01-23 22:42:11 +00:00
Kevin Rocard
1e7e982a72 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
Merged-In: I1ec1ce422bc5039637463c6641060508f4ee892b
Change-Id: I1ec1ce422bc5039637463c6641060508f4ee892b
Signed-off-by: Kevin Rocard <krocard@google.com>
(cherry picked from commit 02025847de)
2018-01-23 22:41:44 +00:00
Kevin Rocard
117188b315 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
Merged-In: I84245f0fa80fef786a002c98073c166b6aaf2be4
Change-Id: I84245f0fa80fef786a002c98073c166b6aaf2be4
Signed-off-by: Kevin Rocard <krocard@google.com>
(cherry picked from commit fa1f597442)
2018-01-23 22:41:21 +00:00
Kevin Rocard
eb488fad65 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>

Merged-In: I4ead38535cce89bb8fe44cf23fa1146acd1271d6
Change-Id: I4ead38535cce89bb8fe44cf23fa1146acd1271d6
(cherry picked from commit 7558e8c6e4)
2018-01-23 22:40:40 +00:00
Edwin Wong
4a9b599f9a Add tests to validate key length for clearkey plugin.
am: c312e21b5e  -s ours

Change-Id: Ie0657f6b7a5f78926bac6f729c738b543a905847
2018-01-23 22:38:23 +00:00
sqian
b2b0cd70fa Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests
am: 1d93dbfb3b  -s ours

Change-Id: Ibaa8bd1ca8994b0c461905cea6ee7b2434b5e631
2018-01-23 22:38:14 +00:00