OSDN Git Service

android-x86/system-bt.git
3 years agoEnum-ify stack/gatt::tGATT_SEC_ACTION am: 9948dd3af7 am: 2c4f0e59a0 am: 00f60a1b6d
Chris Manton [Tue, 4 May 2021 17:13:58 +0000 (17:13 +0000)]
Enum-ify stack/gatt::tGATT_SEC_ACTION am: 9948dd3af7 am: 2c4f0e59a0 am: 00f60a1b6d

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

Change-Id: Iac6b291ea1537c410fab72110597803b70360b77

3 years agoRemove unused field stack/avct/avct_int::ch_flags am: ca87a30723 am: 4fafb22111 am...
Chris Manton [Tue, 4 May 2021 17:13:56 +0000 (17:13 +0000)]
Remove unused field stack/avct/avct_int::ch_flags am: ca87a30723 am: 4fafb22111 am: 9371b9e889

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

Change-Id: I2837113ae431b800f5fab5196774b5973b4f6267

3 years agoRe-log stack/include::gatt_disconnection_reason_text am: 3016a29448 am: 6869774a8f...
Chris Manton [Tue, 4 May 2021 17:13:53 +0000 (17:13 +0000)]
Re-log stack/include::gatt_disconnection_reason_text am: 3016a29448 am: 6869774a8f am: 1f6a20f9d7

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

Change-Id: Ibb6ea213257a44dfd9ede797aef7b4979f034e44

3 years agoEnum-ify stack/gatt::tGATT_SEC_ACTION am: 9948dd3af7 am: 2c4f0e59a0
Chris Manton [Tue, 4 May 2021 16:56:45 +0000 (16:56 +0000)]
Enum-ify stack/gatt::tGATT_SEC_ACTION am: 9948dd3af7 am: 2c4f0e59a0

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

Change-Id: I58f04b801b8c7aab6282c0fcfdd51616a6f246e0

3 years agoRemove unused field stack/avct/avct_int::ch_flags am: ca87a30723 am: 4fafb22111
Chris Manton [Tue, 4 May 2021 16:56:44 +0000 (16:56 +0000)]
Remove unused field stack/avct/avct_int::ch_flags am: ca87a30723 am: 4fafb22111

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

Change-Id: Ie56934a6c14570483a80a857349078618ff05ca3

3 years agoRe-log stack/include::gatt_disconnection_reason_text am: 3016a29448 am: 6869774a8f
Chris Manton [Tue, 4 May 2021 16:56:42 +0000 (16:56 +0000)]
Re-log stack/include::gatt_disconnection_reason_text am: 3016a29448 am: 6869774a8f

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

Change-Id: Ib1814df1284f87aa8ae77a844e78b3485a0928f2

3 years agoEnum-ify stack/gatt::tGATT_SEC_ACTION am: 9948dd3af7
Chris Manton [Tue, 4 May 2021 16:42:55 +0000 (16:42 +0000)]
Enum-ify stack/gatt::tGATT_SEC_ACTION am: 9948dd3af7

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

Change-Id: Iab07e00714b787eb9cdb9d80181da18416f450e2

3 years agoRemove unused field stack/avct/avct_int::ch_flags am: ca87a30723
Chris Manton [Tue, 4 May 2021 16:42:53 +0000 (16:42 +0000)]
Remove unused field stack/avct/avct_int::ch_flags am: ca87a30723

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

Change-Id: I6b7d8ee3405cd16502c0539cf221c5599fe5cbc6

3 years agoRe-log stack/include::gatt_disconnection_reason_text am: 3016a29448
Chris Manton [Tue, 4 May 2021 16:42:08 +0000 (16:42 +0000)]
Re-log stack/include::gatt_disconnection_reason_text am: 3016a29448

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

Change-Id: Ifb6c4c286b221d2f84489c83266be6e62010cc35

3 years agoMerge changes I37e29f23,I512714db,If8acc10e am: f22c4c97da am: 1f99d539fe am: fe99197718
Chris Manton [Tue, 4 May 2021 15:28:43 +0000 (15:28 +0000)]
Merge changes I37e29f23,I512714db,If8acc10e am: f22c4c97da am: 1f99d539fe am: fe99197718

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

Change-Id: I0669ae36e99b829ab23624ba31f1ba752c009804

3 years agoMerge changes I37e29f23,I512714db,If8acc10e am: f22c4c97da am: 1f99d539fe
Chris Manton [Tue, 4 May 2021 15:02:38 +0000 (15:02 +0000)]
Merge changes I37e29f23,I512714db,If8acc10e am: f22c4c97da am: 1f99d539fe

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

Change-Id: I4bde439fd9c38590d1bbd61e2be5b1e925adc0bb

