Commit Graph

393 Commits

Author SHA1 Message Date
Josh Wu
c14a0f2f49 BT: Support LC3 over A2DP am: 1bc606fafe am: 68a0fff7a2 am: d7aa1428a5 am: 2f27e9dbb5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1944805

Change-Id: Ie665642084b8c61e8a221c709be476cff200c594
2022-01-12 01:05:49 +00:00
Alice Kuo
1d002dffda Add le audio capabilities and audio config update supported in aidl am: 60b00151bd am: 914dc1db66 am: 91ea7b97d6 am: 03f9bc5d04
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1942861

Change-Id: Ibc43f3e05897fc0dd73023e3ae6bf6435dd7f8a2
2022-01-12 00:25:45 +00:00
Josh Wu
1bc606fafe BT: Support LC3 over A2DP
Test: m android.hardware.bluetooth.audio-update-api
Bug: 211589164
Change-Id: Ib2efd9b5af71fa0188edb85b13cf031710b6fe21
2022-01-11 03:28:18 -08:00
Alice Kuo
60b00151bd Add le audio capabilities and audio config update supported in aidl
Bug: 203490261
Bug: 150670922
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I035aad6ee6f6ac0833d9716b50323620ce6df34b
2022-01-11 03:28:16 -08:00
Treehugger Robot
e0a7d60db0 Merge "Add new aidl interface for android.hardware.bluetooth.audio" 2022-01-07 13:07:25 +00:00
Treehugger Robot
e515f63f5f Merge "Update HAL structure to include offload capability for broadcast" am: f1605faea0 am: cd60444394 am: 293d0429b7 am: 897756dab1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1936050

Change-Id: I461d6801828864a433d8ed40312dd705a10645d7
2022-01-07 10:07:59 +00:00
Treehugger Robot
f1605faea0 Merge "Update HAL structure to include offload capability for broadcast" 2022-01-07 09:05:45 +00:00
Patty
2e64b4d9f6 Update HAL structure to include offload capability for broadcast
Bug: 205806028
Bug: 150670922
Test: make build
Change-Id: Ife4a3585474999855ffb04f3946462a137fdc181
2022-01-07 00:19:53 +08:00
Alice Kuo
a4dbaffaec Add new aidl interface for android.hardware.bluetooth.audio
Bug: 203490261
Test: m android.hardware.bluetooth.audio-update-api

Change-Id: Ida6d664b2c3eedfb4c3abaece7c3540623c72270
Merged-In: Ida6d664b2c3eedfb4c3abaece7c3540623c72270
2022-01-06 07:26:18 +00:00
Treehugger Robot
219d915b22 Merge "Add audio configuration API and the callback function for bluetooth.audo@2.2" am: e944c8538f am: 975116d14d am: 1ed3235845 am: 9e576a0a59
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1934259

Change-Id: I11341bd5fb698ae64618d4f9ed86a720bb30e650
2022-01-05 03:23:41 +00:00
Treehugger Robot
e944c8538f Merge "Add audio configuration API and the callback function for bluetooth.audo@2.2" 2022-01-05 02:27:59 +00:00
Treehugger Robot
4acb00651d Merge "Cleanup: remove LE audio hardware offload supported by openProvider_2_1" am: b095f01b1a am: 85d99bc8f6 am: ab4964d681 am: 468f6e9596
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1934260

Change-Id: I958cb7b479f9fbde084493ae1d891100ca1e42f6
2022-01-05 00:03:54 +00:00
Treehugger Robot
b095f01b1a Merge "Cleanup: remove LE audio hardware offload supported by openProvider_2_1" 2022-01-04 22:54:00 +00:00
Alice Kuo
4831b6ac72 Cleanup: remove LE audio hardware offload supported by openProvider_2_1
LE audio hardware offload would be supported after the temporal bluetooth.audio@2.2 or bluetooth.audio aidl version. The workable audio configuration and capabilities format do not exist in bluetooth.audio@2.1. Remove the support in the 2.1 HAL default implementation.

