Commit graph

66327 commits

Author SHA1 Message Date
Yu Shan
7502bc52b8 Merge changes I35f4860e,I4f02885b into main am: e2e4e54a0a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3096235

Change-Id: Ie659c0ee8001e931e45744b5edbd6cf9a647a526
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 23:18:52 +00:00
Yu Shan
89ab8c7623 Add subscribe to VHAL proto. am: 5c846f7cc9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3096234

Change-Id: I69fa802d59a0b5ac45bb8a5e541a9ef7a8d43fc2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 23:18:45 +00:00
Yu Shan
e2e4e54a0a Merge changes I35f4860e,I4f02885b into main
* changes:
  Implement Unsubscribe in vhal proxy.
  Add subscribe to VHAL proto.
2024-05-24 22:59:25 +00:00
Yu Shan
8c1e63c8c9 Merge "Lazy init property configs." into main 2024-05-24 21:04:56 +00:00
Xin Li
64e598ce2b Merge Android 24Q2 Release (ab/11526283) to aosp-main-future
Bug: 337098550
Merged-In: I53a278f1317f5307441103dc42dc5be6f20d7075
Change-Id: I3a53ebf7339cdb886d3c1b733b8eee1847f8832a
2024-05-24 08:28:04 -07:00
sandeepjs
bb729471a9 update vts set sim slot mapping test cases to handle different MEP
types

Bug: 342543877
Test: atest
PerInstance/RadioConfigTest#setSimSlotsMapping/0_android_hardware_radio_config_IRadioConfig_default

Change-Id: I34229669713afabbb7802dfa7c79ff9689a7bdf5
2024-05-24 09:35:37 +00:00
Silen Sun
365648102a Merge "flag: add leaudio_report_broadcast_ac_to_hal" into main am: 92b27fb6a3 am: f257c046cd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3075605

Change-Id: I7b0c46a215502a46429ff9cbbbcc3e5ce76af42d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 01:51:31 +00:00
Silen Sun
0cd67924b5 Merge "Report broacast audio config to HAL" into main am: 9534a2dc4c am: a2dbddc48b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3073926

Change-Id: Ieae124a10eaa30613f07ae0b7b0b9c005601c5cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 01:51:27 +00:00
Silen Sun
f257c046cd Merge "flag: add leaudio_report_broadcast_ac_to_hal" into main am: 92b27fb6a3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3075605

Change-Id: Ia5d7d18516b957be060eaa327b2ffbe49dd0f348
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 01:26:42 +00:00
Silen Sun
a2dbddc48b Merge "Report broacast audio config to HAL" into main am: 9534a2dc4c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3073926

Change-Id: Ibb0fb44518eb15a6711a41302fc7a72a6a17e64d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 01:26:39 +00:00
Silen Sun
92b27fb6a3 Merge "flag: add leaudio_report_broadcast_ac_to_hal" into main 2024-05-24 01:04:40 +00:00
Silen Sun
9534a2dc4c Merge "Report broacast audio config to HAL" into main 2024-05-24 01:04:40 +00:00
Yu Shan
5c846f7cc9 Add subscribe to VHAL proto.
The latest IVehicleHardware adds Subscribe/Unsubscribe function
to replace the existing updateSampleRate. This CL adds the
Subscribe function to protobuf definition and implements it.

Test: atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest
Flag: EXEMPT hal change
Bug: 328316981
Merged-In: I4f02885b77f21a215a8b282be583f76118e400ba
(cherry-picked from commit: f1a869055f)

Change-Id: I4f02885b77f21a215a8b282be583f76118e400ba
2024-05-23 15:51:25 -07:00
Yu Shan
2c37c11a82 Implement Unsubscribe in vhal proxy.
Implement the unsubscribe function in IVehicleHardware. This will
stop the server from generating property update events for the
specified [propId, areaId].

Test: atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest
Flag: EXEMPT hal change
Bug: 328316981
Merged-In: I35f4860eead0c8ec9b192657fe51cc0ff4319383
(cherry-picked from commit: cb00b1f816)

Change-Id: I35f4860eead0c8ec9b192657fe51cc0ff4319383
2024-05-23 15:51:25 -07:00
James Eidson
7947eaa266 [uwb-hal] add antenna mode app config param
Bug: 341159131
Test: n/a
Change-Id: I37c8f502f6148f3fd70a2f0da69da4701c0dda98
2024-05-23 22:49:28 +00:00
Yu Shan
b0a66d9747 Lazy init property configs.
This is the first step towards supporting delayed property config
discovery. Right now this does not bring too much benefit since
essential system service such as carwatchdog is still querying
property conifg early in the boot process. In the future once
we separate essential properties with non-essential properties,
we can improve more.

Test: atest DefaultVehicleHalTest
Bug: 342470570
Change-Id: Ie85aa163fa9128aa061dd5b3221954c7acac050c
2024-05-23 15:44:22 -07:00
Treehugger Robot
2568549663 [automerger skipped] Merge "Add host prebuilt for fake VHAL config." into main am: 3b7a71588c am: 151596de85 -s ours
am skip reason: Merged-In I965e704e29e62cd05540f46ef37d0bfa2a5568db with SHA-1 1c670114fd is already in history

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

