OSDN Git Service
Chris Manton [Thu, 13 May 2021 22:51:01 +0000 (22:51 +0000)]
Streamline bta_gattc_op_cmpl am:
c2a4232547
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1700656
Change-Id: Ie6e3a2205c8747232722a49302324bfdc76ed43f
Chris Manton [Thu, 13 May 2021 22:49:55 +0000 (22:49 +0000)]
Decl-def event bta/gatt/bta_gattc_act:bta_gattc_close am:
13a538260b
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1700655
Change-Id: I1ebfb0a6afc250ad1e7c1bbb52cc535ed255dae1
Chris Manton [Sat, 8 May 2021 23:56:09 +0000 (16:56 -0700)]
Streamline bta_gattc_op_cmpl
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: I940c842ed23be01dc20cbfe7c05d194dc7df19c2
Chris Manton [Sat, 8 May 2021 23:48:04 +0000 (16:48 -0700)]
Decl-def event bta/gatt/bta_gattc_act:bta_gattc_close
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: I90abbd76e89d1d395859eaa19555c65112f31987
Chris Manton [Thu, 13 May 2021 17:00:36 +0000 (17:00 +0000)]
Remove useless #def bta/hh/bta_hh_int::BTA_HH_MAX_RPT_CHARS am:
c8b751d164
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1700654
Change-Id: I9e4ba18aa80bd0f0c1d112dcc91e33bfbf2a0657
Treehugger Robot [Thu, 13 May 2021 15:29:44 +0000 (15:29 +0000)]
Merge "CTKD: Fix role change bug on legacy BT stack" am:
672131f257
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1697087
Change-Id: I78e80cddb072543e1995585cb03d4e46631f4773
Chris Manton [Sat, 8 May 2021 23:41:47 +0000 (16:41 -0700)]
Remove useless #def bta/hh/bta_hh_int::BTA_HH_MAX_RPT_CHARS
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: I4b5501ecf96f67c451e86323752ae07ad88940bb
Treehugger Robot [Thu, 13 May 2021 15:11:25 +0000 (15:11 +0000)]
Merge "CTKD: Fix role change bug on legacy BT stack"
Animesh Fatehpuria [Wed, 5 May 2021 07:51:21 +0000 (15:51 +0800)]
CTKD: Fix role change bug on legacy BT stack
If a role switch happens before connection complete, we incorrectly
ignore the information. This can sometimes cause CTKD to not function
properly.
Bug:
186367778
Tag: #refactor
Test: atest net_test_main_shim, presubmit, manual role change testing
(with and without gd enabled)
Change-Id: I619376d35051a9b5ead74608a66fae1c5ea32c2b
Treehugger Robot [Thu, 13 May 2021 05:08:11 +0000 (05:08 +0000)]
Merge "remove unused fields" am:
eec6ea121c
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1700653
Change-Id: I76d36c558384e7529528234d4ddc1773650dd903
Treehugger Robot [Thu, 13 May 2021 04:50:42 +0000 (04:50 +0000)]
Merge "remove unused fields"
Treehugger Robot [Thu, 13 May 2021 03:16:03 +0000 (03:16 +0000)]
Merge "Separate End, Reset, and Quit" am:
702c9941ad
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1705639
Change-Id: I51f6b74794b840a8daded0991e2497f559e76961
Treehugger Robot [Thu, 13 May 2021 03:09:20 +0000 (03:09 +0000)]
Merge "Separate End, Reset, and Quit"
Chris Manton [Thu, 13 May 2021 03:06:12 +0000 (03:06 +0000)]
Enum-ify tBTA_HH_INT_EVT am:
d2af009d02
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1700652
Change-Id: Ic1753c7bd0f27c6225e815b607fa78555b049fc4
Chris Manton [Thu, 13 May 2021 03:06:09 +0000 (03:06 +0000)]
Remove useless #def bta/hh/bta_hh_int::BTA_HH_ am:
e3e69be13d
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1700651
Change-Id: I75e478625cae718a5a558038c2af9e6cd7e26c43
Chris Manton [Thu, 13 May 2021 03:05:26 +0000 (03:05 +0000)]
Remove useless #def bta/hh/bta_hh_::BTA_HH_FST_BTE_TRANS_EVT am:
3567c1c062
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1700650
Change-Id: I30b22df76e4dae927bc065cd82e606b0a8e6ac37
Chris Manton [Thu, 13 May 2021 01:25:19 +0000 (01:25 +0000)]
Merge changes If5f6b231,I8c5eb4bb,I01aa1955 am:
8577c8e621
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1700649
Change-Id: Iba49f3d4d1fa8afa9efb14987d629c16ba3b4fa4
Chris Manton [Sat, 8 May 2021 21:41:23 +0000 (14:41 -0700)]
remove unused fields
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: Ief8a8daf8f5e2a6c75f1a460d95a6e205ad3bc96
Chris Manton [Sat, 8 May 2021 20:45:48 +0000 (13:45 -0700)]
Enum-ify tBTA_HH_INT_EVT
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: Iae765a7240ad61db3abfa8398b8e7d087f586afd
Chris Manton [Sat, 8 May 2021 20:39:39 +0000 (13:39 -0700)]
Remove useless #def bta/hh/bta_hh_int::BTA_HH_
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: I520cccf0607bd9191802bdc6f362de48227b5132
Chris Manton [Sat, 8 May 2021 20:37:58 +0000 (13:37 -0700)]
Remove useless #def bta/hh/bta_hh_::BTA_HH_FST_BTE_TRANS_EVT
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: I25d547b6870863d4b0a6fa3a2d12d626e043e62b
Chris Manton [Thu, 13 May 2021 01:11:33 +0000 (01:11 +0000)]
Merge changes If5f6b231,I8c5eb4bb,I01aa1955
* changes:
Remove useless #def bta/hh/bta_hh_::BTA_HH_FST_TRANS_CB_EVT
Streamline bta_hh_read_ssr_param
Streamline BTM_GetLinkSuperTout
Hansong Zhang [Thu, 13 May 2021 00:31:47 +0000 (00:31 +0000)]
Initial commit for rusty BluetoothManager am:
2dc4fc3188
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1662963
Change-Id: I528838ef9f1b5f4e7f35b2cce66128c242c87951
Myles Watson [Wed, 12 May 2021 23:49:13 +0000 (16:49 -0700)]
Separate End, Reset, and Quit
Bug:
187371955
Test: cert/run
Tag: #testing
Change-Id: I99b5181df1781545026cd25b659b399e86add71c
Hansong Zhang [Fri, 2 Apr 2021 21:24:08 +0000 (14:24 -0700)]
Initial commit for rusty BluetoothManager
Add the basic state machine (without timeout so far), basic DBUS API,
and basic unit test for state machine.
Bug:
179719629
Test: cargo test
Change-Id: I0aafc8e9e84defc5c19d1c235ed1c935cf6691cb
Chris Manton [Wed, 12 May 2021 21:05:18 +0000 (21:05 +0000)]
Remove unused #defs bta/hh/bta_hh_utils am:
2c22338448
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1700646
Change-Id: I9ef871dee016f1b624adb82918f637e1f6e5a35f
Chris Manton [Wed, 12 May 2021 21:05:15 +0000 (21:05 +0000)]
Remove unused funcs bta/hh::bta_hh_parse_ am:
83ae09b5fd
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1700645
Change-Id: Ia3b7aa19f992f461ee8460f71e354c80fd661fd0
Chris Manton [Wed, 12 May 2021 21:04:22 +0000 (21:04 +0000)]
Add name component to GATT client API am:
20ecfc4d9e
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1698157
Change-Id: Ifddebd78a0472549cdbd23a7462a87bf6457e4ed
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
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
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
Chris Manton [Sat, 8 May 2021 20:37:10 +0000 (13:37 -0700)]
Remove useless #def bta/hh/bta_hh_::BTA_HH_FST_TRANS_CB_EVT
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: If5f6b231d08785ce10b3356d01ae83fa3ce1bbc7
Chris Manton [Sat, 8 May 2021 20:02:28 +0000 (13:02 -0700)]
Remove unused #defs bta/hh/bta_hh_utils
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: I862bf32f11a82ecff1209d9ba5ef6233b8921e11
Chris Manton [Sat, 8 May 2021 19:59:10 +0000 (12:59 -0700)]
Remove unused funcs bta/hh::bta_hh_parse_
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: I3804de80d85d564b64dd533c92c3c6289bda66e7
Chris Manton [Mon, 3 May 2021 06:14:26 +0000 (23:14 -0700)]
Add name component to GATT client API
Bug:
183374320
Test: gd/cert/run
Tag: #refactor
No-Typo-Check: Legacy code mocks
Change-Id: If6f3bd253391ff41cfcdde2d67325b06bfa58993
Chris Manton [Sat, 8 May 2021 20:32:03 +0000 (13:32 -0700)]
Streamline bta_hh_read_ssr_param
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: I8c5eb4bbab2c3a1f83ac8d2ac5eebc2c321c2d41
Chris Manton [Sat, 8 May 2021 20:31:39 +0000 (13:31 -0700)]
Streamline BTM_GetLinkSuperTout
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: I01aa19551a404b1c6d0bad4021d7d7b982309ff5
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
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
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
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
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
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
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
Treehugger Robot [Wed, 12 May 2021 13:31:10 +0000 (13:31 +0000)]
Merge "gd: 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
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
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
Treehugger Robot [Tue, 11 May 2021 21:28:48 +0000 (21:28 +0000)]
Merge "gd: Prevent erroneous fail connection on acceptlist change"
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
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
Treehugger Robot [Tue, 11 May 2021 20:03:13 +0000 (20:03 +0000)]
Merge "Print errors if acceptlist events are too small"
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Chris Manton [Sun, 2 May 2021 16:52:25 +0000 (09:52 -0700)]
Straighten out tBTA_GATT_REASON
Bug:
183374320
Test: gd/cert/run
Tag: #refactor
Change-Id: Ib66bbdbc753480bc6a69136b3bbe1d08e11730b3
Chris Manton [Thu, 6 May 2021 01:36:44 +0000 (18:36 -0700)]
Add bta/hh/bta_hh_utils::bta_hh_get_cb
I don't care about your indicies
Bug:
182370398
Test: gd/cert/run
Tag: #refactor
Change-Id: Ib41e4e5d4caca8f2b628d46064290c391fb48fc5
Treehugger Robot [Sat, 8 May 2021 22:09:13 +0000 (22:09 +0000)]
Merge "Konstify kBTA_HH_LE_RECONN conditional" am:
2794735921
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1698152
Change-Id: I74da5b40cf2c6d796a1994159d231f68651d2c55
Treehugger Robot [Sat, 8 May 2021 22:00:39 +0000 (22:00 +0000)]
Merge "DO NOT MERGE - Merge RQ2A.210505.003." am:
c2a57d7301
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1700410
Change-Id: Ia3d7cf9a4216bd638ab851b90e0ded25d8e39781
Xin Li [Sat, 8 May 2021 22:00:36 +0000 (22:00 +0000)]
DO NOT MERGE - Merge RQ2A.210505.003. am:
ebdfbedbe0
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1700410
Change-Id: I41c9b5baffc1870a41cbae791c2d59c1e55031df
Treehugger Robot [Sat, 8 May 2021 21:44:04 +0000 (21:44 +0000)]
Merge "Konstify kBTA_HH_LE_RECONN conditional"
Treehugger Robot [Sat, 8 May 2021 21:38:01 +0000 (21:38 +0000)]
Merge "DO NOT MERGE - Merge RQ2A.210505.003."
Treehugger Robot [Sat, 8 May 2021 20:36:15 +0000 (20:36 +0000)]
Merge "Remove bta_hh_is_le_device check" am:
935e5325b1
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1698149
Change-Id: Ib60c5205fb32b99c6f931ffc9deb2834b8a16d16
Chris Manton [Sun, 2 May 2021 18:46:32 +0000 (11:46 -0700)]
Konstify kBTA_HH_LE_RECONN conditional
Bug:
183374320
Test: gd/cert/run
Tag: #refactor
Change-Id: I415297d3be0509e835406a0d06b9bd2a85300252
Treehugger Robot [Sat, 8 May 2021 20:25:37 +0000 (20:25 +0000)]
Merge "Remove bta_hh_is_le_device check"
Treehugger Robot [Sat, 8 May 2021 17:51:50 +0000 (17:51 +0000)]
Merge "A2DP: Clear remote suspend flag if local is also stopping" am:
54154222cd
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1690585
Change-Id: I6a59eaba6cbb2f2e5eb34eaf1c0d1f801ee72a46
Treehugger Robot [Sat, 8 May 2021 17:34:29 +0000 (17:34 +0000)]
Merge "A2DP: Clear remote suspend flag if local is also stopping"
Chris Manton [Fri, 30 Apr 2021 20:00:54 +0000 (13:00 -0700)]
Remove bta_hh_is_le_device check
Directly access BTM for le information and set state
accordingly.
Bug:
183374320
Test: gd/cert/run
Tag: #refactor
Change-Id: Ifca04d19bcd1a1892a7356bb3436923d77ba1350
Xin Li [Sat, 8 May 2021 01:55:14 +0000 (18:55 -0700)]
DO NOT MERGE - Merge RQ2A.210505.003.
Bug:
187544653
Merged-In: I592c0a9c0e77869999357611aa99f3d9bc53b8b6
Change-Id: I9b78552543c66bb607baee982d904e8939941cea
Treehugger Robot [Fri, 7 May 2021 23:11:37 +0000 (23:11 +0000)]
Merge "Add default rustfmt.toml" am:
7acda66f83
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1696170
Change-Id: I38a922fc28631dc10f1135db383129a6bbb74315
Treehugger Robot [Fri, 7 May 2021 22:41:49 +0000 (22:41 +0000)]
Merge "Add default rustfmt.toml"