OSDN Git Service

android-x86/system-bt.git
3 years agoRe-write bta/hh/bta_hh_le::bta_hh_le_close am: 0d27935218 am: 8b570f8471 am: 22fa770437
Chris Manton [Wed, 12 May 2021 21:43:18 +0000 (21:43 +0000)]
Re-write bta/hh/bta_hh_le::bta_hh_le_close am: 0d27935218 am: 8b570f8471 am: 22fa770437

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

Change-Id: I9c001f15744c341be1742d30e0193563411384a2

3 years agolog: Polish security record logging structures am: ed9b10a6c3 am: 67687658ad am:...
Chris Manton [Wed, 12 May 2021 21:43:15 +0000 (21:43 +0000)]
log: Polish security record logging structures am: ed9b10a6c3 am: 67687658ad am: d00b362393

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

Change-Id: Ibe043d47c58283abf0323544a060e44bcc3c91c0

3 years agoRe-write bta/hh/bta_hh_le::bta_hh_le_close am: 0d27935218 am: 8b570f8471
Chris Manton [Wed, 12 May 2021 21:26:38 +0000 (21:26 +0000)]
Re-write bta/hh/bta_hh_le::bta_hh_le_close am: 0d27935218 am: 8b570f8471

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

Change-Id: I286b87d867526bafb372c6af366d436757fc442f

3 years agolog: Polish security record logging structures am: ed9b10a6c3 am: 67687658ad
Chris Manton [Wed, 12 May 2021 21:26:36 +0000 (21:26 +0000)]
log: Polish security record logging structures am: ed9b10a6c3 am: 67687658ad

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

Change-Id: Idba368066d313db907ea8e9fca054f0fcdefaea5

3 years agoFix potential null dereference in avdt_scb_verify
Jakub Pawlowski [Tue, 11 May 2021 17:05:58 +0000 (19:05 +0200)]
Fix potential null dereference in avdt_scb_verify

Bug: 180421437
Change-Id: If576aaf302ede63d6bbb13c32c96ac3eea44abf6

3 years agoGATT: initialize the notif completely
Richard Smith [Sun, 14 Feb 2021 10:49:21 +0000 (10:49 +0000)]
GATT: initialize the notif completely

Bug: 180418662
Change-Id: I71c1c2038b62c554490d38fdb0febf1217108992

3 years agoFix potential null dereference in avdt_ccb_hdl_getcap_cmd
Jakub Pawlowski [Tue, 11 May 2021 19:33:07 +0000 (21:33 +0200)]
Fix potential null dereference in avdt_ccb_hdl_getcap_cmd

Bug: 180421044
Change-Id: I1fccaa1cff055badaa2f156f880a6c6d9c28737a

3 years agoFix potential null dereference after call to read_command_complete_header
Jakub Pawlowski [Wed, 12 May 2021 09:39:59 +0000 (11:39 +0200)]
Fix potential null dereference after call to read_command_complete_header

Bug: 180421035
Test: compilation
Change-Id: I3606bb08f514d376087a454c482f28c6e4eadb59

3 years agoRe-write bta/hh/bta_hh_le::bta_hh_le_close am: 0d27935218
Chris Manton [Wed, 12 May 2021 18:59:17 +0000 (18:59 +0000)]
Re-write bta/hh/bta_hh_le::bta_hh_le_close am: 0d27935218

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

Change-Id: Ie539a7ccf331c314d52ae56436ed42aa998b68ec

3 years agolog: Polish security record logging structures am: ed9b10a6c3
Chris Manton [Wed, 12 May 2021 18:58:19 +0000 (18:58 +0000)]
log: Polish security record logging structures am: ed9b10a6c3

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

Change-Id: I00dd06ba5cd3ab68cf564a4cd476a88c8410ba62

3 years agoMerge changes I72f919a9,Ie6b989cd,Ifc867c33 am: 8ecad99e65 am: 783ba01f45 am: 7f9052c542
Treehugger Robot [Wed, 12 May 2021 18:25:02 +0000 (18:25 +0000)]
Merge changes I72f919a9,Ie6b989cd,Ifc867c33 am: 8ecad99e65 am: 783ba01f45 am: 7f9052c542

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

Change-Id: I60d5be8dd3a284670c3899a0eecdbe07d766c825

3 years agoMerge changes I72f919a9,Ie6b989cd,Ifc867c33 am: 8ecad99e65 am: 783ba01f45
Treehugger Robot [Wed, 12 May 2021 18:00:10 +0000 (18:00 +0000)]
Merge changes I72f919a9,Ie6b989cd,Ifc867c33 am: 8ecad99e65 am: 783ba01f45

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

Change-Id: I9bc4233434cd5c8db7b3718d946ce860a01d3d8f

