Commit Graph

1993 Commits

Author SHA1 Message Date
Jakub Pawlowski
200a94b7f0 Merge "csip: Add Coordinated Set Identification Profile" into stage-aosp-master am: c258dbbb52 am: e5cd75cfd8 am: 9a685bbe1e am: 3ac3cc4da7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15795671

Change-Id: I2f0c7397a9d01525f5468e2846aaac6291c5844c
2021-09-13 18:43:24 +00:00
Jakub Pawlowski
3ac3cc4da7 Merge "csip: Add Coordinated Set Identification Profile" into stage-aosp-master am: c258dbbb52 am: e5cd75cfd8 am: 9a685bbe1e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15795671

Change-Id: I9d7525c26b7451242efc90f5d9d681499de9fc19
2021-09-13 18:30:25 +00:00
Jakub Pawlowski
e5cd75cfd8 Merge "csip: Add Coordinated Set Identification Profile" into stage-aosp-master am: c258dbbb52
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15795671

Change-Id: Ifd042637397e43e6969f7de67b8da84fc2230ccb
2021-09-13 18:01:06 +00:00
Roopa Sattiraju
2173726505 Merge "Changing BluetoothHeadset APIs from @hide to @SystemApi" into stage-aosp-master am: 913ea0a167 am: 41dc0fb942 am: 712c9b7c3a am: 3ced5cdbb8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15728282

Change-Id: I6b093d3123bc9cced4cb7cddea9f1d327e097b29
2021-09-13 18:00:34 +00:00
Roopa Sattiraju
3ced5cdbb8 Merge "Changing BluetoothHeadset APIs from @hide to @SystemApi" into stage-aosp-master am: 913ea0a167 am: 41dc0fb942 am: 712c9b7c3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15728282

Change-Id: I7c88dd1c79704c8f97f1112d313244da6d74ed20
2021-09-13 17:38:02 +00:00
Jakub Pawlowski
c258dbbb52 Merge "csip: Add Coordinated Set Identification Profile" into stage-aosp-master 2021-09-13 17:35:37 +00:00
Roopa Sattiraju
41dc0fb942 Merge "Changing BluetoothHeadset APIs from @hide to @SystemApi" into stage-aosp-master am: 913ea0a167
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15728282

Change-Id: Ie0c79a9d5ae7873f21676ce1c615ee41a22fa394
2021-09-13 17:04:00 +00:00
Roopa Sattiraju
913ea0a167 Merge "Changing BluetoothHeadset APIs from @hide to @SystemApi" into stage-aosp-master 2021-09-13 16:47:57 +00:00
Łukasz Rymanowski
d35f8bcddc csip: Add Coordinated Set Identification Profile
Tag: #feature
Test: atest CsipSetCoordinatorStateMachineTest CsipSetCoordinatorServiceTest
Bug: 150670922
Sponsor: jpawlowski@
Change-Id: I67536ddcc32ace82d63e19426dce19f2bc69cdea
2021-09-11 08:55:01 +02:00
Roopa Sattiraju
ce1d2e1fb4 Changing BluetoothHeadset APIs from @hide to @SystemApi
For isInbandringing API - it is used in the call journey and would
change the behavior(undeterministic) of the call if not used.

Stop/StartScoUsingVirtualVoiceCall is used in the BluetoothShim layer
specifically for testing and mocking in the Android Apps. Seems
reasonable to keep this as a SystemAPI given that it has no params and
unlikely to be changed.

Bug: 195160939
Tag: #feature
Test: Manual
Change-Id: I02b2e7e5e0be3b462f7c25b655e669e2c7fe47eb
2021-09-09 14:14:12 -07:00
Jakub Pawlowski
574a6bfeeb Merge "le_audio: Introduce connection state handling for LE Audio group" into stage-aosp-master am: 2f0430af32 am: 22c3b6feeb am: a87eaff74e am: 293bf0e143
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15736950

Change-Id: Id16149852bb828ac5e00f8a6a31b91bf503153de
2021-09-03 12:58:13 +00:00
Jakub Pawlowski
293bf0e143 Merge "le_audio: Introduce connection state handling for LE Audio group" into stage-aosp-master am: 2f0430af32 am: 22c3b6feeb am: a87eaff74e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15736950

Change-Id: Id33f5ada974be5c42715f58d12f3a674c6cef9b4
2021-09-03 12:42:53 +00:00
Jakub Pawlowski
22c3b6feeb Merge "le_audio: Introduce connection state handling for LE Audio group" into stage-aosp-master am: 2f0430af32
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15736950

