OSDN Git Service

android-x86/system-bt.git
3 years agoMerge "Re-include bta/..." am: 888d89f72d
Chris Manton [Wed, 24 Feb 2021 22:26:03 +0000 (22:26 +0000)]
Merge "Re-include bta/..." am: 888d89f72d

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1603706

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie5bc7e0766ebbde8d964cb1ddfa4b590b099af8a

3 years agoAdd host support for utils/ am: d1116cf32e
Hansong Zhang [Wed, 24 Feb 2021 22:21:59 +0000 (22:21 +0000)]
Add host support for utils/ am: d1116cf32e

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1603702

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic53996e3a14ca0b99d41f8498af5805f9fa26913

3 years agoMerge "Re-include bta/..."
Chris Manton [Wed, 24 Feb 2021 19:35:46 +0000 (19:35 +0000)]
Merge "Re-include bta/..."

3 years agoAdd host support for utils/
Hansong Zhang [Wed, 24 Feb 2021 00:40:00 +0000 (16:40 -0800)]
Add host support for utils/

Test: compile
Change-Id: Ib6dce1c141d483ed1be261db6257110932c3efd8

3 years agoMerge "btaa: route HCI packet to BTAA module" am: f78936fdcd
Michael Sun [Wed, 24 Feb 2021 18:25:57 +0000 (18:25 +0000)]
Merge "btaa: route HCI packet to BTAA module" am: f78936fdcd

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1546455

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ide29dbf9e82c1ac9d2a38af8e0a1cf05c4e1f3f3

3 years agoMerge "btaa: route HCI packet to BTAA module"
Michael Sun [Wed, 24 Feb 2021 18:01:53 +0000 (18:01 +0000)]
Merge "btaa: route HCI packet to BTAA module"

3 years agoMerge "Fix the delta_time_ms types mismtach in btsnooz.py" am: 49d839ed9b
Treehugger Robot [Wed, 24 Feb 2021 02:59:10 +0000 (02:59 +0000)]
Merge "Fix the delta_time_ms types mismtach in btsnooz.py" am: 49d839ed9b

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1601133

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4e2a59f59a73efa676531c0439a746673bca7467

3 years agoRe-include bta/...
Chris Manton [Fri, 22 Jan 2021 17:26:40 +0000 (09:26 -0800)]
Re-include bta/...

and some btif/...

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: I87fc3a29e6451aa2e743c57e136675b6546e694f

3 years agoMerge "Fix the delta_time_ms types mismtach in btsnooz.py"
Treehugger Robot [Wed, 24 Feb 2021 02:15:06 +0000 (02:15 +0000)]
Merge "Fix the delta_time_ms types mismtach in btsnooz.py"

3 years agoAdd gn builds for main/shim am: 5bc5b6c961
Sonny Sasaka [Wed, 24 Feb 2021 01:44:23 +0000 (01:44 +0000)]
Add gn builds for main/shim am: 5bc5b6c961

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1579607

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I34b936d76312ec2bfc58ce07a8ad7e471e5579ec

3 years agoStabilize hci_layer_test am: e26c52c7c6
Jakub Pawlowski [Wed, 24 Feb 2021 01:26:32 +0000 (01:26 +0000)]
Stabilize hci_layer_test am: e26c52c7c6

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1602353

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I44db79e18f85f59d4372a497871845a9547b5bdf

3 years agoMerge changes I5c8ad512,Idce102cd am: 730c48e66b
Jakub Pawlowski [Wed, 24 Feb 2021 01:21:03 +0000 (01:21 +0000)]
Merge changes I5c8ad512,Idce102cd am: 730c48e66b

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1601473

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3e2d596358b5b056410a25b6bc3e64afeaf1a0c0

3 years agoMerge "BluetoothAudioHAL: Don't cache the providers factory locally" am: 0be218317a
Treehugger Robot [Wed, 24 Feb 2021 01:15:33 +0000 (01:15 +0000)]
Merge "BluetoothAudioHAL: Don't cache the providers factory locally" am: 0be218317a

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1601732

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6aa416cf79d878b7776e99b75ab7ce6de07ab033

3 years agoAdd gn builds for main/shim
Sonny Sasaka [Tue, 9 Feb 2021 06:09:59 +0000 (22:09 -0800)]
Add gn builds for main/shim

This adds GN builds for main/shim, along the way adding some fixes:
* Add message_loop_thread_bridge_header to use Rust's message loop
* Add some missing includes
* Build files for dumpsys
* Add gd/hci gn build

