OSDN Git Service

android-x86/system-bt.git
3 years agoMerge changes I53b512b1,I1be0028c,Iabd6b355,I7d3ccb15 am: 4179e0131a am: 10860657d2
Myles Watson [Mon, 16 Nov 2020 23:17:30 +0000 (23:17 +0000)]
Merge changes I53b512b1,I1be0028c,Iabd6b355,I7d3ccb15 am: 4179e0131a am: 10860657d2

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

Change-Id: I7c368743e855aefa6a2fbfdf0e75436cee0332da

3 years agoMerge "rusty-gd: switch added services based on module under test" am: 71a9cf700d...
Zach Johnson [Mon, 16 Nov 2020 23:15:32 +0000 (23:15 +0000)]
Merge "rusty-gd: switch added services based on module under test" am: 71a9cf700d am: 892af2c353

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

Change-Id: I5515c12dd3314a9fe376087dfac72e0f58290b7e

3 years agoMerge "Simplify HAL protos" am: 7587b305c9 am: 00b06e3bd8
Zach Johnson [Mon, 16 Nov 2020 23:12:12 +0000 (23:12 +0000)]
Merge "Simplify HAL protos" am: 7587b305c9 am: 00b06e3bd8

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

Change-Id: Ib92cc8c378e27714981dc6f7b33dc7c73640d697

3 years agoMerge changes I53b512b1,I1be0028c,Iabd6b355,I7d3ccb15 am: 4179e0131a
Myles Watson [Mon, 16 Nov 2020 21:30:11 +0000 (21:30 +0000)]
Merge changes I53b512b1,I1be0028c,Iabd6b355,I7d3ccb15 am: 4179e0131a

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

Change-Id: I7ce4415e8699ec5b8279c1facc864a572a89fb23

3 years agoMerge "rusty-gd: switch added services based on module under test" am: 71a9cf700d
Zach Johnson [Mon, 16 Nov 2020 21:29:03 +0000 (21:29 +0000)]
Merge "rusty-gd: switch added services based on module under test" am: 71a9cf700d

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

Change-Id: I63eac6fdeca2ff7f580f47da1760ea5506a20c98

3 years agoMerge "Simplify HAL protos" am: 7587b305c9
Zach Johnson [Mon, 16 Nov 2020 21:23:44 +0000 (21:23 +0000)]
Merge "Simplify HAL protos" am: 7587b305c9

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

Change-Id: I82641d4b8ea06c00d3b270c4d94c256b3d8a9168

3 years agoMerge changes I53b512b1,I1be0028c,Iabd6b355,I7d3ccb15
Myles Watson [Mon, 16 Nov 2020 20:27:23 +0000 (20:27 +0000)]
Merge changes I53b512b1,I1be0028c,Iabd6b355,I7d3ccb15

* changes:
  CertSecurity: Add OOB related interfaces
  PySecurity: Add enable_secure_connections interface
  HciCaptures: Add OOB Related captures
  HciMatchers: Add OOB Related events.

3 years agoMerge "rusty-gd: switch added services based on module under test"
Zach Johnson [Mon, 16 Nov 2020 20:22:59 +0000 (20:22 +0000)]
Merge "rusty-gd: switch added services based on module under test"

3 years agorusty-gd: switch added services based on module under test
Zach Johnson [Wed, 11 Nov 2020 21:54:16 +0000 (13:54 -0800)]
rusty-gd: switch added services based on module under test

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I4c5ea7aa7273b77c95bcc9b8e21d286b35e67d10

3 years agoCertSecurity: Add OOB related interfaces
Martin Brabham [Fri, 13 Nov 2020 23:06:55 +0000 (15:06 -0800)]
CertSecurity: Add OOB related interfaces

 - set_remote_oob_data
 - get_oob_data_from_controller
 - enable_secure_connections

Bug: 162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Change-Id: I53b512b121a24d2c56b0cbeba9e16f38d19c09cd

3 years agoPySecurity: Add enable_secure_connections interface
Martin Brabham [Fri, 13 Nov 2020 21:59:46 +0000 (13:59 -0800)]
PySecurity: Add enable_secure_connections interface

Bug: 162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Change-Id: I1be0028cd1b9aed83145ad75e7f62357a91414c5

3 years agoHciCaptures: Add OOB Related captures
Martin Brabham [Fri, 13 Nov 2020 00:40:07 +0000 (16:40 -0800)]
HciCaptures: Add OOB Related captures

Bug: 162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Change-Id: Iabd6b3556114739c75e65253cb5d0eb8169e708e

3 years agoHciMatchers: Add OOB Related events.
Martin Brabham [Fri, 13 Nov 2020 00:39:16 +0000 (16:39 -0800)]
HciMatchers: Add OOB Related events.

Additionally, add a useful Logger function that assisted with
solving the problem.

Bug: 162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Change-Id: I7d3ccb1593295204d09188f3a0b24b3fbdf3fe14

