OSDN Git Service

android-x86/system-bt.git
3 years agoRemove unused flags am: 43838d7693 am: a36f2d9c48
Zach Johnson [Wed, 21 Apr 2021 02:23:42 +0000 (02:23 +0000)]
Remove unused flags am: 43838d7693 am: a36f2d9c48

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

Change-Id: I57e004aaa0606d4668433702b75a069165580cf3

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

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

Change-Id: Id7c029b3beb6c5bd779df1b02662399f07b9fc0b

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

nobody needs this

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

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

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

Change-Id: I2d0f40bbc3ad347e38e7fe7748356e1f1dcf034f

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

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

Change-Id: Ie0156a357ab7ec2293f035563a66e3ee7e7018ef

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

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

Change-Id: Id6aeb8f25cabb9b7a45842361e5eab12c0b78fca

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

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

Change-Id: I2c7e2178fd201cfdf284060a83793e40557f7d64

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

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

Change-Id: Ifefcb7dfd15c1eafd7092fedbdce618cba27e608

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

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

Change-Id: I8c4d306984f91c07bd168808c08748e88f7a5b8c

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

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

Change-Id: I34b630b6155306a4f6b4f4525fb664dfc1f9fe00

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

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

Change-Id: I0bc4f2295cdc00b103a5e262d1be40392f0ddff5

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

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

Change-Id: I5c186c9bd52fc6112f26a00bbf460b87a5ed5b65

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

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

Change-Id: I223e7a87940e9cf4dc5e8db200e7dec3d6573fc8

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

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

Change-Id: Id193d5f3cf117b3818d690ee6782d369f696d6be

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

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

Change-Id: I7ff5f19cc6ea0f959f64b28a63b1ea87cc50a86f

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

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

Change-Id: I92f6279b54f3ebe17db9e85ff67973c3f83c2af3

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

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

Change-Id: If52cbaeaf1c16029a4ccec8801b22b8e733ffc8c

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

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

Change-Id: I0c3e7144c4cef876559a21c025f07af1b0036741

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

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

Change-Id: I2c0f6faf2ebf761751b0ddaa6425e0dbfa331f8d

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

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

Change-Id: I0ef1a48e6bb192f6ddcc02c480049c510c50d3e1

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

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

Change-Id: I82d7f347a47c2023842e5ee63d0faaf787d81d5d

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

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

Change-Id: I7e48b703a5e54d1d04c15f5d327a1604129c7dde

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

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

Change-Id: I59587f9b65f6912c4b93cf5e1b4ce774e5f11db6

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

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

Change-Id: I56dae0a371ef39c8ac81854776cf9e29de3fda91

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

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

Change-Id: I0c608f07ea15e3645187a8f21fa271eb5bf05a5f

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

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

Change-Id: I527743711e5cd4e30ab5fe8275a63b86a72a86c9

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

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

Change-Id: I7e95481a762fce8afd3111c497784dc97d4eae13

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

Toward meaningful code

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

Change-Id: I8837a66dcba4ab160fc152319b9eb71f27a61045

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

Toward readable code

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

Change-Id: I8984eb536a7241758e5276bd26aaab4bd02b97ac

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

Toward loggable code

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

Change-Id: I95495eb823cd4b01df96b48773ede6818d52b301

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

Toward readable code

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

Change-Id: I2869eb18c858b724a34d234ea67c0246d494d5f7

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

Toward meaningful code

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

Change-Id: I5d96ba04a4dea271488fc59b53558c775a315452

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

Toward loggable code

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

Change-Id: If38627c7034b88ddbd7306d9e9d0dc8c07f9ba9e

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

Toward loggable code

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

Change-Id: I3daf1d4bb8e7ec37828f6eb589b878215f769635

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

Toward loggable code

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

Change-Id: I0310f9e143fa1b1bec60efb113025000112d6fe6

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

Towards converging code

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

Change-Id: Id2c30a0deb41bb6cd1dd55099c17924e80e88335

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

Toward reliable code

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

Change-Id: If8a990740ea4446df2c9293d6f9342dc0e316f39

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

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