3 years agoMerge changes I72f919a9,Ie6b989cd,Ifc867c33 am: 8ecad99e65
Treehugger Robot [Wed, 12 May 2021 17:28:59 +0000 (17:28 +0000)]
Merge changes I72f919a9,Ie6b989cd,Ifc867c33 am: 8ecad99e65

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

Change-Id: I6114e75f5387d84db81c409fb696594d13ce7dd3

3 years agoRe-write bta/hh/bta_hh_le::bta_hh_le_close
Chris Manton [Sat, 1 May 2021 06:39:08 +0000 (23:39 -0700)]
Re-write bta/hh/bta_hh_le::bta_hh_le_close

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

Change-Id: Id76ec9557538231c28cd9ea235e1d522be5a531b

3 years agolog: Polish security record logging structures
Chris Manton [Mon, 3 May 2021 23:39:12 +0000 (16:39 -0700)]
log: Polish security record logging structures

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

Change-Id: If22f738ca7aae645007b72512b25d8ad11a45620

3 years agoMerge changes I72f919a9,Ie6b989cd,Ifc867c33
Treehugger Robot [Wed, 12 May 2021 17:03:30 +0000 (17:03 +0000)]
Merge changes I72f919a9,Ie6b989cd,Ifc867c33

* changes:
  Const-ify bta/gatt/:: Api data param
  Introduce bta_gatt_test
  Properly initialize tGATT control block

3 years agoConst-ify bta/gatt/:: Api data param
Chris Manton [Tue, 4 May 2021 22:24:20 +0000 (15:24 -0700)]
Const-ify bta/gatt/:: Api data param

Towards immutable code

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

Change-Id: I72f919a9e19e3f7ca05ad36f4a0ca267e8bd5dfc

3 years agoIntroduce bta_gatt_test
Chris Manton [Fri, 7 May 2021 16:45:55 +0000 (09:45 -0700)]
Introduce bta_gatt_test

Towards unregressive code

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

Change-Id: Ie6b989cd2e55fd8188f8fcb7601342654fb84593

3 years agoProperly initialize tGATT control block
Chris Manton [Mon, 3 May 2021 16:37:29 +0000 (09:37 -0700)]
Properly initialize tGATT control block

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

Change-Id: Ifc867c333aac184457c6bdecca7373c6fa48b0a1

3 years agoMerge "gd: Implement vendor specific event manager" am: 6ef21313f3 am: c06892163e...
Treehugger Robot [Wed, 12 May 2021 15:26:53 +0000 (15:26 +0000)]
Merge "gd: Implement vendor specific event manager" am: 6ef21313f3 am: c06892163e am: 277c378f0c

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

Change-Id: Ib9be74a0297eed1dc3e1a1af4f7306313234ae1f

3 years agoMerge "gd: Implement vendor specific event manager" am: 6ef21313f3 am: c06892163e
Treehugger Robot [Wed, 12 May 2021 15:11:36 +0000 (15:11 +0000)]
Merge "gd: Implement vendor specific event manager" am: 6ef21313f3 am: c06892163e

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

Change-Id: I4ef8edd8be1efb67110232debd4cfb0cfb4adb03

3 years agoMerge "gd: Implement vendor specific event manager" am: 6ef21313f3
Treehugger Robot [Wed, 12 May 2021 14:41:28 +0000 (14:41 +0000)]
Merge "gd: Implement vendor specific event manager" am: 6ef21313f3

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

Change-Id: Ib5b2a63d7a199a94db6fd186767d2868cbc70bff

3 years agoMerge "gd: Implement vendor specific event manager"
Treehugger Robot [Wed, 12 May 2021 13:31:10 +0000 (13:31 +0000)]
Merge "gd: Implement vendor specific event manager"

3 years agogd: Implement vendor specific event manager
Chienyuan [Tue, 4 May 2021 13:54:04 +0000 (21:54 +0800)]
gd: Implement vendor specific event manager

Tag: #gd-refactor
Bug: 186234480
Test: gd/cert/run
Test: bluetooth_test_gd
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I62ce950d2944014d2e14f5b0a68933c499d4a4ac

3 years agoMerge "gd: Prevent erroneous fail connection on acceptlist change" am: aa48544e4a...
Treehugger Robot [Tue, 11 May 2021 22:26:57 +0000 (22:26 +0000)]
Merge "gd: Prevent erroneous fail connection on acceptlist change" am: aa48544e4a am: a2cf5a102c am: 168cc285c6

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

Change-Id: I6f6852dc2caadbeefbde5ca6055b307f171b9ff8

3 years agoFix incorrect enum comparison of LE close reason am: d9709f256a am: b6f964e073 am...
Abhishek Pandit-Subedi [Tue, 11 May 2021 22:26:46 +0000 (22:26 +0000)]
Fix incorrect enum comparison of LE close reason am: d9709f256a am: b6f964e073 am: ed49a2caaa

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

Change-Id: I1d4545afa285a43a5dfabe4d1e7ff485d0f2993e

