Commit graph

1177 commits

Author SHA1 Message Date
Treehugger Robot
d2a2202113 Merge "Backfill owner information for VTS module VtsHalAudioPolicyV1_0TargetTest." am: f3ea9e1c94
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814064

Change-Id: I549e3b49267fbe4321073bf0bf29921fae61c1da
2021-09-09 04:38:53 +00:00
Treehugger Robot
f3ea9e1c94 Merge "Backfill owner information for VTS module VtsHalAudioPolicyV1_0TargetTest." 2021-09-09 04:26:30 +00:00
Treehugger Robot
35d694b3e6 Merge "Backfill owner information for VTS module VtsHalAudioEffectV6_0TargetTest." am: a5197a42d4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814063

Change-Id: I0d0f96422a14f5acdc83de580e605800fc8ab1ac
2021-09-09 02:12:03 +00:00
Treehugger Robot
a5197a42d4 Merge "Backfill owner information for VTS module VtsHalAudioEffectV6_0TargetTest." 2021-09-09 01:56:08 +00:00
Yiming Pan
fd3c91e19c Merge "Backfill owner information for VTS module VtsHalAudioV6_0TargetTest." am: 86e736283b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814068

Change-Id: I5d66345749cff4df2faf38964c177a9829785588
2021-09-09 00:39:39 +00:00
Yiming Pan
86e736283b Merge "Backfill owner information for VTS module VtsHalAudioV6_0TargetTest." 2021-09-09 00:20:43 +00:00
Yiming Pan
56ba9d39fd Backfill owner information for VTS module VtsHalAudioV6_0TargetTest.
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: I743c12b239732c85cecb421b4b4ee4ebcf36074a
2021-08-30 12:57:51 -07:00
Yiming Pan
72ff6a327f Backfill owner information for VTS module VtsHalAudioPolicyV1_0TargetTest.
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: If490f3e7ac54a9ea7447c2a9c39e54263305e1c0
2021-08-30 12:57:10 -07:00
Yiming Pan
e1bd199f63 Backfill owner information for VTS module VtsHalAudioEffectV6_0TargetTest.
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: Ic69622eb6b1c99d145b12d6250e3b04daf0294cf
2021-08-30 12:57:01 -07:00
Andy Hung
4df56a5449 Merge "Remove libaudioclient from vendor" am: 0f23937288
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1801733

Change-Id: Ib8b74771d2e7131a6bcc593312bee23acebe93fd
2021-08-20 16:05:28 +00:00
Treehugger Robot
03e3cb179a Merge "Provide defaults for android.hardware.audio@7.0-impl" am: 9124807755
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1803397

Change-Id: Id4138b78fa392c99148950e8615ec2cbebed0dea
2021-08-20 16:05:13 +00:00
Andy Hung
0f23937288 Merge "Remove libaudioclient from vendor" 2021-08-20 15:48:02 +00:00
Roman Kiryanov
4c5752d903 Provide defaults for android.hardware.audio@7.0-impl
see aosp/1366502.

Bug: 196868480
Bug: 161485545
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: Ie582038f2212fbf881497ed3db62ef04bac286f3
2021-08-19 17:59:03 -07:00
Andy Hung
de0d3df464 Remove libaudioclient from vendor
Test: compiles
Bug: 189371870
Change-Id: Ic96bbb0c370883866fac731ef5e6941c1994c7c6
2021-08-18 20:30:02 -07:00
Xin Li
e287df40b9 Merge sc-dev-plus-aosp-without-vendor@7634622
Merged-In: Ifa71accba7ecf2ab15980227a4413831cfceb187
Change-Id: I7fb44c6c578a51c8ad36649d20a46233fd9609ca
2021-08-14 06:30:57 +00:00
Treehugger Robot
635c0b8416 Merge "Backfill owner information for VTS module VtsHalAudioV2_0TargetTest" 2021-08-13 17:37:57 +00:00
Yiming Pan
494d01a431 Backfill owner information for VTS module VtsHalAudioV2_0TargetTest
Owner information already exists. Add bug component information.

Test: Tree Hugger
Bug: 143903671
Change-Id: I7142c9dea2af4ae037a0244d7d306e401c1d5cfb
2021-08-13 09:30:58 -07:00
Kuowei Li
2950416a76 audio: Allow SetAudioProperties to not be supported am: de829572f9 am: 4f21be2965
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1762588