Change-Id: I657b0f28fd3a9ed6e46612571d0ada651281ec76
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-23 21:46:36 +00:00
Treehugger Robot
3b71421bd2 [automerger skipped] Merge "Add require_root to FakeVehicleHardwareTest." into main am: 26bd085f1c am: 1f0e9ee76c -s ours
am skip reason: Merged-In I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5 with SHA-1 f01c7aec0d is already in history

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

Change-Id: I4bb0fb59a76dce0464356caf95513758870a63dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-23 21:46:14 +00:00
Treehugger Robot
151596de85 Merge "Add host prebuilt for fake VHAL config." into main am: 3b7a71588c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3095336

Change-Id: Idc197dd33892849d6612b269928cba5fe8cca65e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-23 21:22:01 +00:00
Treehugger Robot
1f0e9ee76c Merge "Add require_root to FakeVehicleHardwareTest." into main am: 26bd085f1c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3095335

Change-Id: Ib0f53ff6f5df812d29b00da06f859def040fffcd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-23 21:21:35 +00:00
Treehugger Robot
3b7a71588c Merge "Add host prebuilt for fake VHAL config." into main 2024-05-23 21:04:50 +00:00
Treehugger Robot
26bd085f1c Merge "Add require_root to FakeVehicleHardwareTest." into main 2024-05-23 21:04:20 +00:00
Treehugger Robot
0cc6001a8f [automerger skipped] Merge "Add host_supported to VHAL libs." into main am: b1fa86023c am: ad84446436 -s ours
am skip reason: Merged-In Ia21d26640c465846423cab1a0ff8a283c798b92a with SHA-1 9d3513882a is already in history

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

Change-Id: I8d27363e3fe5e5b02361510636ea3252dc522391
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-23 00:43:21 +00:00
Treehugger Robot
ad84446436 Merge "Add host_supported to VHAL libs." into main am: b1fa86023c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3093288

Change-Id: I4364de5ec7dba0f97c2453740c34b0419c581555
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-23 00:24:03 +00:00
Treehugger Robot
b1fa86023c Merge "Add host_supported to VHAL libs." into main 2024-05-23 00:09:08 +00:00
Max Bires
2caf529bdc Replacing manual CBOR description with CDDL.
Clarify the result documentation by using exact CDDL descriptions for
the formattedMessage CBOR object.

Test: N/A
Change-Id: I0077c7d53385470ef058b6ce965adb9f7b0bba55
2024-05-22 06:06:36 +00:00
Bao Do
d89968f7e0 Merge changes I478fc99b,I2150459b into main am: 740301ed52 am: 3109049d36
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3074307

Change-Id: Ic5e29f3452fdf084c04821b679998202aab25821
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 03:17:09 +00:00
Bao Do
3109049d36 Merge changes I478fc99b,I2150459b into main am: 740301ed52
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3074307

Change-Id: I1aee13a29b777c04a35ec93bc2fc8506f5b362a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 02:59:00 +00:00
Bao Do
740301ed52 Merge changes I478fc99b,I2150459b into main
* changes:
  Multi-directional support for matching ASE configuration
  Extend VtsHalBluetoothAudioTargetTest
2024-05-22 02:42:16 +00:00
Mikhail Naganov
84bef270dd audio: Allow onError callback in any state am: ab222c63bc am: 8f6258ca6a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3095975

Change-Id: I37ea081feaad93ca409bcf8f3c7dff3082efdf11
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 00:05:26 +00:00
Mikhail Naganov
8f6258ca6a audio: Allow onError callback in any state am: ab222c63bc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3095975

Change-Id: Ib8dc2c8a6fe6a120a2afa58a416d59d1580b479c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 23:52:49 +00:00
Treehugger Robot
f3ff4d70c6 Merge "ComposerCommandBuffer.h: fix compiler warning" into main 2024-05-21 21:59:41 +00:00
Mikhail Naganov
ab222c63bc audio: Allow onError callback in any state
In practice, the AoC can crash while the stream is in
any state, thus this should be allowed for correct
handling of error conditions in the framework.

The list of states when `IStreamCallback.onError` can
be received is not enforced in VTS tests, thus no
test regressions are expected.

Bug: 339400414
Test: repro steps for simulating AoC crash in b/339400414
Change-Id: I9a52779f773307882109e159d715072de5af2ece
2024-05-21 14:31:56 -07:00
Yu Shan
e56e2981cd Add host prebuilt for fake VHAL config.
Test: Local build
Bug: 328316981
Flag: EXEMPT build rule
Merged-In: I965e704e29e62cd05540f46ef37d0bfa2a5568db
(cherry-picked from commit: 1c670114fd)