3 years agoMerge changes I37e29f23,I512714db,If8acc10e am: f22c4c97da
Chris Manton [Tue, 4 May 2021 14:47:44 +0000 (14:47 +0000)]
Merge changes I37e29f23,I512714db,If8acc10e am: f22c4c97da

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

Change-Id: Ie97ca6b2d76c50c03113b6f1ef9e639a4d523dc1

3 years agoEnum-ify stack/gatt::tGATT_SEC_ACTION
Chris Manton [Mon, 3 May 2021 06:13:02 +0000 (23:13 -0700)]
Enum-ify stack/gatt::tGATT_SEC_ACTION

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

Change-Id: I57eb31e9e39f073380949dc9df4510a8adb81dfb

3 years agoRemove unused field stack/avct/avct_int::ch_flags
Chris Manton [Mon, 3 May 2021 16:04:32 +0000 (09:04 -0700)]
Remove unused field stack/avct/avct_int::ch_flags

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

Change-Id: I9c969c5ce65094e6236166adcb281bc728602f79

3 years agoRe-log stack/include::gatt_disconnection_reason_text
Chris Manton [Mon, 3 May 2021 05:02:24 +0000 (22:02 -0700)]
Re-log stack/include::gatt_disconnection_reason_text

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

Change-Id: I24b67cabd41737cddc431039289def92fd1f5e80

3 years agoMerge changes I37e29f23,I512714db,If8acc10e
Chris Manton [Tue, 4 May 2021 14:27:05 +0000 (14:27 +0000)]
Merge changes I37e29f23,I512714db,If8acc10e

* changes:
  dumpsys: Clarify dumpsys acceptlist sizing
  shim: Remove le from shadow accept list after connection
  Add include/hardware::bthh_connection_state_text

3 years agoMerge "btaa: fix static packed BtaaHciPacket struct" am: 670a667977 am: 31977c2a07...
Michael Sun [Tue, 4 May 2021 03:29:58 +0000 (03:29 +0000)]
Merge "btaa: fix static packed BtaaHciPacket struct" am: 670a667977 am: 31977c2a07 am: 36e134a3f0

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

Change-Id: I53e81d4d3307b317d413b429fe2476bf8fa6ceae

3 years agoMerge "Fix btaa activity attribution for Linux build" am: be4e9d5934 am: 0e0d8ac30e...
Abhishek Pandit-Subedi [Tue, 4 May 2021 03:29:23 +0000 (03:29 +0000)]
Merge "Fix btaa activity attribution for Linux build" am: be4e9d5934 am: 0e0d8ac30e am: 4e200deae6

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

Change-Id: Idd27c0d4bc4b00267f6e257fdb830b867df50a6d

3 years agoMerge "btaa: fix static packed BtaaHciPacket struct" am: 670a667977 am: 31977c2a07
Michael Sun [Tue, 4 May 2021 03:04:14 +0000 (03:04 +0000)]
Merge "btaa: fix static packed BtaaHciPacket struct" am: 670a667977 am: 31977c2a07

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

Change-Id: I0f298c846f0b7c123fc27c8a2b2fb4ca6303b5df

3 years agoMerge "Fix btaa activity attribution for Linux build" am: be4e9d5934 am: 0e0d8ac30e
Abhishek Pandit-Subedi [Tue, 4 May 2021 03:04:10 +0000 (03:04 +0000)]
Merge "Fix btaa activity attribution for Linux build" am: be4e9d5934 am: 0e0d8ac30e

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

Change-Id: Ibcf1853d94a3db8085ae05e24a33626fdf626742

3 years agoMerge "btaa: fix static packed BtaaHciPacket struct" am: 670a667977
Michael Sun [Tue, 4 May 2021 02:49:54 +0000 (02:49 +0000)]
Merge "btaa: fix static packed BtaaHciPacket struct" am: 670a667977

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

Change-Id: Iaa2309c5371be5122bbebbcd386626e2cdf30d78

3 years agoMerge "Fix btaa activity attribution for Linux build" am: be4e9d5934
Abhishek Pandit-Subedi [Tue, 4 May 2021 02:49:02 +0000 (02:49 +0000)]
Merge "Fix btaa activity attribution for Linux build" am: be4e9d5934

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

Change-Id: Iea64e3e6f5e5e0e2ccb7e9b41bc98a6c98158896

3 years agoMerge "btaa: fix static packed BtaaHciPacket struct"
Michael Sun [Tue, 4 May 2021 02:23:59 +0000 (02:23 +0000)]
Merge "btaa: fix static packed BtaaHciPacket struct"

3 years agoMerge "Fix btaa activity attribution for Linux build"
Abhishek Pandit-Subedi [Tue, 4 May 2021 01:56:08 +0000 (01:56 +0000)]
Merge "Fix btaa activity attribution for Linux build"

