Commit graph

59269 commits

Author SHA1 Message Date
Jooyung Han
92ca5545ca Install bluetooth audio VINTF fragment in apex
Previously, android.hardware.bluetooth.audio-impl was installed with no
use and the attached vintf was fulfilled by the
com.android.hardware.audio apex.

For cleanup, we no longer install android.hardware.bluetooth.audio-impl
separately (for cuttlefish) and install the VINTF inside the apex.

Bug: 312265159
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I31e0ccd6a8c3c00565159f2be7fe3bf4d70e9ddf
2024-02-05 11:04:02 +09:00
Shunkai Yao
047484de60 Merge "Effect: verify all AIDL IEffect versions are same as IFactory" into main 2024-02-02 20:23:29 +00:00
Mikhail Naganov
cb49cde0ad Merge "audio: Move stable libaudioclient tests to presubmit for the AIDL HAL" into main 2024-02-02 19:53:44 +00:00
Jooyung Han
63b64e2995 Merge "Use LLNDK guard instead of builtin_available" into main 2024-02-02 01:58:22 +00:00
Shunkai Yao
910a8153b2 Effect: verify all AIDL IEffect versions are same as IFactory
Bug: 322780092
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: If47f70b9d8f72a45f3ecf927294fb93fda28851b
2024-02-02 01:46:09 +00:00
Mikhail Naganov
03761c7e8e audio: Move stable libaudioclient tests to presubmit for the AIDL HAL
These framework-side tests are helpful in detecting breakages
caused by changes in the HAL code.

Data from postsubmit runs:

Test module audioeffect_tests: Latency (p90): 3s, Flakiness: 0.00%
Test module trackplayerbase_tests: Latency (p90): 13s, Flakiness: 0.00%

Bug: 311830316
Test: presubmit
Test-Mapping-Slo-Bypass-Bug: b/318425155
Change-Id: I5c329239cd3890e98edc74283bc9edb83e7e7ba7
2024-02-01 10:47:21 -08:00
Devin Moore
7f3b4b2a38 Merge "Revert^2 "Remove Q matrices"" into main 2024-02-01 18:22:50 +00:00
Treehugger Robot
17aa36a60d Merge "Replace use of deprecated logging functions" into main 2024-02-01 17:36:36 +00:00
Shikha Panwar
36e66b72fe Merge "Expand DICE chain in VTS/test to contain arrays" into main 2024-02-01 16:06:36 +00:00
Shikha Panwar
9e15e5e01e Expand DICE chain in VTS/test to contain arrays
Include a list of subcomponents in AVB DiceChainEntry in the sample DICE
chain and include constraints on that in the sealing_policy.

Bug: 291238565
Test: VTS#secret_management_policy_gate
Change-Id: Id36ddf137bacf99c273b61c3136691426f2d5b34
2024-02-01 13:15:36 +00:00
Treehugger Robot
57220562b0 Merge changes Ie1b0c687,I4e6dfdfa,I2da14a56,I47041785,I34388f76, ... into main
* changes:
  [Thread] Add socket interface support in thread chip
  [Thread] Implement read on socket interface
  [Thread] Implement write on socket interface
  [Thread] Wait until socket created to create interface
  [Thread] Implement init/deinit socket interface
  [Thread] Initialize socket interface
2024-02-01 08:45:41 +00:00
Jooyung Han
23e5bf2873 Use LLNDK guard instead of builtin_available
APEXSUPPORT_API was a workaround when we had no support for
__ANDROID_VENDOR_API__. Since we have it now, use it instead of
builtin_available(android APEXSUPPORT_API).