3 years agoMerge "gd: Prevent erroneous fail connection on acceptlist change" am: aa48544e4a...
Treehugger Robot [Tue, 11 May 2021 22:05:45 +0000 (22:05 +0000)]
Merge "gd: Prevent erroneous fail connection on acceptlist change" am: aa48544e4a am: a2cf5a102c

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

Change-Id: Ie76ec97bd9482ca83e139931c027c6fb16d08d21

3 years agoFix incorrect enum comparison of LE close reason am: d9709f256a am: b6f964e073
Abhishek Pandit-Subedi [Tue, 11 May 2021 22:05:32 +0000 (22:05 +0000)]
Fix incorrect enum comparison of LE close reason am: d9709f256a am: b6f964e073

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

Change-Id: Ia6b929c9825e41ef8fdd2768f1cc127375e70faf

3 years agoMerge "gd: Prevent erroneous fail connection on acceptlist change" am: aa48544e4a
Treehugger Robot [Tue, 11 May 2021 21:45:20 +0000 (21:45 +0000)]
Merge "gd: Prevent erroneous fail connection on acceptlist change" am: aa48544e4a

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

Change-Id: Ie9b00ef4ebb75241416406c5176e8c5fa6c379d2

3 years agoFix incorrect enum comparison of LE close reason am: d9709f256a
Abhishek Pandit-Subedi [Tue, 11 May 2021 21:44:39 +0000 (21:44 +0000)]
Fix incorrect enum comparison of LE close reason am: d9709f256a

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

Change-Id: Ibb2d71d0c78b3764478d8dfa1870a92295cd4a45

3 years agoMerge "gd: Prevent erroneous fail connection on acceptlist change"
Treehugger Robot [Tue, 11 May 2021 21:28:48 +0000 (21:28 +0000)]
Merge "gd: Prevent erroneous fail connection on acceptlist change"

3 years agoMerge "Print errors if acceptlist events are too small" am: c607a04361 am: 469f9f00f4...
Treehugger Robot [Tue, 11 May 2021 21:20:02 +0000 (21:20 +0000)]
Merge "Print errors if acceptlist events are too small" am: c607a04361 am: 469f9f00f4 am: b5a4c7b368

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

Change-Id: Ic5e7e3540f6231b9252002ea3d13ea78d832118c

3 years agoMerge "Print errors if acceptlist events are too small" am: c607a04361 am: 469f9f00f4
Treehugger Robot [Tue, 11 May 2021 21:02:36 +0000 (21:02 +0000)]
Merge "Print errors if acceptlist events are too small" am: c607a04361 am: 469f9f00f4

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

Change-Id: I253140b0ece83ee10d879c2b7f45f0ca2f79d8c3

3 years agoMerge "Print errors if acceptlist events are too small" am: c607a04361
Treehugger Robot [Tue, 11 May 2021 20:32:16 +0000 (20:32 +0000)]
Merge "Print errors if acceptlist events are too small" am: c607a04361

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

Change-Id: I637e7763d68496ea0af60aa7aa952931dec74ed1

3 years agoAdd missing dependency on proto_logging am: 1a7b868996 am: b71684906b am: 6de8656e13
Abhishek Pandit-Subedi [Tue, 11 May 2021 20:05:48 +0000 (20:05 +0000)]
Add missing dependency on proto_logging am: 1a7b868996 am: b71684906b am: 6de8656e13

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

Change-Id: I7fdd912465f8a30f73b5b07ef569e43c353ff6fa

3 years agoIntroduce stack_gatt_test am: ab6a940be3 am: fe49762695 am: 7ccb16ccf8
Chris Manton [Tue, 11 May 2021 20:05:45 +0000 (20:05 +0000)]
Introduce stack_gatt_test am: ab6a940be3 am: fe49762695 am: 7ccb16ccf8

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

Change-Id: I4e0bfd6cb616f2f01d93c8cdc9ae9a9d30810f6d

3 years agoAdd crypto toolbox mocks am: 8673f2d243 am: c594d999a0 am: 18a1a4aa04
Chris Manton [Tue, 11 May 2021 20:05:43 +0000 (20:05 +0000)]
Add crypto toolbox mocks am: 8673f2d243 am: c594d999a0 am: 18a1a4aa04

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

Change-Id: I879102e80016cfac73cd95946666730e9c6fc489

3 years agoFix incorrect enum comparison of LE close reason
Abhishek Pandit-Subedi [Tue, 11 May 2021 17:20:36 +0000 (17:20 +0000)]
Fix incorrect enum comparison of LE close reason

The LE close reason is tGATT_DISCONN_REASON but it's compared against
tHCI_ERROR_CODE. Besides just being different types, they are also
backed by different primitives (u16 for gatt vs u8 for hci). This fails
in stricter build environments (i.e. ChromeOS).

