OSDN Git Service

android-x86/system-bt.git
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_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

3 years agoMerge "btaa: introduce btaa module into gd"
Treehugger Robot [Wed, 17 Feb 2021 18:17:25 +0000 (18:17 +0000)]
Merge "btaa: introduce btaa module into gd"

3 years agoRootcanal: fix typos in handling CIS
Jakub Pawlowski [Wed, 17 Feb 2021 15:44:08 +0000 (16:44 +0100)]
Rootcanal: fix typos in handling CIS

* fix order of some badly passed parameters
* add/fix error log messages

Change-Id: Ie13580b6051a6afa15615b634d9c42ae0fd5f5d6

3 years agoRootcanal fix typo - return success am: 3e805952c1
Jakub Pawlowski [Wed, 17 Feb 2021 15:30:44 +0000 (15:30 +0000)]
Rootcanal fix typo - return success am: 3e805952c1

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iec7c9a47b396d722645f0daa7b6929d5b1765767

3 years agoRootcanal fix typo - return success
Jakub Pawlowski [Tue, 16 Feb 2021 22:36:20 +0000 (23:36 +0100)]
Rootcanal fix typo - return success

Test: run the not yet existing ISO tests
Change-Id: Ie3b2674336d2b97297d1be96b97351c4a82676aa

3 years agoMerge "Send Bluetooth call quality report to telephony" am: 7817f3fa87
Treehugger Robot [Wed, 17 Feb 2021 00:11:47 +0000 (00:11 +0000)]
Merge "Send Bluetooth call quality report to telephony" am: 7817f3fa87

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I77e7bd61e746e0f456fb5e4324040ca7ed368bd8

3 years agoMerge "Fix test for googletest upgrade" am: b0ba4e8a76
Haibo Huang [Wed, 17 Feb 2021 00:10:55 +0000 (00:10 +0000)]
Merge "Fix test for googletest upgrade" am: b0ba4e8a76

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic05c50853aa6c594dee1a5ccc5fa8db5464b9151

3 years agoMerge "Send Bluetooth call quality report to telephony"
Treehugger Robot [Wed, 17 Feb 2021 00:00:08 +0000 (00:00 +0000)]
Merge "Send Bluetooth call quality report to telephony"

3 years agoMerge "Fix test for googletest upgrade"
Haibo Huang [Tue, 16 Feb 2021 23:38:09 +0000 (23:38 +0000)]
Merge "Fix test for googletest upgrade"

3 years agoMerge "Wipe cache when HID report cache isn't compatible with the current cache versi...
Treehugger Robot [Tue, 16 Feb 2021 23:14:51 +0000 (23:14 +0000)]
Merge "Wipe cache when HID report cache isn't compatible with the current cache version." am: 749630bc91

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib53949670bb035d5a52dddd52e333a45d872cb0e

3 years agoMerge "Wipe cache when HID report cache isn't compatible with the current cache version."
Treehugger Robot [Tue, 16 Feb 2021 22:39:02 +0000 (22:39 +0000)]
Merge "Wipe cache when HID report cache isn't compatible with the current cache version."

3 years agoRemove unneeded func stack/btm/btm_ble_bgconn::btm_ble_acceptlist_init am: 37abdec7c8
Chris Manton [Tue, 16 Feb 2021 22:04:34 +0000 (22:04 +0000)]
Remove unneeded func stack/btm/btm_ble_bgconn::btm_ble_acceptlist_init am: 37abdec7c8

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If1aae4618c48d599eaf566cee7de76c9b87fb851

3 years agoRemove unneccesary API BTM_GetAcceptlistSize am: c36db90f1a
Chris Manton [Tue, 16 Feb 2021 22:04:30 +0000 (22:04 +0000)]
Remove unneccesary API BTM_GetAcceptlistSize am: c36db90f1a

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I81a35abe1c7cfab40b9569f06a3b0a8522cf5335