Change-Id: Ia5cbf0034a06e9691cab5766d4283a92fe73f98c
2021-09-03 12:13:36 +00:00
Grzegorz Kołodziejczyk
59b2baa872 le_audio: Introduce connection state handling for LE Audio group
Patch implements connection state handling for LE Audio device group.

Tag: #feature
Test: Set LE audio device as active
Sponsor: jpawlowski@
Bug: 150670922
Change-Id: I11222ca07e265ac8b6dc3c21650874ebeffa473c
2021-09-02 18:12:10 +02:00
TreeHugger Robot
22ee13d231 Merge "Bluetooth: Fix formatting in getAlias()" into rvc-dev am: 16a307631e am: f6db6bcb3e am: a6e0765cab am: dce191bcf8 am: 1e123947e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15616111

Change-Id: Idbb329a407c222780c1349ffa1a862f82e3848aa
2021-08-31 23:55:05 +00:00
TreeHugger Robot
8335983480 Merge "Bluetooth: Fix formatting in getAlias()" into rvc-dev am: 16a307631e am: f6db6bcb3e am: a6e0765cab am: 0e204dc290
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15616111

Change-Id: I5e03a0e0612327c41890f08fe81b022a42912f61
2021-08-31 23:43:54 +00:00
TreeHugger Robot
03567d8023 Merge "Bluetooth: Fix formatting in getAlias()" into rvc-dev am: 16a307631e am: f6db6bcb3e am: a6e0765cab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15616111

Change-Id: I94bd7e46b1c80e5ce2b5cdae518a51798d827948
2021-08-31 23:30:49 +00:00
TreeHugger Robot
a6e0765cab Merge "Bluetooth: Fix formatting in getAlias()" into rvc-dev am: 16a307631e am: f6db6bcb3e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15616111

Change-Id: I9999e1ba63d697298d037aee29f7a449ba9cb008
2021-08-31 23:18:56 +00:00
Jakub Pawlowski
920ee05195 Merge "csip: Add constants for the Coordinated Set Identification Profile" am: 54beaf2012 am: f0307d111e am: dd0710147b am: 1a7703db09 am: b651f765a0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807297

Change-Id: Ic76a79915d14c6333e972c18afa1f26f1969a552
2021-08-30 22:14:42 +00:00
Jakub Pawlowski
b651f765a0 Merge "csip: Add constants for the Coordinated Set Identification Profile" am: 54beaf2012 am: f0307d111e am: dd0710147b am: 1a7703db09
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807297

Change-Id: I7df3a0be95d170ec44597fe3ede9858ccd14384f
2021-08-30 21:57:34 +00:00
Jakub Pawlowski
dd0710147b Merge "csip: Add constants for the Coordinated Set Identification Profile" am: 54beaf2012 am: f0307d111e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807297

Change-Id: I46e543b7fd25dbb74d97551cab50a18cfaad594d
2021-08-30 21:27:10 +00:00
Jakub Pawlowski
f0307d111e Merge "csip: Add constants for the Coordinated Set Identification Profile" am: 54beaf2012
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807297

Change-Id: I707c1fdd5831763a3bcdfa819e61ea3b01707110
2021-08-30 21:10:26 +00:00
Jakub Pawlowski
54beaf2012 Merge "csip: Add constants for the Coordinated Set Identification Profile" 2021-08-30 20:56:25 +00:00
Łukasz Rymanowski
c1b80e05e8 csip: Add constants for the Coordinated Set Identification Profile
Bug: 150670922
Tag: #feature
Test: compilation
Sponsor: jpawlowski@
Change-Id: I331fe270b75f306d57a15933ab4afa2e48c8bf50
2021-08-24 08:35:01 +00:00
Alice Kuo
21ff734712 Add a system api to fetch uuids by the specific transport
The functionality is similar with fetchUuidsWithSdp which uses TRANSPORT_AUTO. Bt stack depends on the devie type and address type to do sdp or gatt service discovery. Add an api to specific the transport. It would be fexible to handle the dual mode device.

Ignore-AOSP-First: avoid merge conflict
Tag: #feature
Bug: 194447999
Test: atest BluetoothInstrumentationTests
Test: Take two headphone to test the dual mode behavior
Change-Id: I32c8dde68969e0bdc42e4e898c43a4f2c1d3379a
Merged-In: I32c8dde68969e0bdc42e4e898c43a4f2c1d3379a
2021-08-20 16:26:24 +00:00
Alice Kuo
ee29136541 Add a system api to fetch uuids by the specific transport
The functionality is similar with fetchUuidsWithSdp which uses TRANSPORT_AUTO. Bt stack depends on the devie type and address type to do sdp or gatt service discovery. Add an api to specific the transport. It would be fexible to handle the dual mode device.