Bug: 187836537
Tag: #floss
Test: atest --host bluetooth_test_gd
Change-Id: I0f926b6fad9f20adde5e1e7ff89bcc7c8da01f93

3 years agoPoint stack_btm_test to use common test/mocks am: 27c8011064 am: df22462621 am: 1cfea...
Chris Manton [Tue, 11 May 2021 20:05:28 +0000 (20:05 +0000)]
Point stack_btm_test to use common test/mocks am: 27c8011064 am: df22462621 am: 1cfea26300

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

Change-Id: I2caaf99f894cc37a1f70f7ba79dfe76621f64d58

3 years agoMerge "Print errors if acceptlist events are too small"
Treehugger Robot [Tue, 11 May 2021 20:03:13 +0000 (20:03 +0000)]
Merge "Print errors if acceptlist events are too small"

3 years agoAdd missing dependency on proto_logging am: 1a7b868996 am: b71684906b
Abhishek Pandit-Subedi [Tue, 11 May 2021 19:47:33 +0000 (19:47 +0000)]
Add missing dependency on proto_logging am: 1a7b868996 am: b71684906b

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

Change-Id: I16b00cec2e956cc75c6eaad536550a89cf58818f

3 years agoIntroduce stack_gatt_test am: ab6a940be3 am: fe49762695
Chris Manton [Tue, 11 May 2021 19:47:24 +0000 (19:47 +0000)]
Introduce stack_gatt_test am: ab6a940be3 am: fe49762695

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

Change-Id: Ib23cc261d6de5ee98b5c833272a71bc620d6762c

3 years agoAdd crypto toolbox mocks am: 8673f2d243 am: c594d999a0
Chris Manton [Tue, 11 May 2021 19:47:23 +0000 (19:47 +0000)]
Add crypto toolbox mocks am: 8673f2d243 am: c594d999a0

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

Change-Id: I900595f9dc44bd95f27de5b319d4ffa8a7be4b6a

3 years agoPoint stack_btm_test to use common test/mocks am: 27c8011064 am: df22462621
Chris Manton [Tue, 11 May 2021 19:46:30 +0000 (19:46 +0000)]
Point stack_btm_test to use common test/mocks am: 27c8011064 am: df22462621

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

Change-Id: I87fd045219023e8c4037b61daa9a9da4f0112de0

3 years agoAdd missing dependency on proto_logging am: 1a7b868996
Abhishek Pandit-Subedi [Tue, 11 May 2021 19:15:07 +0000 (19:15 +0000)]
Add missing dependency on proto_logging am: 1a7b868996

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

Change-Id: I9c5345c55c431a9adb8ed2109ce65d23d90c8f2a

3 years agogd: Prevent erroneous fail connection on acceptlist change
Chris Manton [Mon, 10 May 2021 19:46:44 +0000 (12:46 -0700)]
gd: Prevent erroneous fail connection on acceptlist change

The packet fields are invalid for the conditioned logic.

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

Change-Id: Ie4e4dcf1333c4f5f3a10635f6ed91380cb873f73

3 years agoAdd missing dependency on proto_logging
Abhishek Pandit-Subedi [Tue, 11 May 2021 16:18:52 +0000 (16:18 +0000)]
Add missing dependency on proto_logging

Bug: 187827282
Tag: #floss
Test: atest --host bluetooth_test_gd
Change-Id: If79f77e926c1f57f9389d4de7e2a6ad537a2b572

3 years agoIntroduce stack_gatt_test am: ab6a940be3
Chris Manton [Tue, 11 May 2021 07:42:04 +0000 (07:42 +0000)]
Introduce stack_gatt_test am: ab6a940be3

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

Change-Id: I2be242b4c3f834dbcdd79d40af95f723c0391dca

3 years agoAdd crypto toolbox mocks am: 8673f2d243
Chris Manton [Tue, 11 May 2021 07:42:01 +0000 (07:42 +0000)]
Add crypto toolbox mocks am: 8673f2d243

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

Change-Id: I9deb75f5fff7d01febece25992f53ad215b59c9f

3 years agoPoint stack_btm_test to use common test/mocks am: 27c8011064
Chris Manton [Tue, 11 May 2021 07:40:10 +0000 (07:40 +0000)]
Point stack_btm_test to use common test/mocks am: 27c8011064

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

Change-Id: I7db19c9472837f950b41fe019546a6d73b3e004c

3 years agoPrint errors if acceptlist events are too small
Myles Watson [Tue, 11 May 2021 00:11:55 +0000 (17:11 -0700)]
Print errors if acceptlist events are too small

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

3 years agoEnum-ify stack/gatt::tGATTC_OPTYPE am: 738aa4df92 am: 787494b3b7 am: 46f3a9857c
Chris Manton [Mon, 10 May 2021 01:59:37 +0000 (01:59 +0000)]
Enum-ify stack/gatt::tGATTC_OPTYPE am: 738aa4df92 am: 787494b3b7 am: 46f3a9857c

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