Change-Id: I439a6d16dd9a308dbce8e501b34bdd38d837abdc

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

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

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

Toward modularized code

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

Change-Id: Iac5bc9821127bc95d71384eb2a02555540ddb0dc

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

Toward loggable code

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

Change-Id: I90c66a3b676d3ee4c694e0cb9751d1dbc53c34b3

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

Toward loggable code

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

Change-Id: I4ed5973b81ad0691e7f85cca732650d0d5c2f225

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

Toward loggable code

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

Change-Id: I5173b895f0dba0637a5985dbae6e94038fe65ff9

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

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

Change-Id: I28420a70fca3eacdaf3a0e19ab2360324d26c317

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

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

Change-Id: I1681f65cfb3aa3cdfe38a1de987bf0aaf62d6c99

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

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

Change-Id: Ia408b0880f12ad001f34256f736474cf3c90ca47

3 years agoshim: Wrap TRY_POSTING_ON_MAIN conditional am: 0be12632d9 am: 2e774dc402
Chris Manton [Mon, 19 Apr 2021 22:18:47 +0000 (22:18 +0000)]
shim: Wrap TRY_POSTING_ON_MAIN conditional am: 0be12632d9 am: 2e774dc402

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

Change-Id: Ie487fb5c9e0070b69c0757054f6f46358e497dc2

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

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

Change-Id: I795bff72647e039c24692769b6bfbf84fd0ae3b0

3 years agoshim: Wrap TRY_POSTING_ON_MAIN conditional am: 0be12632d9
Chris Manton [Mon, 19 Apr 2021 22:00:19 +0000 (22:00 +0000)]
shim: Wrap TRY_POSTING_ON_MAIN conditional am: 0be12632d9

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

Change-Id: I48ad38cc2c699731a44dd6cd62f33b86845bfe75

3 years agoUse proper types tSDP_STATUS
Chris Manton [Tue, 16 Mar 2021 00:14:10 +0000 (17:14 -0700)]
Use proper types tSDP_STATUS

Toward readable code

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

Change-Id: Ie8f28b14b00e791110ffc5367a81ca8bf4a1060d

3 years agoMerge "HCI: Warn on unhandled events"
Treehugger Robot [Mon, 19 Apr 2021 21:44:01 +0000 (21:44 +0000)]
Merge "HCI: Warn on unhandled events"

3 years agoshim: Wrap TRY_POSTING_ON_MAIN conditional
Chris Manton [Mon, 19 Apr 2021 00:41:52 +0000 (17:41 -0700)]
shim: Wrap TRY_POSTING_ON_MAIN conditional

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

Change-Id: I34afd1b42744f1357f4a5ea6624e343bd7f59ad1

3 years agoMerge "Fix valid check for btm_process_remote_ext_features" am: 636d7a5dbb am: b7ebdebba4
Jack He [Mon, 19 Apr 2021 19:34:24 +0000 (19:34 +0000)]
Merge "Fix valid check for btm_process_remote_ext_features" am: 636d7a5dbb am: b7ebdebba4

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

Change-Id: I0a9ddaa022225c578229fc56feb1591d4de209de

3 years agoMerge "gd hci: Correct max_page_number for read remote feature complete" am: b02fa7ce...
Jack He [Mon, 19 Apr 2021 19:33:57 +0000 (19:33 +0000)]
Merge "gd hci: Correct max_page_number for read remote feature complete" am: b02fa7ced3 am: d42d29c327

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

Change-Id: I9b41d88b60dc0a7e4e38977c45a36ccedefde65b

3 years agoGD Storage: Call SaveDelayed on the right thread am: 5806b93dfc am: b9077a4b54
Jack He [Mon, 19 Apr 2021 19:33:38 +0000 (19:33 +0000)]
GD Storage: Call SaveDelayed on the right thread am: 5806b93dfc am: b9077a4b54

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

Change-Id: Ibdc1eff19a3dcf13c56d2fc5eb6717ff03ad248d

3 years agoHCI: Warn on unhandled events
Myles Watson [Mon, 19 Apr 2021 19:09:05 +0000 (12:09 -0700)]
HCI: Warn on unhandled events