3 years agoMerge "Simplify HAL protos"
Zach Johnson [Mon, 16 Nov 2020 18:06:56 +0000 (18:06 +0000)]
Merge "Simplify HAL protos"

3 years agoMerge "Disable sniff for faulty remotes" am: 34140a7d4c am: 410368c94a
Treehugger Robot [Mon, 16 Nov 2020 02:17:38 +0000 (02:17 +0000)]
Merge "Disable sniff for faulty remotes" am: 34140a7d4c am: 410368c94a

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

Change-Id: I9f4869ef24037f1663b75250317b63e75176465e

3 years agoMerge "Disable sniff for faulty remotes" am: 34140a7d4c
Treehugger Robot [Mon, 16 Nov 2020 02:02:53 +0000 (02:02 +0000)]
Merge "Disable sniff for faulty remotes" am: 34140a7d4c

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

Change-Id: I43c037e3e81a9fa54fe032e6d79a5ad6eb218f47

3 years agoMerge "Disable sniff for faulty remotes"
Treehugger Robot [Mon, 16 Nov 2020 01:54:17 +0000 (01:54 +0000)]
Merge "Disable sniff for faulty remotes"

3 years agoCanonicalization of tGATT_CBACK gap and gatt am: 4692b7f16f am: 30d77a6681
Chris Manton [Sat, 14 Nov 2020 18:09:41 +0000 (18:09 +0000)]
Canonicalization of tGATT_CBACK gap and gatt am: 4692b7f16f am: 30d77a6681

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

Change-Id: If1f6f48167b27c93cf4d084a5994dbe62bf19a66

3 years agoCanonicalization of tGATT_CBACK gap and gatt am: 4692b7f16f
Chris Manton [Sat, 14 Nov 2020 17:56:41 +0000 (17:56 +0000)]
Canonicalization of tGATT_CBACK gap and gatt am: 4692b7f16f

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

Change-Id: I1156c92f8aa7280b47e88cce682788fe9a05ad4f

3 years agoCanonicalization of tGATT_CBACK gap and gatt
Chris Manton [Thu, 12 Nov 2020 18:41:01 +0000 (10:41 -0800)]
Canonicalization of tGATT_CBACK gap and gatt

Towards readable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: I34092cd3c8776d649532a192e90190516d2ae09d

3 years agoMerge "Fix for Multiplication overflow will be crash btstack" am: 47afa6d49d am:...
Treehugger Robot [Sat, 14 Nov 2020 00:26:01 +0000 (00:26 +0000)]
Merge "Fix for Multiplication overflow will be crash btstack" am: 47afa6d49d am: 524c3db482

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

Change-Id: I4d33512ab4b0f9173275d94bc8dc376367118ea5

3 years agoMerge "Fix for Multiplication overflow will be crash btstack" am: 47afa6d49d
Treehugger Robot [Sat, 14 Nov 2020 00:18:07 +0000 (00:18 +0000)]
Merge "Fix for Multiplication overflow will be crash btstack" am: 47afa6d49d

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

Change-Id: Ie9b3119f99e6f08aa92a1f0ed5e0cc001cb3dc82

3 years agoMerge "Fix for Multiplication overflow will be crash btstack"
Treehugger Robot [Sat, 14 Nov 2020 00:07:38 +0000 (00:07 +0000)]
Merge "Fix for Multiplication overflow will be crash btstack"

3 years agoMerge changes I014fe130,I2e0301e3 am: e968b9f734 am: d9d495c384
Zach Johnson [Fri, 13 Nov 2020 20:20:44 +0000 (20:20 +0000)]
Merge changes I014fe130,I2e0301e3 am: e968b9f734 am: d9d495c384

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

Change-Id: I31a4792cb3e04b8c9f8fae59c1447afb4379d6b1

3 years agoMerge changes I014fe130,I2e0301e3 am: e968b9f734
Zach Johnson [Fri, 13 Nov 2020 20:05:57 +0000 (20:05 +0000)]
Merge changes I014fe130,I2e0301e3 am: e968b9f734

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

Change-Id: If94f367108a263f011f448fd739058442e7a1b0c

3 years agoMerge changes I014fe130,I2e0301e3
Zach Johnson [Fri, 13 Nov 2020 19:41:21 +0000 (19:41 +0000)]
Merge changes I014fe130,I2e0301e3

* changes:
  rusty-gd: convert hci facade to rust_grpcio build targets
  rusty-gd: add stubs for hci hal facade

3 years agoFix for Multiplication overflow will be crash btstack
cnx421 [Fri, 6 Nov 2020 07:35:04 +0000 (15:35 +0800)]
Fix for Multiplication overflow will be crash btstack

When a2dp using LDAC ecoding PCM,if encoding thread is runned by deley after 2 secends,
btstack will overflow .System will abort to crash by arm gcc code.

Bug: 172590955
Tag: #stability
Test: compile & verify basic functions working
Test: pair to a support LDAC ecode BT headset

