platform_hardware_interfaces/audio
Mikhail Naganov 113bd8111a Audio Effects: Skip CheckConfig test for non-matching HAL versions
In vts-core a test suite for version N can be called for HAL
of version M. Since in the case of the Effects HAL the XSD
configuration for the effects is version-dependent, the test
must not validate the effects config using XSD file for other
version. Thus, the configuration validity check must be skipped
if no corresponding version of IEffectsFactory is found
on the device.

Bug: 142397658
Bug: 146015418
Test: atest VtsHalAudioEffectV6_0TargetTest
      on a device that uses earlier version of Audio HAL;
      CheckConfig#audioEffectsConfigurationValidation must
      be IGNORED
Change-Id: I4b34cc34091447c04bf8d3e988c9bd4048dc8ef9
Merged-In: I4b34cc34091447c04bf8d3e988c9bd4048dc8ef9
2020-03-23 15:32:51 -07:00
..
2.0 Update hidl makefiles for bpfmt 2019-04-17 09:38:50 -07:00
4.0 Audio HAL: Add missing device to XSD 2019-10-11 23:32:30 +00:00
5.0 audio: add 'useForVolume' field to 'gain'. 2019-11-15 10:39:58 -08:00
6.0 Add callback for output stream. 2020-02-25 09:08:26 -08:00
common audio hal: Update offload configuration 2020-02-25 09:06:09 -08:00
core/all-versions audio: Check result from oneway calls 2020-03-19 20:39:12 +00:00
effect Audio Effects: Skip CheckConfig test for non-matching HAL versions 2020-03-23 15:32:51 -07:00
policy/1.0 audiopolicy: engine: Add VTS for engine configurable configuration 2020-01-17 21:42:55 -08:00
README Update README 2019-10-08 11:09:46 +01:00

Directory structure of the audio HIDL related code.

Run `common/all-versions/copyHAL.sh` to create a new version of the audio HAL
based on an existing one.

audio
|-- 2.0              <== core 2.0 HIDL API. .hal can not be moved into the core directory
|                        because that would change its namespace and include path
|-- 4.0              <== Version 4.0 of the core API
|
|-- ...
|
|-- common           <== code common to audio core and effect API
|   |-- 2.0          <== HIDL API of V2
|   |-- 4.0
|   |-- ...
|   `-- all-versions <== code common to all version of both core and effect API
|       |-- default  <== implementation shared code between core and effect impl
|       |-- test     <== utilities used by tests
|       `-- util     <== utilities used by both implementation and tests
|
|-- core             <== VTS and default implementation of the core API (not HIDL, see /audio/2.0))
|   `-- all-versions <== Code is version independent through #if and separate files
|       |-- default  <== code that wraps the legacy API
|       `-- vts      <== vts of core API
|           |-- 2.0  <== 2.0 specific tests and helpers
|           |-- 4.0
|           |-- ...
|
`-- effect           <== idem for the effect API
    |-- 2.0
    |-- 4.0
    |-- ...
    `-- all-versions
        |-- default
        `-- vts