Bug: 176847216
Tag: #refactor
Test: atest --host bluetooth_test_common

Change-Id: Ide1edbb70076c4dcc4a4e6ee41303a9e315d52af

3 years agoMerge "Rename for updating BluetoothA2dp API naming" am: 2443531023
More Kuo [Wed, 24 Feb 2021 00:39:44 +0000 (00:39 +0000)]
Merge "Rename for updating BluetoothA2dp API naming" am: 2443531023

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1596197

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id8d054015deabd492d92dfb3c93f41c5735246e6

3 years agoMerge "Add explicit rate units for SCO fields" am: ec25c520ed
Treehugger Robot [Wed, 24 Feb 2021 00:38:37 +0000 (00:38 +0000)]
Merge "Add explicit rate units for SCO fields" am: ec25c520ed

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1595221

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic6582b7576547b9be28cddb4bd60f40653e77e16

3 years agoMerge "Surface ACL disconnect reasons from native to Java" am: ff63225f82
Andrew Cheng [Tue, 23 Feb 2021 23:38:25 +0000 (23:38 +0000)]
Merge "Surface ACL disconnect reasons from native to Java" am: ff63225f82

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1595219

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie1d0be92648da4263af4b68473161e105035c0fe

3 years agobtaa: route HCI packet to BTAA module
Michael Sun [Wed, 30 Dec 2020 23:57:53 +0000 (23:57 +0000)]
btaa: route HCI packet to BTAA module

Route HCI packets to BTAA for attribution analysis processing.

Tag: #feature
Bug: 177230507
Test: mmma -j system/bt
BYPASS_LONG_LINES_REASON: consist with gd format

Change-Id: Ic26c472758547fa7eeac1ff39c81a78c2545ad5d

3 years agoStabilize hci_layer_test
Jakub Pawlowski [Tue, 23 Feb 2021 18:26:22 +0000 (19:26 +0100)]
Stabilize hci_layer_test

Currently this test fails around 1 every 10 runs, with null pointer
exception.

Bug: 177907117
Tag: #feature
Test: atest bluetooth_test_gd --gtest_filter=HciTest.receiveMultiple* --gtest_repeat=100
Change-Id: I58de30ae493dc1a2764e36a4451906218632fd47

3 years agoMerge changes I5c8ad512,Idce102cd
Jakub Pawlowski [Tue, 23 Feb 2021 15:44:22 +0000 (15:44 +0000)]
Merge changes I5c8ad512,Idce102cd

* changes:
  Support Bluetooth HAL 1.1 in GD
  Rust HAL: Store header size as constant rather than enum

3 years agoMerge "BluetoothAudioHAL: Don't cache the providers factory locally"
Treehugger Robot [Tue, 23 Feb 2021 15:11:05 +0000 (15:11 +0000)]
Merge "BluetoothAudioHAL: Don't cache the providers factory locally"

3 years agoSupport Bluetooth HAL 1.1 in GD
Jakub Pawlowski [Tue, 23 Feb 2021 08:10:38 +0000 (09:10 +0100)]
Support Bluetooth HAL 1.1 in GD

Because ISO support is coming

Bug: 177907117
Tag: #feature
Test: run GD stack on device supporting 1.1HAL, verify it's choosen
Change-Id: I5c8ad512b93be443e09c02a435f9fd08179e4367

3 years agoRust HAL: Store header size as constant rather than enum
Jakub Pawlowski [Tue, 23 Feb 2021 10:35:53 +0000 (11:35 +0100)]
Rust HAL: Store header size as constant rather than enum

Enums are not appropriate here, headers size can be equal, i.e. for ACL
and upcoming ISO packets.

Bug: 177907117
Tag: #feature
Test: compilation
Change-Id: Idce102cd4f42fb37c723129e80671cedb5c6858a

3 years agoBluetoothAudioHAL: Don't cache the providers factory locally
Cheney Ni [Tue, 23 Feb 2021 12:03:45 +0000 (20:03 +0800)]
BluetoothAudioHAL: Don't cache the providers factory locally

This object is provided by Audio HAL, and we should get the
service every time while fetching a provider. It fixes the crash
which is due to out-of-sync in case of Audio HAL restarting.

Fixes: 173538746
Tag: #stability
Test: atest bluetooth-test-audio-hal-interface
      restart Audio HAL when Bluetooth is ON
Change-Id: I1e88136c768a1d5fdcd70cfd9e5f1a3a13645333

