OSDN Git Service

android-x86/system-bt.git
3 years agoMerge changes Ib883ada4,Ie9d9fb20 am: 187177a86b am: 3bd318fdbe
Treehugger Robot [Thu, 22 Apr 2021 19:09:18 +0000 (19:09 +0000)]
Merge changes Ib883ada4,Ie9d9fb20 am: 187177a86b am: 3bd318fdbe

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

Change-Id: I385ddf7ab37808cfeb70f1254fd8662b920f9fc7

3 years agoMerge "HIDH: Initialize the ctrl_cid after trigger l2cap disconnect" am: 98daa4e13e...
Treehugger Robot [Thu, 22 Apr 2021 19:08:07 +0000 (19:08 +0000)]
Merge "HIDH: Initialize the ctrl_cid after trigger l2cap disconnect" am: 98daa4e13e am: 5a3fc715fc

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

Change-Id: I1fd33a1268141693d8f0253c0fd187eb9d6643e8

3 years agoMerge changes Ib883ada4,Ie9d9fb20 am: 187177a86b
Treehugger Robot [Thu, 22 Apr 2021 19:05:17 +0000 (19:05 +0000)]
Merge changes Ib883ada4,Ie9d9fb20 am: 187177a86b

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

Change-Id: Ic63a9087e82c0980b0bfd2e0a5f175d5f5ddc67e

3 years agoMerge "HIDH: Initialize the ctrl_cid after trigger l2cap disconnect" am: 98daa4e13e
Treehugger Robot [Thu, 22 Apr 2021 18:51:51 +0000 (18:51 +0000)]
Merge "HIDH: Initialize the ctrl_cid after trigger l2cap disconnect" am: 98daa4e13e

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

Change-Id: Ie23e3c7ec5ffda70d484b2f7206f5e476d79d489

3 years agoMerge changes Ib883ada4,Ie9d9fb20
Treehugger Robot [Thu, 22 Apr 2021 17:39:34 +0000 (17:39 +0000)]
Merge changes Ib883ada4,Ie9d9fb20

* changes:
  GD: Add verbose logging to module start-up code
  GD Controller: Do not register events that are already registered in HCI

3 years agoGD: Add verbose logging to module start-up code
Jack He [Thu, 22 Apr 2021 05:32:57 +0000 (22:32 -0700)]
GD: Add verbose logging to module start-up code

Bug: 184608842
Test: make, start bluetooth
Tag: #gd-refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ib883ada4cd64d2adb37fdb00312ab581d7a4d50a

3 years agoMerge "HIDH: Initialize the ctrl_cid after trigger l2cap disconnect"
Treehugger Robot [Thu, 22 Apr 2021 17:36:35 +0000 (17:36 +0000)]
Merge "HIDH: Initialize the ctrl_cid after trigger l2cap disconnect"

3 years agodumpsys: Properly log classic/le ACL am: 1684e06a2d am: d30b5095de
Chris Manton [Thu, 22 Apr 2021 07:11:29 +0000 (07:11 +0000)]
dumpsys: Properly log classic/le ACL am: 1684e06a2d am: d30b5095de

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

Change-Id: If3be6eee168b355d348c2d519727e3e33f3e8741

3 years agodumpsys: Properly log classic/le ACL am: 1684e06a2d
Chris Manton [Thu, 22 Apr 2021 06:45:08 +0000 (06:45 +0000)]
dumpsys: Properly log classic/le ACL am: 1684e06a2d

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

Change-Id: Ida619b6fc34fbc83d8bf3e9e253a7b1f97197c1f

3 years agoGD Controller: Do not register events that are already registered in HCI
Jack He [Thu, 22 Apr 2021 04:49:13 +0000 (21:49 -0700)]
GD Controller: Do not register events that are already registered in HCI

Bug: 186069471
Test: make, enable BT, pair headset, listen to music, make calls
Tag: #gd-refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ie9d9fb20f0b442ed5c84edd5ef03e46be2370504

3 years agoMerge changes I32c92511,I1a3d841d,Ibc688eac am: 7085f57ead am: 292660eace
Treehugger Robot [Thu, 22 Apr 2021 04:51:52 +0000 (04:51 +0000)]
Merge changes I32c92511,I1a3d841d,Ibc688eac am: 7085f57ead am: 292660eace

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

Change-Id: Ie4e183736914254d9e0f1cdd41209bc331b76779

3 years agodumpsys: Properly log classic/le ACL
Chris Manton [Sun, 14 Mar 2021 16:51:53 +0000 (09:51 -0700)]
dumpsys: Properly log classic/le ACL

Toward loggable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I2abfb24cdcd174dc026d75f8d37d53abfa983266