Tag: #feature
Bug: 197195548
Test: atest BluetoothInstrumentationTests
Test: Take two headphone to test the dual mode behavior
Change-Id: I32c8dde68969e0bdc42e4e898c43a4f2c1d3379a
Merged-In: I32c8dde68969e0bdc42e4e898c43a4f2c1d3379a
2021-08-19 15:29:32 +00:00
TreeHugger Robot
4baf504fca Merge "Add a system api to fetch uuids by the specific transport" into sc-dev-plus-aosp am: a928d17bd8 am: e412df1b71 am: 3075cc4d34
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15544581

Change-Id: I5faffed9764441cb1f549d3175cd113ac8667ac3
2021-08-19 01:04:59 +00:00
TreeHugger Robot
3075cc4d34 Merge "Add a system api to fetch uuids by the specific transport" into sc-dev-plus-aosp am: a928d17bd8 am: e412df1b71
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15544581

Change-Id: I105a62a14fbfc742f5240e79fc143dc5d640e451
2021-08-19 00:52:01 +00:00
TreeHugger Robot
a928d17bd8 Merge "Add a system api to fetch uuids by the specific transport" into sc-dev-plus-aosp 2021-08-19 00:16:33 +00:00
Hansong Zhang
3c4a917cb9 Bluetooth: Fix formatting in getAlias()
Bug: 180747689
Test: manual
Change-Id: Ic309f4aad116fd424d5d0d0e2016d61be8826b78
2021-08-18 23:43:45 +00:00
Alice Kuo
d4a2b02a6a Add a system api to fetch uuids by the specific transport
The functionality is similar with fetchUuidsWithSdp which uses TRANSPORT_AUTO. Bt stack depends on the devie type and address type to do sdp or gatt service discovery. Add an api to specific the transport. It would be fexible to handle the dual mode device.

Ignore-AOSP-First: avoid merge conflict
Tag: #feature
Bug: 194447999
Test: atest BluetoothInstrumentationTests
Test: Take two headphone to test the dual mode behavior
Change-Id: I32c8dde68969e0bdc42e4e898c43a4f2c1d3379a
2021-08-17 01:56:47 +00:00
Jeff Sharkey
64224f73a7 Merge "Register IBluetoothManagerCallback per-process." into sc-dev am: 01034e6e61 am: 512bc4c6ec am: 74415c5bc2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15523353

Change-Id: I1840fcba133aa0471d1000d150807cd7e285e6bd
2021-08-13 17:04:12 +00:00
Jeff Sharkey
d868b45d91 Merge "Register IBluetoothManagerCallback per-process." into sc-dev am: 01034e6e61 am: 8fe877d6a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15523353

Change-Id: Ib104558e635ff7925fff563136fa0bb15371890f
2021-08-13 13:32:06 +00:00
Jeff Sharkey
512bc4c6ec Merge "Register IBluetoothManagerCallback per-process." into sc-dev am: 01034e6e61
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15523353

Change-Id: I7e3ef6ca49e2c4ed4a4876b23ae5889c257f4f2f
2021-08-13 13:10:06 +00:00
Jeff Sharkey
f0fa7f9b4a Register IBluetoothManagerCallback per-process.
As part of introducing AttributionSource across the Bluetooth stack
earlier this year, each BluetoothAdapter instance is now associated
with a specific AttributionSource, and several instances of shared
static code were made BluetoothAdapter-specific so they could be
augmented with the relevant AttributionSource.

However, processes that create many BluetoothAdapter instances can
overload the system, since a IBluetoothManagerCallback was registered
for each instance.  This change mitigates this by only registering a
single IBluetoothManagerCallback for the entire process, and it
then reuses the existing sProxyServiceStateCallbacks list for
dispatching events to all active adapters within the process.

Since it's so late in the release, we keep both mService and
sService intact to minimize the size of this CL; future work should
refactor to a more robust design, such as Supplier<IBluetooth>.

Bug: 195286998, 172022978
Test: atest BluetoothInstrumentationTests
Change-Id: I012f3f65e61eaf55e40436486806e56506c928ee
2021-08-11 12:23:01 -06:00
Treehugger Robot
cf2ef57519 Merge "Require calls to BluetoothA2dp#setBufferLengthMillis to pass a non-negative value" 2021-08-11 04:44:53 +00:00
Rahul Sabnis
465f489430 Require calls to BluetoothA2dp#setBufferLengthMillis to pass a
non-negative value