3 years agoMerge "Merge ab/7061308 into stage." into stage-aosp-master
TreeHugger Robot [Tue, 23 Feb 2021 08:43:25 +0000 (08:43 +0000)]
Merge "Merge ab/7061308 into stage." into stage-aosp-master

3 years agoFix the delta_time_ms types mismtach in btsnooz.py
Alice Kuo [Tue, 23 Feb 2021 03:11:12 +0000 (11:11 +0800)]
Fix the delta_time_ms types mismtach in btsnooz.py

The delta_time_ms field in btif_debug_btsnoop.h is 32 bits. The offset
count for 64 bits, and cause the decoder error. Change the offset back
for 32 bits.

Bug: 175283029
Test: ./btsnooz.py bugreport-WXYZ.txt
Change-Id: I28324c4ff33ab817dbad5c813616a8e8c994ff2a

3 years agoMerge "Rename for updating BluetoothA2dp API naming"
More Kuo [Tue, 23 Feb 2021 02:37:41 +0000 (02:37 +0000)]
Merge "Rename for updating BluetoothA2dp API naming"

3 years agoMerge "Add explicit rate units for SCO fields"
Treehugger Robot [Mon, 22 Feb 2021 21:13:39 +0000 (21:13 +0000)]
Merge "Add explicit rate units for SCO fields"

3 years agoMerge "Surface ACL disconnect reasons from native to Java"
Andrew Cheng [Mon, 22 Feb 2021 19:25:13 +0000 (19:25 +0000)]
Merge "Surface ACL disconnect reasons from native to Java"

3 years agoUse Builders for Iso and Sco am: d5ddc63609
Myles Watson [Mon, 22 Feb 2021 17:22:02 +0000 (17:22 +0000)]
Use Builders for Iso and Sco am: d5ddc63609

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1597673

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0f18413c10f8dfec22c6e58d07ba8e7aef1d6e53

3 years agoMerge ab/7061308 into stage.
Xin Li [Sun, 21 Feb 2021 17:25:20 +0000 (09:25 -0800)]
Merge ab/7061308 into stage.

Bug: 180401296
Test: Manual
Tag: #compatibility
Merged-In: I7e4d41466d34c565f4f0f410292f84642c8ee1dd
Change-Id: I13a069c9e36cc2e91f51883e82243f3ad7f77cac

3 years agoUse Builders for Iso and Sco
Myles Watson [Sat, 20 Feb 2021 04:57:57 +0000 (20:57 -0800)]
Use Builders for Iso and Sco

Change-Id: Ic0b237d6b48d3b7fe5b190a74940cb7eab3f9d14

3 years agoMerge "Packet: Remove non-standard iterator cases" am: 32467ca636
Myles Watson [Sat, 20 Feb 2021 05:30:21 +0000 (05:30 +0000)]
Merge "Packet: Remove non-standard iterator cases" am: 32467ca636

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1585087

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia4aff902ec19e235d02a90b9eee92ff089972cc6

3 years agoAdd explicit rate units for SCO fields
Chris Manton [Fri, 19 Feb 2021 21:33:12 +0000 (13:33 -0800)]
Add explicit rate units for SCO fields

Bug: 175844355
Test: gd/cert/run
Tag: #gd-refactor
Change-Id: I2ecc05a2ef46016929afedeafd44ef7d9a77f333

3 years agoMerge "Packet: Remove non-standard iterator cases"
Myles Watson [Sat, 20 Feb 2021 04:47:25 +0000 (04:47 +0000)]
Merge "Packet: Remove non-standard iterator cases"

3 years agoSurface ACL disconnect reasons from native to Java
Andrew Cheng [Fri, 15 Jan 2021 01:28:13 +0000 (17:28 -0800)]
Surface ACL disconnect reasons from native to Java

HCI disconnect commands and events have an accompanying "reason"
parameter comprising of a HCI error code. This can be useful in both
debugging and re-connection logic at the Java level.

This CL grabs the HCI codes from native and passes it up to Java via an
extra parameter to existing ACL connection callbacks.

Tag: #feature
Bug: 177668957
Test: atest net_test_bluetooth # verify no regressions
Test: atest bluetoothtbd_test # verify no regressions
Test: atest bt_headless # verify test still builds
Test: manually disconnect local and remote devices and check logcats
from Java layer for disconnect reasons

Change-Id: Idcb1711345b515c5f60e55430352f5f4ff252d69

3 years agoMerge changes I026085cc,I7b090528,I0223c420,I3884a9b3 am: ddc0331c2d
Chris Manton [Sat, 20 Feb 2021 01:53:06 +0000 (01:53 +0000)]
Merge changes I026085cc,I7b090528,I0223c420,I3884a9b3 am: ddc0331c2d

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1574408

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I00558e8d1b535fcc6a96be4cdf95f5c40c84f3f2