Change-Id: Ie470bd51bfd7951d0c674b37aa6af7554cf9faa8

3 years agoMerge "gd: Use ExtendedAdvertising as main advertising function" am: 5bcc243ccc am...
Treehugger Robot [Fri, 13 Nov 2020 08:07:36 +0000 (08:07 +0000)]
Merge "gd: Use ExtendedAdvertising as main advertising function" am: 5bcc243ccc am: 36edf88ff4

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

Change-Id: I487072479e16cf6ef734602b880ff5630230331f

3 years agoMerge "gd: Use ExtendedAdvertising as main advertising function" am: 5bcc243ccc
Treehugger Robot [Fri, 13 Nov 2020 07:42:00 +0000 (07:42 +0000)]
Merge "gd: Use ExtendedAdvertising as main advertising function" am: 5bcc243ccc

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

Change-Id: I7486b2970034d1a00d97d30bb1b016bf8bc9038a

3 years agoMerge "gd: Use ExtendedAdvertising as main advertising function"
Treehugger Robot [Fri, 13 Nov 2020 06:42:38 +0000 (06:42 +0000)]
Merge "gd: Use ExtendedAdvertising as main advertising function"

3 years agoMerge changes Ida69a204,Iad4dbf36,I6749a539,Iab3b9763 am: cdc11ddccb am: ae366d6be3
Michael Sun [Thu, 12 Nov 2020 21:27:00 +0000 (21:27 +0000)]
Merge changes Ida69a204,Iad4dbf36,I6749a539,Iab3b9763 am: cdc11ddccb am: ae366d6be3

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

Change-Id: Ie1ec44646877a5bd78493441484acbad69a71060

3 years agoMerge changes Ida69a204,Iad4dbf36,I6749a539,Iab3b9763 am: cdc11ddccb
Michael Sun [Thu, 12 Nov 2020 21:05:36 +0000 (21:05 +0000)]
Merge changes Ida69a204,Iad4dbf36,I6749a539,Iab3b9763 am: cdc11ddccb

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

Change-Id: Id94ff56221630d26f31d9a91cecf1d3096fd2464

3 years agoMerge changes Ida69a204,Iad4dbf36,I6749a539,Iab3b9763
Michael Sun [Thu, 12 Nov 2020 20:35:32 +0000 (20:35 +0000)]
Merge changes Ida69a204,Iad4dbf36,I6749a539,Iab3b9763

* changes:
  btaa: subscribe to bt_snoop to receive HCI data
  btaa: subscribe to SystemSuspend for wakelock notification
  btaa: subscribe to SystemSuspend for wakeup notification
  btaa: introduce Bluetooth Activity Attribution skeleton

3 years agol2cap: Allow services without config indicator cb to register am: 6c319f3219 am:...
Chris Manton [Thu, 12 Nov 2020 19:42:21 +0000 (19:42 +0000)]
l2cap: Allow services without config indicator cb to register am: 6c319f3219 am: 1c0269b580

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

Change-Id: Ia6720c85d3d4c108ce34255067f6477ec7e44e88

3 years agoRe-log stack/l2cap/l2c_api::L2CA_DisconnectReq am: 8cd1cfabdc am: 5e5b61d8fb
Chris Manton [Thu, 12 Nov 2020 19:42:20 +0000 (19:42 +0000)]
Re-log stack/l2cap/l2c_api::L2CA_DisconnectReq am: 8cd1cfabdc am: 5e5b61d8fb

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

Change-Id: I881af98b6974b210c199e508fc55a820a3def2bc

3 years agoRe-log stack/acl/btm_acl::acl_disconnect_after_role_switch am: f2c7cecacb am: 0601e030d7
Chris Manton [Thu, 12 Nov 2020 19:42:20 +0000 (19:42 +0000)]
Re-log stack/acl/btm_acl::acl_disconnect_after_role_switch am: f2c7cecacb am: 0601e030d7

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

Change-Id: Iaa617de53fac81e9a73a27654a0777b91feb0673

3 years agoRe-log stack/gatt/gatt_cl::gatt_process_prep_write_rsp am: 37fc5e5af3 am: 1959fa55bb
Chris Manton [Thu, 12 Nov 2020 19:42:19 +0000 (19:42 +0000)]
Re-log stack/gatt/gatt_cl::gatt_process_prep_write_rsp am: 37fc5e5af3 am: 1959fa55bb

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

Change-Id: Ic9c2ec7f48e26d8be2c6e5b6f3a7a8c178d95135

3 years agoStat-ify btif/src/btif_gatt_client am: 511ae6ed01 am: ec7bbcdcf6
Chris Manton [Thu, 12 Nov 2020 19:42:18 +0000 (19:42 +0000)]
Stat-ify btif/src/btif_gatt_client am: 511ae6ed01 am: ec7bbcdcf6

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

Change-Id: I743248a1fea5304253ea10370f8a16322d7d3ae7

