Commit Graph

9 Commits

Author SHA1 Message Date
Mikhail Naganov
206ad4d1f3 Revert^2 "Audio CAP: Address ANAPIC comments, Part 3."
Refactor the stable version of parcelables `AudioPolicyForceUse`
and `AudioPolicyForcedConfig` for better structure. The tag of
the `AudioPolicyForceUse` union is equivalent to the old enum
with the same name. The value of the union replaces
the old `AudioPolicyForcedConfig` enum.

The list of allowed values has been moved into the XSD
schema 'audio_policy_engine_configuration.xsd'.

Bug: 364310317
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I85f58f3310842679b9bf80cad3ac2494c4527ea2
2024-11-20 13:23:37 -08:00
Priyanka Advani (xWF)
50f4e8a966 Revert "Audio CAP: Address ANAPIC comments, Part 3."
Revert submission 3341640-fix-b-364310317-fix-ANAPIC-comments-3

Reason for revert: Droidmonitor created revert due to b/380080376. Will be verifying through ABTD before submission.

Reverted changes: /q/submissionid:3341640-fix-b-364310317-fix-ANAPIC-comments-3

Change-Id: I55deced1f833a7bb22b19fb5473b36c92e5f27ed
2024-11-20 18:24:09 +00:00
Mikhail Naganov
3b5572e131 Audio CAP: Address ANAPIC comments, Part 3.
Refactor the stable version of parcelables `AudioPolicyForceUse`
and `AudioPolicyForcedConfig` for better structure. The tag of
the `AudioPolicyForceUse` union is equivalent to the old enum
with the same name. The value of the union replaces
the old `AudioPolicyForcedConfig` enum.

The list of allowed values has been moved into the XSD
schema 'audio_policy_engine_configuration.xsd'.

Bug: 364310317
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ia17e4a9f2d703394862f484b0501a3b3262b135d
2024-11-18 14:25:09 -08:00
Mikhail Naganov
802a1dab66 Audio CAP: Address ANAPIC comments, Part 2.
See ag/30063274.

Remove superfluous field and type from AudioHalCapCriterionV2.

Bug: 364310317
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I8d8f4cad80d98e9abe4910e3ebb08f17f1b70bae
2024-11-04 09:54:41 -08:00
François Gaffie
57ccab7fc8 Add missing Cap Settings aidl support and helper
Bug: 307310023
Test: atest AudioCoreConfig

Change-Id: I08c71ce9a67f065df36f71c0602e2c9e4e97ae6b
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
2024-08-29 17:35:54 +02:00
Lorena Torres-Huerta
aa8f76af92 audio: Provide code for parsing surround sound config from XML
The main change is to convert the result of parsing from XSDC
types to AIDL, and add a VTS test for IConfig.getSurroundSoundConfig.

Extra changes:
  - add 'Unchecked' suffix to conversion functions that do not
    wrap the result into ConversionResult;
  - enable more compile-time checks for the default AIDL service,
    fix issues found.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Icf578b8d28647e6355ed5328599c77d2ca1234f9
2023-05-16 18:00:14 -07:00
Mikhail Naganov
872d4a6518 audio: Put audio/aidl/common/include/Utils.h into 'aidl' NS
These utilities are for types generated from AIDL. Since
the types end up in the 'aidl' namespace (NDK backend), it makes
sense to keep the utilities in the same namespace.

While changing the namespace, I've found numerous useless
includes of 'Utils.h' and removing them, also reorganizing
lists of includes along the way to match the style guide.

Bug: 205884982
Test: m
Test: atest --test-mapping hardware/interfaces/audio/aidl/TEST_MAPPING
Change-Id: Ib23b47092364046f632f9503b92b9baff5b902f5
2023-03-10 11:34:31 -08:00
Lorena Torres-Huerta
0f4d68964c Test fix for finalization branch
Bug: 262594867
Merged-In: Idf2546030d6ea6cd43acab8f93e3b479aae6a9db
Change-Id: Idf2546030d6ea6cd43acab8f93e3b479aae6a9db
Test: m android.hardware.audio.service-aidl.example
2022-12-14 18:37:28 -08:00
Lorena Torres-Huerta
aff8a1f8fd VTS for IConfig getEngineConfig
Bug: 242678729
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I051d0778bbad447e49dd4b99a2797333d0d67862
2022-12-12 19:34:39 +00:00