3 years agoMerge changes I453ace5a,I6184560e am: 872d614c0f
Myles Watson [Sat, 20 Feb 2021 01:52:11 +0000 (01:52 +0000)]
Merge changes I453ace5a,I6184560e am: 872d614c0f

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1597025

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie4c21bbe5c4d8fc863de9e4d9aa362cac55afafa

3 years agoMerge changes I026085cc,I7b090528,I0223c420,I3884a9b3
Chris Manton [Sat, 20 Feb 2021 01:50:08 +0000 (01:50 +0000)]
Merge changes I026085cc,I7b090528,I0223c420,I3884a9b3

* changes:
  Re-include bta/av/bta_av_api.cc
  Re-include bta/av/bta_av_act.cc
  Re-include bta/av/bta_av_aact.cc
  Re-include bta/ar/bta_ar.cc

3 years agoMerge changes I453ace5a,I6184560e
Myles Watson [Sat, 20 Feb 2021 01:24:03 +0000 (01:24 +0000)]
Merge changes I453ace5a,I6184560e

* changes:
  RootCanal: Support LeReadRemoteFeatures
  RootCanal: Send LeReadRemoteFeaturesStatus

3 years agobtaa: add btaa btif implementation am: c33a6b3acc
Michael Sun [Sat, 20 Feb 2021 01:18:26 +0000 (01:18 +0000)]
btaa: add btaa btif implementation am: c33a6b3acc

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1508620

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I86ba41f9ea7506023f19f91e387e6901f8e08aa0

3 years agoPacket: Remove non-standard iterator cases
Myles Watson [Fri, 29 Jan 2021 23:54:18 +0000 (15:54 -0800)]
Packet: Remove non-standard iterator cases

Clang-tidy was complaining about the non-const iterators.

Bug: 180016989
Test: cert/run
Tag: #gd-refactor
Change-Id: I2223955ab35af4f20b9dccbc1313a4e66a4734fc

3 years agoMerge "btaa: add btaa shim implementation" am: 51075f0932
Treehugger Robot [Fri, 19 Feb 2021 23:15:56 +0000 (23:15 +0000)]
Merge "btaa: add btaa shim implementation" am: 51075f0932

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1508619

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I47335ca1a8ff52a3feba82770c32036a19710fb9

3 years agoMerge "RootCanal: Check for disallowed commands" am: 7cc80fdcc8
Myles Watson [Fri, 19 Feb 2021 23:15:39 +0000 (23:15 +0000)]
Merge "RootCanal: Check for disallowed commands" am: 7cc80fdcc8

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1585089

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib8b46700722b74a6e86839c3ce2dccbb05b3950c

3 years agoMerge "Rootcanal: fix ISO packet routing" am: 8e094a75ed
Treehugger Robot [Fri, 19 Feb 2021 23:15:21 +0000 (23:15 +0000)]
Merge "Rootcanal: fix ISO packet routing" am: 8e094a75ed

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1596561

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I46192917ff91bc60ae747c8ca73ab867d5fcb3c1

3 years agoMerge "[GD HCI] Add BtStopWatch log tag" am: a8016ba3ba
Treehugger Robot [Fri, 19 Feb 2021 23:13:31 +0000 (23:13 +0000)]
Merge "[GD HCI] Add BtStopWatch log tag" am: a8016ba3ba

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1595372

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ife249fc3cacec14252531f9014b2fb7cd30cb2f8

3 years agobtaa: add btaa btif implementation
Michael Sun [Mon, 23 Nov 2020 18:54:29 +0000 (18:54 +0000)]
btaa: add btaa btif implementation

Implement the btaa btif layer to connect gd with btif through the shim
layer.

Tag: #feature
Bug: 172501038
Test: m
Change-Id: I5a463f854e6b4cd7cfae5f6b8100c62a1b8903d5

3 years agoMerge "btaa: add btaa shim implementation"
Treehugger Robot [Fri, 19 Feb 2021 23:04:05 +0000 (23:04 +0000)]
Merge "btaa: add btaa shim implementation"

3 years agoRootCanal: Support LeReadRemoteFeatures
Myles Watson [Fri, 19 Feb 2021 23:02:28 +0000 (15:02 -0800)]
RootCanal: Support LeReadRemoteFeatures