Bug: 197296692
Bug: 150670922
Test: make build
Change-Id: I6ff3f6ada43474cadb026bf8b58d64adaf5ea477
2022-01-04 05:21:20 +00:00
Alice Kuo
3f9f41f3c8 Add audio configuration API and the callback function for bluetooth.audo@2.2
For LE audio hardware offload
1. Add the function to update audio configuration without session
restart
2. Add a callback to notify the audio HAL the audio configuration
changed

Bug: 197296692
Bug: 150670922
Test: HAL 2.1/2.2 work for A2DP software/hardware media, and LE audio
software media/voip call

Change-Id: I8b01ec8dfc9d9cd552770c8c734319a685ee626b
2022-01-03 14:31:00 +00:00
Treehugger Robot
ee4d7008b7 Merge "Get default provider codec from HAL" am: d563e5bc9e am: e3a2c2c421 am: 7e9292b531 am: 7b6ea9fafe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1906371

Change-Id: I4da12c79a2f03afc02853c77d4dd72e8edaffecf
2021-12-28 06:41:51 +00:00
Patty
784e443350 Get default provider codec from HAL
1. Add function getProviderCapabilities_2_2
    to return audio capability
 2. Add function GetLeAudioOffloadCodecCapabilities
    to get le audio offload capability
 3. Add LeAudioCapability in HAL 2.2

Tag: #feature
Bug: 203535499
Bug: 150670922
Test: atest BluetoothInstrumentationTests

Change-Id: Ied2d0c8c0bdaa4b8d0c149b5164ba346e4df5ae1
2021-12-23 16:50:42 +08:00
TreeHugger Robot
c6100049bd Merge "BT: Fix typo and improper data type" 2021-12-22 20:21:44 +00:00
Alice Kuo
0986f7b4a8 Add onSessionEnded handle for HIDL 2.2 am: f33cea94ce am: 6fe717551f am: 99a712ab4d am: 1ce307ddbe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1928381

Change-Id: I884e65fc81b4d39a95903b533bc6c106e6d39c11
2021-12-21 19:25:47 +00:00
Josh Wu
74fc8e8198 BT: Fix typo and improper data type
Bug: 203490261
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I366140cdaff2c42b724444dc9855d993cd502dcd
2021-12-21 05:52:18 -08:00
Alice Kuo
f33cea94ce Add onSessionEnded handle for HIDL 2.2
1. The audio driver need to get the session status callback as the
sessionEnded
2. Update the invalid audio configuration based on the session type

Bug: 197296692
Bug: 150670922
Test: HAL 2.1/2.2 work for A2DP software/hardware media, and LE audio
software media/voip call
Test: Turn on/off bluetooth to make sure the onSessionEnded work well

Change-Id: Id758b556e8f5c9b63052a408154f02082515091c
2021-12-21 02:19:05 +00:00
Treehugger Robot
1d6b83f12e Merge "Add support LE audio offload for HIDL 2.2" am: d2645ae70c am: 5513c4351b am: e22eea81ce am: 5bd86bb75c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1927137

Change-Id: Ibf23c638c0b45956500af254e0328eecee942e66
2021-12-20 15:48:01 +00:00
Treehugger Robot
d2645ae70c Merge "Add support LE audio offload for HIDL 2.2" 2021-12-20 14:14:41 +00:00
Etienne Ruffieux
bdb7820a39 Merge "Renamed bluetooth apex name to com.android.bluetooth" am: c07fb30b8f am: 4f3ee26fcf am: 96e198affd am: 113278b32e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1924438

Change-Id: Ie3f952ca8acb850313a2ac6625bc5681f150407f
2021-12-16 23:31:19 +00:00
Alice Kuo
79c02160ef Add support LE audio offload for HIDL 2.2
1. Clean up the LE offlload path for HIDL 2.1
2. Add support offload path start/suspend/stop function with HIDL 2.2