3 years agoAdd btif/src/btif_gatt_client::bta_gattc_event_text am: 34aaeba697 am: 6d34724189
Chris Manton [Thu, 12 Nov 2020 19:42:16 +0000 (19:42 +0000)]
Add btif/src/btif_gatt_client::bta_gattc_event_text am: 34aaeba697 am: 6d34724189

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

Change-Id: I76ad3da33d69f99005e12f072fa69eb0975c980d

3 years agogatt: Properly put gatt status in field am: 5b019c5a96 am: ce779126e1
Chris Manton [Thu, 12 Nov 2020 19:42:12 +0000 (19:42 +0000)]
gatt: Properly put gatt status in field am: 5b019c5a96 am: ce779126e1

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

Change-Id: If19355ef1e844fe93ff134cf9f08e8ac49fe19ff

3 years agol2cap: Add mtu and mps to lead eatt channel am: 632687315b am: 52617ce702
Chris Manton [Thu, 12 Nov 2020 19:42:11 +0000 (19:42 +0000)]
l2cap: Add mtu and mps to lead eatt channel am: 632687315b am: 52617ce702

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

Change-Id: Id07420f5fa63de3606b0337b79b0be8d231d3697

3 years agoRe-log stack/l2cap/l2c_ble::l2cble_process_sig_cmd am: 24185775e9 am: 6bc6db1ac7
Chris Manton [Thu, 12 Nov 2020 19:42:10 +0000 (19:42 +0000)]
Re-log stack/l2cap/l2c_ble::l2cble_process_sig_cmd am: 24185775e9 am: 6bc6db1ac7

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

Change-Id: Ib9c02010ba8125372da695d353dddf9a6e92428a

3 years agoStat-ify functions in bta/sys/bta_sys_main am: 2b22c4ea7f am: 3265b3000d
Chris Manton [Thu, 12 Nov 2020 19:42:09 +0000 (19:42 +0000)]
Stat-ify functions in bta/sys/bta_sys_main am: 2b22c4ea7f am: 3265b3000d

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

Change-Id: I43bcf508b7ee2e26684369b4173b1a42f38189d1

3 years agoAdd BtaIdSysText::BTA_ID_GATTC am: f9492238c2 am: 9742c03268
Chris Manton [Thu, 12 Nov 2020 19:42:08 +0000 (19:42 +0000)]
Add BtaIdSysText::BTA_ID_GATTC am: f9492238c2 am: 9742c03268

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

Change-Id: Ifd5323a1053f0caab7137327001f6e599b2b7853

3 years agoAdd stack/include/l2cdefs::l2cap_le_result_code_text am: f33fcfc2f9 am: 74e7e98992
Chris Manton [Thu, 12 Nov 2020 19:42:07 +0000 (19:42 +0000)]
Add stack/include/l2cdefs::l2cap_le_result_code_text am: f33fcfc2f9 am: 74e7e98992

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

Change-Id: I471c75c51df6672b033d815e4e4f3e659ea5898e

3 years agoUse stack/l2cap/l2c_csm::channel_state_text() am: 19be3c2d2b am: 11a98078c6
Chris Manton [Thu, 12 Nov 2020 19:42:06 +0000 (19:42 +0000)]
Use stack/l2cap/l2c_csm::channel_state_text() am: 19be3c2d2b am: 11a98078c6

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

Change-Id: I0fe1f6c67022455ab828db51dce8cd7bb98df307

3 years agoenum-ify stack/l2cap/l2c_int::L2CEVT_LP am: a424a2559c am: 927611e913
Chris Manton [Thu, 12 Nov 2020 19:42:05 +0000 (19:42 +0000)]
enum-ify stack/l2cap/l2c_int::L2CEVT_LP am: a424a2559c am: 927611e913

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

Change-Id: I9abf3260e71bb895068a1c54beae461dd9734e63

3 years agoAdd stack/l2cap/l2c_csm::channel_state_text am: c331074767 am: 16aef5e785
Chris Manton [Thu, 12 Nov 2020 19:42:04 +0000 (19:42 +0000)]
Add stack/l2cap/l2c_csm::channel_state_text am: c331074767 am: 16aef5e785

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

Change-Id: I72de82ab5ab980757ffb8f237a72e5322fc7757a

3 years agol2cap: Allow services without config indicator cb to register am: 6c319f3219
Chris Manton [Thu, 12 Nov 2020 19:24:03 +0000 (19:24 +0000)]
l2cap: Allow services without config indicator cb to register am: 6c319f3219

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

Change-Id: I548c627ae0c6f0b1861f28dd885901c293f57014

3 years agoRe-log stack/l2cap/l2c_api::L2CA_DisconnectReq am: 8cd1cfabdc
Chris Manton [Thu, 12 Nov 2020 19:23:59 +0000 (19:23 +0000)]
Re-log stack/l2cap/l2c_api::L2CA_DisconnectReq am: 8cd1cfabdc

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