Change-Id: I9cdf8b7db06103e0261c5bf83bdc25f2a1814dc5

3 years agoAppend mock_stack_acl::acl_add_to_ignore_auto_connect_after_disconnect am: b574284da4...
Chris Manton [Mon, 10 May 2021 01:59:36 +0000 (01:59 +0000)]
Append mock_stack_acl::acl_add_to_ignore_auto_connect_after_disconnect am: b574284da4 am: c79b69267a am: c3459d035e

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

Change-Id: I7ec1684a19b4468afc6f5188674ad5e65fd99514

3 years agoAdd test/mock/mock_stack_btm_ble_bgconn am: 2fbdb96b10 am: 43e7b73b91 am: bd80045a2a
Chris Manton [Mon, 10 May 2021 01:59:35 +0000 (01:59 +0000)]
Add test/mock/mock_stack_btm_ble_bgconn am: 2fbdb96b10 am: 43e7b73b91 am: bd80045a2a

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

Change-Id: I64f41539aa9cb2f5d551a2b0fb84d57d5f00ed0d

3 years agoRemove useless #def BTA_GATTC_MULTI_MAX am: 546049a5c2 am: 67741ade3d am: 3cc0ed25da
Chris Manton [Mon, 10 May 2021 01:59:33 +0000 (01:59 +0000)]
Remove useless #def BTA_GATTC_MULTI_MAX am: 546049a5c2 am: 67741ade3d am: 3cc0ed25da

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

Change-Id: I9d47aa9061bc57b69c70496d8a595f04032c515f

3 years agoRemove unused tBTA_GATT_REASON am: c30d36bf0f am: 255c36d28b am: 2928f1b7d9
Chris Manton [Mon, 10 May 2021 01:59:31 +0000 (01:59 +0000)]
Remove unused tBTA_GATT_REASON am: c30d36bf0f am: 255c36d28b am: 2928f1b7d9

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

Change-Id: I6b727898c9a0a91ac9a671a2a4ec5dfbf823b7c8

3 years agoEnum-ify stack/gatt::tGATTC_OPTYPE am: 738aa4df92 am: 787494b3b7
Chris Manton [Mon, 10 May 2021 01:39:48 +0000 (01:39 +0000)]
Enum-ify stack/gatt::tGATTC_OPTYPE am: 738aa4df92 am: 787494b3b7

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

Change-Id: I954603c585909b09c991013f88bd8314fac30ca5

3 years agoAppend mock_stack_acl::acl_add_to_ignore_auto_connect_after_disconnect am: b574284da4...
Chris Manton [Mon, 10 May 2021 01:39:48 +0000 (01:39 +0000)]
Append mock_stack_acl::acl_add_to_ignore_auto_connect_after_disconnect am: b574284da4 am: c79b69267a

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

Change-Id: I7866ea4250f7258e3f762086e38834045565b4fa

3 years agoAdd test/mock/mock_stack_btm_ble_bgconn am: 2fbdb96b10 am: 43e7b73b91
Chris Manton [Mon, 10 May 2021 01:39:47 +0000 (01:39 +0000)]
Add test/mock/mock_stack_btm_ble_bgconn am: 2fbdb96b10 am: 43e7b73b91

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

Change-Id: Iecfb1f1f4617b2a3fcae517247408ac3eddd3beb

3 years agoRemove useless #def BTA_GATTC_MULTI_MAX am: 546049a5c2 am: 67741ade3d
Chris Manton [Mon, 10 May 2021 01:39:46 +0000 (01:39 +0000)]
Remove useless #def BTA_GATTC_MULTI_MAX am: 546049a5c2 am: 67741ade3d

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

Change-Id: I7019b14b3b11427c2746afaf243b2af8da4cd4f7

3 years agoRemove unused tBTA_GATT_REASON am: c30d36bf0f am: 255c36d28b
Chris Manton [Mon, 10 May 2021 01:39:44 +0000 (01:39 +0000)]
Remove unused tBTA_GATT_REASON am: c30d36bf0f am: 255c36d28b

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

Change-Id: I92530d76d6b400030460bd68e2a26f7b05d82c6f

3 years agoEnum-ify stack/gatt::tGATTC_OPTYPE am: 738aa4df92
Chris Manton [Mon, 10 May 2021 01:26:28 +0000 (01:26 +0000)]
Enum-ify stack/gatt::tGATTC_OPTYPE am: 738aa4df92

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

Change-Id: Ica7315e33a0f9725104cad42b98e1936c977ae4d

3 years agoAppend mock_stack_acl::acl_add_to_ignore_auto_connect_after_disconnect am: b574284da4
Chris Manton [Mon, 10 May 2021 01:26:26 +0000 (01:26 +0000)]
Append mock_stack_acl::acl_add_to_ignore_auto_connect_after_disconnect am: b574284da4

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