Tag: #feature
Bug: 194837771
Test: Manual
Merged-In: I3c1d2da1d28a494d8b393c4502521b3f0699adf6
Change-Id: I3c1d2da1d28a494d8b393c4502521b3f0699adf6
2021-08-10 13:57:57 -07:00
Treehugger Robot
7384315493 Merge changes Icabed06e,I25bc13c6 am: afce05e2e5 am: 9de9c7f693 am: 0d7b83fdfc am: 06996f5ca6 am: 7527a07a1c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683328

Change-Id: I16e1b3fdb01f8add45a5358158f2dc5bd366fd9c
2021-08-10 03:17:35 +00:00
Treehugger Robot
7527a07a1c Merge changes Icabed06e,I25bc13c6 am: afce05e2e5 am: 9de9c7f693 am: 0d7b83fdfc am: 06996f5ca6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683328

Change-Id: I55543da3013973ef8a1ac45bff4d057b845b0d83
2021-08-10 03:03:10 +00:00
Treehugger Robot
0d7b83fdfc Merge changes Icabed06e,I25bc13c6 am: afce05e2e5 am: 9de9c7f693
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683328

Change-Id: I50a17e3b0a1d0da3794db7704585a7d1df3af14e
2021-08-10 02:45:37 +00:00
Treehugger Robot
afce05e2e5 Merge changes Icabed06e,I25bc13c6
* changes:
  Bluetooth: Add Media Control Profile
  Bluetooth: Add GATT_INSUFFICIENT_AUTHORIZATION error code
2021-08-10 02:14:33 +00:00
Jakub Tyszkowski
723fe23ce8 Bluetooth: Add Media Control Profile
Tag: #feature
Bug: 150670922
Sponsor: jpawlowski@
Test: compilation
Change-Id: Icabed06e6b1973ecee9cd1d6eeec80c6d2a9d72e
2021-08-09 15:37:52 +00:00
Jakub Tyszkowski
c74aebb4db Bluetooth: Add GATT_INSUFFICIENT_AUTHORIZATION error code
Bug: 150670922
Sponsor: jpawlowski@
Tag: #feature
Test: compilation
Change-Id: I25bc13c658caba48cc37b0f1f253a77fd1336b29
2021-08-09 15:34:22 +00:00
Martin Brabham
e0276d9c70 Merge "Add implementation for IRK to parcelable functions." into sc-dev 2021-07-30 18:57:19 +00:00
Martin Brabham
2cc10ccfea Merge "Add implementation for IRK to parcelable functions." am: 400c21483c am: 234cdb9d8a am: a2657cf70a am: a31665ab13
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1780808

Change-Id: I4bd36252ad569539b3b902a2e788d42ad5cf44e2
2021-07-30 00:24:38 +00:00
Martin Brabham
a31665ab13 Merge "Add implementation for IRK to parcelable functions." am: 400c21483c am: 234cdb9d8a am: a2657cf70a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1780808

Change-Id: I7aafcd520517394a290a49a42034468d9ca72e7e
2021-07-30 00:16:07 +00:00
Martin Brabham
a2657cf70a Merge "Add implementation for IRK to parcelable functions." am: 400c21483c am: 234cdb9d8a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1780808

Change-Id: I3b58d01895182c3dc970589e453cbebf2bdf7c50
2021-07-29 21:45:39 +00:00
Martin Brabham
0ef17f16bd Add implementation for IRK to parcelable functions.
Bug: 194432570
Test: Manual test app; nRF connect
Tag: #feature
Change-Id: I54ac5e5f105d155a2d2fc826bf1f64cf34573ff9
Merged-In: I54ac5e5f105d155a2d2fc826bf1f64cf34573ff9
2021-07-29 10:45:46 -07:00
Martin Brabham
60b797bd5c Add implementation for IRK to parcelable functions.
Bug: 194432570
Test: Manual test app; nRF connect
Tag: #feature
Change-Id: I54ac5e5f105d155a2d2fc826bf1f64cf34573ff9
2021-07-29 09:42:37 -07:00
Rahul Sabnis
97fcfce7b5 Merge "Require calls to BluetoothA2dp#setBufferLengthMillis to pass a non-negative value" into sc-dev am: 7a3cb23bf9 am: 7d712166f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15404294

Change-Id: Ie3c2a12af89647171f7925aa6bb85d57dd67a92f
2021-07-29 15:52:19 +00:00