Bug: 180748274
Test: cert/run LeAclManagerTest
Tag: #root-canal
Change-Id: I453ace5a55170e58fd70b128d703b331d57ef219

3 years agoMerge "Fix use-after-free in async_manager.cc." am: 8544b4dae4
Treehugger Robot [Fri, 19 Feb 2021 22:39:24 +0000 (22:39 +0000)]
Merge "Fix use-after-free in async_manager.cc." am: 8544b4dae4

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1584463

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9c6a416d8c3624b72f5a3155ab844d8b265a2d43

3 years agoMerge "RootCanal: Check for disallowed commands"
Myles Watson [Fri, 19 Feb 2021 22:29:37 +0000 (22:29 +0000)]
Merge "RootCanal: Check for disallowed commands"

3 years agoMerge "Rootcanal: fix ISO packet routing"
Treehugger Robot [Fri, 19 Feb 2021 22:27:23 +0000 (22:27 +0000)]
Merge "Rootcanal: fix ISO packet routing"

3 years agoMerge "[GD HCI] Add BtStopWatch log tag"
Treehugger Robot [Fri, 19 Feb 2021 22:20:12 +0000 (22:20 +0000)]
Merge "[GD HCI] Add BtStopWatch log tag"

3 years agoRootCanal: Send LeReadRemoteFeaturesStatus
Myles Watson [Fri, 19 Feb 2021 21:52:10 +0000 (13:52 -0800)]
RootCanal: Send LeReadRemoteFeaturesStatus

Bug: 180748274
Test: cert/run LeAclManagerTest
Tag: #root-canal
Change-Id: I6184560ed739563af1cc8224271c40f724f56577

3 years agoMerge "Fix use-after-free in async_manager.cc."
Treehugger Robot [Fri, 19 Feb 2021 21:47:21 +0000 (21:47 +0000)]
Merge "Fix use-after-free in async_manager.cc."

3 years agoRe-include bta/av/bta_av_api.cc
Chris Manton [Thu, 28 Jan 2021 03:28:57 +0000 (19:28 -0800)]
Re-include bta/av/bta_av_api.cc

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: I026085cc77b19955f22a8524e6b303d1fe0de5ce

3 years agoRe-include bta/av/bta_av_act.cc
Chris Manton [Thu, 28 Jan 2021 03:24:29 +0000 (19:24 -0800)]
Re-include bta/av/bta_av_act.cc

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: I7b0905289b76cd444dac6f083f48df34b7d54a31

3 years agoRe-include bta/av/bta_av_aact.cc
Chris Manton [Sat, 23 Jan 2021 17:36:58 +0000 (09:36 -0800)]
Re-include bta/av/bta_av_aact.cc

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: I0223c4201b359063f3ca4c97bd399d1bcf4df03a

3 years agoRe-include bta/ar/bta_ar.cc
Chris Manton [Thu, 28 Jan 2021 03:24:38 +0000 (19:24 -0800)]
Re-include bta/ar/bta_ar.cc

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: I3884a9b3c3fba6d2958ac058466521e1a6b547a8

3 years agobtaa: add btaa shim implementation
Michael Sun [Mon, 23 Nov 2020 18:30:34 +0000 (18:30 +0000)]
btaa: add btaa shim implementation

Implement the btaa shim layer to connect gd with btif.

Tag: #feature
Bug: 172501038
Test: m
Change-Id: I8f6ec9d0b74425184ca19128167ed4ae554b4197

3 years agoMerge "gd: Get local address from acl module for legacy SMP" am: 870b3090b4
Treehugger Robot [Fri, 19 Feb 2021 19:49:35 +0000 (19:49 +0000)]
Merge "gd: Get local address from acl module for legacy SMP" am: 870b3090b4

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1596196

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5e7fcb0167036c5b1ed884d92321a330d010e0cf

3 years agoRootcanal: fix ISO packet routing
Jakub Pawlowski [Fri, 19 Feb 2021 18:52:51 +0000 (19:52 +0100)]
Rootcanal: fix ISO packet routing

Bug: 177907117
Test: NotImlementedYet
Change-Id: Ic75f6a11b5494fd351a307647337817d2bbb13ea

3 years ago[GD HCI] Add BtStopWatch log tag
Jack He [Thu, 18 Feb 2021 21:25:44 +0000 (13:25 -0800)]
[GD HCI] Add BtStopWatch log tag

* StopWatch logs are very verbose, adding a tag so that we can
  filter or disable it via config setup

Bug: 164973960
Test: make and run BT stack
Tag: #gd-refactor
Change-Id: I5cd8f24228948559ecee180fb57727469fe7eeb8