3 years agoMerge changes I32c92511,I1a3d841d,Ibc688eac am: 7085f57ead
Treehugger Robot [Thu, 22 Apr 2021 04:30:12 +0000 (04:30 +0000)]
Merge changes I32c92511,I1a3d841d,Ibc688eac am: 7085f57ead

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

Change-Id: I58189b331ff7fa2c3b2cc48c791dee5287e49092

3 years agoPolish tBTM_SEC_DEV_REC::ToString am: a11ca353f6 am: 3c8fdc81ba
Chris Manton [Thu, 22 Apr 2021 04:15:13 +0000 (04:15 +0000)]
Polish tBTM_SEC_DEV_REC::ToString am: a11ca353f6 am: 3c8fdc81ba

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

Change-Id: I9a5e9ec41bd6f75967453831b6ddd75ff9f75b87

3 years agoMerge changes I32c92511,I1a3d841d,Ibc688eac
Treehugger Robot [Thu, 22 Apr 2021 04:12:44 +0000 (04:12 +0000)]
Merge changes I32c92511,I1a3d841d,Ibc688eac

* changes:
  legacy: Add HACK to set legacy SM4 from gd_acl
  gd: Re-introduce read remote supported features
  BTM_history: Add dev states to stack hid host profile

3 years agoPolish tBTM_SEC_DEV_REC::ToString am: a11ca353f6
Chris Manton [Thu, 22 Apr 2021 03:55:15 +0000 (03:55 +0000)]
Polish tBTM_SEC_DEV_REC::ToString am: a11ca353f6

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

Change-Id: Ie35d5e06db97edcd45d0053c8229632fc4014840

3 years agoStore remote lmp version in security record am: d1c0313cfd am: 5bf8dbda1c
Chris Manton [Thu, 22 Apr 2021 02:48:28 +0000 (02:48 +0000)]
Store remote lmp version in security record am: d1c0313cfd am: 5bf8dbda1c

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

Change-Id: I6f87a6218656a7b8925fc7415429f956f63f183d

3 years agoStore remote lmp version in security record am: d1c0313cfd
Chris Manton [Thu, 22 Apr 2021 02:26:16 +0000 (02:26 +0000)]
Store remote lmp version in security record am: d1c0313cfd

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

Change-Id: Ice0a44f1e8e7db11c40c496cf7b9dff586793534

3 years agoPolish tBTM_SEC_DEV_REC::ToString
Chris Manton [Sun, 14 Mar 2021 16:51:37 +0000 (09:51 -0700)]
Polish tBTM_SEC_DEV_REC::ToString

Toward loggable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I1e6e7a2ed45fd61da9b6020b3d09f1135e7c59d3

3 years agolegacy: Add HACK to set legacy SM4 from gd_acl
Chris Manton [Thu, 22 Apr 2021 01:14:35 +0000 (18:14 -0700)]
legacy: Add HACK to set legacy SM4 from gd_acl

Bug: 185967523
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I32c92511fadebf458175a7f8f210c4ec0e0d3c74

3 years agogd: Re-introduce read remote supported features
Chris Manton [Thu, 22 Apr 2021 00:36:09 +0000 (17:36 -0700)]
gd: Re-introduce read remote supported features

This command is very similar to the remote extended
features for page 0 and can cause confusion.  Broke out
into its own code path for clarity

Bug: 185967523
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I1a3d841d811b47c928521ac3422c13c0c69ea975

3 years agoBTM_history: Add dev states to stack hid host profile
Chris Manton [Sat, 17 Apr 2021 18:02:47 +0000 (11:02 -0700)]
BTM_history: Add dev states to stack hid host profile

Toward loggable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ibc688eacf75a8520fdd74dfef41b2794668bbfa4

3 years agoRe-log btif_update_remote_version_property am: 923da51695 am: 8d37805ba8
Chris Manton [Thu, 22 Apr 2021 00:07:03 +0000 (00:07 +0000)]
Re-log btif_update_remote_version_property am: 923da51695 am: 8d37805ba8

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

Change-Id: Ibf26c88f57c2e43a18bbe7b0ba822b5441d721c5

3 years agoRe-log btif_update_remote_version_property am: 923da51695
Chris Manton [Wed, 21 Apr 2021 23:47:55 +0000 (23:47 +0000)]
Re-log btif_update_remote_version_property am: 923da51695

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

Change-Id: I7ea26e83875e48009a8bf2270f9cff58f54dd85b

3 years agoStore remote lmp version in security record
Chris Manton [Fri, 12 Mar 2021 06:30:46 +0000 (22:30 -0800)]
Store remote lmp version in security record

Toward loggable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I928bcb52c65b5c9a3cbfd67d48a3465b7e14959f