Change-Id: I047955d237d12f2e0cc68369b8757011aed4776e

3 years agoAdd test/mock/mock_stack_btm_ble_bgconn am: 2fbdb96b10
Chris Manton [Mon, 10 May 2021 01:26:23 +0000 (01:26 +0000)]
Add test/mock/mock_stack_btm_ble_bgconn am: 2fbdb96b10

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

Change-Id: I8c716efd57a6a648c8b83d2954ba33dea8a80cbe

3 years agoRemove useless #def BTA_GATTC_MULTI_MAX am: 546049a5c2
Chris Manton [Mon, 10 May 2021 01:26:21 +0000 (01:26 +0000)]
Remove useless #def BTA_GATTC_MULTI_MAX am: 546049a5c2

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

Change-Id: I5441f153953f23e3ba90a188d1db7412d2299e07

3 years agoRemove unused tBTA_GATT_REASON am: c30d36bf0f
Chris Manton [Mon, 10 May 2021 01:25:18 +0000 (01:25 +0000)]
Remove unused tBTA_GATT_REASON am: c30d36bf0f

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

Change-Id: I0b7733f596a13b77f5638ad298e2e552f24b35bf

3 years agoStat-ify various bta/gatt/bta_gattc_act am: 2e9d317b2a am: c4e0be25fc am: c293e1aef8
Chris Manton [Sun, 9 May 2021 22:07:00 +0000 (22:07 +0000)]
Stat-ify various bta/gatt/bta_gattc_act am: 2e9d317b2a am: c4e0be25fc am: c293e1aef8

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

Change-Id: If0b61c3457df7dee8355fd015a25fe6367949c4d

3 years agoConform btm_status_text to CASE_RETURN_TEXT convention am: 37f645f6f3 am: fb99abcbd4...
Chris Manton [Sun, 9 May 2021 22:06:57 +0000 (22:06 +0000)]
Conform btm_status_text to CASE_RETURN_TEXT convention am: 37f645f6f3 am: fb99abcbd4 am: 4fdcf5e953

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

Change-Id: I246368bda62d9e61664b8b08f0594e2f96366c2c

3 years agoStat-ify various bta/gatt/bta_gattc_act am: 2e9d317b2a am: c4e0be25fc
Chris Manton [Sun, 9 May 2021 21:49:40 +0000 (21:49 +0000)]
Stat-ify various bta/gatt/bta_gattc_act am: 2e9d317b2a am: c4e0be25fc

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

Change-Id: I5db36988845698f95cee1701cecdb3ba1cbb6782

3 years agoConform btm_status_text to CASE_RETURN_TEXT convention am: 37f645f6f3 am: fb99abcbd4
Chris Manton [Sun, 9 May 2021 21:49:38 +0000 (21:49 +0000)]
Conform btm_status_text to CASE_RETURN_TEXT convention am: 37f645f6f3 am: fb99abcbd4

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

Change-Id: I45bbef339e1702397a74091205cf1aa16c908c5f

3 years agoStat-ify various bta/gatt/bta_gattc_act am: 2e9d317b2a
Chris Manton [Sun, 9 May 2021 21:03:57 +0000 (21:03 +0000)]
Stat-ify various bta/gatt/bta_gattc_act am: 2e9d317b2a

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

Change-Id: Ifd9c914633d93c6750190d02710d5237fac53ac6

3 years agoConform btm_status_text to CASE_RETURN_TEXT convention am: 37f645f6f3
Chris Manton [Sun, 9 May 2021 21:02:31 +0000 (21:02 +0000)]
Conform btm_status_text to CASE_RETURN_TEXT convention am: 37f645f6f3

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

Change-Id: Icdf9f9451d43882deb2a7562c943d50551660b45

3 years agoEnum-ify stack/gatt::tGATTC_OPTYPE
Chris Manton [Fri, 7 May 2021 15:54:45 +0000 (08:54 -0700)]
Enum-ify stack/gatt::tGATTC_OPTYPE

Towards readable code

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

Change-Id: Ib44fdf887a41bdf7bbc3e8a7496b8c59800f7e19

3 years agoIntroduce stack_gatt_test
Chris Manton [Fri, 7 May 2021 00:35:37 +0000 (17:35 -0700)]
Introduce stack_gatt_test

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

Change-Id: I61ebf28260bdda015e8e826bd3fb9d91cef747ea

3 years agoAdd crypto toolbox mocks
Chris Manton [Thu, 6 May 2021 20:10:00 +0000 (13:10 -0700)]
Add crypto toolbox mocks

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

Change-Id: I26f89aeede8af8e182a591d9e99072012d58abe1

3 years agoPoint stack_btm_test to use common test/mocks
Chris Manton [Wed, 5 May 2021 23:58:48 +0000 (16:58 -0700)]
Point stack_btm_test to use common test/mocks

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