Change-Id: I8711fc885403a22d7a09fc51aeb3d6e69ef759ea
2021-07-23 21:28:20 +00:00
Kuowei Li
de829572f9 audio: Allow SetAudioProperties to not be supported
The parameter of sample rate, channel mask and format is not
mandatory to support by Audio HAL. At meantime, there is no
corresponding handle in framework.
Hence, SetAudioProperties should allow reporting not supported.

Bug: 194368657

Test: run vts -m VtsHalAudioV7_0Target
Change-Id: Id0505bfb5d4812dd4c5d31a6e9d72c4c9c0cffa2
2021-07-22 17:44:48 +00:00
Yiming Pan
f37db8728a Merge "Update OWNERS for VTS module VtsHalAudioEffectV5_0TargetTest" am: 572e6cb3d5 am: 0194c9ffad
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1771670

Change-Id: Ifb0711aeb29bdb3b4b821b48d81d4646acafe26f
2021-07-20 19:49:18 +00:00
Yiming Pan
572e6cb3d5 Merge "Update OWNERS for VTS module VtsHalAudioEffectV5_0TargetTest" 2021-07-20 19:12:08 +00:00
TreeHugger Robot
7664e979ca Merge "Audio VTS: Make the active microphone query test more robust in V7" into sc-dev am: 997554db63
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15329863

Change-Id: Ib29f036dd1cc1d9d60c5360e51e252dc6a3b17e1
2021-07-20 17:56:25 +00:00
Mikhail Naganov
65a23ad2d4 Audio VTS: Make the active microphone query test more robust in V7
Prior to V7 the test which exercises
IStreamIn.getActiveMicrophones was using a hardcoded
configuration for the input stream. This configuration no longer
works for some of new devices. To fix that, the part of the test
which calls getActiveMicrophones has been moved into a separate
test--a descendant of InputStreamTest which is parametrized
using the actual configuration of the DUT.

Tests for HAL versions prior to V7 are not affected
because they don't use a full parser for the DUT config.

Bug: 193849687
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I00fe8fedb6bfc6e034387b35c88f954cb2638dfa
Merged-In: I00fe8fedb6bfc6e034387b35c88f954cb2638dfa
2021-07-20 17:40:13 +00:00
TreeHugger Robot
997554db63 Merge "Audio VTS: Make the active microphone query test more robust in V7" into sc-dev 2021-07-20 16:52:02 +00:00
David Li
081fe6adce Merge "audio: make sure to set back to AudioMode::NORMAL after the test case" into sc-dev am: 183f6190a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15310729

Change-Id: Iae9d1f8aabf6d4dcc05e6a7992a638a3eb7297ad
2021-07-20 08:31:21 +00:00
David Li
183f6190a8 Merge "audio: make sure to set back to AudioMode::NORMAL after the test case" into sc-dev 2021-07-20 08:20:47 +00:00
Yiming Pan
d6d0e67e74 Update OWNERS for VTS module VtsHalAudioEffectV5_0TargetTest
Add bug component information.

Test: Tree Hugger
Bug: 143903671
Change-Id: Icca9a6a3864cb3e5148395fa3523a332cb1d2ab3
2021-07-19 17:39:36 -07:00
Mikhail Naganov
e4ce86bfb7 Audio VTS: Make the active microphone query test more robust in V7
Prior to V7 the test which exercises
IStreamIn.getActiveMicrophones was using a hardcoded
configuration for the input stream. This configuration no longer
works for some of new devices. To fix that, the part of the test
which calls getActiveMicrophones has been moved into a separate
test--a descendant of InputStreamTest which is parametrized
using the actual configuration of the DUT.

Tests for HAL versions prior to V7 are not affected
because they don't use a full parser for the DUT config.

Bug: 193849687
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I00fe8fedb6bfc6e034387b35c88f954cb2638dfa
2021-07-19 23:04:15 +00:00
David Li
238fbcc61a audio: make sure to set back to AudioMode::NORMAL after the test case
If the major version is greater than or equal to 6, the test tries
to set the mode to AudioMode::CALL_SCREEN. However, it doesn't set
back to AudioMode::NORMAL. Replace all ASSERT with EXPECT to ensure the
test can reach to the explicit call to reset to AudioMode::NORMAL.

