OSDN Git Service
Hansong Zhang [Mon, 1 Feb 2021 03:01:49 +0000 (03:01 +0000)]
Make BTM_PM almost modular am:
dc12fb14d2
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1558772
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I9f2707488ba87da81c095d74101531a10b0a0b59
Hansong Zhang [Sat, 23 Jan 2021 01:02:47 +0000 (17:02 -0800)]
Make BTM_PM almost modular
Remove more dependencies
Test: cert/run
Tag: #gd-refactor
Bug:
141555841
Change-Id: Id875d583a62337007702e70f789d0771cd68c8c0
Jack He [Sun, 31 Jan 2021 23:36:01 +0000 (23:36 +0000)]
Merge changes I36ba4e1c,Idec5b493,I813f1737 am:
9fb00bc44f
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1563918
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ic60056e59ab39027c1995a1034ded580592adefb
Jack He [Sun, 31 Jan 2021 23:05:45 +0000 (23:05 +0000)]
Merge changes I36ba4e1c,Idec5b493,I813f1737
* changes:
HCI: Match commands with responses
HCI: Remove Create New Unit Key
HCI: Remove deprecated TRACK command
Hansong Zhang [Sun, 31 Jan 2021 22:48:04 +0000 (22:48 +0000)]
BTM_PM refactor am:
63d4caf308
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1558771
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I831216089d711d4a16e508fd3977e6c66d7ff01e
Hansong Zhang [Sun, 31 Jan 2021 02:53:28 +0000 (02:53 +0000)]
Let ACL Manager load IRK for now am:
270b64a841
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1564253
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I82a856db3a48e16c41f074d404e5774101274a71
Hansong Zhang [Fri, 22 Jan 2021 22:47:44 +0000 (14:47 -0800)]
BTM_PM refactor
Move the PM database to btm_pm so we can get rid of some dependency on
ACL.
Test: cert/run
Tag: #gd-refactor
Bug:
141555841
Change-Id: I21701a708d4e4915b7d119c4e48698275c96ff78
Hansong Zhang [Sat, 30 Jan 2021 23:56:00 +0000 (23:56 +0000)]
Re-route read LE local/remote address to L2cap am:
f03c1fd3cc
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1557014
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ieff577ee3dbac405b7bb382fc13cfe5f5ba3582a
Hansong Zhang [Thu, 28 Jan 2021 21:39:11 +0000 (13:39 -0800)]
Let ACL Manager load IRK for now
Instead of letting users of ACL manager loading IRK, we can let ACL
manager load it, until GD security is ready.
Tag: #gd-refactor
Bug:
141555841
Test: cert/run
Change-Id: I9dc66a9787b0117261ee7bcd61ff74b873be0482
Hansong Zhang [Fri, 22 Jan 2021 08:38:04 +0000 (00:38 -0800)]
Re-route read LE local/remote address to L2cap
Test: cert/run
Tag: #gd-refactor
Bug:
141555841
Change-Id: I8b2e77d4907a038406d3212771705f16c048d317
Myles Watson [Thu, 28 Jan 2021 19:31:33 +0000 (11:31 -0800)]
HCI: Match commands with responses
Bug:
175422340
Bug:
178658934
Test: cert/run
Tag: #gd-refactor
Change-Id: I36ba4e1cd09dbb609d2570ff9107a97053a886b5
Hansong Zhang [Sat, 30 Jan 2021 00:54:06 +0000 (00:54 +0000)]
L2cap: Depend on Advertising to set privacy am:
4a3c6a34fd
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1557013
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I8e22830185cc55f39c4fc84b2772a46321fbc8f1
Zach Johnson [Sat, 30 Jan 2021 00:51:48 +0000 (00:51 +0000)]
Merge "rusty-gd: Use entire slice during packet parsing" am:
42e144971b
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1563152
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ib557564930ecf63ad442ba426912ec857f8b8058
Chris Manton [Sat, 30 Jan 2021 00:50:19 +0000 (00:50 +0000)]
Merge changes I9f76c7f7,Id5863a3c,I070cc0c0,I09f31af5,I4d4f2b79, ... am:
a206d90ce3
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1559435
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Id28731bd21d34dc6bb29517146ceffd5f1c60e84
Hansong Zhang [Sat, 30 Jan 2021 00:31:04 +0000 (00:31 +0000)]
Remove some unused stuff am:
69a832c0e7
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1557354
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I016491621801e308362366a9ea0ec10a4fd07d55
Zach Johnson [Sat, 30 Jan 2021 00:26:10 +0000 (00:26 +0000)]
Merge "rusty-gd: Serialize size fields." am:
c6ae7de1a6
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1562458
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iee493eb11ea4e74667eb12cc1eb525e57d0429dc
Jack He [Fri, 29 Jan 2021 23:51:07 +0000 (23:51 +0000)]
Merge "[GD ACL] Make ACL packets non-flushable by default" am:
3574b5c195
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1564674
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ibf417c621d8e2fa6cfa651b092ecb09b8f637ead
Chienyuan [Fri, 29 Jan 2021 23:49:00 +0000 (23:49 +0000)]
gd: Add dependency for Advertising/Scanning/L2CAP module am:
fe792b22b3
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1565193
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ibaedf6c31646fd86958ee59ae1a445786e5155f7
Hansong Zhang [Fri, 29 Jan 2021 23:40:14 +0000 (23:40 +0000)]
Fix some sco packet type features am:
580c5e9912
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1564873
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ia12471fbeea392b6e8b37888e1988a113526e744
Treehugger Robot [Fri, 29 Jan 2021 23:20:59 +0000 (23:20 +0000)]
Merge "Use updated SIG wording: blacklist to rejectlist" am:
ec635faedb
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1563458
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ic04e3b282807ffa21764c9708344506ef67c4aaf
Hansong Zhang [Fri, 22 Jan 2021 08:34:55 +0000 (00:34 -0800)]
L2cap: Depend on Advertising to set privacy
Test: cert/run
Tag: #gd-refactor
Bug:
141555841
Change-Id: I71a842c24d2f3ecb4e8640f6a3247f20524e6f1d
Myles Watson [Thu, 28 Jan 2021 19:44:08 +0000 (11:44 -0800)]
HCI: Remove Create New Unit Key
Bug:
175422340
Test: cert/run
Tag: #gd-refactor
Change-Id: Idec5b4933a8e851bd194d9f93c6fdef8840e9c28
Myles Watson [Thu, 28 Jan 2021 19:29:48 +0000 (11:29 -0800)]
HCI: Remove deprecated TRACK command
Bug:
175422340
Test: cert/run
Tag: #gd-refactor
Change-Id: I813f1737a5794ccf548bdf3e537d2b32f445d107
Hansong Zhang [Fri, 29 Jan 2021 22:19:21 +0000 (22:19 +0000)]
L2cap shim improvements am:
e71154b9aa
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1553893
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I50d60b6b874ec60aa272f2269753548dd37f2089
Zach Johnson [Fri, 29 Jan 2021 22:02:47 +0000 (22:02 +0000)]
Merge "rusty-gd: Use entire slice during packet parsing"
Chris Manton [Fri, 29 Jan 2021 21:45:57 +0000 (21:45 +0000)]
Merge changes I9f76c7f7,Id5863a3c,I070cc0c0,I09f31af5,I4d4f2b79, ...
* changes:
btm_log: Add pairing state changes
Move stack/include/bt_types::FLOW_SPEC => stack/l2c
Move stack/include/::btm_api into btm_ble_api
Include security_client_callbacks
Break out security callbacks stack/include/security_client_callbacks
Introduce stack/include/sco_client_callbacks
Add stack/acl/btm_acl::SupportTransparentSynchronousData
Expand stack/include/btm_client_interface
Add explict FALLTHROUGH_INTENDED to package
Re-log stack/rfcomm/rfc_mx_fsm::rfc_mx_sm_execute
Re-log stack/btm/btm_sec::BTM_SetSecurityLevel
Re-log stack/btm/btm_sec::btm_sec_mx_access_request
Re-log stack/btm/btm_sco::BTM_SetEScoMode
Re-log stack/btm/btm_sco::btm_send_connect_request
Re-log stack/btm/btm_ble_gap::BTM_BleGetVendorCapabilities
Re-log stack/btm/btm_ble::btm_ble_set_random_address
Re-log stack/acl/btm_pm::
Re-log bta/av/bta_av_api::BTA_AvStart
Re-log bta/ag/bta_ag_main::bta_ag_api_result
Add stack/include/btm_api_types::security_mode_text
Add stack/btm/security_device_record::security_state_text
Streamline stack/btm/btm_sco::btm_sco_connected
Enum-ify bta/include/bta_api::tBTA_DM_PM_ACTION_BITMASK
Canonicalize stack/gatt/bta_gattc_act::bta_gattc_cl_cback
Use proper types btm_sco_connected tHCI_STATUS
Use tBTA_AG_SCB::ToString
Re-log stack/btm/btm_sec::btm_sec_disconnected
Streamline stack/btm/btm_sec::btm_sec_disconnect
Stat-ify stack/gatt/att_protocol
Hansong Zhang [Fri, 29 Jan 2021 21:30:22 +0000 (21:30 +0000)]
Skip LE Security test am:
5598babb64
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1564472
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I5c2c773a432334e2bd7fe011fbf9c6ad2aad3baf
Hansong Zhang [Fri, 22 Jan 2021 08:42:39 +0000 (00:42 -0800)]
Remove some unused stuff
Test: cert/run
Tag: #gd-refactor
Bug:
141555841
Change-Id: I6fcaf472341920f476608974bf3bf1183b9eb212
Zach Johnson [Fri, 29 Jan 2021 19:27:20 +0000 (19:27 +0000)]
Merge "rusty-gd: Serialize size fields."
Jack He [Fri, 29 Jan 2021 19:02:10 +0000 (19:02 +0000)]
Merge "[GD ACL] Make ACL packets non-flushable by default"
Chienyuan [Fri, 29 Jan 2021 09:55:23 +0000 (17:55 +0800)]
gd: Add dependency for Advertising/Scanning/L2CAP module
Tag: #gd-refactor
Bug:
177044452
Test: gd/cert/run --host
Test: manual, set init flag
Change-Id: I831d98cc5ed62a37924b7c465283401882b92b89
Hansong Zhang [Fri, 29 Jan 2021 01:12:34 +0000 (17:12 -0800)]
Fix some sco packet type features
Tag: #gd-refactor
Bug:
141555841
Test: cert/run
Change-Id: I866cfe8763635901406b8563ecc5d4801ebccb87
Chris Manton [Tue, 26 Jan 2021 19:31:57 +0000 (11:31 -0800)]
btm_log: Add pairing state changes
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I9f76c7f7a1ac17bc3161a26c318b8bcda087ceec
Chris Manton [Tue, 26 Jan 2021 00:06:41 +0000 (16:06 -0800)]
Move stack/include/bt_types::FLOW_SPEC => stack/l2c
Towards functional aggregation
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: Id5863a3ce8a55c2573346ce4f749d9434f2549e7
Chris Manton [Mon, 25 Jan 2021 17:31:43 +0000 (09:31 -0800)]
Move stack/include/::btm_api into btm_ble_api
Towards functional aggregation
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I070cc0c031fbf5ecdf6b444faf167a540e0ac1e2
Chris Manton [Mon, 25 Jan 2021 17:30:54 +0000 (09:30 -0800)]
Include security_client_callbacks
Toward modular code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I09f31af591e7dc4884cf32e11976c7a681bc9585
Chris Manton [Mon, 25 Jan 2021 17:30:14 +0000 (09:30 -0800)]
Break out security callbacks stack/include/security_client_callbacks
Towards modular code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I4d4f2b7963107778d90bf7df7dd6696edf2a0028
Chris Manton [Mon, 25 Jan 2021 01:00:11 +0000 (17:00 -0800)]
Introduce stack/include/sco_client_callbacks
Towards modular code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I1ca5ff09052799cc487ee3baf1b1851b8db32384
Chris Manton [Mon, 25 Jan 2021 22:32:53 +0000 (14:32 -0800)]
Add stack/acl/btm_acl::SupportTransparentSynchronousData
Towards meaningful code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: If5b719099a3e40a1aab573fdc4c4bbca2e9d8c43
Chris Manton [Sun, 24 Jan 2021 23:41:01 +0000 (15:41 -0800)]
Expand stack/include/btm_client_interface
Towards modular code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I3e7f8ff3e4d07c90f3c4eceff41777c2091abdca
Chris Manton [Fri, 22 Jan 2021 22:56:11 +0000 (14:56 -0800)]
Add explict FALLTHROUGH_INTENDED to package
Towards meaningful code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I0ad90ff42f516f94f3399b6c64d45772618685bb
Chris Manton [Sat, 19 Dec 2020 02:00:42 +0000 (18:00 -0800)]
Re-log stack/rfcomm/rfc_mx_fsm::rfc_mx_sm_execute
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I632bd0004a824f763c01508391e5105d75c96676
Chris Manton [Sat, 26 Dec 2020 23:46:40 +0000 (15:46 -0800)]
Re-log stack/btm/btm_sec::BTM_SetSecurityLevel
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I29779be6d31881b194cd1ad021f092ff65f2b9f6
Chris Manton [Tue, 15 Dec 2020 00:09:24 +0000 (16:09 -0800)]
Re-log stack/btm/btm_sec::btm_sec_mx_access_request
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I6361fa2ce46c4e83a2efb35c8dcf72c6f93da9bf
Chris Manton [Wed, 6 Jan 2021 22:33:11 +0000 (14:33 -0800)]
Re-log stack/btm/btm_sco::BTM_SetEScoMode
Towards readable and loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I627b1e2618a8b0ff056fb5c11d9bf17811167b13
Chris Manton [Wed, 6 Jan 2021 22:30:58 +0000 (14:30 -0800)]
Re-log stack/btm/btm_sco::btm_send_connect_request
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: Id6bb24c2ebccb63f4276a6aff21202b434078b76
Chris Manton [Sat, 19 Dec 2020 04:21:55 +0000 (20:21 -0800)]
Re-log stack/btm/btm_ble_gap::BTM_BleGetVendorCapabilities
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I56525f57c1a40f6f297d98347326da670a629196
Chris Manton [Sat, 19 Dec 2020 04:22:03 +0000 (20:22 -0800)]
Re-log stack/btm/btm_ble::btm_ble_set_random_address
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I96d5fcadc00e02b646988655ada6d6d8cbd24d5d
Chris Manton [Sat, 19 Dec 2020 17:54:13 +0000 (09:54 -0800)]
Re-log stack/acl/btm_pm::
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I5a150b6ce4adf7ed94d4f288ab53f63d64403fc6
Chris Manton [Sat, 19 Dec 2020 01:58:11 +0000 (17:58 -0800)]
Re-log bta/av/bta_av_api::BTA_AvStart
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I31660bf8a839f30c7dcded3cca943f43f9ba2de2
Chris Manton [Sat, 26 Dec 2020 23:34:35 +0000 (15:34 -0800)]
Re-log bta/ag/bta_ag_main::bta_ag_api_result
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I15e25e93c7604e78e67790d4c177eda9e00cde91
Chris Manton [Sat, 17 Oct 2020 15:49:23 +0000 (08:49 -0700)]
Add stack/include/btm_api_types::security_mode_text
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: Ifbc618d55052ae6d090f2deb6d8f4de4e065fd85
Chris Manton [Thu, 14 Jan 2021 07:01:37 +0000 (23:01 -0800)]
Add stack/btm/security_device_record::security_state_text
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: Id1b18be2898e8892b420aa4aa77659b99fd73d34
Chris Manton [Wed, 6 Jan 2021 22:32:05 +0000 (14:32 -0800)]
Streamline stack/btm/btm_sco::btm_sco_connected
Towards readable and loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: Ie23d0a1fe9d97f5ea600a5d1e41ed4b3851235a5
Chris Manton [Sat, 19 Dec 2020 06:29:32 +0000 (22:29 -0800)]
Enum-ify bta/include/bta_api::tBTA_DM_PM_ACTION_BITMASK
Towards readable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I9a638a0f220e48127baa8be5952931d03d158d3b
Chris Manton [Fri, 20 Nov 2020 00:57:04 +0000 (16:57 -0800)]
Canonicalize stack/gatt/bta_gattc_act::bta_gattc_cl_cback
Towards readable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: Id0c387331d72a54d919dbbda6d796234b614890b
Chris Manton [Thu, 21 Jan 2021 05:45:49 +0000 (21:45 -0800)]
Use proper types btm_sco_connected tHCI_STATUS
Towards readable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: If40028eb5adc660c05798dc6d01f5b83ed7fb480
Chris Manton [Tue, 15 Dec 2020 00:16:11 +0000 (16:16 -0800)]
Use tBTA_AG_SCB::ToString
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: Ia10f71639e318f75c6b72698fa64651c89d1ef05
Chris Manton [Thu, 3 Dec 2020 17:45:39 +0000 (09:45 -0800)]
Re-log stack/btm/btm_sec::btm_sec_disconnected
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I0adc8e819ec71da7ef1493fff917e685ffa72757
Chris Manton [Thu, 14 Jan 2021 21:59:33 +0000 (13:59 -0800)]
Streamline stack/btm/btm_sec::btm_sec_disconnect
Towards readable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I69339757cfea9e9b01587b788a10510de25fc00f
Chris Manton [Fri, 20 Nov 2020 17:39:33 +0000 (09:39 -0800)]
Stat-ify stack/gatt/att_protocol
Towards readable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I74a338b39a2e2fa2b727b94c502b7a698258747f
Treehugger Robot [Fri, 29 Jan 2021 10:41:13 +0000 (10:41 +0000)]
Merge "Use updated SIG wording: blacklist to rejectlist"
Jack He [Fri, 29 Jan 2021 01:43:12 +0000 (17:43 -0800)]
[GD ACL] Make ACL packets non-flushable by default
* So that enhanced flush command does not discard pending ACL packets
that may be one of those A2DP commands
Bug:
177278022
Bug:
178752129
Test: gd/cert/run
Tag: #gd-refactor
Change-Id: Ibf168d0a022c8ef93058e0e986566b40c808e003
Hansong Zhang [Wed, 20 Jan 2021 20:48:48 +0000 (12:48 -0800)]
L2cap shim improvements
Implement FlushChannel, GetNumBufferedPackets, L2CA_ReadConnectionAddr,
and L2CA_ReadRemoteConnectionAddr.
Get the identity address and type from BTM.
Test: cert/run
Tag: #gd-refactor
Bug:
141555841
Change-Id: I0674057ba6e23ffab6f404972514bbff24c4e919
Hansong Zhang [Thu, 28 Jan 2021 22:15:18 +0000 (14:15 -0800)]
Skip LE Security test
Test: cert/run
Bug:
178541388
Tag: #stability
Change-Id: I13f23d5b88d749608d833baa3378e3d0eddb4e82
Jeongik Cha [Thu, 28 Jan 2021 15:45:49 +0000 (15:45 +0000)]
Merge "Specify version for aidl_interface explicitly" am:
c5deace429
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1560330
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I8a7bce93a2932ece6d4628a5d18af835e68315e5
Jeongik Cha [Thu, 28 Jan 2021 15:13:10 +0000 (15:13 +0000)]
Merge "Specify version for aidl_interface explicitly"
Josh Wu [Thu, 28 Jan 2021 11:55:29 +0000 (19:55 +0800)]
Use updated SIG wording: blacklist to rejectlist
BYPASS_INCLUSIVE_LANGUAGE_REASON=None
Tag: #refactor
Bug:
170342881
Test: atest BluetoothInstrumentationTests
Change-Id: I63e6e1ef003558433c51061bc2781c8f60f8a037
Qasim Javed [Thu, 28 Jan 2021 03:08:57 +0000 (19:08 -0800)]
rusty-gd: Use entire slice during packet parsing
The field offsets for the child packets are relative to the parent
packet so we do not need to use specify a starting offset when calling
the child packet's parse method.
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I472f3365259c653143a973c4412d685c20f62808
Hansong Zhang [Wed, 27 Jan 2021 23:33:23 +0000 (23:33 +0000)]
L2cap FCR: Use MTU from registration am:
752226f043
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1562455
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ic39eb3c679e2f6bf359a1a055bb41f909c5d7d5b
Hansong Zhang [Wed, 27 Jan 2021 18:07:30 +0000 (10:07 -0800)]
L2cap FCR: Use MTU from registration
Bug:
174845935
Test: manual
Tag: #stability
Change-Id: I817bc44a436de150aa12377741f99d468f42df73
Myles Watson [Wed, 27 Jan 2021 22:14:29 +0000 (22:14 +0000)]
Merge changes I600c39dd,Ib9f8ace3,Ib9c717b5 am:
0ce3d72288
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1560329
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I1f04b539bc0195f37b6025dc328ee9a96ee88ec9
Myles Watson [Wed, 27 Jan 2021 21:44:57 +0000 (21:44 +0000)]
Merge changes I600c39dd,Ib9f8ace3,Ib9c717b5
* changes:
gd: Fix advertising id not removed bug
gd: Prevent legacy address rotation when GD enabled
gd: Handle inquiry result callback
Qasim Javed [Wed, 27 Jan 2021 20:45:22 +0000 (12:45 -0800)]
rusty-gd: Serialize size fields.
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: Ia2f2acddd43960deca96b037295e17203038b1fd
Jakub Tyszkowski [Wed, 27 Jan 2021 14:27:06 +0000 (14:27 +0000)]
iso: Fix handling same sequence number am:
32c501000a
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1559667
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I01dc72e78c479ffe3388d7b312e4136030c20140
Jakub Tyszkowski [Mon, 4 Jan 2021 14:06:13 +0000 (15:06 +0100)]
iso: Fix handling same sequence number
When calculating the sequence number it may happen that we
compute the same value as for previous packet. If that happens
we manually increment the value by one. This was a problem when
yet another packet comes in a short interval and calculated seq.
number is still the same. Our calcualted seq. number for current
packet can now be lower than the previos one (after the previous
one was manually incremented). This resulted in wrongly calculated
packet lost counter dropping below 0.
Tag: #feature
Bug:
159786353
Sponsor: jpawlowski@
Test: atest --host net_test_btm_iso
Change-Id: I7d726ef292e85851af6383bfc8f4bcf125ccbf54
Jack He [Wed, 27 Jan 2021 07:49:06 +0000 (07:49 +0000)]
[GD Cert] Support Python 3.9 am:
b4a1a95703
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1560288
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: If7ed8790d9286d96156b28b902ae45e31c626965
Jack He [Tue, 26 Jan 2021 08:40:36 +0000 (00:40 -0800)]
[GD Cert] Support Python 3.9
* AOSP upgraded to Python 3.9 recently
* Use Python 3.9 as default test runner
* Modify logging lines in setup.py
Bug:
178410571
Tag: #gd-refactor
Test: gd/cert/run
Change-Id: I65cb619d747102d8f145511feb20a40d8bf38790
Jeffrey Vander Stoep [Tue, 26 Jan 2021 19:23:01 +0000 (19:23 +0000)]
Merge "Use new tokio 1.x API functions." am:
763c36849a
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1555297
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ice3d10cffbb9ade274653f5f5487efdd13ce3612
Jeffrey Vander Stoep [Tue, 26 Jan 2021 18:41:47 +0000 (18:41 +0000)]
Merge "Use new tokio 1.x API functions."
Jeongik Cha [Tue, 26 Jan 2021 13:35:08 +0000 (22:35 +0900)]
Specify version for aidl_interface explicitly
Bug:
150578172
Test: m
Change-Id: I0d79b6d36bd7fd3f9a595ed5f45cbc6689a4aff5
Chienyuan [Tue, 26 Jan 2021 11:46:30 +0000 (19:46 +0800)]
gd: Fix advertising id not removed bug
Tag: #gd-refactor
Bug:
177044452
Test: gd/cert/run --host
Change-Id: I600c39dd84b7712f905f327ea419c287a02c97f8
Jakub Pawlowski [Tue, 26 Jan 2021 09:50:20 +0000 (09:50 +0000)]
Merge "gattc: Fix uninitialized memory issue which could lead to crash" am:
b6057be630
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1556264
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I6c8539d521fe9d81eeb7991350afd5b783427490
Chienyuan [Tue, 26 Jan 2021 09:46:58 +0000 (17:46 +0800)]
gd: Prevent legacy address rotation when GD enabled
Tag: #gd-refactor
Bug:
177044452
Test: gd/cert/run --host
Test: manual
Change-Id: Ib9f8ace378704077d4375ca2a46eeab20f92aef0
Jakub Pawlowski [Tue, 26 Jan 2021 09:05:30 +0000 (09:05 +0000)]
Merge "gattc: Fix uninitialized memory issue which could lead to crash"
Chienyuan [Fri, 22 Jan 2021 10:12:30 +0000 (18:12 +0800)]
gd: Handle inquiry result callback
Tag: #gd-refactor
Bug:
177044452
Test: gd/cert/run --host
Test: manual, start inquiry from Settings
Change-Id: Ib9c717b58cdd7feda82496b29ea653c732a32dc4
Ivan Lozano [Wed, 20 Jan 2021 14:28:28 +0000 (09:28 -0500)]
Use new tokio 1.x API functions.
Some functions have been renamed or removed as part of the tokio
1.x upgrade. This CL refactors the code to address that.
Also included are a couple minor rustfmt style changes as part of
submission.
Bug:
177808007
Test: mma
Change-Id: Ia147257b0cddb628866b34c9f755b1fe3c63e46d
Myles Watson [Mon, 25 Jan 2021 19:28:08 +0000 (19:28 +0000)]
Merge "Fix A2dp encoder counter deviation." am:
58f2d12f05
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1506815
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Icbacbefe3c9df6ab3a2b77fb2447e9c71e99a378
Chienyuan [Mon, 25 Jan 2021 19:23:53 +0000 (19:23 +0000)]
gd: Enable scanning flag am:
1d79d8cd6d
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1557631
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: If729143ad9775e1d9b2ac2286f98375a51433baa
Myles Watson [Mon, 25 Jan 2021 18:50:28 +0000 (18:50 +0000)]
Merge "Fix A2dp encoder counter deviation."
Łukasz Rymanowski [Fri, 22 Jan 2021 09:17:53 +0000 (10:17 +0100)]
gattc: Fix uninitialized memory issue which could lead to crash
This is regression after
813bf3ddd gattc: Extend gattc queue with mtu exchange
This patch makes sure that new mtu_cb and mtu_cb_data
are set to 0 when not used.
Tag: #feature
Test: CtsVerifier
Sponsor: jpawlowski@
Fixes:
178129488
Bug:
178129488
Change-Id: Ia550c99ee7292fa275150791fc73e92ae791d91c
Chienyuan [Sun, 24 Jan 2021 14:43:13 +0000 (22:43 +0800)]
gd: Enable scanning flag
Tag: #gd-refactor
Bug:
177044452
Test: manual
Change-Id: I754ffb63d3dc116203bf58a52816a7010d206492
Zach Johnson [Sun, 24 Jan 2021 00:52:02 +0000 (00:52 +0000)]
Merge "rusty-gd: Added methods to compute size" am:
fe19726a06
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1556276
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I09fe763e0a7ca3a99f3b3cdedf92a5af9694dc41
Zach Johnson [Sun, 24 Jan 2021 00:19:35 +0000 (00:19 +0000)]
Merge "rusty-gd: Added methods to compute size"
Zach Johnson [Sat, 23 Jan 2021 02:21:51 +0000 (02:21 +0000)]
rusty-gd: move gddi-macros to gddi/macros am:
26c5fb530d
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1558533
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I15453c6492c64bd718698bf527ecf2bd6d0b2086
Zach Johnson [Sat, 23 Jan 2021 02:21:45 +0000 (02:21 +0000)]
rusty-gd: move facade_helpers to facade/helpers am:
8ee8c2d860
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1558532
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I40c2251140306dd50b2ebd2f9b17d80721ae8e9b
Zach Johnson [Sat, 23 Jan 2021 02:21:38 +0000 (02:21 +0000)]
rusty-gd: remove unused grpc-macros content am:
3b425379df
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1558531
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I32690dbc0f62c718370d02b3c1f843eb7aa1d71c
Zach Johnson [Sat, 23 Jan 2021 02:20:01 +0000 (02:20 +0000)]
rusty-gd: reorg rust/acl to rust/link am:
6d5acc90fb
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1557058
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I64182c00564e69b210b68dc020b55355134244bc
Qasim Javed [Fri, 22 Jan 2021 22:53:16 +0000 (14:53 -0800)]
rusty-gd: Added methods to compute size
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: Iadd4663eac45d3b61ea891def71ece4bba0cdcf6
Zach Johnson [Fri, 22 Jan 2021 22:33:36 +0000 (14:33 -0800)]
rusty-gd: move gddi-macros to gddi/macros
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I30b553a92539212bbe7456c3f4794706d3e8950e