Change-Id: I6ae5a2cbd8cd4735f4eeafe41bd94729435aa1fb

3 years agoRe-log stack/acl/btm_acl::acl_disconnect_after_role_switch am: f2c7cecacb
Chris Manton [Thu, 12 Nov 2020 19:23:56 +0000 (19:23 +0000)]
Re-log stack/acl/btm_acl::acl_disconnect_after_role_switch am: f2c7cecacb

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

Change-Id: I0e1bb8b6de710456e389970495cf0008faf1ada0

3 years agoRe-log stack/gatt/gatt_cl::gatt_process_prep_write_rsp am: 37fc5e5af3
Chris Manton [Thu, 12 Nov 2020 19:23:52 +0000 (19:23 +0000)]
Re-log stack/gatt/gatt_cl::gatt_process_prep_write_rsp am: 37fc5e5af3

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

Change-Id: Ia9ea552d80f2b32ea9ede68ee41a9916e7932ce9

3 years agoStat-ify btif/src/btif_gatt_client am: 511ae6ed01
Chris Manton [Thu, 12 Nov 2020 19:23:48 +0000 (19:23 +0000)]
Stat-ify btif/src/btif_gatt_client am: 511ae6ed01

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

Change-Id: Id15d127802eb355dd7520cd52baff97a9ca52fa2

3 years agoAdd btif/src/btif_gatt_client::bta_gattc_event_text am: 34aaeba697
Chris Manton [Thu, 12 Nov 2020 19:23:44 +0000 (19:23 +0000)]
Add btif/src/btif_gatt_client::bta_gattc_event_text am: 34aaeba697

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

Change-Id: Ibd0a8f4be7b7fc1f4a7c42461568c41e6ac868fe

3 years agogatt: Properly put gatt status in field am: 5b019c5a96
Chris Manton [Thu, 12 Nov 2020 19:23:40 +0000 (19:23 +0000)]
gatt: Properly put gatt status in field am: 5b019c5a96

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

Change-Id: Idbfa2771edd02a06c15ff3046a4b99ba1377b25e

3 years agol2cap: Add mtu and mps to lead eatt channel am: 632687315b
Chris Manton [Thu, 12 Nov 2020 19:23:36 +0000 (19:23 +0000)]
l2cap: Add mtu and mps to lead eatt channel am: 632687315b

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

Change-Id: I6bfd9fa17343bf223f47481324f9ba055e061b4b

3 years agoRe-log stack/l2cap/l2c_ble::l2cble_process_sig_cmd am: 24185775e9
Chris Manton [Thu, 12 Nov 2020 19:23:31 +0000 (19:23 +0000)]
Re-log stack/l2cap/l2c_ble::l2cble_process_sig_cmd am: 24185775e9

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

Change-Id: I9f31de87c66b8ffc7a38b4480ecd8d531adce96c

3 years agoStat-ify functions in bta/sys/bta_sys_main am: 2b22c4ea7f
Chris Manton [Thu, 12 Nov 2020 19:23:28 +0000 (19:23 +0000)]
Stat-ify functions in bta/sys/bta_sys_main am: 2b22c4ea7f

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

Change-Id: I0e1f56a0e0f38bedfa05a7c3a2680436ed328e54

3 years agoAdd BtaIdSysText::BTA_ID_GATTC am: f9492238c2
Chris Manton [Thu, 12 Nov 2020 19:23:24 +0000 (19:23 +0000)]
Add BtaIdSysText::BTA_ID_GATTC am: f9492238c2

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

Change-Id: I6bde105772f4d402e5b9e6bf30720dbbcfebd063

3 years agoAdd stack/include/l2cdefs::l2cap_le_result_code_text am: f33fcfc2f9
Chris Manton [Thu, 12 Nov 2020 19:23:19 +0000 (19:23 +0000)]
Add stack/include/l2cdefs::l2cap_le_result_code_text am: f33fcfc2f9

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

Change-Id: I1e5b157c6007657d9d4117c19a5a7528e6c28d0a

3 years agoUse stack/l2cap/l2c_csm::channel_state_text() am: 19be3c2d2b
Chris Manton [Thu, 12 Nov 2020 19:23:15 +0000 (19:23 +0000)]
Use stack/l2cap/l2c_csm::channel_state_text() am: 19be3c2d2b

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

Change-Id: I85894b1d263d5a7358e7ff86d7e051a6a692eb73

3 years agoenum-ify stack/l2cap/l2c_int::L2CEVT_LP am: a424a2559c
Chris Manton [Thu, 12 Nov 2020 19:23:10 +0000 (19:23 +0000)]
enum-ify stack/l2cap/l2c_int::L2CEVT_LP am: a424a2559c

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

Change-Id: I040df776f6bd418c8bbf1792d0a54629f4eb113e

3 years agoAdd stack/l2cap/l2c_csm::channel_state_text am: c331074767
Chris Manton [Thu, 12 Nov 2020 19:22:55 +0000 (19:22 +0000)]
Add stack/l2cap/l2c_csm::channel_state_text am: c331074767

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