Bug: 194022995
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: Ib9b6e310965a85b016853b72c60716fa054641c6
2021-07-19 16:26:42 +08:00
Bill Yi
ee86375d3a Merge RQ3A.210705.001 to aosp-master - DO NOT MERGE
Merged-In: I7b187c5e79bf4531bdffc7411a033a7c20a54294
Merged-In: I89cda19ca8521445e1608efbbd07c889cca59601
Merged-In: I89cda19ca8521445e1608efbbd07c889cca59601
Change-Id: I183701b2c03dc63d19c98779388c0b99bae9a4ce
2021-07-12 11:08:26 -07:00
Mikhail Naganov
420a5407cd audio: Fix handling of relative XML include paths in VTS
Pass "no fixup base dirs" flag to the XInclude processor
to avoid modifications of the top-level elements from
included XML files as a result of "fixup."

Added tests to ensure that all relevant XInclude scenarios
work.

Bug: 192619060
Test: atest -host android.hardware.audio.common.test.utility_tests
Change-Id: Id595c9fd30be378d76387ee55a8937e0bf28d1cd
Merged-In: Id595c9fd30be378d76387ee55a8937e0bf28d1cd
2021-07-08 17:29:23 +00:00
TreeHugger Robot
6cef4e021e Merge "audio: Fix handling of relative XML include paths in VTS" into sc-dev am: 3456ce6816
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15193448

Change-Id: I6ed35b4bb6164db803dbf6bb9768a9cd6f07ee58
2021-07-08 16:44:42 +00:00
TreeHugger Robot
3456ce6816 Merge "audio: Fix handling of relative XML include paths in VTS" into sc-dev 2021-07-08 16:31:37 +00:00
Mikhail Naganov
13c6796528 audio: Fix handling of relative XML include paths in VTS
Pass "no fixup base dirs" flag to the XInclude processor
to avoid modifications of the top-level elements from
included XML files as a result of "fixup."

Added tests to ensure that all relevant XInclude scenarios
work.

Bug: 192619060
Test: atest -host android.hardware.audio.common.test.utility_tests
Change-Id: Id595c9fd30be378d76387ee55a8937e0bf28d1cd
2021-07-07 21:08:42 +00:00
TreeHugger Robot
8c77e004fc Merge "Revert "audio: exclude the echo reference device in capture position test"" into sc-dev am: 8c5166b2f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15223272

Change-Id: Ib807c10790e55a4a06ca85417aca146d791dbf9e
2021-07-07 18:35:52 +00:00
Mikhail Naganov
dd0e20eba3 Revert "audio: exclude the echo reference device in capture position test"
This reverts commit b22f307ccf.

Reason for revert: As explained in b/192307382#comment12, the HAL must provide capture positions for the echo reference input regardless of whether there is any actual output.

This should not affect O6/R4 as according to b/192307382#comment10, the VTS tests pass w/o this patch after the HAL has been fixed.

Bug: 192307382
Change-Id: I224bd9de1dcb2e2c8dc138dbfd85f848378aea4f
Test: VtsHalAudioV7_0TargetTest --gtest_filter=*PcmOnlyConfigInputStreamTest*
2021-07-07 17:07:15 +00:00
Carter Hsu
f6927b4bf2 Merge "audio: exclude the echo reference device in capture position test" into sc-dev am: 0700d79feb
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15152137

Change-Id: I0719d4c7792e71ee15f95b6413ef1dcd5e93885e
2021-07-01 09:40:18 +00:00
Carter Hsu
b22f307ccf audio: exclude the echo reference device in capture position test
Bug: 192307382
Test:
VtsHalAudioV7_0TargetTest --gtest_filter=*PcmOnlyConfigInputStreamTest*
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I4e38e093bc3be7ee54c0c7cce4d1181e260a23bb
2021-06-30 06:55:24 +00:00
Treehugger Robot
30de3670fe Merge "audio: Ignore SIGPIPE in the default audio HAL wrapper" am: 6d6ddd73ee am: 3f1d554b25
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1740273

Change-Id: Ic755ef20e35a231a1e5539051e25258c63adba3a
2021-06-17 22:27:56 +00:00
Mikhail Naganov
9a88b5b110 audio: Ignore SIGPIPE in the default audio HAL wrapper
It could happen that a service process receives a SIGPIPE
while providing a dump due unexpected pipe closure on
the other side. This should not lead to a service
termination. Ignoring SIGPIPE is a normal practice for
system services.