3 years agoMerge changes I35fefd23,Idaa677cb,If3a263d4 am: 78e895ba4d am: 5246f82b64 am: 552600acc5
Treehugger Robot [Tue, 4 May 2021 01:23:53 +0000 (01:23 +0000)]
Merge changes I35fefd23,Idaa677cb,If3a263d4 am: 78e895ba4d am: 5246f82b64 am: 552600acc5

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

Change-Id: I5a66b29482f0d829fc7e70edd9322d71a673139b

3 years agodumpsys: Clarify dumpsys acceptlist sizing
Chris Manton [Sun, 2 May 2021 21:08:11 +0000 (14:08 -0700)]
dumpsys: Clarify dumpsys acceptlist sizing

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

Change-Id: I37e29f239f48f3547a20f156886bd20c72253b7d

3 years agoshim: Remove le from shadow accept list after connection
Chris Manton [Sun, 2 May 2021 20:10:51 +0000 (13:10 -0700)]
shim: Remove le from shadow accept list after connection

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

Change-Id: I512714dbca70afd8fb169de6a6f161974a46c802

3 years agoAdd include/hardware::bthh_connection_state_text
Chris Manton [Thu, 29 Apr 2021 20:43:55 +0000 (13:43 -0700)]
Add include/hardware::bthh_connection_state_text

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: If8acc10eec65cb507ff292c81017e89cd6ccfb82

3 years agoMerge changes I35fefd23,Idaa677cb,If3a263d4 am: 78e895ba4d am: 5246f82b64
Treehugger Robot [Tue, 4 May 2021 01:01:32 +0000 (01:01 +0000)]
Merge changes I35fefd23,Idaa677cb,If3a263d4 am: 78e895ba4d am: 5246f82b64

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

Change-Id: Icdac8bb9b364d344d869d59a425e3468de37bdad

3 years agoMerge changes I35fefd23,Idaa677cb,If3a263d4 am: 78e895ba4d
Treehugger Robot [Tue, 4 May 2021 00:34:05 +0000 (00:34 +0000)]
Merge changes I35fefd23,Idaa677cb,If3a263d4 am: 78e895ba4d

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

Change-Id: Ie1d31cce815ef0a316e4b79afd0c49b69bbf0bf3

3 years agoMerge changes I35fefd23,Idaa677cb,If3a263d4
Treehugger Robot [Tue, 4 May 2021 00:15:42 +0000 (00:15 +0000)]
Merge changes I35fefd23,Idaa677cb,If3a263d4

* changes:
  Introduce stack_btu_test
  Remove bta/hh/bta_hh_le::BTA_HH_DEBUG
  Remove execute bit for source file bta/hh/bta_hh_le

3 years agobtaa: fix static packed BtaaHciPacket struct
Michael Sun [Mon, 3 May 2021 16:34:29 +0000 (16:34 +0000)]
btaa: fix static packed BtaaHciPacket struct

Update the BtaaHciPacket to not use packet pragma as it is platform
dependent. Further updated the HciProcessor to eliminate static
declarations.

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

Change-Id: I82bf7fcfa50c9911a8b7cdc69e0da68eb2b80a35

3 years agoFix btaa activity attribution for Linux build
Abhishek Pandit-Subedi [Mon, 3 May 2021 22:56:03 +0000 (22:56 +0000)]
Fix btaa activity attribution for Linux build

Missing entries in BUILD.gn and Linux stubs for dumpsys.

Bug: 187109138
Tag: #floss
Test: atest --host bluetooth_test_gd
Change-Id: I9d72a29d56d0461375cc9235894a384dae183fd6

3 years agoMerge "Replace base::MessageLoopCurrent* by base::Current*Thread" am: 4a5ae7d60e...
Treehugger Robot [Mon, 3 May 2021 22:32:13 +0000 (22:32 +0000)]
Merge "Replace base::MessageLoopCurrent* by base::Current*Thread" am: 4a5ae7d60e am: 22e232691b am: 91293f7c5a

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

Change-Id: I8c509b2dde488cf3b9159cd407b64840069841a2

3 years agoMerge "Replace base::MessageLoopCurrent* by base::Current*Thread" am: 4a5ae7d60e...
Treehugger Robot [Mon, 3 May 2021 22:15:02 +0000 (22:15 +0000)]
Merge "Replace base::MessageLoopCurrent* by base::Current*Thread" am: 4a5ae7d60e am: 22e232691b

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

Change-Id: Ifb328d556c67fd1d6dee1cfc49c8259efd303e8d

3 years agoMerge "Replace base::MessageLoopCurrent* by base::Current*Thread" am: 4a5ae7d60e
Treehugger Robot [Mon, 3 May 2021 21:51:08 +0000 (21:51 +0000)]
Merge "Replace base::MessageLoopCurrent* by base::Current*Thread" am: 4a5ae7d60e

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

