Commit graph

59138 commits

Author SHA1 Message Date
Bao Do
6112bda436 Add template functions and implement setCodecPriority
for LE Audio offloading provider

Bug: 306225778
Test: mmm hardware/interfaces/bluetooth/audio/aidl/default
Change-Id: I440a007ba3ed148834db1c3874af780b454aae39
2023-12-13 07:38:35 +00:00
Bao Do
be99419521 Parse LE Audio Set Configuration into LeAudioAseConfiguration
Bug: 306225778
Test: mmm hardware/interfaces/bluetooth/audio/utils
Change-Id: Ia08568322e1cee1834e08172781cc77342cbd025
2023-12-13 07:38:35 +00:00
Bao Do
fbc99e05c6 Template and schemas for parsing LE Audio Set Configuration.
Bug: 306225778
Test: mmm hardware/interfaces/bluetooth/audio/utils
Change-Id: I20482faf20a41f04c39e1314db45a07cb5f9956b
2023-12-13 07:38:34 +00:00
Bao Do
6aeb5d7217 Add LE Audio getProviderInfo information
Bug: 306225778
Test: mmm hardware/interfaces/bluetooth/audio/aidl/default
Change-Id: Ieb03a1a3096dbeb6a4e2ac4774ece6d3ef3e33be
2023-12-13 07:38:34 +00:00
Jakub Tyszkowski
ccceb2f3b3 LeAudio: Add empty audio provider implementation
Empty implementation required for sucessfull build.

Bug: 308428217
Bug: 307258939
Test: make
Change-Id: I7ad578f3451edca89233652e331ef5d532925188
2023-12-13 07:38:34 +00:00
Jakub Tyszkowski
8edc51bbbd bluetooth: LE Audio multi-codec extensibility - broadcast
Bug: 308428217
Bug: 307258939
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I50c07be7bd947f095824f3cf4630c0d640921f9a
2023-12-13 07:38:34 +00:00
Jakub Tyszkowski
c11ac5844b bluetooth: LE Audio multi-codec extensibility - unicast
Bug: 308428217
Bug: 307258939
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I9a40c24212cc36829a11b54977d313bef5e652ca
2023-12-13 07:38:34 +00:00
Treehugger Robot
71f56141e7 Merge "Audio AIDL : Pick PreProcessing library for 2 audio effects" into main 2023-12-13 06:55:11 +00:00
David Drysdale
57b7d0bc7b Merge "Secretkeeper: add message encryption" into main 2023-12-13 05:25:50 +00:00
Treehugger Robot
e35fd5922b Merge "Update OWNERS file." into main 2023-12-13 01:28:25 +00:00
Yu Shan
bdd4c1aaea Update OWNERS file.
Test: None
Bug: None
Change-Id: I0c2b9bba98c0543ed44cf7c5ad1a350e195b7b29
2023-12-12 17:24:42 -08:00
jiabin
dd23b0e58e AHAL: add API to notify the HAL module about disconnecting device.
When external device is about to disconnect, the audio framework will
notify the HAL module about the coming device disconnection so that the
HAL module could abort any active read/write operations on drivers to
avoid problems with the HW interfaces.

Bug: 279824103
Test: atest VtsHalAudioCoreModuleTargetTest
Change-Id: I9f960b8ae5df11a764e70bd63f98c0f8b8386c34
Merged-In: I9f960b8ae5df11a764e70bd63f98c0f8b8386c34
2023-12-13 01:02:21 +00:00
Mikhail Naganov
7b234d483f audio: Fix remote submix behavior with multiple inputs
Align the behavior of the new implementation with the legacy
implementation in the case when the client opens multiple
input streams on the same remote submix device.

Reduce the HAL buffer size to match legacy behavior.

Bug: 264712385
Test: atest CtsVirtualDevicesTestCases --test-filter=".*VirtualAudioTest.*"
(cherry picked from commit a83c8a5518)
Change-Id: I6f5e6a2c133059c66269b1bdd8a30392db282c4d
2023-12-12 15:55:22 -08:00
Shunkai Yao
829179e29c Merge "Revert "audio: Fix remote submix behavior with multiple inputs"" into main 2023-12-12 23:20:48 +00:00
Shunkai Yao
0347f0eff0 Revert "audio: Fix remote submix behavior with multiple inputs"
Revert submission 2862771-cuttlefish_aidl_audio-2

Reason for revert: b/316027906

Reverted changes: /q/submissionid:2862771-cuttlefish_aidl_audio-2