Bug: 191123848
Test: adb shell kill -s 13 <pid-of-audio-hal>
Change-Id: I9c1d170b76aa27203206e8fd2ce2fc3f5431baac
2021-06-17 19:55:16 +00:00
Mikhail Naganov
228a7b1dc9 audio: Fix parsing of arguments in the APM config update script am: b9e244dfc7 am: 188d6412b0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1734893

Change-Id: Ie50832619be016f65074485dea184cc1c692eb83
2021-06-11 22:06:36 +00:00
Mikhail Naganov
b9e244dfc7 audio: Fix parsing of arguments in the APM config update script
The regex for finding "-h[elp]" argument wasn't correct.
As a result, a file name containing "-h" would match.
Fix the regex by requiring that "-h" must appear at the
beginning of the line.

Test: h/i/audio/7.0/config/update_audio_policy_config.sh -h
Test: h/i/audio/7.0/config/update_audio_policy_config.sh -help
Test: h/i/audio/7.0/config/update_audio_policy_config.sh test-help.xml
Change-Id: Ibdf191e95baacc8600daa8b2f19ddc8338f182eb
2021-06-11 08:52:39 -07:00
Steven Moreland
2f0fe27a2b audio HAL - fix UAFs
Bug: 185259758
Test: N/A
Change-Id: I5ec70b098a00746108e10ab39e966607d78c84ae
Merged-In: I5ec70b098a00746108e10ab39e966607d78c84ae
(cherry picked from commit a8ac7cf706)
(cherry picked from commit 7283cbe8cb)
2021-05-20 00:00:57 +00:00
Andy Hung
bec76e8c9e Merge "StreamOut: Fix STREAM_EVENT_CBK_TYPE_CODEC_FORMAT_CHANGED" am: 66ffc5b99a am: 1e1514be04 am: 6660615822
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1692490

Change-Id: I5bd4d6fdea2c18c9822ad061cdc24a488b148fb6
2021-05-04 21:54:03 +00:00
Andy Hung
6660615822 Merge "StreamOut: Fix STREAM_EVENT_CBK_TYPE_CODEC_FORMAT_CHANGED" am: 66ffc5b99a am: 1e1514be04
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1692490

Change-Id: I97c94630cd48b9a0354c9b76e593ea0205a633b4
2021-05-04 21:37:16 +00:00
Andy Hung
e6e3a17126 StreamOut: Fix STREAM_EVENT_CBK_TYPE_CODEC_FORMAT_CHANGED
Use audio_metadata_byte_string_len method in asyncEventCallback.

Test: atest metadata_tests
Bug: 186894288
Change-Id: I04914bc5b2c778002b53b8f8da5bf29fff5c80f8
2021-04-30 21:07:33 -07:00
Andy Hung
dd1756f22b Merge changes from topics "dra", "dts_uhd", "earc" am: b76d8e27fb am: 0b58fe1496
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1692146

Change-Id: Ia8f84c5c03dbf91fafc822ce2b1ef8480f104b7d
2021-04-30 21:28:36 +00:00
Andy Hung
ebb8be17c4 audio: Add device constants for HDMI EARC am: 1f90e1fbf8 am: a21b9b5d4e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1690703

Change-Id: I3b2bc500ca14d75ba1d0a6cc04ae6dc8784ae241
2021-04-30 21:28:35 +00:00
Andy Hung
6edb870022 Audio: Add AUDIO_FORMAT_DTS_UHD am: 3c5fcc51f5 am: 24556f0dfe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1692125

Change-Id: Iee1f48feeb4e067daef3e46a94145c60a34a33af
2021-04-30 21:28:33 +00:00
Andy Hung
6ce19700eb Audio: Add AUDIO_FORMAT_DRA
China DTMB digital TV.
See SJ/T11368-2006
“Specification for multichannel digital audio coding technology”.

Test: atest AudioFormatTest
Bug: 185950819
Merged-In: I941c4991e598e864babfb888a8827d1625d95990
Change-Id: I941c4991e598e864babfb888a8827d1625d95990
2021-04-29 19:07:10 -07:00