3 years agoMerge "gd: Get local address from acl module for legacy SMP"
Treehugger Robot [Fri, 19 Feb 2021 18:36:11 +0000 (18:36 +0000)]
Merge "gd: Get local address from acl module for legacy SMP"

3 years agoRootCanal: Check for disallowed commands
Myles Watson [Wed, 10 Feb 2021 17:16:52 +0000 (09:16 -0800)]
RootCanal: Check for disallowed commands

Bug: 180015700
Test: cert/run LeAclManagerTest
Tag: #gd-refactor
Change-Id: I66b7fb35e470c543b040a3de094b650c59cf0e7e

3 years agoRename for updating BluetoothA2dp API naming
More Kuo [Fri, 19 Feb 2021 10:32:10 +0000 (18:32 +0800)]
Rename for updating BluetoothA2dp API naming

- Rename setBufferMillis to setBufferLengthMillis

Bug: 179814567
Test: Build
Change-Id: I62bda971e57667daa8a75ebaa7099fae01aacf02

3 years agogd: Get local address from acl module for legacy SMP
Chienyuan [Fri, 19 Feb 2021 09:19:07 +0000 (17:19 +0800)]
gd: Get local address from acl module for legacy SMP

Tag: #gd-refactor
Bug: 179452679
Test: gd/cert/run --host
Test: manual, pair LE device
Change-Id: I35e4ef614272865bd52ec66959384279705cc042

3 years agoMerge changes I8c94b803,Ie96668df am: fa4e77c825
Josh Wu [Fri, 19 Feb 2021 04:01:34 +0000 (04:01 +0000)]
Merge changes I8c94b803,Ie96668df am: fa4e77c825

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1542612

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I70b4dc0fd23090b4688586cfbaa02c9c667b2015

3 years agoMerge changes I8c94b803,Ie96668df
Josh Wu [Fri, 19 Feb 2021 02:54:26 +0000 (02:54 +0000)]
Merge changes I8c94b803,Ie96668df

* changes:
  SCO: codec parameters refactor
  HFP: Refactor HFP version flags

3 years agoRe-include bta/ag/bta_ag_rfc.cc am: 8c72e6e048
Chris Manton [Fri, 19 Feb 2021 01:06:20 +0000 (01:06 +0000)]
Re-include bta/ag/bta_ag_rfc.cc am: 8c72e6e048

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1574402

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0f60905f853364a670fd0ddea93f5cf6fd090ef3

3 years agoRe-include bta/ag/bta_ag_main.cc am: 2379f18fd7
Chris Manton [Fri, 19 Feb 2021 01:06:17 +0000 (01:06 +0000)]
Re-include bta/ag/bta_ag_main.cc am: 2379f18fd7

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1574401

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I32d39b1ddddbe848ffda5360377310c6eb65c650

3 years agoRe-include bta/ag/bta_ag_cmd.cc am: 8a1425a9ff
Chris Manton [Fri, 19 Feb 2021 01:06:13 +0000 (01:06 +0000)]
Re-include bta/ag/bta_ag_cmd.cc am: 8a1425a9ff

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1574400

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I157eaac308b5b5210566ca280d8e9d44c901749b

3 years agoRe-include bta/ag/bta_ag_cfg.cc am: 6fcb70998f
Chris Manton [Fri, 19 Feb 2021 01:06:10 +0000 (01:06 +0000)]
Re-include bta/ag/bta_ag_cfg.cc am: 6fcb70998f

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1572919

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8efc1288541ac65a13134cf43bb03b6da6bc54a1

3 years agoRe-include bta/ag/bta_ag_at.cc am: 0b2647153b
Chris Manton [Fri, 19 Feb 2021 01:06:07 +0000 (01:06 +0000)]
Re-include bta/ag/bta_ag_at.cc am: 0b2647153b

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1572917

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iae0d883c96ab96b44e7f6b273e7302570f1e9900

3 years agoRe-include bta/ag/bta_ag_api.cc am: 0eb06df009
Chris Manton [Fri, 19 Feb 2021 01:06:03 +0000 (01:06 +0000)]
Re-include bta/ag/bta_ag_api.cc am: 0eb06df009

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1572916

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If0164c15eadb9277ed0b088ce041e3507d5f1459

3 years agoRe-include bta/ag/bta_ag_act.cc am: 10af6e5603
Chris Manton [Fri, 19 Feb 2021 01:05:12 +0000 (01:05 +0000)]
Re-include bta/ag/bta_ag_act.cc am: 10af6e5603

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1572915

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8747ee2d3e57354dea2a4864831e8e914254617d