3 years agoRe-log btif_update_remote_version_property
Chris Manton [Fri, 12 Mar 2021 01:57:21 +0000 (17:57 -0800)]
Re-log btif_update_remote_version_property

Toward readable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I1fab5db45be15edaae5a6a68f5661347fe80cf02

3 years agoRemove mutable param input bta/hh/bta_hh_act am: 89cb12486d am: bd3285e810
Chris Manton [Wed, 21 Apr 2021 20:31:43 +0000 (20:31 +0000)]
Remove mutable param input bta/hh/bta_hh_act am: 89cb12486d am: bd3285e810

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

Change-Id: I2b630e0d26c20188bbd5c4030b892453984e4932

3 years agoRemove mutable param input bta/hh/bta_hh_act am: 89cb12486d
Chris Manton [Wed, 21 Apr 2021 20:08:26 +0000 (20:08 +0000)]
Remove mutable param input bta/hh/bta_hh_act am: 89cb12486d

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

Change-Id: I0bb2448a6ab04f278d9a664cac30876bab0afbc4

3 years agoMerge changes Iac4351a2,Ib8fadd80 am: 1b14f2df06 am: 66188bce23
Treehugger Robot [Wed, 21 Apr 2021 19:00:55 +0000 (19:00 +0000)]
Merge changes Iac4351a2,Ib8fadd80 am: 1b14f2df06 am: 66188bce23

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

Change-Id: I2c72521c2d7940f3fa8497a2c0af511de114da5f

3 years agoMerge changes Iac4351a2,Ib8fadd80 am: 1b14f2df06
Treehugger Robot [Wed, 21 Apr 2021 18:35:04 +0000 (18:35 +0000)]
Merge changes Iac4351a2,Ib8fadd80 am: 1b14f2df06

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

Change-Id: Ia8b490c6aa460ca431e0b65052f9f7c35e8ba211

3 years agoRemove mutable param input bta/hh/bta_hh_act
Chris Manton [Wed, 17 Mar 2021 03:05:03 +0000 (20:05 -0700)]
Remove mutable param input bta/hh/bta_hh_act

Please do not modify the parameters

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

Change-Id: I63a2d921aef40f897058a4a826f9732d6f3d72ae

3 years agoMerge changes Iac4351a2,Ib8fadd80
Treehugger Robot [Wed, 21 Apr 2021 18:01:04 +0000 (18:01 +0000)]
Merge changes Iac4351a2,Ib8fadd80

* changes:
  Demote log message to informational LeAddressManagerCallback
  shim: Add sync at completion connection test

3 years agogd hci: Check extended feature supported when read remote feature complete am: cbadf2...
Chienyuan [Wed, 21 Apr 2021 17:28:51 +0000 (17:28 +0000)]
gd hci: Check extended feature supported when read remote feature complete am: cbadf293bd am: 14e39c0f6e

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

Change-Id: I1029bf23dea74b34c67b8010b34524aa3c43254c

3 years agogd hci: Check extended feature supported when read remote feature complete am: cbadf293bd
Chienyuan [Wed, 21 Apr 2021 17:01:55 +0000 (17:01 +0000)]
gd hci: Check extended feature supported when read remote feature complete am: cbadf293bd

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

Change-Id: I6e6cc54019f415056dbfff947d6bb6ce64187c33

3 years agoDemote log message to informational LeAddressManagerCallback
Chris Manton [Fri, 12 Mar 2021 01:56:57 +0000 (17:56 -0800)]
Demote log message to informational LeAddressManagerCallback

It is normal for multiple handlers to invoke upon receipt
of this event.

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Iac4351a21883bf991c43885ae4bab473681ad1cc

3 years agoshim: Add sync at completion connection test
Chris Manton [Mon, 19 Apr 2021 15:29:39 +0000 (08:29 -0700)]
shim: Add sync at completion connection test

Bug: 181991662
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ib8fadd805da65d24be6dc590ecdb0f4978341ffc

3 years agoMerge "gd Scanning: Ignore non-anonymous advertising report with empty address" am...
Treehugger Robot [Wed, 21 Apr 2021 14:07:14 +0000 (14:07 +0000)]
Merge "gd Scanning: Ignore non-anonymous advertising report with empty address" am: ce2a6aa66b am: 93c8c27889

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

Change-Id: I2b093102304589de1a00feea24af726d864d5e14

3 years agoMerge "gd Scanning: Ignore non-anonymous advertising report with empty address" am...
Treehugger Robot [Wed, 21 Apr 2021 13:43:58 +0000 (13:43 +0000)]
Merge "gd Scanning: Ignore non-anonymous advertising report with empty address" am: ce2a6aa66b

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