3 years agoFix for gd_acl le connections am: c6e78147e1
Chris Manton [Tue, 16 Feb 2021 22:04:27 +0000 (22:04 +0000)]
Fix for gd_acl le connections am: c6e78147e1

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib1943aa2e826781b77f7d454802f41696d154c28

3 years agogd_acl: Add add/remove acceptlist am: 3467d21d29
Chris Manton [Tue, 16 Feb 2021 22:04:23 +0000 (22:04 +0000)]
gd_acl: Add add/remove acceptlist am: 3467d21d29

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I30bded4c4b92ff865e06a9a218b4d797077b25e1

3 years agoEnum-ify bta/include/bta_hh_api::tBTA_HH_STATUS am: 1813bfcc17
Chris Manton [Tue, 16 Feb 2021 22:03:22 +0000 (22:03 +0000)]
Enum-ify bta/include/bta_hh_api::tBTA_HH_STATUS am: 1813bfcc17

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I235f9d539f016fbe541f1ed32662c9105729dace

3 years agoRe-log stack/btm/btm_sec::btm_sec_is_a_bonded_dev am: c472a55125
Chris Manton [Tue, 16 Feb 2021 22:02:28 +0000 (22:02 +0000)]
Re-log stack/btm/btm_sec::btm_sec_is_a_bonded_dev am: c472a55125

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I17d61a40fcb5a2f5484783cda4522a648d4c46ae

3 years agoRe-log stack/btm/btm_ble_privacy::btm_ble_suspend_resolving_list_activity am: 87b3dc4559
Chris Manton [Tue, 16 Feb 2021 22:02:25 +0000 (22:02 +0000)]
Re-log stack/btm/btm_ble_privacy::btm_ble_suspend_resolving_list_activity am: 87b3dc4559

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I49ce1fbc73b24639bafd18d00aa73d944d596a04

3 years agoRe-log stack/btm/btm_ble_gap::btm_ble_update_mode_operation am: 81a26a1365
Chris Manton [Tue, 16 Feb 2021 22:02:21 +0000 (22:02 +0000)]
Re-log stack/btm/btm_ble_gap::btm_ble_update_mode_operation am: 81a26a1365

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id9e2233e30fd1cd605a24a8237a3c6b7d27a9e7d

3 years agoUse proper types tHCI_STATUS am: d047f92771
Chris Manton [Tue, 16 Feb 2021 22:02:18 +0000 (22:02 +0000)]
Use proper types tHCI_STATUS am: d047f92771

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4f77a708fc9cdcc8a0355f2eaeb86be57f744a54

3 years agoRe-log stack/smp/smp_l2c::smp_connect_callback am: 12e591c2e9
Chris Manton [Tue, 16 Feb 2021 22:02:15 +0000 (22:02 +0000)]
Re-log stack/smp/smp_l2c::smp_connect_callback am: 12e591c2e9

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I013f184ed57f5049eccb38cc1dfe98e0bda7b3af

3 years agogd_acl: Assert on paths when gd_acl enabled am: 06d050075f
Chris Manton [Tue, 16 Feb 2021 22:02:11 +0000 (22:02 +0000)]
gd_acl: Assert on paths when gd_acl enabled am: 06d050075f

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id172e40435d9ece6c0f5ac856fdcb8d61d1e546f

3 years agoRe-layout stack/btm/btm_ble_bgconn.cc am: 16584d39d7
Chris Manton [Tue, 16 Feb 2021 22:02:07 +0000 (22:02 +0000)]
Re-layout stack/btm/btm_ble_bgconn.cc am: 16584d39d7

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I95f96b66b80c9bab0b32e18a5d0eb859cd2d3eaa

3 years agoRe-log stack/gatt/gatt_api::GATT_Connect am: 6c58e3a5aa
Chris Manton [Tue, 16 Feb 2021 22:02:02 +0000 (22:02 +0000)]
Re-log stack/gatt/gatt_api::GATT_Connect am: 6c58e3a5aa

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie2541c6be451b543e8c87b5c65f7a6a56a41857b