3 years agoRe-include bta/ag/bta_ag_rfc.cc
Chris Manton [Fri, 22 Jan 2021 17:14:20 +0000 (09:14 -0800)]
Re-include bta/ag/bta_ag_rfc.cc

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: Idb7801752398c852ae1855f0812b2f6b99e5ac80

3 years agoRe-include bta/ag/bta_ag_main.cc
Chris Manton [Sun, 24 Jan 2021 23:49:40 +0000 (15:49 -0800)]
Re-include bta/ag/bta_ag_main.cc

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: I872bd18433ab622509de50100d397fd78b28cfa4

3 years agoRe-include bta/ag/bta_ag_cmd.cc
Chris Manton [Thu, 28 Jan 2021 03:12:03 +0000 (19:12 -0800)]
Re-include bta/ag/bta_ag_cmd.cc

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: I4e6871177c308eedf56050ade5b20400e35482c4

3 years agoRe-include bta/ag/bta_ag_cfg.cc
Chris Manton [Thu, 28 Jan 2021 03:07:26 +0000 (19:07 -0800)]
Re-include bta/ag/bta_ag_cfg.cc

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: Ia338b436c41ff1aca7bb1f40c6029a0a041cde51

3 years agoRe-include bta/ag/bta_ag_at.cc
Chris Manton [Thu, 18 Feb 2021 17:00:00 +0000 (09:00 -0800)]
Re-include bta/ag/bta_ag_at.cc

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: I0f6ef323bad78c04b67d96ba861c6132be793b6a

3 years agoRe-include bta/ag/bta_ag_api.cc
Chris Manton [Thu, 28 Jan 2021 02:59:56 +0000 (18:59 -0800)]
Re-include bta/ag/bta_ag_api.cc

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: I55f3cb8055e9f126605d4976a4568256db090772

3 years agoRe-include bta/ag/bta_ag_act.cc
Chris Manton [Thu, 28 Jan 2021 02:56:11 +0000 (18:56 -0800)]
Re-include bta/ag/bta_ag_act.cc

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: I5f09d63761b01c9f6ce96670aa30766e42b64443

3 years agoL2cap: Don't erase link when outgoing packet pending am: 680c06cb37
Hansong Zhang [Thu, 18 Feb 2021 21:42:31 +0000 (21:42 +0000)]
L2cap: Don't erase link when outgoing packet pending am: 680c06cb37

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1576743

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I932ca21b25b6f41361708e4691ef4c28de488510

3 years agoL2cap: Don't erase link when outgoing packet pending
Hansong Zhang [Thu, 4 Feb 2021 22:51:18 +0000 (14:51 -0800)]
L2cap: Don't erase link when outgoing packet pending

Otherwise we will post to L2cap handler DataController::OnSdu with
deleted object.

Test: LE mouse
Bug: 179326888
Tag: #gd-refactor
Change-Id: I517ac9890cc8d3894067bcad346a80765d24aeca

3 years agoMerge changes Ib334609b,Ic94f70fc am: 355d5188cf
Treehugger Robot [Thu, 18 Feb 2021 19:59:35 +0000 (19:59 +0000)]
Merge changes Ib334609b,Ic94f70fc am: 355d5188cf

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1593216

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iffab76de05ac8c953886dd127cdb6fc1bda65911

3 years agoMerge "Rootcanal: fix typos in handling CIS" am: 1556cb8a14
Treehugger Robot [Thu, 18 Feb 2021 19:58:33 +0000 (19:58 +0000)]
Merge "Rootcanal: fix typos in handling CIS" am: 1556cb8a14

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1591915

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I19f4fdccb4901e75d58e7463fc2ff3bef09ed8b2

3 years agoMerge changes Ib334609b,Ic94f70fc
Treehugger Robot [Thu, 18 Feb 2021 19:22:55 +0000 (19:22 +0000)]
Merge changes Ib334609b,Ic94f70fc

* changes:
  [GD ACL] Add btsnooz support in GD
  GD-Common: Add CircularBuffer::Drain() method

3 years agoMerge "Rootcanal: fix typos in handling CIS"
Treehugger Robot [Thu, 18 Feb 2021 18:21:11 +0000 (18:21 +0000)]
Merge "Rootcanal: fix typos in handling CIS"

3 years ago[GD ACL] Add btsnooz support in GD
Jack He [Thu, 18 Feb 2021 07:52:51 +0000 (23:52 -0800)]
[GD ACL] Add btsnooz support in GD