Change-Id: If213df1d8634443abf538e385a10347840681062

3 years agogd hci: Check extended feature supported when read remote feature complete
Chienyuan [Wed, 21 Apr 2021 13:37:19 +0000 (21:37 +0800)]
gd hci: Check extended feature supported when read remote feature complete

Tag: #gd-refactor
Bug: 185972929
Test: gd/cert/run
Change-Id: Id8bbb197694e2e68211968c46fe556062a60f31c

3 years agoMerge "gd Scanning: Ignore non-anonymous advertising report with empty address"
Treehugger Robot [Wed, 21 Apr 2021 13:27:21 +0000 (13:27 +0000)]
Merge "gd Scanning: Ignore non-anonymous advertising report with empty address"

3 years agogd Scanning: Ignore non-anonymous advertising report with empty address
Chienyuan [Tue, 20 Apr 2021 11:50:53 +0000 (19:50 +0800)]
gd Scanning: Ignore non-anonymous advertising report with empty address

Tag: #gd-refactor
Bug: 185793671
Test: gd/cert/run
Change-Id: I56d671aa2726db64ae6e34bc8b32bc5461ae3609

3 years agoHIDH: Initialize the ctrl_cid after trigger l2cap disconnect
weichinweng [Wed, 21 Apr 2021 07:42:27 +0000 (15:42 +0800)]
HIDH: Initialize the ctrl_cid after trigger l2cap disconnect

Since the ctrl_cid doesn't initialize, the HIDH sm can't initialize.
Next time, can't correctly trigger connect and handle the ctrl_cid
connect request.

Bug: 184128916
Test: compile && disconnect/reconnect HID device
Tag: #feature
Change-Id: I7bafe8728726d3df1d0bc58c8bc5224260042365

3 years agoAlign bt_transport_text syntactically with legacy am: a8b544ac48 am: 32bef90b2b
Chris Manton [Wed, 21 Apr 2021 07:06:02 +0000 (07:06 +0000)]
Align bt_transport_text syntactically with legacy am: a8b544ac48 am: 32bef90b2b

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

Change-Id: I98b6c99d825104f39606fae37c6a23aa8aa32681

3 years agoEnum-ify stack/l2cap/l2c_int::tL2CEVT am: 54d3ad42ba am: 7a3a77d859
Chris Manton [Wed, 21 Apr 2021 07:05:58 +0000 (07:05 +0000)]
Enum-ify stack/l2cap/l2c_int::tL2CEVT am: 54d3ad42ba am: 7a3a77d859

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

Change-Id: Iacff8275fc2473e6f9c77232b2efe6ccd549b78f

3 years agoAlign bt_transport_text syntactically with legacy am: a8b544ac48
Chris Manton [Wed, 21 Apr 2021 06:44:26 +0000 (06:44 +0000)]
Align bt_transport_text syntactically with legacy am: a8b544ac48

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

Change-Id: I9e8f18c3a7aa4ed24027c45b71068579ce059c28

3 years agoEnum-ify stack/l2cap/l2c_int::tL2CEVT am: 54d3ad42ba
Chris Manton [Wed, 21 Apr 2021 06:43:36 +0000 (06:43 +0000)]
Enum-ify stack/l2cap/l2c_int::tL2CEVT am: 54d3ad42ba

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

Change-Id: I23233559c42050dc72cd50baa54977b40b1fed7c

3 years agoAlign bt_transport_text syntactically with legacy
Chris Manton [Sun, 14 Mar 2021 16:50:25 +0000 (09:50 -0700)]
Align bt_transport_text syntactically with legacy

Also disambiguate from identical call
service/logging_helpers.h

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I75f25dcffb799879ab8f53e3cecba8bc573b5c16

3 years agoEnum-ify stack/l2cap/l2c_int::tL2CEVT
Chris Manton [Tue, 16 Mar 2021 02:40:25 +0000 (19:40 -0700)]
Enum-ify stack/l2cap/l2c_int::tL2CEVT

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I5b890c27aa183b183800806e012383d66ee27fd0

3 years agolegacy: Re-log btif/src/btif_hh::bte_hh_evt am: 32d5babf6e am: 4890f295fa
Chris Manton [Wed, 21 Apr 2021 04:06:29 +0000 (04:06 +0000)]
legacy: Re-log btif/src/btif_hh::bte_hh_evt am: 32d5babf6e am: 4890f295fa

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

Change-Id: I4fcc47c7cf57b23d03efdd44a06dd8538f7e25a5

3 years agolegacy: Re-log btif/src/btif_hh::bte_hh_evt am: 32d5babf6e
Chris Manton [Wed, 21 Apr 2021 03:41:38 +0000 (03:41 +0000)]
legacy: Re-log btif/src/btif_hh::bte_hh_evt am: 32d5babf6e

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