3 years agoRe-log stack/smp/smp_l2c::smp_connect_callback am: 6e77382867
Chris Manton [Tue, 16 Feb 2021 22:01:59 +0000 (22:01 +0000)]
Re-log stack/smp/smp_l2c::smp_connect_callback am: 6e77382867

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia73d0c709964db5182931426b1e39fe707ab341b

3 years agoRe-log stack/gap/gap_ble::client_connect_cback am: 2538d35f32
Chris Manton [Tue, 16 Feb 2021 22:01:56 +0000 (22:01 +0000)]
Re-log stack/gap/gap_ble::client_connect_cback am: 2538d35f32

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifa66575fc365ab5ed533e790d1acf8585a95eb98

3 years agoRe-log bta/gatt/bta_gattc_act::bta_gattc_close am: ba345ad12b
Chris Manton [Tue, 16 Feb 2021 22:01:52 +0000 (22:01 +0000)]
Re-log bta/gatt/bta_gattc_act::bta_gattc_close am: ba345ad12b

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iffab3921153c18b1f2745811dbf564fc7664091f

3 years agoGroup internally linked functions stack/btm/btm_ble_bgconn am: 137b24d59a
Chris Manton [Tue, 16 Feb 2021 22:01:49 +0000 (22:01 +0000)]
Group internally linked functions stack/btm/btm_ble_bgconn am: 137b24d59a

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I298fa0b8a1b56343db7df7e748b02414b5a10cc5

3 years agoDirectly query controller for acceptlist size am: 1709788a73
Chris Manton [Tue, 16 Feb 2021 22:01:45 +0000 (22:01 +0000)]
Directly query controller for acceptlist size am: 1709788a73

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If45bd0c60e6cd9216138b8442bd9e066c21e11c3

3 years agoAdd API for tBTM_SEC_DEV_REC::has_ble am: 7a3122e52a
Chris Manton [Tue, 16 Feb 2021 22:01:42 +0000 (22:01 +0000)]
Add API for tBTM_SEC_DEV_REC::has_ble am: 7a3122e52a

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic22701a10d31971f5922275f30d551d406ef63ec

3 years agoReduce unneeded namespace resolution main/shim/acl am: 5fdab5b5c5
Chris Manton [Tue, 16 Feb 2021 22:01:39 +0000 (22:01 +0000)]
Reduce unneeded namespace resolution main/shim/acl am: 5fdab5b5c5

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I243bd3ea2bb399429e82112992e7569f691f608c

3 years agoIntroduce bta_test am: f02b313b7e
Chris Manton [Tue, 16 Feb 2021 22:01:36 +0000 (22:01 +0000)]
Introduce bta_test am: f02b313b7e

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9b44e0427f015d40b715a0e53055d997eb091b9c

3 years agoIntroduce bta/test mocks and fakes am: db6f7631cf
Chris Manton [Tue, 16 Feb 2021 22:01:32 +0000 (22:01 +0000)]
Introduce bta/test mocks and fakes am: db6f7631cf

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie7927e957b301b639746e5ed0fc56eb675dc7f50

3 years agoRemove unnecessary include bta/hh/bta_hh_act.cc::log am: ac903002a1
Chris Manton [Tue, 16 Feb 2021 22:01:28 +0000 (22:01 +0000)]
Remove unnecessary include bta/hh/bta_hh_act.cc::log am: ac903002a1

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I77c70e4761b0a608cc4874dd88ffb62fcf0b5ec9

3 years agoDeclare bta/dm/bta_dm_int::deinit am: ad212e5b8e
Chris Manton [Tue, 16 Feb 2021 22:01:25 +0000 (22:01 +0000)]
Declare bta/dm/bta_dm_int::deinit am: ad212e5b8e

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2ad322e3e80cc062ec52399b985981b4935a2c36

3 years agoRe-layout stack/acl/btm_acl::btm_remove_acl am: 5aec007a31
Chris Manton [Tue, 16 Feb 2021 22:01:21 +0000 (22:01 +0000)]
Re-layout stack/acl/btm_acl::btm_remove_acl am: 5aec007a31

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ief7c2327c1ceb95d467d78ffda433bef537491eb