Bug: 185731391
Test: cert/run
Tag: #gd-refactor
Change-Id: I0d63c4c85ab49a0bee857d384dd5b0d27a8fe8fd

3 years agoMerge "Fix valid check for btm_process_remote_ext_features" am: 636d7a5dbb
Jack He [Mon, 19 Apr 2021 19:10:13 +0000 (19:10 +0000)]
Merge "Fix valid check for btm_process_remote_ext_features" am: 636d7a5dbb

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

Change-Id: Iac86071fb5cf7b7bc7659436817c56ea9d780cbe

3 years agoMerge "gd hci: Correct max_page_number for read remote feature complete" am: b02fa7ced3
Jack He [Mon, 19 Apr 2021 19:09:56 +0000 (19:09 +0000)]
Merge "gd hci: Correct max_page_number for read remote feature complete" am: b02fa7ced3

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

Change-Id: Ia65e45e27edcabca8ab0ebc32a0eb1cc370a9d00

3 years agoGD Storage: Call SaveDelayed on the right thread am: 5806b93dfc
Jack He [Mon, 19 Apr 2021 19:08:10 +0000 (19:08 +0000)]
GD Storage: Call SaveDelayed on the right thread am: 5806b93dfc

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

Change-Id: I68fbf4c3abc283a06bd729a6c105a3aae623bbd0

3 years agoMerge "Fix valid check for btm_process_remote_ext_features"
Jack He [Mon, 19 Apr 2021 18:42:57 +0000 (18:42 +0000)]
Merge "Fix valid check for btm_process_remote_ext_features"

3 years agoMerge "gd hci: Correct max_page_number for read remote feature complete"
Jack He [Mon, 19 Apr 2021 18:42:48 +0000 (18:42 +0000)]
Merge "gd hci: Correct max_page_number for read remote feature complete"

3 years agoFix valid check for btm_process_remote_ext_features
Chienyuan [Mon, 19 Apr 2021 10:10:53 +0000 (18:10 +0800)]
Fix valid check for btm_process_remote_ext_features

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

3 years agogd hci: Correct max_page_number for read remote feature complete
Chienyuan [Mon, 19 Apr 2021 08:38:38 +0000 (16:38 +0800)]
gd hci: Correct max_page_number for read remote feature complete

Tag: #gd-refactor
Bug: 183688717
Test: gd/cert/run
Change-Id: I2386fb48d06f164fb3660bbb04603713ec4a742e

3 years agoGD Storage: Call SaveDelayed on the right thread
Jack He [Sat, 17 Apr 2021 08:37:25 +0000 (01:37 -0700)]
GD Storage: Call SaveDelayed on the right thread

* To resolve a dedlock between StorageModule and ConfigCache

Fixes: 178976563
Bug: 178976563
Test: atest bluetooth_test_gd
Tag: #gd-refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I13a51931111eb3c0e1c999cd4b7f4fc30d9e1f13

3 years agoMerge changes Ic583e487,Ic589759c,Ibe9720b5,I3fc83d6d,I3cccdf77, ... am: 1db32f98b0...
Chris Manton [Fri, 16 Apr 2021 22:05:19 +0000 (22:05 +0000)]
Merge changes Ic583e487,Ic589759c,Ibe9720b5,I3fc83d6d,I3cccdf77, ... am: 1db32f98b0 am: b9b78cb4be

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

Change-Id: I46c55a60cda91ba1d707eda24099bdf833e1ffc6

3 years agoMerge changes Ic583e487,Ic589759c,Ibe9720b5,I3fc83d6d,I3cccdf77, ... am: 1db32f98b0
Chris Manton [Fri, 16 Apr 2021 21:38:55 +0000 (21:38 +0000)]
Merge changes Ic583e487,Ic589759c,Ibe9720b5,I3fc83d6d,I3cccdf77, ... am: 1db32f98b0

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

Change-Id: I24970422923ed080828ecd3568e9d9dd1ccd5de2