Change-Id: Icd7d6e40536b0c56ac4791925a33813294528375

3 years agoReplace BT_HDR => BT_HDR_RIGID am: bcaa36df77 am: b77dac132b
Chris Manton [Wed, 21 Apr 2021 02:23:44 +0000 (02:23 +0000)]
Replace BT_HDR => BT_HDR_RIGID am: bcaa36df77 am: b77dac132b

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

Change-Id: I48e2dad1b8371012ccb1d55d7d2683ca6751cfa3

3 years agoRemove unused flags am: 43838d7693 am: a36f2d9c48
Zach Johnson [Wed, 21 Apr 2021 02:23:42 +0000 (02:23 +0000)]
Remove unused flags am: 43838d7693 am: a36f2d9c48

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

Change-Id: I57e004aaa0606d4668433702b75a069165580cf3

3 years agoReplace BT_HDR => BT_HDR_RIGID am: bcaa36df77
Chris Manton [Wed, 21 Apr 2021 02:05:21 +0000 (02:05 +0000)]
Replace BT_HDR => BT_HDR_RIGID am: bcaa36df77

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

Change-Id: Ib4c9a850df7eb450edadc78e2abb727708d5fcb9

3 years agoRemove unused flags am: 43838d7693
Zach Johnson [Wed, 21 Apr 2021 02:05:14 +0000 (02:05 +0000)]
Remove unused flags am: 43838d7693

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

Change-Id: Id7c029b3beb6c5bd779df1b02662399f07b9fc0b

3 years agolegacy: Re-log btif/src/btif_hh::bte_hh_evt
Chris Manton [Sun, 18 Apr 2021 06:24:47 +0000 (23:24 -0700)]
legacy: Re-log btif/src/btif_hh::bte_hh_evt

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ia0203bc1b05687d6d701a3ccef7e40a51ee30f79

3 years agoReplace BT_HDR => BT_HDR_RIGID
Chris Manton [Sat, 6 Mar 2021 23:35:36 +0000 (15:35 -0800)]
Replace BT_HDR => BT_HDR_RIGID

Toward structurally sound code

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

Change-Id: Ib6569c0c19c7f1e6f4b9e9c1abc27e30d1e33fbf

3 years agoRemove unused flags
Zach Johnson [Fri, 21 Aug 2020 17:43:01 +0000 (10:43 -0700)]
Remove unused flags

nobody needs this

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I1dc37a831f0faf92990ec5e83c2759dedce2551b

3 years agoshim: Const-ify helper translations am: 1b26b83a12 am: ea514816b0
Chris Manton [Tue, 20 Apr 2021 20:44:00 +0000 (20:44 +0000)]
shim: Const-ify helper translations am: 1b26b83a12 am: ea514816b0

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

Change-Id: I2d0f40bbc3ad347e38e7fe7748356e1f1dcf034f

3 years agolegacy: Remove unused var stack/hid/hidh_conn am: adbb8f3946 am: c10ff9175b
Chris Manton [Tue, 20 Apr 2021 20:43:58 +0000 (20:43 +0000)]
legacy: Remove unused var stack/hid/hidh_conn am: adbb8f3946 am: c10ff9175b

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

Change-Id: Ie0156a357ab7ec2293f035563a66e3ee7e7018ef

3 years agolegacy: Use stack/hid/hid_conn::tHID_CONN_STATE am: 04d4293d88 am: 3f4eb32c54
Chris Manton [Tue, 20 Apr 2021 20:43:57 +0000 (20:43 +0000)]
legacy: Use stack/hid/hid_conn::tHID_CONN_STATE am: 04d4293d88 am: 3f4eb32c54

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

Change-Id: Id6aeb8f25cabb9b7a45842361e5eab12c0b78fca

3 years agolegacy: Add stack/hid/hid_conn::hid_conn_state_text am: d256e324fa am: 8d0ddb0fce
Chris Manton [Tue, 20 Apr 2021 20:43:56 +0000 (20:43 +0000)]
legacy: Add stack/hid/hid_conn::hid_conn_state_text am: d256e324fa am: 8d0ddb0fce

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

Change-Id: I2c7e2178fd201cfdf284060a83793e40557f7d64

3 years agolegacy: Enum-ify stack/hid/hid_conn::tHID_CONN_STATE am: 3949ffa806 am: 96fddf5984
Chris Manton [Tue, 20 Apr 2021 20:43:52 +0000 (20:43 +0000)]
legacy: Enum-ify stack/hid/hid_conn::tHID_CONN_STATE am: 3949ffa806 am: 96fddf5984

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

Change-Id: Ifefcb7dfd15c1eafd7092fedbdce618cba27e608

