summaryrefslogtreecommitdiff
path: root/system/include
AgeCommit message (Collapse)Author
2022-09-02Bluetooth: Fix build with Clang 14HEADtachibanaalk3pInjection
Output: In file included from vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/jni/com_android_bluetooth_a2dp_sink.cpp:22: packages/modules/Bluetooth/system/include/hardware/bt_av.h:132:15: error: anonymous non-C-compatible type given name for linkage purposes by typedef declaration after its linkage was computed; add a tag name here to establish linkage prior to definition typedef struct { ^ btav_a2dp_codec_config_t packages/modules/Bluetooth/system/include/hardware/bt_av.h:147:3: note: type is not C-compatible due to this member declaration std::string ToString() const { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packages/modules/Bluetooth/system/include/hardware/bt_av.h:261:3: note: type is given name 'btav_a2dp_codec_config_t' for linkage purposes by this typedef declaration } btav_a2dp_codec_config_t; ^ 1 error generated. Change-Id: I6a1ae5cbcaea50312091f3f42bc9d8184206fab4
2022-06-29Merge TP1A.220624.003Deyao Ren
Change-Id: I64d825a1bb7108a126ae036a1018bf740d724750
2022-06-24Move user file along to the new package nameWilliam Escande
Repro step: * Flash old build * Pair device * Change it's metadata: * Change connection_policy * Change Volume * Change phone_access * build and flash without wipe * observe device metadata Test: Repro step above Bug: 234063703 Ignore-AOSP-First: will be picked later Change-Id: I51f54f2fe8a91ee4ee28e1e58494e596510ebb55 (cherry picked from commit b94e4d791f474ec464ebd09f47468e9f89b645e9) Merged-In: I51f54f2fe8a91ee4ee28e1e58494e596510ebb55
2022-05-31Changes for Periodic sync/PAST APIsSubramanian Srinivasan
Changes for Periodic sync/PAST APIs CRs-Fixed: 3209589 Change-Id: I16be21f406efb7d712155ddc5bd408098abc2c2e
2022-05-25Merge TP1A.220523.001Deyao Ren
Change-Id: Ie190b4ee2d03718cb436efad23cc102e376ce2c5
2022-05-20LeAudioService: Provide Ccid to the native codeŁukasz Rymanowski
This patch extends ContentControlIdKeeper with more information about the user of the ccid e.g. Context type and userUuid. The userUuid should be a GATT service uuid which used Ccid or any other uuid. Note that LeAudioService filters ccid with GTBS and GMCS uuid. This patch also introduce onInitialized() callback from native to java. This is needed for LeAudioService to find a good moment to feed native with known Ccids Bug: 230551601 Test: atest BluetoothInstrumentationTests Test: connect audio and verify logs in ASE Enable command Change-Id: I55d8674c86575ba8a91d9c2a1885d02e1009b919 (cherry picked from commit bcd9ce70e5de8e18fff8f428bfad3ccc0673da6e)
2022-05-20leaudio: Add a way to pass CCID from Java to Native codeŁukasz Rymanowski
CCID is used as a metadata in the Enable command. It is going to be provided by LeAudioService Bug: 230551601 Test: atest --host bluetooth_le_audio_client_test bluetooth_le_audio_test Change-Id: I22d19a1af758631435266b91ea455f171ab9335c (cherry picked from commit 0862897ce423cae8c64ce285d68bc78c853ea0ea)
2022-05-20Merge TP1A.220520.001Daniel Norman
Change-Id: I69faab277dab1517370f96ceefd715ab663c559b
2022-05-18Merge changes I64de4bb5,I765f4a82,I2f2054c6,I5fdc54d0,I5dc62758, ... into tm-devJack He
* changes: Csip: Add method for checking group lock status Csip: Add more means to get grouped devices BassClient: Allow only one pending source operation BassClient: Reconnect devices in the background BassClient: Fix using Metadata cache BassClient: Fix not sending connection change intent
2022-05-17Csip: Add more means to get grouped devicesJakub Tyszkowski
This change adds more convenient ways to get group members by group identifier to ease the CSIP integration in HAP and possibly other services, eg. BASS Client. It also makes the grouped device list sorted from the lowest to the highest rank, which is the order of CSIP Ordered Access procedure. Bug: 150670922 Bug: 230559809 Tag: #feature Sponsor: jpawlowski@ Test: atest BluetoothInstrumentationTests Change-Id: I765f4a82b5f3ff8d7644a86030846d79af8b6397 (cherry picked from commit d79e82df3128aa3d07403532919e4bb16553de88)
2022-05-17Merge TP1A.220513.001Daniel Norman
Change-Id: I6280bfda87c89063d9730385e3efdaa99cea33a0
2022-05-13PAST: Unify callback format to match GDJack He
* So that all periodic sync callbacks are in the same base class Bug: 229965085 Tag: #gd-refactor Test: gd/cet/run --sl4a_sl4a Change-Id: I0e4f1ae81211a48905baf3d3647e9bc4d71b7732 Merged-In: I0e4f1ae81211a48905baf3d3647e9bc4d71b7732 (cherry picked from commit 8ecc90254058c5e24d184650884cb2ad0782e4a1)
2022-05-10leaudio: Add support for Mute/UnmuteŁukasz Rymanowski
Bug: 231580214 Test: atest --host bluetooth_vc_test Sponsor: @jpawlowski Change-Id: Ib894ab01916d7eb989db6a0c28b79b321dd82ad6 (cherry picked from commit 636dc13c93a5d18589b010afe7e105c550eab17e)
2022-05-03Merge TP1A.220422.001Deyao Ren
Change-Id: I413ca31daa6902265a5a4fd83b646b3f049e5fd5
2022-04-22Merge TP1A.220414.003Scott Lobdell
Change-Id: I7225f3a31204834ab12679885cd136bdff31f554
2022-04-22Add Lc3 codec over A2DP.Satheesh Kumar Pallemoni
- Added LC3 codec over A2dp. CRs-Fixed: 3178605 Change-Id: I94bbe7426b197bdb3dd76525904e26ce34c4fa6c
2022-04-20Merge "floss: Fix build breakages" am: 76e556325a am: 0d3ceb4bd3 am: b78abe2094Abhishek Pandit-Subedi
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2065734 Change-Id: Ic3e4c6370b01895ed77073801e975cfb402deb6a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-17floss: Fix build breakagesAbhishek Pandit-Subedi
Add missing headers to source files and missing files to BUILD.gn. Bug: 229531513 Tag: #floss Test: On ChromeOS, emerge-zork floss Change-Id: I8a66261732b32f97ebda8e6c09cb86c7c7d5652b
2022-04-14Add Enhanced connection update SDK APIsSubramanian Srinivasan
Add support for following ECU support. 1. Enhanced connection update SDK APIs support. 2. Enhanced connection update support in Bluetooth apk and stack. CRs-Fixed: 3127801 Change-Id: I29a8d10aad4c797f7b082297dabaa3049bad5462
2022-04-13Merge changes If47a6350,Ib795d8d8 am: 2d58918e0a am: eb38a57122 am: ada957e41dJack He
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2058230 Change-Id: Idb2b411d66f8f50f907f156e61a11619969c7d97 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12broadcaster: Add passing broadcast metadata from nativeJakub Tyszkowski
This change exposes the local broadcast metadata to the application. It is needed to use our local broadcast information in the Broadcast Scan Assistant service and possibly present more information on the ongoing broadcast itself. Bug: 150670922 Tag: #feature Test: atest BluetoothInstrumentationTests bluetooth_test_broadcaster_sm bluetooth_test_broadcaster Sponsor: jpawlowski@ Change-Id: If47a63501dfa11ebca2e9b3937d7a1a1a4e7036c
2022-04-08Merge TP1A.220404.001Scott Lobdell
Change-Id: Ie978b3464b876dfaba2bf22ab195875f4fb4856a
2022-04-02Merge TP1A.220328.001Rob Seymour
Change-Id: I5f07094ba2fb3991da03673f97d2957b1f68018b
2022-03-29Merge "Floss: Fix Floss doc" am: 353b4a8e76 am: dda1b44c8e am: 0c9daa23b5Sonny Sasaka
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2043510 Change-Id: I48e78cab753f6b9c716395a89aa7572b6c31c1f8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-29Merge changes Ibe771914,I5778d588 am: b2f3d4ba72 am: 0ef8896e02 am: bac4a7539eJakub Pawłowski
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2038688 Change-Id: Ib5650cc39cb6556f2c49e90c3dd139642db12aeb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-29Merge "Floss: Fix Floss doc"Sonny Sasaka
2022-03-28leaudio: Improve configuration and reconfigurationŁukasz Rymanowski
With this patch after reconfiguration(e.g. when metadata changed), group stays in the CONFIGURED state and does not go to STREAMING as before. Instread Audio Hal gets suspended. Group will go to streaming when Audio Hal tries to resume stream. Also, with this patch, if ASEs are alread configured, state machine will do QoS Config right away without trying to do Codec Config. Bug: 222674521 Bug: 150670922 Test: atest --bluetooth_le_audio_test bluetoot_le_audio_client_test Change-Id: Ibe771914f57732015d8dd57688cac84fee0cd296
2022-03-28Floss: Fix Floss docSonny Sasaka
* Fix broken links for packages/modules/bluetooth * Use backticks to format code * When generated in to Rust code, square brackets are put inside #doc[] attribute which becomes a link. Use parentheses in C docs that will be generated into Rust code. Bug: 67853426 Tag: #floss Test: Build Floss doc with `build.py --target doc` Change-Id: Icd2d02cf714a1e5b6e0616648586049a59090092
2022-03-25Merge TP1A.220321.002Scott Lobdell
Change-Id: Ie8206e8b9c11c3fd55b7adddac5c782ad92c9da4
2022-03-25Merge changes Ie524da6f,I37609e05,Ib1715e1f,I11dae3ed,Iacc680ce, ... am: ↵Jakub Pawłowski
4a34219369 am: 6e68ab380c am: e2a39c3494 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2041823 Change-Id: I2c9933e0352c363a55a810303697501b025e7a36 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25broadcaster: Refactor handling broadcast IDJakub Tyszkowski
This patch is another step to properly align the Java API with the native layer implementation. This change makes use of the broadcast ID in the native layer API in place of the vague instance ID, to seamlesly match the Java API and simplify the native layer API and avoid any translations between the two. Previously used instance ID (after the advertising instance identifier) is now only used when talking to the advertiser module but is no longer exposed to the upper layers, where only broadcast ID exists. This also fixes the following error that was caused by the broadcast ID being not yet known to the Java layer at the time broadcast is created: LeAudioService D Broadcast Instance id: 15740086 paused. LeAudioService E Unknown Broadcast ID for broadcast instance: 15740086 Bug: 150670922 Tag: #feature Test: atest BluetoothInstrumentationTests bluetooth_test_broadcaster_sm bluetooth_test_broadcaster Sponsor: jpawlowski@ Change-Id: Ie524da6fd560bc20ed1eab4fea5035cedbe18f5c
2022-03-19leaudio: Add callbacks with codec informations am: 6277b61208 am: d7262a1f68 ↵Łukasz Rymanowski
am: 12ec58c280 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2032070 Change-Id: I55c12fd3a26ee64b8485e4c8f2fab37b7720e7a1
2022-03-18Merge "leaudio: Initial implementation of set codec preference" am: ↵Treehugger Robot
66c7d5b776 am: f850977062 am: daa02be571 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2020097 Change-Id: Ie18e993cf9995b519cdaf9aed5a7ed35847d8d4b
2022-03-18leaudio: Add callbacks with codec informationsŁukasz Rymanowski
Bug: 219875113 Test: atest LeAudioServiceTest Change-Id: I107a563caf4f612be6730f9affc8b7695941478c
2022-03-17Merge TP1A.220310.002Daniel Norman
Change-Id: If2f3a2a6833c45ec4c0cba7c7e668a487938cb92
2022-03-17leaudio: Initial implementation of set codec preferenceŁukasz Rymanowski
Bug: 219875113 Test: atest --host bluetooth_le_audio_test Change-Id: I603bcb6f734a5e38637767c62ffcbb8ca8de5aa4
2022-03-14Merge "Add getAudioLocation implementation" am: 15cecddc4b am: 5b990c6dd6 ↵Treehugger Robot
am: 2320d07c08 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2022097 Change-Id: If28e0f9bf6287ffe6b8042a630c59529b2d2e5b0
2022-03-12Revert^2 "check check, is anyone there? *static*"William Escande
check check, is anyone there? *static* * statically link libbluetooth into libbluetooth_jni * clean up some build rule defaults * statically link libchrome * stop using whole static libs, to increase ability to prune unused code * remove required libbluetooth * statically link libstatlog_bt in a few location :party: :party: Still some issue on local test. I suppose they should only be run in the test suite. Test are: * bluetooth-test-audio-hal-interface * bluetooth_flatbuffer_bundler_test * net_test_rfcomm_suite * net_test_stack_rfcomm Bug: 220805766 Test: compile, verify BT boots & basic use cases work Testeted with all cc_test in packages/modules/Bluetooth: `atest $(grep -w cc_test -A 1 $(find packages/modules/Bluetooth -name Android.bp) | grep name | cut -d '"' -f 2)` Test: m bluetoothtbd Test: atest bluetoothtbd_test Test: m libstatslog_bt bt_headless libbluetooth_gd libbtif libbt-common bluetooth_stack_with_facade bluetooth_test_gd_unit bluetooth_gd_fuzz_test libbt_audio_hal_a2dp_encoding_fuzzer Ignore-AOSP-First: apex changes not in AOSP yet e634b3db677ea457101ede133d7fc8a31450a900 Change-Id: I99ea709fe591ca362208547051d7fd5810ed42ed
2022-03-11Merge TP1A.220225.003Scott Lobdell
Change-Id: Id71ac466dbfe3707fe2e544ce22b1da8f474ec2b
2022-03-11Add getAudioLocation implementationAlice Kuo
The change contains 1. Update the sink audio location as it is obtained from the remote device's PACS record 2. Store the audio location in the deviceAudioLocationMap 3. Clear the audio location as device unbonded 4. Support getAudioLocation function to return the sink audio location Bug: 197199736 Test: build pass Change-Id: I565f52b3b26afcc4990b5bb89ccc550e7db3607a
2022-03-10Revert "check check, is anyone there? *static*"Richard Gaywood
Revert submission 17016040-change-17016040 Reason for revert: DroidMonitor-triggered revert due to breakage , bug b/223737148 BUG: 223737148 Reverted Changes: I6cdcee15a:Fix bluetooth and aac dependency I0d232c8bc:check check, is anyone there? *static* Change-Id: I76a03e2b2d54e27e590a97001e9ef0ef6c98a374 Test: N/A, this is a rollback
2022-03-09check check, is anyone there? *static*Zach Johnson
* statically link libbluetooth into libbluetooth_jni * clean up some build rule defaults * statically link libchrome * stop using whole static libs, to increase ability to prune unused code :party: :party: Still some issue on local test. I suppose they should only be run in the test suite. Test are: * bluetooth-test-audio-hal-interface * bluetooth_flatbuffer_bundler_test * net_test_rfcomm_suite * net_test_stack_rfcomm Bug: 220805766 Test: compile, verify BT boots & basic use cases work Testeted with all cc_test in packages/modules/Bluetooth: atest $(grep -w cc_test -A 1 $(find packages/modules/Bluetooth -name Android.bp) | grep name | cut -d '"' -f 2) Test: m bluetoothtbd Test: atest bluetoothtbd_test Ignore-AOSP-First: apex changes not in AOSP yet Change-Id: I0d232c8bcbe1f9065c6e6caa75021a6cd627c78f
2022-03-08Merge "Add top-level default visibility for Bluetooth module" into tm-devEtienne Ruffieux
2022-03-07Merge TP1A.220209.001Deyao Ren
Change-Id: Id0e2895d3220831d2c617a243047e8229af8acc9
2022-03-07vc: Extend VCP with support for volume control offset serviceŁukasz Rymanowski
This patch adds support to handle volume control offset service. This can be use by peer device to 1) use it to control balance in case of coordinated audio sets (e.g. earbuds): This feature is exposed in the API 2) expose multiple output speakers and add a way to control the audio offset compared to global volume: This feature is not exposed in the API yet Bug: 150670922 Sponsor: @jpawlowski Test: atest --host bluetooth_vc_test Change-Id: I7c722048a27ff6c1c55395d05e8c3b6e7a68f3e9
2022-03-06Add top-level default visibility for Bluetooth moduleEtienne Ruffieux
Bug: 215008564 Test: manual Tag: #feature Ignore-AOSP-First: Some changes only present in internal Change-Id: I0c12526bdf833b41e8d1282b29640fa9481b6a04
2022-03-03le_broadcast: Initial alignment of service with the APIJakub Tyszkowski
This aligns the .aidl interfaces, adds the callback registration mechanism, exposes profile in the Bluetooth Adapter and stitches together basic API calls with the service implementation. It does not bring the BluetoothLeBroadcastMetadata support yet. Bug: 150670922 Bug: 210985995 Tag: #feature Test: atest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: Ia454badc4f95a4b9953e57709a680f178ebfea45
2022-02-23SpatialAudio: Init codec and buffer size from startStream()Chen Chen
startStream(false): 1) change buffer size 2) do nothing if codec isn't LC3; change codec if codec is LC3 startStream(true): 1) change buffer size 2) do nothing if codec is LC3; change codec if codec isn't LC3 setLatencyMode(true/false): only change buffer size. Bug: 214615268 Test: build Tag: #feature Change-Id: Ia9e6cf10052d78200cea5da468d6880bc676e8fa
2022-02-18hap: Refactor service to match the new APIJakub Tyszkowski
Bug: 150670922 Bug: 216639668 Fixes: 216639668 Tag: #feature Test: atest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: I4b1ecf818a9b9bd75b1d17abeadfcea7c3c2548b
2022-02-17Merge changes from topic "floss_suspend_resume_api"Treehugger Robot
* changes: Floss: Add new Suspend Topshim test Floss: BTIF API: ClearEventFilter Floss: BTA API: BTA_DmClearEventFilter Floss: BTM API: ClearEventFilter Floss: ClearEventFilter controller plumbing floss: Add missing headers and define floss: Linux build fixes