Change-Id: Ibd29f067361aa861c9e2ff0100bb3bb69a9263ce

3 years agol2cap: Allow services without config indicator cb to register
Chris Manton [Wed, 11 Nov 2020 19:44:29 +0000 (11:44 -0800)]
l2cap: Allow services without config indicator cb to register

l2cap prevented BNEP from registering b/c of a missing
(now optional) config indicator callback.

Bug: 170278807
Tag: #stability
Test: CtsVerifier

Change-Id: Ibe849b2de82913f2228d877227179c223aab8c4e

3 years agoRe-log stack/l2cap/l2c_api::L2CA_DisconnectReq
Chris Manton [Thu, 12 Nov 2020 00:44:15 +0000 (16:44 -0800)]
Re-log stack/l2cap/l2c_api::L2CA_DisconnectReq

Toward loggable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: I407f9aa305a8e70c23a1b83a898684f2798a5a32

3 years agoRe-log stack/acl/btm_acl::acl_disconnect_after_role_switch
Chris Manton [Thu, 12 Nov 2020 00:44:45 +0000 (16:44 -0800)]
Re-log stack/acl/btm_acl::acl_disconnect_after_role_switch

Toward loggable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: Ifa72697bc33520e21c51ce7d82856497adf6f282

3 years agoRe-log stack/gatt/gatt_cl::gatt_process_prep_write_rsp
Chris Manton [Thu, 12 Nov 2020 16:40:10 +0000 (08:40 -0800)]
Re-log stack/gatt/gatt_cl::gatt_process_prep_write_rsp

Toward loggable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: Ice004fb4babd77075dd1dba26198186df75c5880

3 years agoStat-ify btif/src/btif_gatt_client
Chris Manton [Thu, 12 Nov 2020 00:44:27 +0000 (16:44 -0800)]
Stat-ify btif/src/btif_gatt_client

Toward readable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: I2d7da0024fefd37ae7c72d0e13d3087904740182

3 years agoAdd btif/src/btif_gatt_client::bta_gattc_event_text
Chris Manton [Wed, 11 Nov 2020 22:03:43 +0000 (14:03 -0800)]
Add btif/src/btif_gatt_client::bta_gattc_event_text

Toward loggable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: I041492f74c5e0d91f1b8f45370c263bcd8f5b343

3 years agogatt: Properly put gatt status in field
Chris Manton [Thu, 12 Nov 2020 02:27:12 +0000 (18:27 -0800)]
gatt: Properly put gatt status in field

Bug: 172805487
Test: CtsVerifier
Tag: #stability

Change-Id: I4e730cd8b367fe9764bae3bc49a7a4ee8f00c708

3 years agoDisable sniff for faulty remotes
Venkata Jagadeesh Garaga [Thu, 23 May 2019 12:43:53 +0000 (18:13 +0530)]
Disable sniff for faulty remotes

Some remote supports sniff but when dut initiates sniff req,
remote wont respond and acl connection will be terminated
from soc with LMP responce time out

Tag: #compatibility
Bug: 163109241
Test: Manual
Change-Id: I77b5c0daf22c9f3adaf2a7b75c20bc8e27d8990c

3 years agol2cap: Add mtu and mps to lead eatt channel
Chris Manton [Wed, 11 Nov 2020 20:58:17 +0000 (12:58 -0800)]
l2cap: Add mtu and mps to lead eatt channel

Bug: 159786353
Test: CtsVerifier
Tag: #feature

Change-Id: Ia5be81bde7a10d0b8e466b9b856d75d52b43a349

3 years agoRe-log stack/l2cap/l2c_ble::l2cble_process_sig_cmd
Chris Manton [Wed, 11 Nov 2020 20:03:41 +0000 (12:03 -0800)]
Re-log stack/l2cap/l2c_ble::l2cble_process_sig_cmd

Toward loggable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: I6aad2f2d7768fc5baaab2577c5c6814d23629c53

3 years agoStat-ify functions in bta/sys/bta_sys_main
Chris Manton [Wed, 11 Nov 2020 23:40:56 +0000 (15:40 -0800)]
Stat-ify functions in bta/sys/bta_sys_main

Toward readble code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: Ibb761116da5ccec5562ac144349f8f419cb10319

3 years agoAdd BtaIdSysText::BTA_ID_GATTC
Chris Manton [Thu, 12 Nov 2020 00:27:13 +0000 (16:27 -0800)]
Add BtaIdSysText::BTA_ID_GATTC

Toward loggable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: I554f271c622e8c9e7285b26494bdd90bd0a68822

3 years agoAdd stack/include/l2cdefs::l2cap_le_result_code_text
Chris Manton [Wed, 11 Nov 2020 16:54:36 +0000 (08:54 -0800)]
Add stack/include/l2cdefs::l2cap_le_result_code_text