Bug: 302088370
Test: CtsMediaAudioTestCases
Change-Id: I28b0e0ebab5f357a2f5cc29f244ae5494e379fbe
2024-02-01 12:49:35 +09:00
shihchienc
27711c3195 [Thread] Add socket interface support in thread chip
Bug: 313425570
Test: build pass & manual test
Change-Id: Ie1b0c687cf529659521f1dd1457fcda35af1bf49
2024-02-01 02:31:31 +00:00
shihchienc
1623351bc0 [Thread] Implement read on socket interface
Bug: 313425570
Test: build pass & manual test
Change-Id: I4e6dfdfa73f7145e8f36d05abf1531d7796b4b9e
2024-02-01 02:31:28 +00:00
Treehugger Robot
a64a264f2d Merge "AHAL: add default values for dynamic port config of hardcoded config." into main 2024-02-01 01:42:36 +00:00
jiabin
129b145133 AHAL: add default values for dynamic port config of hardcoded config.
If the values(format, sample rate, channel mask) are left as unset, they
will be null. In that case, when using them will require checking
nullablitiy to avoid crash.

Bug: 323255506
Test: make and boot
Change-Id: Ic66bf0b6f53750ff8700e531cca13f03fbb72936
2024-01-31 23:56:26 +00:00
Devin Moore
7ad5797272 Revert^2 "Remove Q matrices"
Re-landing now that the downstream devices are targeting later FCMs.

Test: m
Bug: 279809679

5f679f3deb

Change-Id: I29de76f787cadb801b60724526fa2851ba599dcc
2024-01-31 23:54:02 +00:00
Treehugger Robot
c02d38d7b7 Merge "audio: Add tracing to audio I/O and effect processing" into main 2024-01-31 23:26:42 +00:00
Shunkai Yao
2d1e1bd332 Merge "BassBoost Process: Add tests to validate Bass Boost Process." into main 2024-01-31 23:25:28 +00:00
Yu Shan
4052b91685 [automerger skipped] Add retry in setProp test. am: 62fe882688 -s ours am: 2b31910a47 -s ours
am skip reason: Merged-In If9349a097a92c51101c7b5f4bf807b610ab2cb0b with SHA-1 1837df06c2 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2927410

Change-Id: I7211ff618b98bd30a7e4046ef10bb4c2ab6814e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-31 23:06:20 +00:00
Yu Shan
2b31910a47 [automerger skipped] Add retry in setProp test. am: 62fe882688 -s ours
am skip reason: Merged-In If9349a097a92c51101c7b5f4bf807b610ab2cb0b with SHA-1 1837df06c2 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2927410

Change-Id: I6d6ea305b270b7fe524f4d980531577cc1a794d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-31 22:43:38 +00:00
Mikhail Naganov
89a6bb7199 audio: Add tracing to audio I/O and effect processing
Emit trace events for audio reads and writes and effect
processing functions. This is to match the HIDL implementation.