3 years agobt_headless: Various updates am: 3ae680043f
Chris Manton [Tue, 16 Feb 2021 22:01:18 +0000 (22:01 +0000)]
bt_headless: Various updates am: 3ae680043f

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If1603adfd3efc35c8eb7a1ce6a4ade7a14dd0d6c

3 years agogd_acl: Connect gd acl shutdown am: e1b60a1217
Chris Manton [Tue, 16 Feb 2021 22:01:14 +0000 (22:01 +0000)]
gd_acl: Connect gd acl shutdown am: e1b60a1217

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1b19c4232c9acc7efb243595d3a9c1ca7e6f70c7

3 years agoRe-log bta/dm/bta_dm_act::bta_dm_disable_conn_down_timer_cback am: 38f64f9627
Chris Manton [Tue, 16 Feb 2021 22:01:08 +0000 (22:01 +0000)]
Re-log bta/dm/bta_dm_act::bta_dm_disable_conn_down_timer_cback am: 38f64f9627

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I27da97e6c106355aadf5aaa40cf1791b9655d791

3 years agoRe-log btif/src/btif_dm::BTIF_dm_disable am: c9978e41af
Chris Manton [Tue, 16 Feb 2021 22:01:04 +0000 (22:01 +0000)]
Re-log btif/src/btif_dm::BTIF_dm_disable am: c9978e41af

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I80aec7a56c96792d67bcc24924727610c3277899

3 years agoRe-log stack/avdt/avdt_api::AVDT_Connect am: d20f5ef3aa
Chris Manton [Tue, 16 Feb 2021 22:01:01 +0000 (22:01 +0000)]
Re-log stack/avdt/avdt_api::AVDT_Connect am: d20f5ef3aa

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7529f58ac46b28ac72cb6a2ae6634a7fb7cb0a5a

3 years agoRe-log stack/avdt/avdt_api::AVDT_DisconnectReq am: c499f12040
Chris Manton [Tue, 16 Feb 2021 22:00:56 +0000 (22:00 +0000)]
Re-log stack/avdt/avdt_api::AVDT_DisconnectReq am: c499f12040

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If49529ca69283a540fe7aafa75ed997a5b4e85a6

3 years agoEnum-ify stack/include/avdt_api::tAVDT_RESULT am: 204e013fde
Chris Manton [Tue, 16 Feb 2021 22:00:52 +0000 (22:00 +0000)]
Enum-ify stack/include/avdt_api::tAVDT_RESULT am: 204e013fde

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I63ceb12a39d2762593d6f7727382cedfe9991617

3 years agoRe-log l2c_link_hci_conn_comp am: 1dd70c4cc8
Chris Manton [Tue, 16 Feb 2021 22:00:05 +0000 (22:00 +0000)]
Re-log l2c_link_hci_conn_comp am: 1dd70c4cc8

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icec59a0029bbceafc7b78520157601abbba2ebd8

3 years agobtaa: introduce btaa module into gd
Michael Sun [Mon, 23 Nov 2020 05:58:48 +0000 (05:58 +0000)]
btaa: introduce btaa module into gd

Introduce the btaa module skeleton implementation in gd.

Tag: #feature
Bug: 172501038
Test: mmma -j system/bt
Change-Id: I7fa28e8ef5eb25ff08b96ab7b43a2526359450f8

3 years agoWipe cache when HID report cache isn't compatible with the current cache version.
Johanna Ye [Tue, 16 Feb 2021 13:10:55 +0000 (14:10 +0100)]
Wipe cache when HID report cache isn't compatible with the current cache version.

This is to fix a big triggered by the OTA from any previous version to S
due to the structure change of the cache report entries.

Also corrected minor typos in documentation.

Tag: #stability
Test: Bond with HID device, upgrade from Q to S, verify device is
working.
Bug: 178874105
Bug: 159868059