Change-Id: I79b0f05a4e89df9e098f0fdc0348ba69293edd17

3 years agoMerge "Replace base::MessageLoopCurrent* by base::Current*Thread"
Treehugger Robot [Mon, 3 May 2021 21:35:53 +0000 (21:35 +0000)]
Merge "Replace base::MessageLoopCurrent* by base::Current*Thread"

3 years agoMerge "Handle connection failures on the control channel properly" am: 8c65349370...
Sal Savage [Mon, 3 May 2021 21:30:02 +0000 (21:30 +0000)]
Merge "Handle connection failures on the control channel properly" am: 8c65349370 am: a5cb92e7c9 am: ecb5a31654

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

Change-Id: Iafd10a5c8306ce3413196aba0ac62b641b73235a

3 years agoMerge "Add script to generate libchrome R91 version" am: 37d2b47789 am: 30aec5a0e1...
Sonny Sasaka [Mon, 3 May 2021 21:29:55 +0000 (21:29 +0000)]
Merge "Add script to generate libchrome R91 version" am: 37d2b47789 am: 30aec5a0e1 am: 016713f115

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

Change-Id: I5b74978a2bc300fc5227435a82574761e7663e15

3 years agoMerge "Handle connection failures on the control channel properly" am: 8c65349370...
Sal Savage [Mon, 3 May 2021 21:13:18 +0000 (21:13 +0000)]
Merge "Handle connection failures on the control channel properly" am: 8c65349370 am: a5cb92e7c9

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

Change-Id: I67f77802d007b6038b6245615b7a347456324b41

3 years agoMerge "Add script to generate libchrome R91 version" am: 37d2b47789 am: 30aec5a0e1
Sonny Sasaka [Mon, 3 May 2021 21:13:12 +0000 (21:13 +0000)]
Merge "Add script to generate libchrome R91 version" am: 37d2b47789 am: 30aec5a0e1

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

Change-Id: I7c5302257eb40a0fdd73434a7f4e121a16532203

3 years agoMerge "Handle connection failures on the control channel properly" am: 8c65349370
Sal Savage [Mon, 3 May 2021 20:49:32 +0000 (20:49 +0000)]
Merge "Handle connection failures on the control channel properly" am: 8c65349370

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

Change-Id: I240d1837118c778edbe825c019cedd7ae30bcdb6

3 years agoMerge "Add script to generate libchrome R91 version" am: 37d2b47789
Sonny Sasaka [Mon, 3 May 2021 20:48:33 +0000 (20:48 +0000)]
Merge "Add script to generate libchrome R91 version" am: 37d2b47789

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

Change-Id: Ib53269f3bd52162fff817c4cdaf210f6d7d814da

3 years agoMerge "Handle connection failures on the control channel properly"
Sal Savage [Mon, 3 May 2021 20:40:03 +0000 (20:40 +0000)]
Merge "Handle connection failures on the control channel properly"

3 years agoMerge "Add script to generate libchrome R91 version"
Sonny Sasaka [Mon, 3 May 2021 20:11:38 +0000 (20:11 +0000)]
Merge "Add script to generate libchrome R91 version"

3 years agoReplace base::MessageLoopCurrent* by base::Current*Thread
Abhishek Pandit-Subedi [Mon, 3 May 2021 19:56:20 +0000 (12:56 -0700)]
Replace base::MessageLoopCurrent* by base::Current*Thread

Make changes necessary for recent uprev of libchrome to r822064.

Bug: 187086497
Tag: #floss
Test: atest --host bluetooth_test_gd
Change-Id: I63f954c1ce5e0bf455e1da1e258d4a8b88fcfc9d

3 years agoMerge "OOB: Generate random for LE" am: 2d2e4a7603 am: a90ff5062b am: f91d13d6d6
Treehugger Robot [Mon, 3 May 2021 18:34:44 +0000 (18:34 +0000)]
Merge "OOB: Generate random for LE" am: 2d2e4a7603 am: a90ff5062b am: f91d13d6d6

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

Change-Id: I2d809d6914cd7b4ce6c01439d4da315bcd48e35a

3 years agoMerge "OOB: Generate random for LE" am: 2d2e4a7603 am: a90ff5062b
Treehugger Robot [Mon, 3 May 2021 18:17:54 +0000 (18:17 +0000)]
Merge "OOB: Generate random for LE" am: 2d2e4a7603 am: a90ff5062b

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

Change-Id: I73338a3dee1f56210fca516841dab27680dd8400

3 years agoMerge "OOB: Generate random for LE" am: 2d2e4a7603
Treehugger Robot [Mon, 3 May 2021 18:02:18 +0000 (18:02 +0000)]
Merge "OOB: Generate random for LE" am: 2d2e4a7603

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

Change-Id: Iac71010f1b4c621240cbb262a00e01606d65b618