3 years agoMerge changes Ic583e487,Ic589759c,Ibe9720b5,I3fc83d6d,I3cccdf77, ...
Chris Manton [Fri, 16 Apr 2021 21:21:11 +0000 (21:21 +0000)]
Merge changes Ic583e487,Ic589759c,Ibe9720b5,I3fc83d6d,I3cccdf77, ...

* changes:
  shim: Move disconnect classic/le into thread safe space
  shim: Add acl tests
  shim: Replace mock do_in_main_thread with a fake
  shim: Move dumpsys map off heap into static allocation
  shim: Clean up mock entry and add common header inclusion
  gd: Make address protected to set it for tests
  Untangle HCI_STATUS/BTM_STATUS bta/dm/bta_dm_act
  Enum-ify tSMP_STATUS

3 years agoBluetoothMetrics: Log classic pairing metrics from gd am: 38950d0a89 am: e2bf6e58df
Chen Chen [Fri, 16 Apr 2021 18:04:12 +0000 (18:04 +0000)]
BluetoothMetrics: Log classic pairing metrics from gd am: 38950d0a89 am: e2bf6e58df

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

Change-Id: I24b716ca318b9310cfb1c954bbdc9c64d0f2682b

3 years agoBluetoothMetrics: Log classic pairing metrics from gd am: 38950d0a89
Chen Chen [Fri, 16 Apr 2021 17:36:55 +0000 (17:36 +0000)]
BluetoothMetrics: Log classic pairing metrics from gd am: 38950d0a89

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

Change-Id: I2a77b5b7e60507f652f4a92e8fb37bac6334b54c

3 years agoshim: Move disconnect classic/le into thread safe space
Chris Manton [Thu, 15 Apr 2021 02:03:09 +0000 (19:03 -0700)]
shim: Move disconnect classic/le into thread safe space

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

Change-Id: Ic583e4878a2d7428f3007303f9f030e9a78bd32f

3 years agoshim: Add acl tests
Chris Manton [Thu, 15 Apr 2021 02:06:04 +0000 (19:06 -0700)]
shim: Add acl tests

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

Change-Id: Ic589759cec3190e99f0a1659985740f415569ab2

3 years agoshim: Replace mock do_in_main_thread with a fake
Chris Manton [Thu, 15 Apr 2021 20:54:20 +0000 (13:54 -0700)]
shim: Replace mock do_in_main_thread with a fake

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

Change-Id: Ibe9720b5934806bca2d62055fc50dc20ecac927d

3 years agoshim: Move dumpsys map off heap into static allocation
Chris Manton [Thu, 15 Apr 2021 02:45:36 +0000 (19:45 -0700)]
shim: Move dumpsys map off heap into static allocation

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

Change-Id: I3fc83d6d0a3ef68c0fd5ed5d17249abd7d09f833

3 years agoshim: Clean up mock entry and add common header inclusion
Chris Manton [Wed, 14 Apr 2021 22:01:23 +0000 (15:01 -0700)]
shim: Clean up mock entry and add common header inclusion

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

Change-Id: I3cccdf773638134affefd1a7c143e4862c53f9e3

3 years agogd: Make address protected to set it for tests
Chris Manton [Thu, 15 Apr 2021 23:54:22 +0000 (16:54 -0700)]
gd: Make address protected to set it for tests

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

Change-Id: I36b30d48a453bbd27c804d319971061059c9a3cf

3 years agoUntangle HCI_STATUS/BTM_STATUS bta/dm/bta_dm_act
Chris Manton [Mon, 1 Mar 2021 18:33:19 +0000 (10:33 -0800)]
Untangle HCI_STATUS/BTM_STATUS bta/dm/bta_dm_act

Toward readable code

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

Change-Id: Ib02cba5dd1a47085bb7842236a66e9c71384eada

3 years agoEnum-ify tSMP_STATUS
Chris Manton [Tue, 2 Mar 2021 17:59:07 +0000 (09:59 -0800)]
Enum-ify tSMP_STATUS

Toward readable code

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

Change-Id: I613ee010fef7211edb51592efcc385f3999a7ba4

3 years agoBluetoothMetrics: Log classic pairing metrics from gd
Chen Chen [Mon, 12 Apr 2021 20:20:36 +0000 (13:20 -0700)]
BluetoothMetrics: Log classic pairing metrics from gd