Change-Id: Ibbd5da90892a637ffe8ff09b2b98bfc9fe3fb0cd

3 years agoFix test for googletest upgrade
Haibo Huang [Tue, 9 Feb 2021 18:47:25 +0000 (10:47 -0800)]
Fix test for googletest upgrade

bluetooth::hci::Address conflicts with testing::Address. Move the whole
test out of testing namespace.

Tag: refactor
Test: build
Change-Id: I6015c426a80e1f2aeed9a7aea4856dec5bd36d16

3 years agoRemove unneeded func stack/btm/btm_ble_bgconn::btm_ble_acceptlist_init
Chris Manton [Thu, 11 Feb 2021 06:33:40 +0000 (22:33 -0800)]
Remove unneeded func stack/btm/btm_ble_bgconn::btm_ble_acceptlist_init

Towards meaningful code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: Ib4e759a47e947de205f680d31b25c8bb10a1f252

3 years agoRemove unneccesary API BTM_GetAcceptlistSize
Chris Manton [Thu, 11 Feb 2021 06:32:05 +0000 (22:32 -0800)]
Remove unneccesary API BTM_GetAcceptlistSize

Towards meaningful code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I4df37acc3f7bfd210e48d0a892624fbffeb19bbf

3 years agoFix for gd_acl le connections
Chris Manton [Tue, 16 Feb 2021 16:34:03 +0000 (08:34 -0800)]
Fix for gd_acl le connections

Bug: 173985410
Tag: #refactor
Test: gd/cert/run

Change-Id: I1040a6daced42b048c31382398b899157b235630

3 years agogd_acl: Add add/remove acceptlist
Chris Manton [Wed, 10 Feb 2021 02:49:18 +0000 (18:49 -0800)]
gd_acl: Add add/remove acceptlist

Also rename Accept/Ignore LeConnections

Bug: 173985410
Tag: #refactor
Test: gd/cert/run

Change-Id: I96c3d09bf86887f9fdff9fb09475c909f0045f02

3 years agoEnum-ify bta/include/bta_hh_api::tBTA_HH_STATUS
Chris Manton [Wed, 10 Feb 2021 21:02:15 +0000 (13:02 -0800)]
Enum-ify bta/include/bta_hh_api::tBTA_HH_STATUS

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: Ifb26c5df247705f6e2661a3c32ded112ded71aab

3 years agoRe-log stack/btm/btm_sec::btm_sec_is_a_bonded_dev
Chris Manton [Wed, 10 Feb 2021 02:50:06 +0000 (18:50 -0800)]
Re-log stack/btm/btm_sec::btm_sec_is_a_bonded_dev

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I56db3d0f6676102c40e6ad1361ea59277acfe6fe

3 years agoRe-log stack/btm/btm_ble_privacy::btm_ble_suspend_resolving_list_activity
Chris Manton [Wed, 10 Feb 2021 02:49:56 +0000 (18:49 -0800)]
Re-log stack/btm/btm_ble_privacy::btm_ble_suspend_resolving_list_activity

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I6086e0ac0a2487ce3b871d3cc117fbc2a858497c

3 years agoRe-log stack/btm/btm_ble_gap::btm_ble_update_mode_operation
Chris Manton [Wed, 10 Feb 2021 02:49:43 +0000 (18:49 -0800)]
Re-log stack/btm/btm_ble_gap::btm_ble_update_mode_operation

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I0b04060b0fa827f1ae0499858eac115fba12034c

3 years agoUse proper types tHCI_STATUS
Chris Manton [Wed, 10 Feb 2021 02:49:01 +0000 (18:49 -0800)]
Use proper types tHCI_STATUS

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I2ae7248a2503fad7ef22c08ca09b43fcbf877cbf

3 years agoRe-log stack/smp/smp_l2c::smp_connect_callback
Chris Manton [Wed, 10 Feb 2021 02:48:06 +0000 (18:48 -0800)]
Re-log stack/smp/smp_l2c::smp_connect_callback

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: Id6f73034d4ccdecc2679c9f25bbb380ed5070d18