3 years agoMerge "OOB: Generate random for LE"
Treehugger Robot [Mon, 3 May 2021 17:40:25 +0000 (17:40 +0000)]
Merge "OOB: Generate random for LE"

3 years agoUnnecessary def BTA_GATTC_CONN_MAX => GATT_MAX_PHY_CHANNEL am: f50690c3fc am: 147e086...
Chris Manton [Mon, 3 May 2021 04:35:21 +0000 (04:35 +0000)]
Unnecessary def BTA_GATTC_CONN_MAX => GATT_MAX_PHY_CHANNEL am: f50690c3fc am: 147e0865f6 am: c91c057057

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

Change-Id: I01a13a8ef60f51509f36aa385629ac193a4f9502

3 years agoRe-point bta:: tests to common test/mock am: 2dbbbca5f1 am: 793a6f4e2e am: 02e73f418e
Chris Manton [Mon, 3 May 2021 04:35:19 +0000 (04:35 +0000)]
Re-point bta:: tests to common test/mock am: 2dbbbca5f1 am: 793a6f4e2e am: 02e73f418e

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

Change-Id: I31dd9447d6b2b87216d1b9c23a3684d13c19ae34

3 years agoConst-ify the bta/hh/bta_hh::API data types am: ee6b8adcd1 am: df48c8caf4 am: 1b6a5b8bc6
Chris Manton [Mon, 3 May 2021 04:35:18 +0000 (04:35 +0000)]
Const-ify the bta/hh/bta_hh::API data types am: ee6b8adcd1 am: df48c8caf4 am: 1b6a5b8bc6

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

Change-Id: I2d7681d7b0495fad4982e8d62b9206664263cbd8

3 years agoRemove unused member tHID_HOST_DEV_CTB::conn_substate am: a67b1f54c9 am: cf27c01f85...
Chris Manton [Mon, 3 May 2021 04:35:16 +0000 (04:35 +0000)]
Remove unused member tHID_HOST_DEV_CTB::conn_substate am: a67b1f54c9 am: cf27c01f85 am: 4aea75a9e9

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

Change-Id: I336b6a5cc70956b9a150524abab065493696eee6

3 years agoMove stack/l2cap::text from compilation unit into header am: 3fbc096f45 am: d71103226...
Chris Manton [Mon, 3 May 2021 04:35:15 +0000 (04:35 +0000)]
Move stack/l2cap::text from compilation unit into header am: 3fbc096f45 am: d711032263 am: c1622e0415

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

Change-Id: I1344021dc4db15baf681f6a1c9831f745eab7961

3 years agoAdd BTA_ID_HH for logging am: 568b92ff38 am: 6e6cdb942b am: db25173a7d
Chris Manton [Mon, 3 May 2021 04:35:13 +0000 (04:35 +0000)]
Add BTA_ID_HH for logging am: 568b92ff38 am: 6e6cdb942b am: db25173a7d

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

Change-Id: I1b7e209d0064fecc4c86e749de6caf7b63dafdcb

3 years agoAdd include/hardware/bt_hh::bthh_connection_state_text am: df8fbbf2b6 am: e7d8d3d11d...
Chris Manton [Mon, 3 May 2021 04:35:12 +0000 (04:35 +0000)]
Add include/hardware/bt_hh::bthh_connection_state_text am: df8fbbf2b6 am: e7d8d3d11d am: 3249ff0aae

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

Change-Id: Ib170f09a477d91120a1ed9e0b687039fcd5b8a15

3 years agoRemove unused declaration am: f260dc6e96 am: ed8f21eb6e am: a5bc267a79
Chris Manton [Mon, 3 May 2021 04:35:10 +0000 (04:35 +0000)]
Remove unused declaration am: f260dc6e96 am: ed8f21eb6e am: a5bc267a79

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

Change-Id: I97f257af63a651c7d7f9dc38c12f6ab9bbb5578d

3 years agobtm_log: Streamline hid logging am: f7dd3dd0bf am: 19c19a4670 am: 161efa66c5
Chris Manton [Mon, 3 May 2021 04:35:08 +0000 (04:35 +0000)]
btm_log: Streamline hid logging am: f7dd3dd0bf am: 19c19a4670 am: 161efa66c5

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

Change-Id: Ic359e50db2c20eab702f966c426e74d8661b3b83

3 years agolog: Swap proper initiator am: 0973f8d157 am: 8561ca0747 am: 8f337f5984
Chris Manton [Mon, 3 May 2021 04:35:05 +0000 (04:35 +0000)]
log: Swap proper initiator am: 0973f8d157 am: 8561ca0747 am: 8f337f5984

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

Change-Id: I5c2bb0f42ee731f3e8ec395561c2678a1cbf523f