Test: gd/cert/run
Manual test: build and run Bluetooth (connection, pairing, music and phone call)
Bug: 181819141
Tag: #gd-refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ie2bb98151c9d22cee2374c46422809e45e07b3b0

3 years agoGd Metrics: Use le_meta_event_view before move am: 4311c6c07b am: 1bd30809bc
Chen Chen [Thu, 15 Apr 2021 20:04:32 +0000 (20:04 +0000)]
Gd Metrics: Use le_meta_event_view before move am: 4311c6c07b am: 1bd30809bc

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

Change-Id: If87403af2889ca886b4f569e59f0cb341394b7cb

3 years agoGd Metrics: Use le_meta_event_view before move am: 4311c6c07b
Chen Chen [Thu, 15 Apr 2021 19:20:57 +0000 (19:20 +0000)]
Gd Metrics: Use le_meta_event_view before move am: 4311c6c07b

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

Change-Id: I57e4e93eeb5490c230694dfe3a49a8cae0d12d17

3 years agoGd Metrics: Use le_meta_event_view before move
Chen Chen [Thu, 15 Apr 2021 17:20:08 +0000 (10:20 -0700)]
Gd Metrics: Use le_meta_event_view before move

Test: gd/cert/run
Bug: 181819141
Tag: #stability
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: I77d482dea2f77c8aa7c41b0e33bd398a9eb21adf

3 years agoMerge "Reference the chipset capability in LE_Set_Data_Length" am: 37b011683d am...
Treehugger Robot [Thu, 15 Apr 2021 10:00:50 +0000 (10:00 +0000)]
Merge "Reference the chipset capability in LE_Set_Data_Length" am: 37b011683d am: dc8fb94705

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

Change-Id: I658cfc902561458af9a527fcb05063ce053866d6

3 years agoMerge "Reference the chipset capability in LE_Set_Data_Length" am: 37b011683d
Treehugger Robot [Thu, 15 Apr 2021 08:27:55 +0000 (08:27 +0000)]
Merge "Reference the chipset capability in LE_Set_Data_Length" am: 37b011683d

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

Change-Id: I9d89c0bd8e0b99c6abad4e9297884e3bbcc94034

3 years agoMerge "Reference the chipset capability in LE_Set_Data_Length"
Treehugger Robot [Thu, 15 Apr 2021 07:29:34 +0000 (07:29 +0000)]
Merge "Reference the chipset capability in LE_Set_Data_Length"

3 years agoMerge "audio: Initial implementation for bluetooth hw driver input" am: 9e49c6a7ff...
Jakub Pawlowski [Thu, 15 Apr 2021 07:15:39 +0000 (07:15 +0000)]
Merge "audio: Initial implementation for bluetooth hw driver input" am: 9e49c6a7ff am: 429a63f5ae

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

Change-Id: Iaa3650a33ef55db96cd3365fdc5447ae7b8d3322

3 years agoMerge "gd Scanning: Unregister event when stop" am: a68370290c am: e7249abc60
Treehugger Robot [Thu, 15 Apr 2021 07:15:23 +0000 (07:15 +0000)]
Merge "gd Scanning: Unregister event when stop" am: a68370290c am: e7249abc60

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

Change-Id: I29a65173931d69b467b09405b09a7e541d29d0f0

3 years agoMerge "audio: Initial implementation for bluetooth hw driver input" am: 9e49c6a7ff
Jakub Pawlowski [Thu, 15 Apr 2021 06:57:46 +0000 (06:57 +0000)]
Merge "audio: Initial implementation for bluetooth hw driver input" am: 9e49c6a7ff

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

Change-Id: If5943181737cc45aec2a48dc335e21ef2eda5ee2

3 years agoMerge "gd Scanning: Unregister event when stop" am: a68370290c
Treehugger Robot [Thu, 15 Apr 2021 06:52:19 +0000 (06:52 +0000)]
Merge "gd Scanning: Unregister event when stop" am: a68370290c

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

Change-Id: I4ad830f631edf56fed05ca7bfc38da92e51ff83a