Change-Id: I40c663f53914e6174ae531648c027b9cd0f7ab56

3 years agoAppend mock_stack_acl::acl_add_to_ignore_auto_connect_after_disconnect
Chris Manton [Fri, 7 May 2021 00:34:24 +0000 (17:34 -0700)]
Append mock_stack_acl::acl_add_to_ignore_auto_connect_after_disconnect

Towards testable code

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

Change-Id: I70a2e593bcf0264f1ef5f0a1a25c8f85aa70164c

3 years agoAdd test/mock/mock_stack_btm_ble_bgconn
Chris Manton [Fri, 7 May 2021 00:34:08 +0000 (17:34 -0700)]
Add test/mock/mock_stack_btm_ble_bgconn

Toward testable code

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

Change-Id: Iff48a9c0df0b3adc7d9ccfb40b5f996cfb27748e

3 years agoUse proper types bta/hh//::BTM_STATUS am: e20ffdad66 am: 3fb2d1c977 am: bab0745fc4
Chris Manton [Sun, 9 May 2021 17:56:08 +0000 (17:56 +0000)]
Use proper types bta/hh//::BTM_STATUS am: e20ffdad66 am: 3fb2d1c977 am: bab0745fc4

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

Change-Id: I62dc13e2871903b4b14a1b3a804497a2227a4869

3 years agoUse proper types bta/hh//::BTM_STATUS am: e20ffdad66 am: 3fb2d1c977
Chris Manton [Sun, 9 May 2021 17:11:16 +0000 (17:11 +0000)]
Use proper types bta/hh//::BTM_STATUS am: e20ffdad66 am: 3fb2d1c977

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

Change-Id: I223219465b6abea53852f294d9822bff394b97a7

3 years agoUse proper types bta/hh//::BTM_STATUS am: e20ffdad66
Chris Manton [Sun, 9 May 2021 16:32:10 +0000 (16:32 +0000)]
Use proper types bta/hh//::BTM_STATUS am: e20ffdad66

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

Change-Id: I1f43e265be39c395be31cef024c2f5bf7a08ae67

3 years agoRemove useless #def BTA_GATTC_MULTI_MAX
Chris Manton [Wed, 5 May 2021 21:21:00 +0000 (14:21 -0700)]
Remove useless #def BTA_GATTC_MULTI_MAX

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

Change-Id: I27200f714209ab74b84b5140562f0f795176f8bc

3 years agoRemove unused tBTA_GATT_REASON
Chris Manton [Wed, 5 May 2021 21:15:00 +0000 (14:15 -0700)]
Remove unused tBTA_GATT_REASON

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

Change-Id: I601d4bcb8d382172b34cfa88a4ba49669cf648af

3 years agoStat-ify various bta/gatt/bta_gattc_act
Chris Manton [Fri, 7 May 2021 16:45:26 +0000 (09:45 -0700)]
Stat-ify various bta/gatt/bta_gattc_act

Towards encapsulated code

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

Change-Id: I25bf9688960f474d23766e66a80442df71f79f76

3 years agoConform btm_status_text to CASE_RETURN_TEXT convention
Chris Manton [Sun, 2 May 2021 18:16:30 +0000 (11:16 -0700)]
Conform btm_status_text to CASE_RETURN_TEXT convention

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

Change-Id: I59fa269b23510ee7866d7fea7771442a3ad562f3

3 years agoCombine decl/defs bta/hh/bta_hh_le::bta_hh_gatt_close am: 4c4f9b58d4 am: 114a395d26...
Chris Manton [Sun, 9 May 2021 07:06:28 +0000 (07:06 +0000)]
Combine decl/defs bta/hh/bta_hh_le::bta_hh_gatt_close am: 4c4f9b58d4 am: 114a395d26 am: 5745ca8b0f

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

Change-Id: I4aef94524aaec81a225c0d02c1f253ba7dab25f4

3 years agoCombine decl/defs bta/hh/bta_hh_le::bta_hh_gatt_close am: 4c4f9b58d4 am: 114a395d26
Chris Manton [Sun, 9 May 2021 06:48:58 +0000 (06:48 +0000)]
Combine decl/defs bta/hh/bta_hh_le::bta_hh_gatt_close am: 4c4f9b58d4 am: 114a395d26

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

Change-Id: Ifbdb94e81adb7ef1a0c6569a816adbf92baff131

3 years agoCombine decl/defs bta/hh/bta_hh_le::bta_hh_gatt_close am: 4c4f9b58d4
Chris Manton [Sun, 9 May 2021 06:30:57 +0000 (06:30 +0000)]
Combine decl/defs bta/hh/bta_hh_le::bta_hh_gatt_close am: 4c4f9b58d4

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

Change-Id: Id34fe5ff8a81cf93664e1130cc167d70c5bf8aa7