3 years agoUnnecessary def BTA_GATTC_CONN_MAX => GATT_MAX_PHY_CHANNEL am: f50690c3fc am: 147e0865f6
Chris Manton [Mon, 3 May 2021 04:12:54 +0000 (04:12 +0000)]
Unnecessary def BTA_GATTC_CONN_MAX => GATT_MAX_PHY_CHANNEL am: f50690c3fc am: 147e0865f6

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

Change-Id: I452e6c173da4c2c205f706a238100280f2099409

3 years agoRe-point bta:: tests to common test/mock am: 2dbbbca5f1 am: 793a6f4e2e
Chris Manton [Mon, 3 May 2021 04:12:53 +0000 (04:12 +0000)]
Re-point bta:: tests to common test/mock am: 2dbbbca5f1 am: 793a6f4e2e

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

Change-Id: Ifc47023c0d2b40688722c83ab4b7fef9e8897b32

3 years agoConst-ify the bta/hh/bta_hh::API data types am: ee6b8adcd1 am: df48c8caf4
Chris Manton [Mon, 3 May 2021 04:12:52 +0000 (04:12 +0000)]
Const-ify the bta/hh/bta_hh::API data types am: ee6b8adcd1 am: df48c8caf4

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

Change-Id: Iac38df0ef5fb8946474fd9c4ce15282585d91cae

3 years agoRemove unused member tHID_HOST_DEV_CTB::conn_substate am: a67b1f54c9 am: cf27c01f85
Chris Manton [Mon, 3 May 2021 04:12:51 +0000 (04:12 +0000)]
Remove unused member tHID_HOST_DEV_CTB::conn_substate am: a67b1f54c9 am: cf27c01f85

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

Change-Id: Ieef1bf00c8aa8a173d4a5cb433b3b9c8e3a4bd44

3 years agoMove stack/l2cap::text from compilation unit into header am: 3fbc096f45 am: d711032263
Chris Manton [Mon, 3 May 2021 04:12:50 +0000 (04:12 +0000)]
Move stack/l2cap::text from compilation unit into header am: 3fbc096f45 am: d711032263

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

Change-Id: If101def24c41186f700992b168ed9d5f6f1b8527

3 years agoAdd BTA_ID_HH for logging am: 568b92ff38 am: 6e6cdb942b
Chris Manton [Mon, 3 May 2021 04:12:49 +0000 (04:12 +0000)]
Add BTA_ID_HH for logging am: 568b92ff38 am: 6e6cdb942b

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

Change-Id: I8a33851695c2945cc04e9f4de2603e1f5067f6c9

3 years agoAdd include/hardware/bt_hh::bthh_connection_state_text am: df8fbbf2b6 am: e7d8d3d11d
Chris Manton [Mon, 3 May 2021 04:12:48 +0000 (04:12 +0000)]
Add include/hardware/bt_hh::bthh_connection_state_text am: df8fbbf2b6 am: e7d8d3d11d

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

Change-Id: I3cbc293c6d44021674e4891519f02c53b090401c

3 years agoRemove unused declaration am: f260dc6e96 am: ed8f21eb6e
Chris Manton [Mon, 3 May 2021 04:12:47 +0000 (04:12 +0000)]
Remove unused declaration am: f260dc6e96 am: ed8f21eb6e

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

Change-Id: I918ddbf60a5d218bfd6e92ffaa3db969fbe46da5

3 years agobtm_log: Streamline hid logging am: f7dd3dd0bf am: 19c19a4670
Chris Manton [Mon, 3 May 2021 04:12:46 +0000 (04:12 +0000)]
btm_log: Streamline hid logging am: f7dd3dd0bf am: 19c19a4670

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

Change-Id: Ib16fe986791317af8cb52676e9faf793d9e47603

3 years agolog: Swap proper initiator am: 0973f8d157 am: 8561ca0747
Chris Manton [Mon, 3 May 2021 04:12:44 +0000 (04:12 +0000)]
log: Swap proper initiator am: 0973f8d157 am: 8561ca0747

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

Change-Id: Ib8f403e2176e36e75ed55aac99ca83ebccef37e6

3 years agoUnnecessary def BTA_GATTC_CONN_MAX => GATT_MAX_PHY_CHANNEL am: f50690c3fc
Chris Manton [Mon, 3 May 2021 03:59:10 +0000 (03:59 +0000)]
Unnecessary def BTA_GATTC_CONN_MAX => GATT_MAX_PHY_CHANNEL am: f50690c3fc

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

Change-Id: I124383b300bee22a80d9f887c0c6fcdc4af0be81

3 years agoRe-point bta:: tests to common test/mock am: 2dbbbca5f1
Chris Manton [Mon, 3 May 2021 03:59:07 +0000 (03:59 +0000)]
Re-point bta:: tests to common test/mock am: 2dbbbca5f1

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

Change-Id: Id82d3791a88c7fa2017e5775631137bfa215e02a