3 years agoMerge "audio: Initial implementation for bluetooth hw driver input"
Jakub Pawlowski [Thu, 15 Apr 2021 06:19:08 +0000 (06:19 +0000)]
Merge "audio: Initial implementation for bluetooth hw driver input"

3 years agoMerge "gd Scanning: Unregister event when stop"
Treehugger Robot [Thu, 15 Apr 2021 06:13:04 +0000 (06:13 +0000)]
Merge "gd Scanning: Unregister event when stop"

3 years agoGD metrics: remove reference before move am: 22c13c3e06 am: 6a0c3cf9d8
Chen Chen [Thu, 15 Apr 2021 03:31:10 +0000 (03:31 +0000)]
GD metrics: remove reference before move am: 22c13c3e06 am: 6a0c3cf9d8

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

Change-Id: I7476660ff148b0339f7e5f96b2802dd776b812e9

3 years agoGD metrics: remove reference before move am: 22c13c3e06
Chen Chen [Thu, 15 Apr 2021 02:45:48 +0000 (02:45 +0000)]
GD metrics: remove reference before move am: 22c13c3e06

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

Change-Id: I1d7b548ee74571eb2d87386ca73dc4145e1cd2df

3 years agogd Scanning: Unregister event when stop
Chienyuan [Tue, 13 Apr 2021 09:36:55 +0000 (17:36 +0800)]
gd Scanning: Unregister event when stop

Tag: #gd-refactor
Bug: 184002509
Test: gd/cert/run
Change-Id: I8346ccafdcb867ae8695de2b3ed087f5fadbeab4

3 years agoGD metrics: remove reference before move
Chen Chen [Thu, 15 Apr 2021 01:19:24 +0000 (18:19 -0700)]
GD metrics: remove reference before move

Test: gd/cert/run
Bug: 181819141
Tag: #stability
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Iebe25a935aac2e1936734f775f617496ef920fd1

3 years agoMerge "GD metrics: Logging link layer events from GD" am: 09e59d4631 am: 3578135a4e
Chen Chen [Thu, 15 Apr 2021 00:13:44 +0000 (00:13 +0000)]
Merge "GD metrics: Logging link layer events from GD" am: 09e59d4631 am: 3578135a4e

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

Change-Id: Ie101ab01504fed212afdc9e3fe2a7f7355613e1a

3 years agoMerge "GD metrics: Logging link layer events from GD" am: 09e59d4631
Chen Chen [Wed, 14 Apr 2021 23:16:15 +0000 (23:16 +0000)]
Merge "GD metrics: Logging link layer events from GD" am: 09e59d4631

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

Change-Id: I48d357934b33614e17fe252b4073402b1f6e7270

3 years agoMerge "GD metrics: Logging link layer events from GD"
Chen Chen [Wed, 14 Apr 2021 22:40:48 +0000 (22:40 +0000)]
Merge "GD metrics: Logging link layer events from GD"

3 years agogd: Enforce modules to present a unique name am: fb7add516e am: ea9b236ca3
Chris Manton [Wed, 14 Apr 2021 22:06:37 +0000 (22:06 +0000)]
gd: Enforce modules to present a unique name am: fb7add516e am: ea9b236ca3

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

Change-Id: I50f40ad16036385a24a4d86c3647311ff11c3f17

3 years agoheadless: Add docs and more information am: 916fb47ab0 am: 8e6199c3d1
Chris Manton [Wed, 14 Apr 2021 22:06:37 +0000 (22:06 +0000)]
headless: Add docs and more information am: 916fb47ab0 am: 8e6199c3d1

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

Change-Id: Ia25aa9a452e8352c39eb5e44005f4cbab3a698a5

3 years agoheadless: Add initial/final sentinal log markers am: 8749c7eacf am: acd6441cf7
Chris Manton [Wed, 14 Apr 2021 22:06:36 +0000 (22:06 +0000)]
headless: Add initial/final sentinal log markers am: 8749c7eacf am: acd6441cf7

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

Change-Id: I66d217fbb07c359e2efd9f5ab83c813f5b0d132e