3 years agoshim: Const-ify helper translations am: 1b26b83a12
Chris Manton [Tue, 20 Apr 2021 20:26:48 +0000 (20:26 +0000)]
shim: Const-ify helper translations am: 1b26b83a12

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

Change-Id: I8c4d306984f91c07bd168808c08748e88f7a5b8c

3 years agolegacy: Remove unused var stack/hid/hidh_conn am: adbb8f3946
Chris Manton [Tue, 20 Apr 2021 20:26:46 +0000 (20:26 +0000)]
legacy: Remove unused var stack/hid/hidh_conn am: adbb8f3946

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

Change-Id: I34b630b6155306a4f6b4f4525fb664dfc1f9fe00

3 years agolegacy: Use stack/hid/hid_conn::tHID_CONN_STATE am: 04d4293d88
Chris Manton [Tue, 20 Apr 2021 20:26:43 +0000 (20:26 +0000)]
legacy: Use stack/hid/hid_conn::tHID_CONN_STATE am: 04d4293d88

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

Change-Id: I0bc4f2295cdc00b103a5e262d1be40392f0ddff5

3 years agolegacy: Add stack/hid/hid_conn::hid_conn_state_text am: d256e324fa
Chris Manton [Tue, 20 Apr 2021 20:26:41 +0000 (20:26 +0000)]
legacy: Add stack/hid/hid_conn::hid_conn_state_text am: d256e324fa

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

Change-Id: I5c186c9bd52fc6112f26a00bbf460b87a5ed5b65

3 years agolegacy: Enum-ify stack/hid/hid_conn::tHID_CONN_STATE am: 3949ffa806
Chris Manton [Tue, 20 Apr 2021 20:25:41 +0000 (20:25 +0000)]
legacy: Enum-ify stack/hid/hid_conn::tHID_CONN_STATE am: 3949ffa806

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

Change-Id: I223e7a87940e9cf4dc5e8db200e7dec3d6573fc8

3 years agoRemove useless typedefs am: c5d87963f8 am: 6fc0edb3b2
Chris Manton [Tue, 20 Apr 2021 17:44:16 +0000 (17:44 +0000)]
Remove useless typedefs am: c5d87963f8 am: 6fc0edb3b2

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

Change-Id: Id193d5f3cf117b3818d690ee6782d369f696d6be

3 years agoRe-log btm_sec_connected am: f5410abaa3 am: 31a303dd82
Chris Manton [Tue, 20 Apr 2021 17:44:15 +0000 (17:44 +0000)]
Re-log btm_sec_connected am: f5410abaa3 am: 31a303dd82

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

Change-Id: I7ff5f19cc6ea0f959f64b28a63b1ea87cc50a86f

3 years agoRemove #def BTA_HH_DEBUG am: dcaf63b2ee am: 52d81686d5
Chris Manton [Tue, 20 Apr 2021 17:44:14 +0000 (17:44 +0000)]
Remove #def BTA_HH_DEBUG am: dcaf63b2ee am: 52d81686d5

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

Change-Id: I92f6279b54f3ebe17db9e85ff67973c3f83c2af3

3 years agoRe-log acl_send_data_packet_br_edr am: 682bcc9978 am: b7d838135b
Chris Manton [Tue, 20 Apr 2021 17:44:13 +0000 (17:44 +0000)]
Re-log acl_send_data_packet_br_edr am: 682bcc9978 am: b7d838135b

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

Change-Id: If52cbaeaf1c16029a4ccec8801b22b8e733ffc8c

3 years agoPoint BtmStatus to tBTM_STATUS am: d0b2e029c7 am: 844e19a387
Chris Manton [Tue, 20 Apr 2021 17:44:11 +0000 (17:44 +0000)]
Point BtmStatus to tBTM_STATUS am: d0b2e029c7 am: 844e19a387

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

Change-Id: I0c3e7144c4cef876559a21c025f07af1b0036741

3 years agoRemove useless typedefs am: c5d87963f8
Chris Manton [Tue, 20 Apr 2021 17:12:12 +0000 (17:12 +0000)]
Remove useless typedefs am: c5d87963f8

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

Change-Id: I2c0f6faf2ebf761751b0ddaa6425e0dbfa331f8d

3 years agoRe-log btm_sec_connected am: f5410abaa3
Chris Manton [Tue, 20 Apr 2021 17:12:10 +0000 (17:12 +0000)]
Re-log btm_sec_connected am: f5410abaa3

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

Change-Id: I0ef1a48e6bb192f6ddcc02c480049c510c50d3e1