Change-Id: I68932be8dad4b4fd4214d0ae6fc01202727f1658
2023-12-12 22:55:59 +00:00
Jayachandran C
983041b502 Merge "Update OWNER for IRadio" into main 2023-12-12 22:47:59 +00:00
Mikhail Naganov
79f7fd088d Merge "audio: Fix remote submix behavior with multiple inputs" into main 2023-12-12 21:11:55 +00:00
David Anderson
c601ec2ff5 Merge "health: Query new properties from BatteryMonitor." into main 2023-12-12 20:22:31 +00:00
Treehugger Robot
1fd753023f Merge "Fix the path to IR HAL" into main 2023-12-12 16:31:41 +00:00
David Drysdale
bef8d3ae89 Secretkeeper: add message encryption
All request messages are encrypted, but response messages have an outer
unencrypted layer, with an inner response (and the result values inside
that).

Make the SecretManagement.cddl file clearer to reflect that, and make
the schema valid along the way.

Move the outer (unencrypted) error code values into `ErrorCode.aidl` and
use them as service-specific error codes, thus reducing the number of
error types from 3 to 2.

Bug: 291228560
Test: VtsSecretkeeperTargetTest
Test: validate CDDL with https://atacama.informatik.uni-bremen.de/
Change-Id: I46c5bfd7e40b03919d7d3779b265b3bb3ff1ce1e
2023-12-12 16:03:04 +00:00
Shikha Panwar
cbad9a37d3 Test store & get Secret functionality
Test Store/Get api of SecretManagement HAL. We use a hard coded
hypothetical chain & a dice policy (which the dice chain matches
against) for testing the store/get functionality.

This patch also adds required error codes in SecretManagement.cddl

Bug: 291224769
Test: atest VtsSecretkeeperTargetTest
Change-Id: I0aa2dfc7413791e9de62a6e753bda4ab2f813d2c
2023-12-12 14:24:14 +00:00
Shikha Panwar
2759df0d3c [Secretkeeper] In-memory KeyValueStore
We introduce InMemoryStore, an implementation of KeyValueStore trait.
This can be used for implementing backends that VTS can run against.

Bug: 291224769
Test: atest VtsSecretkeeperTargetTest
Change-Id: Id109ee3bd38ec0979953b6285019c97d418172ef
2023-12-12 14:24:14 +00:00
Sneha Patil
71b814c4b7 Audio AIDL : Pick PreProcessing library for 2 audio effects
Bug: 305866207
Test: atest VtsHalAECTargetTest
Test: atest VtsHalNSTargetTest
Change-Id: I4fcd95abe6834dec13e570ad2ecb5cd4f1bdc1d3
2023-12-12 17:51:00 +05:30
Treehugger Robot
3d3dab4875 Merge "HDMI Connection Fuzzer Fix" into main 2023-12-12 12:20:20 +00:00
Jooyung Han
f65ce603ae Fix the path to IR HAL
The .rc file is used by IR HAL binary. So the path should be
/vendor/bin instead of /apex. The apex version of .rc file is generated
by a soong rule.

This fixes the IR HAL in -next- configuration.

Bug: 315827315
Test: atest vts_treble_vintf_vendor_test
Change-Id: I1644660f6734bb4452fd7c6fd897ca31e2447dd5
2023-12-12 18:06:34 +09:00
Jayachandran C
779268e142 Update OWNER for IRadio
Change-Id: Iaeeba97a183e9821b4c5e530cca84c461f90b10e
2023-12-12 08:03:20 +00:00
Chienyuan Huang
e608eb8d34 Merge "Add VTS for Channel Sounding" into main 2023-12-12 05:38:02 +00:00
David Anderson
9315c9f499 Merge "Add android.hardware.health AIDL HAL V3." into main 2023-12-12 04:00:47 +00:00
Jooyung Han
2ffe33ea43 Merge "Clean up sensors hal apex" into main 2023-12-12 02:07:07 +00:00
David Anderson
8b413eb4ab health: Query new properties from BatteryMonitor.
Bug: 309792384
Test: VtsHealthTargetTest
Change-Id: I3e0117cf0e98b4861ede92623994877374cd2e23
2023-12-11 11:01:52 -08:00
David Anderson
85b3b0321a Add android.hardware.health AIDL HAL V3.
Bug: 309792384
Test: m
Change-Id: I5e9183b840f523f4d5b81dec813d35983882f71d
2023-12-11 11:01:52 -08:00
Seth Moore
121fedaa46 Replace string copies with const-ref
Change-Id: Ie3ea65cc81aa8b9a92a7718ca2003440a3189a4b
Test: Treehugger
2023-12-11 10:32:02 -08:00
ralph950412
5a856698db sensors: Do not limit aidl-multihal visibility
Allowing custom sensor implementations for vendors