* Support in-memory btsnooz log in GD
* It uses maximum of 256KB of memory to store HCI commands, events,
  L2CAP signaling channel data, and first 14 bytes of other ACL
  packet
* The data is dumped to a log file when dumpsys is taken for the
  Bluetooth module and when Bluetooth stack shutsdown so that
  developer can debug Bluetooth issues with it

Bug: 180569201
Test: gd/cert/run
Test: bluetooth_test_gd
Tag: #gd-refactor
Change-Id: Ib334609b0f6667846f458d2967ffa520d3af39e3

3 years agoMerge "btaa: add btaa into the shim" am: ed708c0cad
Treehugger Robot [Thu, 18 Feb 2021 09:18:21 +0000 (09:18 +0000)]
Merge "btaa: add btaa into the shim" am: ed708c0cad

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1508618

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I84726f40471f5b6ae91bd7e19491e55f259850b4

3 years agoMerge "btaa: add btaa into the shim"
Treehugger Robot [Thu, 18 Feb 2021 07:56:25 +0000 (07:56 +0000)]
Merge "btaa: add btaa into the shim"

3 years agoGD-Common: Add CircularBuffer::Drain() method
Jack He [Thu, 18 Feb 2021 07:44:57 +0000 (23:44 -0800)]
GD-Common: Add CircularBuffer::Drain() method

* Drain() allows a circular buffer to return and clear
  its content so that one can clear a circular buffer
  in-place
* Moreover, Drain() uses move semantic to avoid copying
  its content and hence is more efficient
* Modify Pull() to use range-based initialization to do
  blocked copy that tends to be more efficient
* Add circular buffer unit test to compilation target
  and presubmit

Bug: 180569201
Test: gd/cert/run
Test: bluetooth_test_gd
Tag: #gd-refactor
Change-Id: Ic94f70fc862f244dcdc6b9d5f2526c45d0b8eb52

3 years agoMerge "rusty-gd: Add missing GAP data types and fix EIR length" am: 55da113b73
Qasim Javed [Thu, 18 Feb 2021 03:22:53 +0000 (03:22 +0000)]
Merge "rusty-gd: Add missing GAP data types and fix EIR length" am: 55da113b73

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1593171

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie3532021f388b15c9b82153d3bc052b2bde5a61b

3 years agoMerge "rusty-gd: Add missing GAP data types and fix EIR length"
Qasim Javed [Thu, 18 Feb 2021 02:53:23 +0000 (02:53 +0000)]
Merge "rusty-gd: Add missing GAP data types and fix EIR length"

3 years agorusty-gd: Add missing GAP data types and fix EIR length
Qasim Javed [Wed, 17 Feb 2021 21:39:07 +0000 (13:39 -0800)]
rusty-gd: Add missing GAP data types and fix EIR length

Devices with EIR containing Gap data type 0x10 were not showing up in
the pairing list.

Tested using Pixel Buds. They now show up in the pairing dialog. When
tapped, pairing still fails.

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost DirectHciTest

Change-Id: I00c90b6ca4ab0bb5eca97202f7652f35260197c4

3 years agoMerge "Add max_connected_audio_devices parameter to A2DP Sink init" am: 3323d52ecb
Sal Savage [Wed, 17 Feb 2021 21:45:38 +0000 (21:45 +0000)]
Merge "Add max_connected_audio_devices parameter to A2DP Sink init" am: 3323d52ecb

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1585098

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0125d22dad3f4b76b950ac4a88c9c19f2aa5fd8d

3 years agoMerge "Add max_connected_audio_devices parameter to A2DP Sink init"
Sal Savage [Wed, 17 Feb 2021 21:01:57 +0000 (21:01 +0000)]
Merge "Add max_connected_audio_devices parameter to A2DP Sink init"

3 years agoMerge "btaa: introduce btaa module into gd" am: 65aaab254d
Treehugger Robot [Wed, 17 Feb 2021 19:26:23 +0000 (19:26 +0000)]
Merge "btaa: introduce btaa module into gd" am: 65aaab254d

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1508617

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5c2e7e0c5731397c0a7b57d2c90b93e38125d9b3

3 years agobtaa: add btaa into the shim
Michael Sun [Mon, 23 Nov 2020 17:51:04 +0000 (17:51 +0000)]
btaa: add btaa into the shim

Add btaa module into the shim. Implemented various helper functions.

Tag: #feature
Bug: 172501038
Test: m
Change-Id: I23b86a7b75ad301aae62d47ca34a5524a60844a1