Change-Id: I965e704e29e62cd05540f46ef37d0bfa2a5568db
2024-05-21 13:52:23 -07:00
Yu Shan
02e4d07563 Add require_root to FakeVehicleHardwareTest.
According to b/329690075, vendor tests need root to use vendor
lib, otherwise atest will cause link error.

Test: atest FakeVehicleHardwareTest on cf_auto
Flag: EXEMPT bug
Bug: 341762230
Merged-In: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5
(cherry-picked from commit: f01c7aec0d)

Change-Id: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5
2024-05-21 13:52:23 -07:00
Yu Shan
0c447863ef Add host_supported to VHAL libs.
We need to build a FakeVehicleHardware impl on host, thus we need
to add the host_supported option.

Test: Local build on host.
Bug: 328316981
Flag: EXEMPT hal change
Merged-In: Ia21d26640c465846423cab1a0ff8a283c798b92a
(cherry-picked from commit: 9d3513882a)

Change-Id: Ia21d26640c465846423cab1a0ff8a283c798b92a
2024-05-21 13:51:39 -07:00
Yu Shan
e2a11c5a80 Merge changes from topic "cf-host-vhal" into main
* changes:
  Implement Unsubscribe in vhal proxy.
  Add host prebuilt for fake VHAL config.
  Add require_root to FakeVehicleHardwareTest.
2024-05-21 20:24:53 +00:00
Mikhail Naganov
c4ebb1eaf5 Merge "bluetooth: Add 'defaults' for 'android_hardware_bluetooth_audio'" into main am: f12a076304 am: 8da928b401
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3091790

Change-Id: Id46a59158f797d5693204cce9d103e251fcf50ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 19:28:17 +00:00
Mikhail Naganov
8da928b401 Merge "bluetooth: Add 'defaults' for 'android_hardware_bluetooth_audio'" into main am: f12a076304
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3091790

Change-Id: I60df8ea2429bf0c216f43fa0da2e710e90444e3f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 19:09:52 +00:00
Mikhail Naganov
f12a076304 Merge "bluetooth: Add 'defaults' for 'android_hardware_bluetooth_audio'" into main 2024-05-21 19:02:46 +00:00
Alan Rosenthal
8e84edaa58 ComposerCommandBuffer.h: fix compiler warning
```
warning: format specifies type 'unsigned int' but the argument has type
'IComposerClient::Command' [-Wformat]
```

Change-Id: I9a585330ef1edd7675e6406318bd966b03c8a209
2024-05-21 17:24:22 +00:00
silens
1f19688ec0 Report broacast audio config to HAL
Bug: 321168976
Bug: 339121774
Test: atest --host bluetooth_test_broadcaster
Change-Id: I8eaeb72d027b9b01f83458f560d23770c8005b78
2024-05-21 17:37:41 +08:00
Yu Shan
cb00b1f816 Implement Unsubscribe in vhal proxy.
Implement the unsubscribe function in IVehicleHardware. This will
stop the server from generating property update events for the
specified [propId, areaId].

Test: atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest
Flag: EXEMPT hal change
Bug: 328316981
Change-Id: I35f4860eead0c8ec9b192657fe51cc0ff4319383
2024-05-20 17:28:54 -07:00
Yu Shan
1c670114fd Add host prebuilt for fake VHAL config.
Test: Local build
Bug: 328316981
Flag: EXEMPT build rule
Change-Id: I965e704e29e62cd05540f46ef37d0bfa2a5568db
2024-05-20 16:48:19 -07:00
Yu Shan
f01c7aec0d Add require_root to FakeVehicleHardwareTest.
According to b/329690075, vendor tests need root to use vendor
lib, otherwise atest will cause link error.

Test: atest FakeVehicleHardwareTest on cf_auto
Flag: EXEMPT bug
Bug: 341762230
Change-Id: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5
2024-05-20 16:48:19 -07:00
Yu Shan
5ddb4185f2 Merge "Add subscribe to VHAL proto." into main 2024-05-20 22:13:24 +00:00
Yu Shan
57e19cdcd8 Add PER_DISPLAY_MAX_BRIGHTNESS VHAL property.
Test: m -j android.hardware.automotive.vehicle.property-update-api
Bug: 336831738
Change-Id: I16b874a0bad9ab446c4e000b1c3680363548849a
2024-05-20 14:49:30 -07:00
Yu Shan
8a844ae840 Merge "Add host_supported to VHAL libs." into main 2024-05-20 20:33:29 +00:00
Treehugger Robot
8385c2a980 Merge "Update documentation for display brightness." into main 2024-05-20 19:28:29 +00:00
Yu Shan
f1a869055f Add subscribe to VHAL proto.
The latest IVehicleHardware adds Subscribe/Unsubscribe function
to replace the existing updateSampleRate. This CL adds the
Subscribe function to protobuf definition and implements it.

Test: atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest
Flag: EXEMPT hal change
Bug: 328316981
Change-Id: I4f02885b77f21a215a8b282be583f76118e400ba
2024-05-20 12:16:17 -07:00