3 years agoConst-ify the bta/hh/bta_hh::API data types am: ee6b8adcd1
Chris Manton [Mon, 3 May 2021 03:59:04 +0000 (03:59 +0000)]
Const-ify the bta/hh/bta_hh::API data types am: ee6b8adcd1

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

Change-Id: I2e5641f84bfba2dfc6808ffdece1965a167a645b

3 years agoRemove unused member tHID_HOST_DEV_CTB::conn_substate am: a67b1f54c9
Chris Manton [Mon, 3 May 2021 03:59:02 +0000 (03:59 +0000)]
Remove unused member tHID_HOST_DEV_CTB::conn_substate am: a67b1f54c9

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

Change-Id: I5b4a6a19da4fa75a4491d83c7f7d9f9c3510f0e6

3 years agoMove stack/l2cap::text from compilation unit into header am: 3fbc096f45
Chris Manton [Mon, 3 May 2021 03:58:59 +0000 (03:58 +0000)]
Move stack/l2cap::text from compilation unit into header am: 3fbc096f45

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

Change-Id: I62e859e7f63a1e7dae963ba97e25bf0c05a53607

3 years agoAdd BTA_ID_HH for logging am: 568b92ff38
Chris Manton [Mon, 3 May 2021 03:58:57 +0000 (03:58 +0000)]
Add BTA_ID_HH for logging am: 568b92ff38

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

Change-Id: I814d0939fccd25f11c25f0e794c88c6258f28660

3 years agoAdd include/hardware/bt_hh::bthh_connection_state_text am: df8fbbf2b6
Chris Manton [Mon, 3 May 2021 03:58:55 +0000 (03:58 +0000)]
Add include/hardware/bt_hh::bthh_connection_state_text am: df8fbbf2b6

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

Change-Id: Icd5f41ee2e0b42dc7ca60d47a03bf698fc48988f

3 years agoRemove unused declaration am: f260dc6e96
Chris Manton [Mon, 3 May 2021 03:58:52 +0000 (03:58 +0000)]
Remove unused declaration am: f260dc6e96

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

Change-Id: I2b8eacbd64e9ac64dfeb812ddd2efe92696a31e2

3 years agobtm_log: Streamline hid logging am: f7dd3dd0bf
Chris Manton [Mon, 3 May 2021 03:58:50 +0000 (03:58 +0000)]
btm_log: Streamline hid logging am: f7dd3dd0bf

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

Change-Id: If4e8e7ba18e6a67779b5f80d877ac9420792a967

3 years agolog: Swap proper initiator am: 0973f8d157
Chris Manton [Mon, 3 May 2021 03:58:03 +0000 (03:58 +0000)]
log: Swap proper initiator am: 0973f8d157

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

Change-Id: Icb78817b012519b7151a8374b1d66da6f5b4df75

3 years agoIntroduce stack_btu_test
Chris Manton [Sat, 1 May 2021 16:26:56 +0000 (09:26 -0700)]
Introduce stack_btu_test

Towards testable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
No-Typo-Check: Legacy code mocks

Change-Id: I35fefd23efe47af881ae22765157c7e723973c10

3 years agoUnnecessary def BTA_GATTC_CONN_MAX => GATT_MAX_PHY_CHANNEL
Chris Manton [Sat, 1 May 2021 06:16:19 +0000 (23:16 -0700)]
Unnecessary def BTA_GATTC_CONN_MAX => GATT_MAX_PHY_CHANNEL

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

Change-Id: I034765099d25b207e8085fcdae59de866d400278

3 years agoRe-point bta:: tests to common test/mock
Chris Manton [Fri, 30 Apr 2021 22:21:38 +0000 (15:21 -0700)]
Re-point bta:: tests to common test/mock

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

Change-Id: I8dbfc4754a754011a0c06c5f8d21abce15931cd3

3 years agoConst-ify the bta/hh/bta_hh::API data types
Chris Manton [Wed, 17 Mar 2021 01:46:17 +0000 (18:46 -0700)]
Const-ify the bta/hh/bta_hh::API data types

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

Change-Id: I37c61447dc921ce10e112a30bdb8dc011dff3410

3 years agoRemove unused member tHID_HOST_DEV_CTB::conn_substate
Chris Manton [Mon, 15 Mar 2021 17:23:17 +0000 (10:23 -0700)]
Remove unused member tHID_HOST_DEV_CTB::conn_substate

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

Change-Id: I7fcfc640ef7728ae924e55d3ce1f4fa43b09963a

3 years agoMove stack/l2cap::text from compilation unit into header
Chris Manton [Fri, 30 Apr 2021 06:20:36 +0000 (23:20 -0700)]
Move stack/l2cap::text from compilation unit into header

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

Change-Id: I7b14bb2a83444d0147dd1f02f39881f8990998d7