3 years agogd_acl: Assert on paths when gd_acl enabled
Chris Manton [Tue, 9 Feb 2021 22:39:32 +0000 (14:39 -0800)]
gd_acl: Assert on paths when gd_acl enabled

Towards behaving code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I8947c15a840166ad61ec91607e915d9270ea2a5b

3 years agoRe-layout stack/btm/btm_ble_bgconn.cc
Chris Manton [Tue, 9 Feb 2021 22:39:12 +0000 (14:39 -0800)]
Re-layout stack/btm/btm_ble_bgconn.cc

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: Ia9f8c2fb14b15669b5a744ad5eaee45c1b955481

3 years agoRe-log stack/gatt/gatt_api::GATT_Connect
Chris Manton [Tue, 9 Feb 2021 22:39:07 +0000 (14:39 -0800)]
Re-log stack/gatt/gatt_api::GATT_Connect

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I49b368915fef7ef2c51c867cff05474874714757

3 years agoRe-log stack/smp/smp_l2c::smp_connect_callback
Chris Manton [Tue, 9 Feb 2021 17:27:24 +0000 (09:27 -0800)]
Re-log stack/smp/smp_l2c::smp_connect_callback

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I044aaf0bb09160ef6d4d1515b5a8444eaabd7434

3 years agoRe-log stack/gap/gap_ble::client_connect_cback
Chris Manton [Wed, 10 Feb 2021 18:06:32 +0000 (10:06 -0800)]
Re-log stack/gap/gap_ble::client_connect_cback

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I96161fef848f45b28883bce6df9467f14e9fec64

3 years agoRe-log bta/gatt/bta_gattc_act::bta_gattc_close
Chris Manton [Tue, 9 Feb 2021 17:25:20 +0000 (09:25 -0800)]
Re-log bta/gatt/bta_gattc_act::bta_gattc_close

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I26c11fde63a332b20bf7ea126bd42f0f8015d3e1

3 years agoGroup internally linked functions stack/btm/btm_ble_bgconn
Chris Manton [Tue, 9 Feb 2021 21:35:13 +0000 (13:35 -0800)]
Group internally linked functions stack/btm/btm_ble_bgconn

Also group API functions, inclusive language
and packet length checks.

Towards readable code

Bug: 173985410
Tag: #refactor
Test: gd/cert/run

Change-Id: Iace409d2ac69364a920cfb8b2994e5e7bb6f7f13

3 years agoDirectly query controller for acceptlist size
Chris Manton [Thu, 11 Feb 2021 06:24:00 +0000 (22:24 -0800)]
Directly query controller for acceptlist size

Towards meaningful code

Bug: 173985410
Tag: #refactor
Test: gd/cert/run

Change-Id: Id6852ba6ef916aa68731c4270259430e98b432d9

3 years agoAdd API for tBTM_SEC_DEV_REC::has_ble
Chris Manton [Fri, 12 Feb 2021 00:05:57 +0000 (16:05 -0800)]
Add API for tBTM_SEC_DEV_REC::has_ble

Bitmask or value ?

Bug: 173985410
Tag: #refactor
Test: gd/cert/run
Change-Id: I7ebe09e7e84fc368bb7aed53479f6741cd22bef7

3 years agoReduce unneeded namespace resolution main/shim/acl
Chris Manton [Thu, 11 Feb 2021 06:02:34 +0000 (22:02 -0800)]
Reduce unneeded namespace resolution main/shim/acl

Bug: 173985410
Tag: #refactor
Test: gd/cert/run

Change-Id: Ic0587e34be24597c4ed318459817ad68aced8ebc

3 years agoIntroduce bta_test
Chris Manton [Mon, 8 Feb 2021 04:27:05 +0000 (20:27 -0800)]
Introduce bta_test

Towards testable code

Bug: 176960731
Tag: #refactor
Test: gd/cert/run