3 years agoUse proper types bta/hh//::BTM_STATUS
Chris Manton [Fri, 7 May 2021 01:36:56 +0000 (18:36 -0700)]
Use proper types bta/hh//::BTM_STATUS

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

Change-Id: If5f26ebb381688c153cec41dc8fecb2cd150b35a

3 years agoRemove unnecessary layer of obfuscation tBTA_GATTC_CMPL am: af1c561f87 am: ba77b130bd...
Chris Manton [Sun, 9 May 2021 05:40:01 +0000 (05:40 +0000)]
Remove unnecessary layer of obfuscation tBTA_GATTC_CMPL am: af1c561f87 am: ba77b130bd am: 7eb2af27e7

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

Change-Id: I28e00af67c01e2eadb40248ea2ce6c00b676a3ba

3 years agoRemove unnecessary layer of obfuscation tBTA_GATTC_CMPL am: af1c561f87 am: ba77b130bd
Chris Manton [Sun, 9 May 2021 05:20:23 +0000 (05:20 +0000)]
Remove unnecessary layer of obfuscation tBTA_GATTC_CMPL am: af1c561f87 am: ba77b130bd

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

Change-Id: I99a4790059573b57bbe9fdf0e9ffb85d89f5d7d7

3 years agoRemove unnecessary layer of obfuscation tBTA_GATTC_CMPL am: af1c561f87
Chris Manton [Sun, 9 May 2021 04:52:52 +0000 (04:52 +0000)]
Remove unnecessary layer of obfuscation tBTA_GATTC_CMPL am: af1c561f87

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

Change-Id: I22f53cbb20ed6f3f4a82b47b6dfaf7c79f00854e

3 years agoCombine decl/defs bta/hh/bta_hh_le::bta_hh_gatt_close
Chris Manton [Fri, 7 May 2021 01:37:28 +0000 (18:37 -0700)]
Combine decl/defs bta/hh/bta_hh_le::bta_hh_gatt_close

Towards readable code

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

3 years agoStraighten out tBTA_GATT_REASON am: df50228be2 am: f815c9659f am: 8349445bbd
Chris Manton [Sun, 9 May 2021 03:54:58 +0000 (03:54 +0000)]
Straighten out tBTA_GATT_REASON am: df50228be2 am: f815c9659f am: 8349445bbd

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

Change-Id: Ic6b6dad40300dbca3457174ee082f47971590d80

3 years agoStraighten out tBTA_GATT_REASON am: df50228be2 am: f815c9659f
Chris Manton [Sun, 9 May 2021 03:29:25 +0000 (03:29 +0000)]
Straighten out tBTA_GATT_REASON am: df50228be2 am: f815c9659f

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

Change-Id: I90eeffcfc700c6e971fc6093cb12a33ecd768878

3 years agoStraighten out tBTA_GATT_REASON am: df50228be2
Chris Manton [Sun, 9 May 2021 03:11:38 +0000 (03:11 +0000)]
Straighten out tBTA_GATT_REASON am: df50228be2

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

Change-Id: I0e8a127483f2325ed8ebf6d03629b141a59e0140

3 years agoRemove unnecessary layer of obfuscation tBTA_GATTC_CMPL
Chris Manton [Fri, 7 May 2021 21:16:29 +0000 (14:16 -0700)]
Remove unnecessary layer of obfuscation tBTA_GATTC_CMPL

Towards searchable code

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

Change-Id: Ic02dc13c47ea19c19161326e519a2e904d927f91

3 years agoAdd bta/hh/bta_hh_utils::bta_hh_get_cb am: 81f456dbd5 am: b2d05bf963 am: 969136aff4
Chris Manton [Sun, 9 May 2021 02:01:46 +0000 (02:01 +0000)]
Add bta/hh/bta_hh_utils::bta_hh_get_cb am: 81f456dbd5 am: b2d05bf963 am: 969136aff4

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

Change-Id: Ide5022dd81e5f329fc6afcd255b65cf88ca26f5d

3 years agoAdd bta/hh/bta_hh_utils::bta_hh_get_cb am: 81f456dbd5 am: b2d05bf963
Chris Manton [Sun, 9 May 2021 01:43:56 +0000 (01:43 +0000)]
Add bta/hh/bta_hh_utils::bta_hh_get_cb am: 81f456dbd5 am: b2d05bf963

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

Change-Id: I88c3cfd30bcb7f52849aac49b3e14f66b3cbefed

3 years agoAdd bta/hh/bta_hh_utils::bta_hh_get_cb am: 81f456dbd5
Chris Manton [Sun, 9 May 2021 01:24:42 +0000 (01:24 +0000)]
Add bta/hh/bta_hh_utils::bta_hh_get_cb am: 81f456dbd5

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

Change-Id: Iac6d2989a9bcb4bfa831162b3f9780057838b2d3