3 years agoRemove #def BTA_HH_DEBUG am: dcaf63b2ee
Chris Manton [Tue, 20 Apr 2021 17:12:08 +0000 (17:12 +0000)]
Remove #def BTA_HH_DEBUG am: dcaf63b2ee

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

Change-Id: I82d7f347a47c2023842e5ee63d0faaf787d81d5d

3 years agoRe-log acl_send_data_packet_br_edr am: 682bcc9978
Chris Manton [Tue, 20 Apr 2021 17:12:05 +0000 (17:12 +0000)]
Re-log acl_send_data_packet_br_edr am: 682bcc9978

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

Change-Id: I7e48b703a5e54d1d04c15f5d327a1604129c7dde

3 years agoPoint BtmStatus to tBTM_STATUS am: d0b2e029c7
Chris Manton [Tue, 20 Apr 2021 17:11:22 +0000 (17:11 +0000)]
Point BtmStatus to tBTM_STATUS am: d0b2e029c7

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

Change-Id: I59587f9b65f6912c4b93cf5e1b4ce774e5f11db6

3 years agoAdd stack/include/btm_status helpers am: 54077ef2b1 am: c54e7cf0d1
Chris Manton [Tue, 20 Apr 2021 08:00:46 +0000 (08:00 +0000)]
Add stack/include/btm_status helpers am: 54077ef2b1 am: c54e7cf0d1

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

Change-Id: I56dae0a371ef39c8ac81854776cf9e29de3fda91

3 years agoAdd stack/include/btm_status helpers am: 54077ef2b1
Chris Manton [Tue, 20 Apr 2021 07:27:50 +0000 (07:27 +0000)]
Add stack/include/btm_status helpers am: 54077ef2b1

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

Change-Id: I0c608f07ea15e3645187a8f21fa271eb5bf05a5f

3 years agoMerge changes Iac5bc982,I90c66a3b,I4ed5973b,I5173b895,I28420a70, ... am: b651caec43...
Treehugger Robot [Tue, 20 Apr 2021 03:31:49 +0000 (03:31 +0000)]
Merge changes Iac5bc982,I90c66a3b,I4ed5973b,I5173b895,I28420a70, ... am: b651caec43 am: 84267130c7

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

Change-Id: I527743711e5cd4e30ab5fe8275a63b86a72a86c9

3 years agoshim: Const-ify helper translations
Chris Manton [Sun, 18 Apr 2021 06:23:04 +0000 (23:23 -0700)]
shim: Const-ify helper translations

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I7e95481a762fce8afd3111c497784dc97d4eae13

3 years agolegacy: Remove unused var stack/hid/hidh_conn
Chris Manton [Sat, 17 Apr 2021 18:02:35 +0000 (11:02 -0700)]
legacy: Remove unused var stack/hid/hidh_conn

Toward meaningful code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I8837a66dcba4ab160fc152319b9eb71f27a61045

3 years agolegacy: Use stack/hid/hid_conn::tHID_CONN_STATE
Chris Manton [Sat, 17 Apr 2021 17:35:31 +0000 (10:35 -0700)]
legacy: Use stack/hid/hid_conn::tHID_CONN_STATE

Toward readable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I8984eb536a7241758e5276bd26aaab4bd02b97ac

3 years agolegacy: Add stack/hid/hid_conn::hid_conn_state_text
Chris Manton [Sat, 17 Apr 2021 17:33:23 +0000 (10:33 -0700)]
legacy: Add stack/hid/hid_conn::hid_conn_state_text

Toward loggable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I95495eb823cd4b01df96b48773ede6818d52b301

3 years agolegacy: Enum-ify stack/hid/hid_conn::tHID_CONN_STATE
Chris Manton [Sat, 17 Apr 2021 17:27:21 +0000 (10:27 -0700)]
legacy: Enum-ify stack/hid/hid_conn::tHID_CONN_STATE

Toward readable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I2869eb18c858b724a34d234ea67c0246d494d5f7

3 years agoRemove useless typedefs
Chris Manton [Tue, 16 Mar 2021 00:14:29 +0000 (17:14 -0700)]
Remove useless typedefs

Toward meaningful code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I5d96ba04a4dea271488fc59b53558c775a315452

3 years agoRe-log btm_sec_connected
Chris Manton [Fri, 12 Mar 2021 01:27:24 +0000 (17:27 -0800)]
Re-log btm_sec_connected

Toward loggable code

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

Change-Id: If38627c7034b88ddbd7306d9e9d0dc8c07f9ba9e

3 years agoRemove #def BTA_HH_DEBUG
Chris Manton [Tue, 16 Mar 2021 01:32:58 +0000 (18:32 -0700)]
Remove #def BTA_HH_DEBUG

Toward loggable code

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

Change-Id: I3daf1d4bb8e7ec37828f6eb589b878215f769635