Change-Id: I653ee9dcbb63fa0d9d52f8db17e498f8820fc2dc

3 years agoIntroduce bta/test mocks and fakes
Chris Manton [Mon, 8 Feb 2021 04:26:22 +0000 (20:26 -0800)]
Introduce bta/test mocks and fakes

Towards testable code

Bug: 176960731
Tag: #refactor
Test: gd/cert/run

Change-Id: I0527f4daf7d03d12a05975fa9fd01a06bd2105e5

3 years agoRemove unnecessary include bta/hh/bta_hh_act.cc::log
Chris Manton [Mon, 8 Feb 2021 04:27:40 +0000 (20:27 -0800)]
Remove unnecessary include bta/hh/bta_hh_act.cc::log

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I31086a13b9c7fae16df2087b2aff7eff813a0f37

3 years agoDeclare bta/dm/bta_dm_int::deinit
Chris Manton [Mon, 8 Feb 2021 04:27:52 +0000 (20:27 -0800)]
Declare bta/dm/bta_dm_int::deinit

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I93271880291135b652de8299c74413874c84e653

3 years agoRe-layout stack/acl/btm_acl::btm_remove_acl
Chris Manton [Fri, 5 Feb 2021 05:47:45 +0000 (21:47 -0800)]
Re-layout stack/acl/btm_acl::btm_remove_acl

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: Ieb9d1a0c66d45c7d500f88bcc33c355f05886ed6

3 years agobt_headless: Various updates
Chris Manton [Thu, 4 Feb 2021 21:10:04 +0000 (13:10 -0800)]
bt_headless: Various updates

Towards testable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I21a564e868df671881428b659cf0cc81d185f94b

3 years agogd_acl: Connect gd acl shutdown
Chris Manton [Fri, 5 Feb 2021 02:34:58 +0000 (18:34 -0800)]
gd_acl: Connect gd acl shutdown

Bug: 176960731
Tag: #refactor
Test: gd/cert/run

Change-Id: I12636d06b863617255a4266956c9252095c870ba

3 years agoRe-log bta/dm/bta_dm_act::bta_dm_disable_conn_down_timer_cback
Chris Manton [Fri, 5 Feb 2021 01:15:50 +0000 (17:15 -0800)]
Re-log bta/dm/bta_dm_act::bta_dm_disable_conn_down_timer_cback

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I44f957126b6d6a7760b27660c853a85b8258a0b6

3 years agoRe-log btif/src/btif_dm::BTIF_dm_disable
Chris Manton [Fri, 5 Feb 2021 01:15:40 +0000 (17:15 -0800)]
Re-log btif/src/btif_dm::BTIF_dm_disable

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I89d1bc8333b41357314560d402c6723aec21d717

3 years agoRe-log stack/avdt/avdt_api::AVDT_Connect
Chris Manton [Fri, 5 Feb 2021 00:11:40 +0000 (16:11 -0800)]
Re-log stack/avdt/avdt_api::AVDT_Connect

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: If6422d056e24e00a65d8ef09765dc7a01dc61019

3 years agoRe-log stack/avdt/avdt_api::AVDT_DisconnectReq
Chris Manton [Fri, 5 Feb 2021 00:11:23 +0000 (16:11 -0800)]
Re-log stack/avdt/avdt_api::AVDT_DisconnectReq

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I1c2cc57a9cb99dbc810372bdc2fd9e371418f3c1

3 years agoEnum-ify stack/include/avdt_api::tAVDT_RESULT
Chris Manton [Fri, 5 Feb 2021 00:10:35 +0000 (16:10 -0800)]
Enum-ify stack/include/avdt_api::tAVDT_RESULT

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: Icdb7fa8765ed2eb5ad13433d9653708e6915834d

3 years agoRe-log l2c_link_hci_conn_comp
Chris Manton [Thu, 4 Feb 2021 21:21:29 +0000 (13:21 -0800)]
Re-log l2c_link_hci_conn_comp

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: Ica3d22f8396437c708fea4411f5f6709df06c223