Change-Id: I9e2b6e8f312ddc85074504a17087d121835a1ca3
2023-12-11 16:43:52 +08:00
Chienyuan Huang
a1020f0dcd Add VTS for Channel Sounding
Bug: 312862898
Test: atest VtsHalBluetoothRangingTargetTest
Change-Id: I38e84dca07dd3c995875471b0bd0a823d5d7b325
2023-12-11 08:24:56 +00:00
Jooyung Han
621461b26e Clean up sensors hal apex
- move apex definition near to the binary
- make the binary use static linking (for smaller size of apex)
- remove unused keys

Bug: n/a
Test: cvd start
Test: dumpsys sensorservice # available sensors
Change-Id: I07734c5a5b1ade542c669155dd96176f912629ac
2023-12-11 14:07:14 +09:00
Chienyuan Huang
64930a6379 Merge changes from topic "Bluetooth_Ranging" into main
* changes:
  Add default implementation for Channel Sounding
  Add HAL interface for Channel Sounding
2023-12-11 03:43:57 +00:00
Xin Li
3a00bdb92e Merge Android 14 QPR1
Merged-In: Id9f746bc66671d274afaedb10854d88123a04af0
Bug: 315507370
Change-Id: If5b27e2d03b1d0fca02a7f67091692e986097e29
2023-12-08 13:14:16 -08:00
Matthew Maurer
b1e0c41c06 Merge "Fix for nix 0.27.1." into main am: be8bf80c56
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2859925

Change-Id: Id9f746bc66671d274afaedb10854d88123a04af0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 18:40:03 +00:00
Matthew Maurer
be8bf80c56 Merge "Fix for nix 0.27.1." into main 2023-12-08 18:25:10 +00:00
Mikhail Naganov
a83c8a5518 audio: Fix remote submix behavior with multiple inputs
Align the behavior of the new implementation with the legacy
implementation in the case when the client opens multiple
input streams on the same remote submix device.

Reduce the HAL buffer size to match legacy behavior.

Bug: 264712385
Test: atest CtsVirtualDevicesTestCases --test-filter=".*VirtualAudioTest.*"
Change-Id: Ia86a8480495693595dbb501ec58e5d1d238abab2
2023-12-08 09:37:41 -08:00
Treehugger Robot
98c6489cb6 Merge "Replace secretkeeper_comm_nostd->secretkeeper_core_nostd" into main am: 05585eb79a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2863040

Change-Id: I89a7a134c876770bcf3488e722deda27b6d12e9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 17:35:42 +00:00
Treehugger Robot
05585eb79a Merge "Replace secretkeeper_comm_nostd->secretkeeper_core_nostd" into main 2023-12-08 17:17:43 +00:00
Treehugger Robot
f03e555146 Merge "Vendor api level cannot use sdk api level" into main am: 4de610c690
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2865434

Change-Id: I2ecb670320a44594300b002638fb230910d25a93
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 17:03:32 +00:00
Treehugger Robot
4de610c690 Merge "Vendor api level cannot use sdk api level" into main 2023-12-08 16:24:15 +00:00
Shikha Panwar
c8a37376cc Create OWNERS file for secretkeeper interface am: 5afbeec13d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2864267

Change-Id: I152ab38acdb953a4976141895fc46c91836db04c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 15:24:19 +00:00
Shikha Panwar
3b396ae001 Merge "Secretkeeper VTS: Use trait CborSerializable" into main am: 0b0895a49b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2864533

Change-Id: I613ed270bc2b1dd35ae5b81933b10a367bbe584b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 15:23:38 +00:00
Shikha Panwar
5afbeec13d Create OWNERS file for secretkeeper interface
Bug: 291224769
Test: N/A
Change-Id: I650d4e640522876f79ea583cbbddd159776c8955
2023-12-08 15:16:41 +00:00
Shikha Panwar
0b0895a49b Merge "Secretkeeper VTS: Use trait CborSerializable" into main 2023-12-08 14:56:47 +00:00
Shikha Panwar
3f136b2914 Replace secretkeeper_comm_nostd->secretkeeper_core_nostd
Moving SecretkeeperTa struct to secretkeeper_core

Bug: 291224769
Test: Builds
Change-Id: I6f1a7ef08580e2c9383abcb88997a8eb11c6b14a
2023-12-08 13:51:51 +00:00
Justin Yun
31002f5d2e Vendor api level cannot use sdk api level
Update __ANDROID_API_V__ with 202404 for the vendor api level.

Bug: 312798205
Bug: 315246126
Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I0e6ff71e57137e3f6d7e5e5bf082d10026cec2e0
2023-12-08 21:10:37 +09:00