3 years agoAdd BTA_ID_HH for logging
Chris Manton [Thu, 29 Apr 2021 20:44:11 +0000 (13:44 -0700)]
Add BTA_ID_HH for logging

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

Change-Id: Ib3798e340688cc400f96b743afc15f46e365022a

3 years agoAdd include/hardware/bt_hh::bthh_connection_state_text
Chris Manton [Thu, 29 Apr 2021 20:43:55 +0000 (13:43 -0700)]
Add include/hardware/bt_hh::bthh_connection_state_text

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

Change-Id: I9050d99e913c96454837f95a266efcf828bcf6b4

3 years agoRemove unused declaration
Chris Manton [Thu, 29 Apr 2021 05:23:22 +0000 (22:23 -0700)]
Remove unused declaration

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

Change-Id: I5c6a76d903e56fe4ec721ec0701e305e8bd1b13d

3 years agobtm_log: Streamline hid logging
Chris Manton [Thu, 29 Apr 2021 05:22:49 +0000 (22:22 -0700)]
btm_log: Streamline hid logging

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
No-Typo-Check: Legacy code mocks
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: If3f967ddabe64c481536debd44a31b989eff1565

3 years agolog: Swap proper initiator
Chris Manton [Thu, 29 Apr 2021 00:51:59 +0000 (17:51 -0700)]
log: Swap proper initiator

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

Change-Id: I9ade378b5de1677d6be9d7e56af8589ff023e613

3 years agoRemove bta/hh/bta_hh_le::BTA_HH_DEBUG
Chris Manton [Fri, 30 Apr 2021 17:31:46 +0000 (10:31 -0700)]
Remove bta/hh/bta_hh_le::BTA_HH_DEBUG

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

Change-Id: Idaa677cb4eeb8342246adbd72e4980fa1242fea0

3 years agoRemove execute bit for source file bta/hh/bta_hh_le
Chris Manton [Fri, 30 Apr 2021 17:29:44 +0000 (10:29 -0700)]
Remove execute bit for source file bta/hh/bta_hh_le

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

Change-Id: If3a263d4a61939af0a00e5495207138a82a0e5b6

3 years agoMerge "ScanningManagerTest: Wait for the Filter command" am: 81ce4d3e70 am: c6c847e0c...
Treehugger Robot [Sat, 1 May 2021 21:08:24 +0000 (21:08 +0000)]
Merge "ScanningManagerTest: Wait for the Filter command" am: 81ce4d3e70 am: c6c847e0ca am: 27ee277b31

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

Change-Id: I20b1128631239618dbfa9fff8495c49bbb5b5735

3 years agoGD: Split tests into module vs unit tests am: 479f99dcab am: 7dc3cfa2e7 am: 46f41b424b
Myles Watson [Sat, 1 May 2021 21:08:18 +0000 (21:08 +0000)]
GD: Split tests into module vs unit tests am: 479f99dcab am: 7dc3cfa2e7 am: 46f41b424b

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

Change-Id: Id95720ea67900a11248b7e278bb8302d220dbd90

3 years agoMerge "ScanningManagerTest: Wait for the Filter command" am: 81ce4d3e70 am: c6c847e0ca
Treehugger Robot [Sat, 1 May 2021 20:53:26 +0000 (20:53 +0000)]
Merge "ScanningManagerTest: Wait for the Filter command" am: 81ce4d3e70 am: c6c847e0ca

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

Change-Id: I6f3b851850b352b4c332dff396307271f467c507

3 years agoGD: Split tests into module vs unit tests am: 479f99dcab am: 7dc3cfa2e7
Myles Watson [Sat, 1 May 2021 20:53:20 +0000 (20:53 +0000)]
GD: Split tests into module vs unit tests am: 479f99dcab am: 7dc3cfa2e7

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

Change-Id: I47f047c2fae5c3467a528b718e36b641364acc49

3 years agoMerge "ScanningManagerTest: Wait for the Filter command" am: 81ce4d3e70
Treehugger Robot [Sat, 1 May 2021 20:35:02 +0000 (20:35 +0000)]
Merge "ScanningManagerTest: Wait for the Filter command" am: 81ce4d3e70

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

Change-Id: Id0347af4b3465bce562c48549f0aca31608211c4

3 years agoGD: Split tests into module vs unit tests am: 479f99dcab
Myles Watson [Sat, 1 May 2021 20:34:55 +0000 (20:34 +0000)]
GD: Split tests into module vs unit tests am: 479f99dcab

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

Change-Id: I2e600abbaaec0e6acd7d82d2abea062d6b804962

3 years agoMerge "ScanningManagerTest: Wait for the Filter command"
Treehugger Robot [Sat, 1 May 2021 20:21:47 +0000 (20:21 +0000)]
Merge "ScanningManagerTest: Wait for the Filter command"