Bug: 321233946
Test: `record_android_trace` with `audio` category enabled
Change-Id: I26907b09243fd3e5aaa470a0fb930b34addd3093
2024-01-31 14:19:08 -08:00
Aditya Choudhary
c5c6c62995 [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
<add g3 doc link>

Bug: 304529413
Test: N/A
Change-Id: I3322344f595f974f730dc824af0110388076d838
2024-01-31 11:06:17 +00:00
Jeff Vander Stoep
e8934d0991 Replace use of deprecated logging functions
This is needed to upgrade the android_logger crate from 0.12.0
to 0.13.3.

with_max_level provides the same functionality as with_min_level.
The renaming is admittedly confusing, but the new name is accurate
and it makes sense that they deprecated and then removed the
previously poorly named with_min_level.

See crate documentation [1] and code [2].

[1]: https://docs.rs/android_logger/0.12.0/android_logger/struct.Config.html#method.with_min_level
[2]: https://docs.rs/android_logger/0.12.0/src/android_logger/lib.rs.html#227

Bug: 322718401
Test: build and run CF with the change.
Test: m aosp_cf_x86_64_phone
Change-Id: I0ca9596433967be70e9d55acb6cfbf9322741bf8
2024-01-31 10:49:31 +01:00
shihchienc
5b2cd32368 [Thread] Implement write on socket interface
Bug: 313425570
Test: build pass & manual test
Change-Id: I2da14a563b795b0044362c1c248b53c1d3505d39
2024-01-31 08:56:33 +00:00
Sneha Patil
e584923d98 BassBoost Process: Add tests to validate Bass Boost Process.
Added methods to set and validate parameters.
Added test to verify increasing strengths.

Bug:305866207
Test: atest VtsHalBassBoostTargetTest
Change-Id: I64e06deca199b3acc53eb15cf2007e6db27430f3
2024-01-31 14:13:02 +05:30
shihchienc
005f602d23 [Thread] Wait until socket created to create interface
Bug: 313425570
Test: build pass & manual test
Change-Id: I4704178519ed032ad352a3ab252e80478c179574
2024-01-31 07:37:55 +00:00
shihchienc
31ecb33558 [Thread] Implement init/deinit socket interface
Bug: 313425570
Test: build pass & manual test
Change-Id: I34388f76972f9b88f390a04b100c2fbf61019a1d
2024-01-31 07:35:20 +00:00
George Chang
2161976dd3 [automerger skipped] Tag vts module VtsHalSecureElementTargetTest with secure element sim am: c2cba539b8 -s ours
am skip reason: Merged-In Idbfee70eec009fffe389aad5780a4f04c55757c7 with SHA-1 80e365794b is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2939000

Change-Id: Ic6aaa0229c7cd49242b3935a96130591d1e375a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-31 07:20:04 +00:00
George Chang
c2cba539b8 Tag vts module VtsHalSecureElementTargetTest with secure element sim
Bug: 302200925
Test: build pass
Change-Id: Idbfee70eec009fffe389aad5780a4f04c55757c7
Merged-In: Idbfee70eec009fffe389aad5780a4f04c55757c7
(cherry picked from commit 80e365794b)
2024-01-31 03:12:59 +00:00
Yu Shan
83a9e12f6d Merge "Add retry in setProp test." into android14-tests-dev am: 2c12f0e9ae
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2934133

Change-Id: I0639e2f1bc6152c37e7fc6fac76d271871195b32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-31 02:21:18 +00:00
Yu Shan
2c12f0e9ae Merge "Add retry in setProp test." into android14-tests-dev 2024-01-31 01:40:17 +00:00
Shunkai Yao
d685aed029 vts: update SetCommonParameterAndReopen to DataPathTest
Bug: 323010068
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: I05519481b69bb752f515bd54cb1eab0996ad5433
2024-01-30 18:35:26 +00:00
Yu Shan
ec8db77066 Fix HIDL VHAL descriptor name in VTS. am: 928062ccac am: 8cda776ffe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2928798

Change-Id: I7662938de3cdccbdedf1ef60f36dce21225332c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-30 18:11:52 +00:00
Zhanglong Xia
af7b4c58f6 [automerger skipped] Bypass Thread HAL SendSpinelFrame test on TV devices am: 1dc8481bc7 -s ours
am skip reason: skipped by zhanglongxia

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2928074

Change-Id: I7a79bdc3d02bc2a4e07e3fa8ccf5dd0a815b8eff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-30 18:11:12 +00:00
Yu Shan
8cda776ffe Fix HIDL VHAL descriptor name in VTS. am: 928062ccac
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2928798

Change-Id: I6f7dd76ee3c813194085f131fe495e8f60492f7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-30 18:09:37 +00:00
David Drysdale
c97055b9b6 Merge "Secretkeeper: test sealing policy update" into main 2024-01-30 07:46:46 +00:00
Treehugger Robot
320ef27af2 Merge "audio: Reduce the interval between BT proxy registration retries" into main 2024-01-29 23:00:57 +00:00
Yu Shan
1837df06c2 Add retry in setProp test.
Set property operation is async so getting the property value
immediately after setting the property might not return the new
value. This CL adds the logic to retry when we do not get the
expected values back.

This CL also skips the test case if getting property or setting
property returns unavailable.

Test: atest VtsHalAutomotiveVehicle_TargetTest
Bug: 322070490
Change-Id: If9349a097a92c51101c7b5f4bf807b610ab2cb0b
Merged-In: If9349a097a92c51101c7b5f4bf807b610ab2cb0b
2024-01-29 22:50:49 +00:00
Yu Shan
62fe882688 Add retry in setProp test.
Set property operation is async so getting the property value
immediately after setting the property might not return the new
value. This CL adds the logic to retry when we do not get the
expected values back.

This CL also skips the test case if getting property or setting
property returns unavailable.

Test: atest VtsHalAutomotiveVehicle_TargetTest
Bug: 322070490
Change-Id: If9349a097a92c51101c7b5f4bf807b610ab2cb0b
Merged-In: If9349a097a92c51101c7b5f4bf807b610ab2cb0b
2024-01-29 21:42:42 +00:00
Mikhail Naganov
19de94764d audio: Reduce the interval between BT proxy registration retries
A follow-up for aosp/2929441. The interval between retries
of connecting to BT proxy must be reduced significantly.
Otherwise, in situations when the BT is not connected
(that happens during tests), the resulting long delay causes
failures at the frameowork level due to resulting long
timeout.

Bug: 322820830
Test: atest audiosystem_tests --iterations 100
Change-Id: Idd84cb22b28d109151f98bb5883dca18a9ae928d
2024-01-29 13:40:27 -08:00
Eric Biggers
4a3ca1b4f3 Merge "Assert that at least one Weaver slot is used" into main 2024-01-29 19:11:32 +00:00
Shunkai Yao
db9b8f08da Merge "Update work buffer size with input/output frame size change" into main 2024-01-29 18:51:47 +00:00
David Drysdale
5498cfa85a Secretkeeper: test sealing policy update
Test: VtsSecretkeeperTargetTest
Change-Id: Ib1d60dc2f80aa8b02011506af7e5c310ad92573a
2024-01-29 17:29:04 +00:00
Mikhail Naganov
3552515d70 Merge "audio: Add retries for BT proxy port registration" into main 2024-01-29 17:17:56 +00:00
Treehugger Robot
10e58a2c70 Merge "Remove HIDL media C2 from 202404 compatibility matrix" into main 2024-01-29 17:06:58 +00:00
Zhanglong Xia
1dc8481bc7 Bypass Thread HAL SendSpinelFrame test on TV devices
The Thread HAL VTS test is built from the staging folder on the
android14-tests-dev branch. And the HAL interface doesn't have
@VintfStability which means it is unstable interface. Thread HAL
interface has been removed from the staging folder and added the
@VintfStability on main branch. It reports following errors when
runing the VTS that froms android14-tests-dev branch on main branch.

`BpBinder: Cannot do a user transaction on a system stability
binder in a vendor stability context`

This CL bypasses the `SendSpinelFrame` test case of the Thread
VTS tests on TV devices.

Bug: b/322731574
Test: Run `run vts -m VtsHalThreadNetworkTargetTest` on the TV device
Change-Id: Ibf7fe96aafa58cee7ae55a0ef613f0be67548a80
2024-01-29 18:06:57 +08:00
shihchienc
429bf4a484 [Thread] Initialize socket interface
Bug: 31342557
Test: build pass & manual test
Change-Id: I9d2ef2f6da8d9c856498f4d89423f76c369cbc62
2024-01-29 09:53:20 +00:00
Treehugger Robot
9ef5917d40 Merge "Sk VTS: Use libdice_policy_builder" into main 2024-01-27 17:52:53 +00:00
Yu Shan
928062ccac Fix HIDL VHAL descriptor name in VTS.
Bug: 322418005
Test: Manual test with HIDL VHAL, VTS pass.
Change-Id: I93e92d3587243c44b5651ab85d47442ebb64c51a
Merged-In: I93e92d3587243c44b5651ab85d47442ebb64c51a
2024-01-27 02:28:25 +00:00