Toward loggable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: I4ed9cca2e866f5862e029916e2b964e720628eb2

3 years agoUse stack/l2cap/l2c_csm::channel_state_text()
Chris Manton [Wed, 11 Nov 2020 16:20:19 +0000 (08:20 -0800)]
Use stack/l2cap/l2c_csm::channel_state_text()

Toward loggable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: I29fde7572ac65e739d83cec7c19cae2d3bd773a6

3 years agoenum-ify stack/l2cap/l2c_int::L2CEVT_LP
Chris Manton [Wed, 11 Nov 2020 15:57:27 +0000 (07:57 -0800)]
enum-ify stack/l2cap/l2c_int::L2CEVT_LP

Toward readable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: I03fa8bfd1866d7bb3d8cb8a1b7c6315c744728c4

3 years agoAdd stack/l2cap/l2c_csm::channel_state_text
Chris Manton [Wed, 11 Nov 2020 15:51:12 +0000 (07:51 -0800)]
Add stack/l2cap/l2c_csm::channel_state_text

Toward loggable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: I6a85fe9e5d0ae3c16fa2dd5fe4933f754f270a9f

3 years agoClean up user apps before GD is shutdown am: 13fe711de4 am: 0a6d41903c
Hansong Zhang [Wed, 11 Nov 2020 23:21:32 +0000 (23:21 +0000)]
Clean up user apps before GD is shutdown am: 13fe711de4 am: 0a6d41903c

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

Change-Id: I2a6167ca23e5d3a22c9dad93c8d21afa14ef51f9

3 years agoClean up user apps before GD is shutdown am: 13fe711de4
Hansong Zhang [Wed, 11 Nov 2020 23:01:05 +0000 (23:01 +0000)]
Clean up user apps before GD is shutdown am: 13fe711de4

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

Change-Id: I99b8d2c9e68e46ff3f861549ba2d9309354d680e

3 years agoSimplify HAL protos
Zach Johnson [Wed, 11 Nov 2020 20:51:59 +0000 (12:51 -0800)]
Simplify HAL protos

* It's the HciHal, so HCI on functions and structs is redundant.
* FetchXYZ returns a stream, so rename to StreamXYZ
* Event & Commands are less about packets, so drop packet from the
struct names

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I62fb098ee6a5a4805ad0667101c7de5a3368c4f2

3 years agoClean up user apps before GD is shutdown
Hansong Zhang [Wed, 11 Nov 2020 19:25:16 +0000 (11:25 -0800)]
Clean up user apps before GD is shutdown

GATT, L2C, SDP, BTM depend on GD core modules if GD is enabled. Stop
them first before GD.

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

3 years agoMerge "L2CAP: keep cached peer configuration locally" am: c89683cb70 am: c77942fa91
Treehugger Robot [Wed, 11 Nov 2020 18:37:45 +0000 (18:37 +0000)]
Merge "L2CAP: keep cached peer configuration locally" am: c89683cb70 am: c77942fa91

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

Change-Id: Ia0b2f5497660f5414f5bbe7d9351382ca2cbeae1

3 years agoMerge "L2CAP: keep cached peer configuration locally" am: c89683cb70
Treehugger Robot [Wed, 11 Nov 2020 18:20:08 +0000 (18:20 +0000)]
Merge "L2CAP: keep cached peer configuration locally" am: c89683cb70

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

Change-Id: I3793ecadc1359c46872a6c7351a3c468583aa1ef

3 years agoMerge "L2CAP: keep cached peer configuration locally"
Treehugger Robot [Wed, 11 Nov 2020 17:41:14 +0000 (17:41 +0000)]
Merge "L2CAP: keep cached peer configuration locally"

3 years agoMerge "Use p_acl->remote_addr to do BTA_dm_acl_down" am: b14c60ebbe am: cbfce7a21f
Treehugger Robot [Wed, 11 Nov 2020 01:40:05 +0000 (01:40 +0000)]
Merge "Use p_acl->remote_addr to do BTA_dm_acl_down" am: b14c60ebbe am: cbfce7a21f

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

Change-Id: I2ac75aefb77a308a130cba9f827f4df92eb44840

3 years agoMerge "Use p_acl->remote_addr to do BTA_dm_acl_down" am: b14c60ebbe
Treehugger Robot [Wed, 11 Nov 2020 01:21:15 +0000 (01:21 +0000)]
Merge "Use p_acl->remote_addr to do BTA_dm_acl_down" am: b14c60ebbe

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

Change-Id: I4aa0944ab948e6e5c36457aa7a23cee2a9e5b647

3 years agoMerge "Use p_acl->remote_addr to do BTA_dm_acl_down"
Treehugger Robot [Wed, 11 Nov 2020 01:01:02 +0000 (01:01 +0000)]
Merge "Use p_acl->remote_addr to do BTA_dm_acl_down"