3 years agoRe-log acl_send_data_packet_br_edr
Chris Manton [Fri, 12 Mar 2021 01:27:38 +0000 (17:27 -0800)]
Re-log acl_send_data_packet_br_edr

Toward loggable code

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

Change-Id: I0310f9e143fa1b1bec60efb113025000112d6fe6

3 years agoPoint BtmStatus to tBTM_STATUS
Chris Manton [Mon, 1 Mar 2021 18:33:43 +0000 (10:33 -0800)]
Point BtmStatus to tBTM_STATUS

Towards converging code

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

Change-Id: Id2c30a0deb41bb6cd1dd55099c17924e80e88335

3 years agoAdd stack/include/btm_status helpers
Chris Manton [Mon, 1 Mar 2021 18:32:04 +0000 (10:32 -0800)]
Add stack/include/btm_status helpers

Toward reliable code

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

Change-Id: If8a990740ea4446df2c9293d6f9342dc0e316f39

3 years agoMerge changes Iac5bc982,I90c66a3b,I4ed5973b,I5173b895,I28420a70, ... am: b651caec43
Treehugger Robot [Tue, 20 Apr 2021 03:12:03 +0000 (03:12 +0000)]
Merge changes Iac5bc982,I90c66a3b,I4ed5973b,I5173b895,I28420a70, ... am: b651caec43

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

Change-Id: I439a6d16dd9a308dbce8e501b34bdd38d837abdc

3 years agoMerge changes Iac5bc982,I90c66a3b,I4ed5973b,I5173b895,I28420a70, ...
Treehugger Robot [Tue, 20 Apr 2021 02:34:17 +0000 (02:34 +0000)]
Merge changes Iac5bc982,I90c66a3b,I4ed5973b,I5173b895,I28420a70, ...

* changes:
  legacy: Move BTM_SEC_ #defs to compilation unit
  legacy: Re-log stack/smp/smp_utils::smp_proc_pairing_cmpl
  legacy: Re-log stack/smp/smp_utils::smp_send_cmd
  legacy: Add stack/include/smp_api_types::smp_opcode_text
  legacy: Use proper types tSDP_STATUS
  shim: Add default for HCI_STATUS helper
  Use proper types tSDP_STATUS

3 years agolegacy: Move BTM_SEC_ #defs to compilation unit
Chris Manton [Fri, 16 Apr 2021 17:50:29 +0000 (10:50 -0700)]
legacy: Move BTM_SEC_ #defs to compilation unit

Toward modularized code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Iac5bc9821127bc95d71384eb2a02555540ddb0dc

3 years agolegacy: Re-log stack/smp/smp_utils::smp_proc_pairing_cmpl
Chris Manton [Fri, 16 Apr 2021 17:13:33 +0000 (10:13 -0700)]
legacy: Re-log stack/smp/smp_utils::smp_proc_pairing_cmpl

Toward loggable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I90c66a3b676d3ee4c694e0cb9751d1dbc53c34b3

3 years agolegacy: Re-log stack/smp/smp_utils::smp_send_cmd
Chris Manton [Fri, 16 Apr 2021 16:55:51 +0000 (09:55 -0700)]
legacy: Re-log stack/smp/smp_utils::smp_send_cmd

Toward loggable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I4ed5973b81ad0691e7f85cca732650d0d5c2f225

3 years agolegacy: Add stack/include/smp_api_types::smp_opcode_text
Chris Manton [Fri, 16 Apr 2021 16:52:19 +0000 (09:52 -0700)]
legacy: Add stack/include/smp_api_types::smp_opcode_text

Toward loggable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I5173b895f0dba0637a5985dbae6e94038fe65ff9

3 years agolegacy: Use proper types tSDP_STATUS
Chris Manton [Mon, 19 Apr 2021 02:32:53 +0000 (19:32 -0700)]
legacy: Use proper types tSDP_STATUS

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I28420a70fca3eacdaf3a0e19ab2360324d26c317

3 years agoshim: Add default for HCI_STATUS helper
Chris Manton [Sun, 18 Apr 2021 16:34:58 +0000 (09:34 -0700)]
shim: Add default for HCI_STATUS helper

Bug: 185730737
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I1681f65cfb3aa3cdfe38a1de987bf0aaf62d6c99

3 years agoMerge "HCI: Warn on unhandled events" am: 0c0303dfd8 am: f7ee7aeb9a
Treehugger Robot [Mon, 19 Apr 2021 22:18:52 +0000 (22:18 +0000)]
Merge "HCI: Warn on unhandled events" am: 0c0303dfd8 am: f7ee7aeb9a

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

Change-Id: Ia408b0880f12ad001f34256f736474cf3c90ca47