Bug: 197296692
Bug: 150670922
Test: HAL 2.1/2.2 work for A2DP software/hardware media, and LE audio
software media/voip call

Change-Id: I2295b62fc2255d247f18f0852de2b40e6280d282
2021-12-16 15:00:23 +08:00
Etienne Ruffieux
f58147b712 Renamed bluetooth apex name to com.android.bluetooth
Tag: #feature
Bug: 206614050
Test: Compiles
Change-Id: I1118409952f16001b1144c91be1e9c81b0c489f0
2021-12-15 15:46:05 +00:00
Bob Badour
fdf44806f1 Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" 2021-12-10 17:24:35 +00:00
Jakub Pawłowski
faa07fef7b Merge "bluetooth.audio pass both source and sink metadata" 2021-12-10 08:39:52 +00:00
Treehugger Robot
f921f83e5c Merge "Clean up: remove LE audio hardware offload in Bluetooth audio HAL 2.1" am: 297d2f1c44 am: 756676341a am: 41c374b986 am: eba95b5d50
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1917160

Change-Id: I79923f45c17203164a270b61e98ca444e0451e41
2021-12-10 08:37:02 +00:00
Alice Kuo
6f765ce3e3 Clean up: remove LE audio hardware offload in Bluetooth audio HAL 2.1
LE audio offload plan to fully support on aidl or temporal HAL 2.2. Remove it in HAL 2.1 to make the compatible work easier

Bug: 197296692
Bug: 150670922
Test: HAL 2.1/2.2 work for A2DP software/hardware media, and LE audio
software media/voip call