3 years agoMerge changes from topics "btaa-jni-1", "btaa-jni-2" am: a36d154846 am: 60a9f99b83
Michael Sun [Wed, 11 Nov 2020 00:42:19 +0000 (00:42 +0000)]
Merge changes from topics "btaa-jni-1", "btaa-jni-2" am: a36d154846 am: 60a9f99b83

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

Change-Id: I88a093e34eb3bad90f7d15ea4459e09388663798

3 years agobtaa: new include files in bt stack for BTAA interface am: 439abd73ae am: cdbd47cbf8
Michael Sun [Wed, 11 Nov 2020 00:42:13 +0000 (00:42 +0000)]
btaa: new include files in bt stack for BTAA interface am: 439abd73ae am: cdbd47cbf8

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

Change-Id: Ia7056a59e263694400346a4432c882d96d0bed4c

3 years agoMerge changes from topics "btaa-jni-1", "btaa-jni-2" am: a36d154846
Michael Sun [Wed, 11 Nov 2020 00:30:23 +0000 (00:30 +0000)]
Merge changes from topics "btaa-jni-1", "btaa-jni-2" am: a36d154846

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

Change-Id: Ie8b3f7c7bf690afe9d72d28f8c28a4f0e999b58c

3 years agobtaa: new include files in bt stack for BTAA interface am: 439abd73ae
Michael Sun [Wed, 11 Nov 2020 00:29:47 +0000 (00:29 +0000)]
btaa: new include files in bt stack for BTAA interface am: 439abd73ae

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

Change-Id: Ibc0fa44554ebb37a97981ef11cc8f40afbe17301

3 years agoMerge changes from topics "btaa-jni-1", "btaa-jni-2"
Michael Sun [Wed, 11 Nov 2020 00:00:11 +0000 (00:00 +0000)]
Merge changes from topics "btaa-jni-1", "btaa-jni-2"

* changes:
  btaa: introduce btif interface for btaa
  btaa: new include files in bt stack for BTAA interface

3 years agogd: Use ExtendedAdvertising as main advertising function
Chienyuan [Tue, 10 Nov 2020 11:27:54 +0000 (19:27 +0800)]
gd: Use ExtendedAdvertising as main advertising function

Tag: #gd-refactor
Bug: 169125803
Test: cert/run --host
Test: atest --host bluetooth_test_gd
Change-Id: Idb3f4d3dde3d554cb2115e82bba4880bc674157e

3 years agobtaa: subscribe to bt_snoop to receive HCI data
Michael Sun [Fri, 6 Nov 2020 19:53:59 +0000 (19:53 +0000)]
btaa: subscribe to bt_snoop to receive HCI data

Subscribe to the btsnoop_mem to receive HCI data when captured.

Tag: #feature
Bug: 170315554
Test: verified BTAA module receives specified HCI packets

Change-Id: Ida69a204f11cb13aca6eda28a5850b8b576e5f17

3 years agobtaa: subscribe to SystemSuspend for wakelock notification
Michael Sun [Fri, 6 Nov 2020 08:18:19 +0000 (08:18 +0000)]
btaa: subscribe to SystemSuspend for wakelock notification

Subscribe to the SystemSuspend provided wakelock information by the
Bluetooth wakelock name.

Tag: #feature
Bug: 170315554
Test: verified BTAA module receives specified wakelock notification

Change-Id: Iad4dbf36690aea2ba9b1f151f0d0d118e6015781

3 years agobtaa: subscribe to SystemSuspend for wakeup notification
Michael Sun [Fri, 6 Nov 2020 01:19:16 +0000 (01:19 +0000)]
btaa: subscribe to SystemSuspend for wakeup notification

This change initialize the SystemSuspend client at BTAA module and have
it subscribed to wakeup notification with wakeup reasons.

Tag: #feature
Bug: 170315554
Test: verified BTAA module receives wakeup notification
Change-Id: I6749a539f9a59f1893f4159cec6b7c9f517ead9d

3 years agobtaa: introduce Bluetooth Activity Attribution skeleton
Michael Sun [Thu, 5 Nov 2020 06:33:48 +0000 (06:33 +0000)]
btaa: introduce Bluetooth Activity Attribution skeleton

This change added skeleton implementation of Bluetooth Activity
Attribution (BTAA) into the Bluetooth stack.

Tag: #feature
Bug: 170315554
Test: verified locally BTAA module get initialized

Change-Id: Iab3b976370e4d1866e9a308d4e6f9a11cdff037c

3 years agoUse p_acl->remote_addr to do BTA_dm_acl_down
weichinweng [Tue, 10 Nov 2020 07:06:30 +0000 (15:06 +0800)]
Use p_acl->remote_addr to do BTA_dm_acl_down

Use p_acl->remote_addr to do BTA_dm_acl_down, not p_acl->conn_addr.

Bug: 171669750
Tag: #feature
Test: compile & forget BLE/Hearingaids device while connected.
Change-Id: Ie44e818c4bc176df5426996a06a99536c5250077