Change-Id: Icc68bea357d2ee0427826e0c20888399662e9bcb
2021-12-10 05:35:52 +00:00
Bob Badour
dc205e077e [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  bluetooth/audio/aidl/Android.bp
  wifi/netlinkinterceptor/aidl/default/Android.bp
  wifi/netlinkinterceptor/libnlinterceptor/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I4c18be830a5c0928d1a58f1e8e52067a2d6db66d
2021-12-09 18:54:17 -08:00
Jakub Pawłowski
ffde16c5cb Merge "Pass sink metadata to Bluetooth" am: cd9bb98da1 am: 0b32a54b2a am: 4951286da9 am: ab9fa264c1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1907864

Change-Id: I55c57b8338ae301e072512b2c04b87497c0635ff
2021-12-09 22:04:44 +00:00
Jakub Pawlowski
37703ea263 bluetooth.audio pass both source and sink metadata
Currently just source metadata is passed through the new aidl.

Test: m android.hardware.bluetooth.audio-update-api
Bug: 203490261
Bug: 150670922
Change-Id: I76a44bb8c5cb0b6c16845aca36ba93517ecd07b4
2021-12-09 12:37:11 +01:00
Jakub Pawlowski
8d87eb7e53 Pass sink metadata to Bluetooth
When just microphone is enabled, i.e. for recording audio, we will
receive just sink metadata update.

Bug: 150670922
Change-Id: I795385d19e64ec5c6bc0a8549beda52da27d25a1
2021-12-06 22:07:06 +01:00
Alice Kuo
0fbd060e51 Add new aidl interface for android.hardware.bluetooth.audio
Bug: 203490261
Test: m android.hardware.bluetooth.audio-update-api

Change-Id: Ida6d664b2c3eedfb4c3abaece7c3540623c72270
2021-11-30 13:20:03 +08:00
Treehugger Robot
c4718b793c Merge "Fix the integration issue for HAL 2.2" 2021-11-12 12:53:17 +00:00
Alice Kuo
db52a7beac Link OWNERS to new location packages/modules/Bluetooth
Bug: 196026708
Change-Id: Ie437787cf6e6c24212bf1090f4eb8c3c377ed7bb
2021-11-10 09:43:30 +00:00
Alice Kuo
95ba6a2181 Fix the integration issue for HAL 2.2
Bug: 150670922
Bug: 197297498
Test: A2DP & LE aduio stream works well with HIDL 2.1/2.2
Change-Id: I64113dd4a229874b2d17ae71d088abafd8197cfd
2021-11-09 22:56:30 +08:00
Treehugger Robot
e1dc0e5365 Merge changes from topic "bluetooth_audio_hidl2.2"
* changes:
  Add bluetooth.audio@2.2 implementation
  Add hidl 2.2 for LE audio support
2021-10-29 21:00:22 +00:00
Alice Kuo
84e8767649 Add bluetooth.audio@2.2 implementation
Bug: 201292721
Bug: 150670922
Bug: 197297498
Test: m android.hardware.bluetooth.audio@2.2-impl
Change-Id: I224b1e001337165e5191060f0ae532933a419b68
2021-10-29 03:37:36 +08:00
Sukesh Srikakula
1e2b234392 Bluetooth HAL: Add missing retry logic to the H4Protocol::Send()
As part of an optimization, H4Protocol::Send() is modified to
use writev() instead of WriteSafely(), which has a retry logic
to send remaining bytes if the underlying write() call couldn't
transfer all the bytes in a single system call. This cl is now
adding this missing retry logic to this function.

Bug: 198992020
Test: H4 UTTest, Bluetooth functional test.

Change-Id: I78fad886d52f0910c83b000d5768128f00d3ddbc
2021-10-27 11:21:38 -07:00
Alice Kuo
965138aac1 Add hidl 2.2 for LE audio support
1. Add mode and difference config type for the unicast/broadcast
2. Support multiple audio configuration with broadcast
3. Add the streamMap for unicast/broadcast

Bug: 201292721
Bug: 150670922
Bug: 197297498
Test: m android.hardware.bluetooth.audio@2.2
Change-Id: Ib95850a7e56e9a03c5b400acdaf0625f0aa8726f
2021-10-27 22:09:01 +08:00
Xin Li
59772dd098 Merge "Merge Android 12" 2021-10-07 23:49:53 +00:00
Yiming Pan
4ce06fcaf6 Update owner information for VTS module VtsHalBluetoothA2dpV1_0TargetTest.
Test: Tree Hugger
Bug: 143903671
Change-Id: I85d027e8622f70bc9261a36d81ed564d51323cd8
2021-09-29 11:39:30 -07:00
Bob Badour
e180b3db5c [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces am: b8995451aa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1826012

Change-Id: I010e5711d6ab29aadb262799de8f04df08145453
2021-09-14 19:28:50 +00:00
Bob Badour
b8995451aa [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  bluetooth/1.0/default/test/fuzzer/Android.bp
  keymaster/4.0/support/fuzzer/Android.bp
  radio/aidl/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Id9c8b253a2402a07637f96281bcdaffbf3afc3c3
2021-09-13 17:50:14 -07:00
Treehugger Robot
f92be0673d Merge changes If73b3e9f,If67bf4ff am: b87fef9c32
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1723072

Change-Id: I63bc66c647f5de63e2fc9087f7c48d826982f155
2021-09-09 22:39:04 +00:00
Ayushi Khopkar
7c0bcf3814 Added bluetoothV1.0_fuzzer
Test: ./bluetoothV1.0_fuzzer
Bug: 187131546

Change-Id: If73b3e9fa799057ae9ca8a1eba0e6a02c66498c0
2021-09-09 13:03:32 +05:30
Ayushi Khopkar
a37d3df9f8 Added cc_defaults for android.hardware.bluetooth@1.0-impl
Created a new library - android.hardware.bluetooth@1.0-impl-test,
that shall be used for testing by bluetoothV1.0_fuzzer

Test: Build android.hardware.bluetooth@1.0-impl
Test: Build android.hardware.bluetooth@1.0-impl-test
Bug: 187131546

Change-Id: If67bf4ff59fc446dfa0548ecb8f67359717f6cc9
2021-09-09 12:53:12 +05:30
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