OSDN Git Service

android-x86/system-bt.git
3 years agoAdd various LOG_TAG bluetooth
Chris Manton [Fri, 29 Jan 2021 22:01:13 +0000 (14:01 -0800)]
Add various LOG_TAG bluetooth

Towards loggable code

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

Change-Id: I7a507f06070008407e70079cd867d20a921458af

3 years agoMerge "L2cap scheduler: Drop packets when chennel is closed"
Treehugger Robot [Wed, 3 Feb 2021 04:41:32 +0000 (04:41 +0000)]
Merge "L2cap scheduler: Drop packets when chennel is closed"

3 years agoMerge "Fix race condition for dynamic audio buffer capabilities"
More Kuo [Wed, 3 Feb 2021 02:39:01 +0000 (02:39 +0000)]
Merge "Fix race condition for dynamic audio buffer capabilities"

3 years agoL2cap scheduler: Drop packets when chennel is closed
Hansong Zhang [Tue, 2 Feb 2021 20:20:23 +0000 (12:20 -0800)]
L2cap scheduler: Drop packets when chennel is closed

Bug: 179124160
Test: bluetooth_test_gd
Tag: #stability
Change-Id: I820f4440c91975986505deaf45647dbe21f5f601

3 years agoFix LE crash
Hansong Zhang [Tue, 2 Feb 2021 05:39:22 +0000 (21:39 -0800)]
Fix LE crash

Bug: 179102541
Tag: #gd-refactor
Test: LE mouse
Change-Id: Id817302376a1d72b4ee4845970a045bef433f6b5

3 years agoMerge "Make build tweaks to support newer libchrome"
Abhishek Pandit-Subedi [Tue, 2 Feb 2021 20:47:30 +0000 (20:47 +0000)]
Merge "Make build tweaks to support newer libchrome"

3 years agoMerge "Fix up files to compile on Linux"
Treehugger Robot [Tue, 2 Feb 2021 19:58:30 +0000 (19:58 +0000)]
Merge "Fix up files to compile on Linux"

3 years agoMerge changes I71b8d3f5,Ie360848b,I6705aa19,I58d1972a,I2e4658ca, ...
Qasim Javed [Tue, 2 Feb 2021 19:47:13 +0000 (19:47 +0000)]
Merge changes I71b8d3f5,Ie360848b,I6705aa19,I58d1972a,I2e4658ca, ...

* changes:
  rusty-gd: hci facade completes command to ACK receive
  rusty-gd: don't put payloads, the size has already been allocated
  rusty-gd: take vector sizes into account
  rusty-gd: move write_to logic to parent_def
  rusty-gd: move size field to packet gen
  rusty-gd: Write correct size and compute it once

3 years agoL2cap: Repeat config options from remote
Hansong Zhang [Mon, 1 Feb 2021 22:48:15 +0000 (14:48 -0800)]
L2cap: Repeat config options from remote

They probably need it.

Test: cert/run
Tag: #gd-refactor
Bug: 141555841
Bug: 179071567
Change-Id: I5466749fd6724f38684de5005d2a96cc598833cf

3 years agoFix L2cap LE crash
Hansong Zhang [Mon, 1 Feb 2021 22:00:11 +0000 (14:00 -0800)]
Fix L2cap LE crash

Tag: #gd-refactor
Bug: 179066870
Test: CtsVerifier
Change-Id: I61faf8aa17323b55a818eab1820d0354c84f38e9

3 years agoMerge "BluetoothAudioHAL: MTU not exceed an AVDTP packet"
Treehugger Robot [Tue, 2 Feb 2021 15:55:30 +0000 (15:55 +0000)]
Merge "BluetoothAudioHAL: MTU not exceed an AVDTP packet"

3 years agoMerge "AVDTP: static IOP database for AVDTP SUSPEND"
Cheney Ni [Tue, 2 Feb 2021 05:11:17 +0000 (05:11 +0000)]
Merge "AVDTP: static IOP database for AVDTP SUSPEND"

3 years agorusty-gd: hci facade completes command to ACK receive
Zach Johnson [Tue, 2 Feb 2021 03:19:34 +0000 (19:19 -0800)]
rusty-gd: hci facade completes command to ACK receive

do this before sending, to ensure we don't block waiting
for events that will never come (in the case of loopback)

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

3 years agorusty-gd: don't put payloads, the size has already been allocated
Zach Johnson [Tue, 2 Feb 2021 02:34:47 +0000 (18:34 -0800)]
rusty-gd: don't put payloads, the size has already been allocated

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

3 years agorusty-gd: take vector sizes into account
Zach Johnson [Tue, 2 Feb 2021 01:11:16 +0000 (17:11 -0800)]
rusty-gd: take vector sizes into account

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

3 years agoL2cap privacy shim
Hansong Zhang [Mon, 1 Feb 2021 08:35:47 +0000 (00:35 -0800)]
L2cap privacy shim

Bug: 141555841
Tag: #gd-refactor
Test: cert/run
Change-Id: I62ac6986b9798638503cc3b2bf3e234234a0566b

3 years agoFix LE link_manager_test
Hansong Zhang [Tue, 2 Feb 2021 00:29:08 +0000 (16:29 -0800)]
Fix LE link_manager_test

Test: bluetooth_test_gd
Change-Id: Id90a43214e7334b6dde0fee4014208420cb94feb

3 years agorusty-gd: move write_to logic to parent_def
Zach Johnson [Tue, 2 Feb 2021 00:25:36 +0000 (16:25 -0800)]
rusty-gd: move write_to logic to parent_def

this way it can be shared between struct & packet

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

3 years agorusty-gd: move size field to packet gen
Zach Johnson [Mon, 1 Feb 2021 23:44:12 +0000 (15:44 -0800)]
rusty-gd: move size field to packet gen

this way we have full context on the targeted field

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

3 years agorusty-gd: Write correct size and compute it once
Qasim Javed [Mon, 1 Feb 2021 23:12:51 +0000 (15:12 -0800)]
rusty-gd: Write correct size and compute it once

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

Change-Id: Id2e54a7e7d98d49f0dc908e878fee8b0f58f0def

3 years agoPlumb through hci_status to clients
Chris Manton [Mon, 1 Feb 2021 04:00:34 +0000 (20:00 -0800)]
Plumb through hci_status to clients

Classic ACL:
- OnModeChange
- OnSniffSubrating
- OnRoleChange
- OnReadRemoteVersionInformationComplete

LE ACL:
- OnConnectionUpdate
- OnReadRemoteVersionInformationComplete
- OnPhyUpdate

Bug: 178358499
Test: cert
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I506dd6ae57e31e25f172f181951ae44fd1ea69d6

3 years agoL2cap LE: Send channel open callback after remote version
Hansong Zhang [Thu, 28 Jan 2021 19:40:49 +0000 (11:40 -0800)]
L2cap LE: Send channel open callback after remote version

Make sure remote version info is known when channel is open.  SMP needs
it immediately.

Tag: #gd-refactor
Bug: 141555841
Test: cert/run
Change-Id: I35fa5153adda3e6eda48607cf391804a06d24192

3 years agoMake build tweaks to support newer libchrome
Abhishek Pandit-Subedi [Wed, 20 Jan 2021 04:03:25 +0000 (20:03 -0800)]
Make build tweaks to support newer libchrome

Android uses a very old version of libchrome and there are several
breaking changes in the latest libchrome. Using BASE_VER defined in the
libchrome provided by ChromeOS, we add a few abstractions:
* AbstractMessageLoop to replace MessageLoop
* AbstractObserverList to replace ObserverList
* Work around ExportedObject::ResponseSender changing from
  base::RepeatingCallback to base::OnceCallback

Also add a few more workarounds for libchrome differences (missing
includes, unresolved symbols, etc).

Bug: 177961465
Tag: #refactor
Test: run --host bluetooth_test_gd
Test: run --host bluetooth_test_common
Change-Id: I94bc3dd4cd86bd357d869f23e95de9e53184696d

3 years agoFix up files to compile on Linux
Abhishek Pandit-Subedi [Sat, 9 Jan 2021 03:53:23 +0000 (19:53 -0800)]
Fix up files to compile on Linux

Fix up all the .gn files so that they will compile on Linux. In order to
compile with GN, there is a new dependency on common-mk (currently part
of chromiumos/platform2) and most third-party libraries now use
pkg-config to include and link. As a result, all build paths are
prefixed with //bt now.

In addition, also disable building non standard codecs temporarily (i.e.
ldac, aptx, aac). We will add a way to enable them via build flags later
but we're disabling them entirely for now.

Bug: 176847216
Bug: 176846220
Tag: #refactor
Test: run --host bluetooth_test_gd
Test: run --host bluetooth_test_common
Change-Id: I85e5f8bd64c9ad074537cdd1393d373d5644aca0

3 years agoThere is only one BTM PM registration
Hansong Zhang [Sat, 23 Jan 2021 01:37:20 +0000 (17:37 -0800)]
There is only one BTM PM registration

Test: cert/run
Tag: #gd-refactor
Bug: 141555841
Change-Id: I10e4fea95b19fcb2b9e38f04b097cf3f6d74762e

3 years agoBTM_PM_REG_SET should imply BTM_PM_REG_NOTIF
Hansong Zhang [Sat, 23 Jan 2021 01:30:40 +0000 (17:30 -0800)]
BTM_PM_REG_SET should imply BTM_PM_REG_NOTIF

From its only use case

Test: cert/run
Tag: #gd-refactor
Bug: 141555841
Change-Id: Ic464f1989b49b8b1be115aba8b62bca8d78c5cc0

3 years agoMerge changes I14572835,Ib445933a,I842b69db,I2b8eeb2c,Iaf263d45, ...
Chris Manton [Mon, 1 Feb 2021 16:48:12 +0000 (16:48 +0000)]
Merge changes I14572835,Ib445933a,I842b69db,I2b8eeb2c,Iaf263d45, ...

* changes:
  Re-include include/hardware/bt_sock
  Re-include btif/include/btif_av
  Re-include btif/include/btif_a2dp_source
  Re-include btif/include/btif_a2dp_sink
  Re-include bta/sdp/bta_sdp_int
  Re-include bta/pb/bta_pbs_int
  Re-include bta/pan/bta_pan_int
  Re-include bta/jv/bta_jv_int
  Re-include bta/include/utl
  Re-include bta/include/bta_sdp_api
  Re-include bta/include/bta_pan_co
  Re-include bta/include/bta_pan_ci
  Re-include bta/include/bta_pan_api
  Re-include bta/include/bta_op_api
  Re-include bta/include/bta_jv_co
  Re-include bta/include/bta_jv_api
  Re-include bta/include/bta_hh_co
  Re-include bta/include/bta_hh_api
  Re-include bta/include/bta_hf_client_api
  Re-include bta/include/bta_hearing_aid_api
  Re-include bta/include/bta_hd_api
  Re-include bta/include/bta_gatts_co
  Re-include bta/include/bta_gatt_queue
  Re-include bta/include/bta_gatt_api
  Re-include bta/include/bta_dm_co
  Re-include bta/include/bta_dm_ci
  Re-include bta/include/bta_dm_api
  Re-include bta/include/bta_av_co
  Re-include bta/include/bta_av_ci
  Re-include bta/include/bta_av_api
  Re-include bta/include/bta_ar_api
  Re-include bta/include/bta_api
  Re-include bta/include/bta_ag_api
  Re-include bta/hh/bta_hh_int
  Re-include bta/hf_client/bta_hf_client_at
  Re-include bta/hd/bta_hd_int
  Re-include bta/gatt/bta_gatts_int
  Re-include bta/gatt/bta_gattc_int
  Re-include bta/dm/bta_dm_int
  Re-include bta/av/bta_av_int
  Re-include bta/ar/bta_ar_int
  Re-include bta/ag/bta_ag_int
  Properly include bta/ag/bta_ag_at::size_t
  Properly include bta/gatt/database_builder
  Properly include various compilation units

3 years agopm_reg_db[BTM_MAX_PM_RECORDS + 1] is unused
Hansong Zhang [Sat, 23 Jan 2021 01:25:08 +0000 (17:25 -0800)]
pm_reg_db[BTM_MAX_PM_RECORDS + 1] is unused

In fact, BTM_PmRegister is called just once by one client only.

Test: cert/run
Tag: #gd-refactor
Bug: 141555841
Change-Id: I2700b7cc2b821d16d65a260b1e15f26edea4f6ec

3 years agoSend OnModeChange non success event to shim
Hansong Zhang [Fri, 29 Jan 2021 01:11:09 +0000 (17:11 -0800)]
Send OnModeChange non success event to shim

Otherwise SCO_Remove could be blocked.

Tag: #gd-refactor
Bug: 141555841
Bug: 178172118
Test: cert/run
Change-Id: I59abd9035f27367929aabbbba65d4db9b59e819d

3 years agoMake BTM_PM almost modular
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

3 years agoRe-include include/hardware/bt_sock
Chris Manton [Mon, 25 Jan 2021 02:57:19 +0000 (18:57 -0800)]
Re-include include/hardware/bt_sock

Include what you use

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

Change-Id: I14572835b8db117eb745cc5cbd85064aa27693f3

3 years agoRe-include btif/include/btif_av
Chris Manton [Thu, 28 Jan 2021 18:59:17 +0000 (10:59 -0800)]
Re-include btif/include/btif_av

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Ib445933ac752adb1fedc544d80fd467e11529618

3 years agoRe-include btif/include/btif_a2dp_source
Chris Manton [Fri, 29 Jan 2021 17:31:32 +0000 (09:31 -0800)]
Re-include btif/include/btif_a2dp_source

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I842b69db1e0655f711a9cbb429f2d290efce1c26

3 years agoRe-include btif/include/btif_a2dp_sink
Chris Manton [Thu, 28 Jan 2021 18:59:11 +0000 (10:59 -0800)]
Re-include btif/include/btif_a2dp_sink

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I2b8eeb2c8bec8461e543d47f0bb45a79c0adfb1a

3 years agoRe-include bta/sdp/bta_sdp_int
Chris Manton [Fri, 29 Jan 2021 01:39:10 +0000 (17:39 -0800)]
Re-include bta/sdp/bta_sdp_int

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Iaf263d45ae075f76b717c9a7a03ef7bb57fe868b

3 years agoRe-include bta/pb/bta_pbs_int
Chris Manton [Fri, 29 Jan 2021 01:38:23 +0000 (17:38 -0800)]
Re-include bta/pb/bta_pbs_int

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Icd64fd24563142f0a0416c04fccee181efa9a674

3 years agoRe-include bta/pan/bta_pan_int
Chris Manton [Thu, 28 Jan 2021 18:59:04 +0000 (10:59 -0800)]
Re-include bta/pan/bta_pan_int

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Iaa252a9cbbc7f50bd05d30ce222bb1ac85628d7d

3 years agoRe-include bta/jv/bta_jv_int
Chris Manton [Fri, 29 Jan 2021 01:37:45 +0000 (17:37 -0800)]
Re-include bta/jv/bta_jv_int

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I222a04e931786de9f2b7a908561d061ec619bca9

3 years agoRe-include bta/include/utl
Chris Manton [Thu, 28 Jan 2021 18:58:58 +0000 (10:58 -0800)]
Re-include bta/include/utl

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I1f20157b1ceedca29f9907bf6c278dbe13f07404

3 years agoRe-include bta/include/bta_sdp_api
Chris Manton [Sat, 23 Jan 2021 00:52:36 +0000 (16:52 -0800)]
Re-include bta/include/bta_sdp_api

Include what you use

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

Change-Id: Ibc7f3227a86bb36677010216b534d23a921893e4

3 years agoRe-include bta/include/bta_pan_co
Chris Manton [Thu, 28 Jan 2021 18:58:50 +0000 (10:58 -0800)]
Re-include bta/include/bta_pan_co

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Id8d795adf818ed9bc3f6570d013c246c74e03559

3 years agoRe-include bta/include/bta_pan_ci
Chris Manton [Thu, 28 Jan 2021 18:58:43 +0000 (10:58 -0800)]
Re-include bta/include/bta_pan_ci

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Ia7d845083f598063b76155bc807154b5743cffeb

3 years agoRe-include bta/include/bta_pan_api
Chris Manton [Thu, 28 Jan 2021 18:58:36 +0000 (10:58 -0800)]
Re-include bta/include/bta_pan_api

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I5fb92d8a8332511d505fb230410c7ce3bf5fa401

3 years agoRe-include bta/include/bta_op_api
Chris Manton [Thu, 28 Jan 2021 18:58:29 +0000 (10:58 -0800)]
Re-include bta/include/bta_op_api

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Iceacf275b2ab7744c557edd65ca13ec7d280f1c1

3 years agoRe-include bta/include/bta_jv_co
Chris Manton [Thu, 28 Jan 2021 18:58:22 +0000 (10:58 -0800)]
Re-include bta/include/bta_jv_co

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Ieb087b35d028cb34cc6b3a88be55d7bf8034302b

3 years agoRe-include bta/include/bta_jv_api
Chris Manton [Sat, 23 Jan 2021 00:55:37 +0000 (16:55 -0800)]
Re-include bta/include/bta_jv_api

Include what you use

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

Change-Id: I5dd0c7f731897f95c452c6e7908fb673114fe22d

3 years agoRe-include bta/include/bta_hh_co
Chris Manton [Thu, 28 Jan 2021 18:58:15 +0000 (10:58 -0800)]
Re-include bta/include/bta_hh_co

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I5f0c9f20eb65afbb236a9d9d35ed23400531ed62

3 years agoRe-include bta/include/bta_hh_api
Chris Manton [Thu, 28 Jan 2021 18:58:08 +0000 (10:58 -0800)]
Re-include bta/include/bta_hh_api

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I9615ccc4d9d7f1ff1d0749beb6fb33ea2743d267

3 years agoRe-include bta/include/bta_hf_client_api
Chris Manton [Thu, 28 Jan 2021 18:58:02 +0000 (10:58 -0800)]
Re-include bta/include/bta_hf_client_api

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Iac3455e5414790608ed04249a75b38a282a342df

3 years agoRe-include bta/include/bta_hearing_aid_api
Chris Manton [Thu, 28 Jan 2021 18:57:54 +0000 (10:57 -0800)]
Re-include bta/include/bta_hearing_aid_api

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I5594b0fa198fad64a0588d5a1b57981ab6dc1414

3 years agoRe-include bta/include/bta_hd_api
Chris Manton [Fri, 29 Jan 2021 01:37:22 +0000 (17:37 -0800)]
Re-include bta/include/bta_hd_api

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I3e2307c63920a9963b610893e1e5b3ac2c983787

3 years agoRe-include bta/include/bta_gatts_co
Chris Manton [Thu, 28 Jan 2021 18:57:30 +0000 (10:57 -0800)]
Re-include bta/include/bta_gatts_co

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Iacea90556774ea8336684e7e2e11933bd8f58ada

3 years agoRe-include bta/include/bta_gatt_queue
Chris Manton [Thu, 28 Jan 2021 18:57:21 +0000 (10:57 -0800)]
Re-include bta/include/bta_gatt_queue

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I4c4b9fc5e923b077cf13401b394e83983f260b91

3 years agoRe-include bta/include/bta_gatt_api
Chris Manton [Thu, 28 Jan 2021 18:57:12 +0000 (10:57 -0800)]
Re-include bta/include/bta_gatt_api

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I21c81d09cba682b180bb7e7a0db02882aff9af16

3 years agoRe-include bta/include/bta_dm_co
Chris Manton [Sat, 23 Jan 2021 00:37:20 +0000 (16:37 -0800)]
Re-include bta/include/bta_dm_co

Include what you use

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

Change-Id: Icb5292b10179ffa1d4c8ed3d1f1849abb8ffd76e

3 years agoRe-include bta/include/bta_dm_ci
Chris Manton [Thu, 28 Jan 2021 18:57:01 +0000 (10:57 -0800)]
Re-include bta/include/bta_dm_ci

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I86b68db00a780be6cdba041e8b213a8f775e899b

3 years agoRe-include bta/include/bta_dm_api
Chris Manton [Thu, 28 Jan 2021 18:56:54 +0000 (10:56 -0800)]
Re-include bta/include/bta_dm_api

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Ice02ef6590a5b291654fd7aedc1a41af7c4a45a6

3 years agoRe-include bta/include/bta_av_co
Chris Manton [Thu, 28 Jan 2021 18:56:47 +0000 (10:56 -0800)]
Re-include bta/include/bta_av_co

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I61916b7f39b20d48b9b962077fac164cf6ec7d08

3 years agoRe-include bta/include/bta_av_ci
Chris Manton [Thu, 28 Jan 2021 18:56:35 +0000 (10:56 -0800)]
Re-include bta/include/bta_av_ci

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Iab92243fa88fb29882cd373e3ea068c75d236cb4

3 years agoRe-include bta/include/bta_av_api
Chris Manton [Thu, 28 Jan 2021 18:56:28 +0000 (10:56 -0800)]
Re-include bta/include/bta_av_api

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I62e7df0320cb257dbcb995d59651515889fb5092

3 years agoRe-include bta/include/bta_ar_api
Chris Manton [Thu, 28 Jan 2021 18:56:22 +0000 (10:56 -0800)]
Re-include bta/include/bta_ar_api

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I29e07e76d6f010f18bba62bdcdc90e0ec9691195

3 years agoRe-include bta/include/bta_api
Chris Manton [Sat, 23 Jan 2021 00:49:08 +0000 (16:49 -0800)]
Re-include bta/include/bta_api

Include what you use

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

Change-Id: I93722e7b59792319a51de40a7f72bd4b5dd39921

3 years agoRe-include bta/include/bta_ag_api
Chris Manton [Fri, 29 Jan 2021 01:37:17 +0000 (17:37 -0800)]
Re-include bta/include/bta_ag_api

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I7bf31f3ea8705ec3fbf3d7680d16e4cd29c8f79c

3 years agoRe-include bta/hh/bta_hh_int
Chris Manton [Thu, 28 Jan 2021 18:56:12 +0000 (10:56 -0800)]
Re-include bta/hh/bta_hh_int

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I506901526379aa33157dacada79c3941f846eae4

3 years agoRe-include bta/hf_client/bta_hf_client_at
Chris Manton [Sat, 23 Jan 2021 07:06:31 +0000 (23:06 -0800)]
Re-include bta/hf_client/bta_hf_client_at

Include what you use

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

3 years agoRe-include bta/hd/bta_hd_int
Chris Manton [Fri, 29 Jan 2021 01:36:13 +0000 (17:36 -0800)]
Re-include bta/hd/bta_hd_int

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I9c7b5a2a8dbd9039f272a5a87c8412c0e972b8f3

3 years agoRe-include bta/gatt/bta_gatts_int
Chris Manton [Fri, 29 Jan 2021 01:35:36 +0000 (17:35 -0800)]
Re-include bta/gatt/bta_gatts_int

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Ife1f4932223bcf867c4f14a4a9851c0b1012f1cf

3 years agoRe-include bta/gatt/bta_gattc_int
Chris Manton [Thu, 28 Jan 2021 16:49:37 +0000 (08:49 -0800)]
Re-include bta/gatt/bta_gattc_int

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I24b07ed7db7340aa64aa1131c419dace62119a56

3 years agoRe-include bta/dm/bta_dm_int
Chris Manton [Thu, 28 Jan 2021 16:49:13 +0000 (08:49 -0800)]
Re-include bta/dm/bta_dm_int

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Ibba4fac3ab1ea5a23808b636ef6978b015545f7d

3 years agoRe-include bta/av/bta_av_int
Chris Manton [Thu, 28 Jan 2021 16:48:58 +0000 (08:48 -0800)]
Re-include bta/av/bta_av_int

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Ib889ead1626364a1b8cb312f1dedb0660dfbbe96

3 years agoRe-include bta/ar/bta_ar_int
Chris Manton [Thu, 28 Jan 2021 16:48:31 +0000 (08:48 -0800)]
Re-include bta/ar/bta_ar_int

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I35ed82485ddaf42d27777f3c6abe54e563500131

3 years agoRe-include bta/ag/bta_ag_int
Chris Manton [Thu, 28 Jan 2021 16:48:22 +0000 (08:48 -0800)]
Re-include bta/ag/bta_ag_int

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I44ea2867d5933a0cbf5f382145cf28ea643f3061

3 years agoProperly include bta/ag/bta_ag_at::size_t
Chris Manton [Thu, 28 Jan 2021 03:03:46 +0000 (19:03 -0800)]
Properly include bta/ag/bta_ag_at::size_t

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I6cb355ccebc3f61469fb4ead54cd0b6bd72a1957

3 years agoProperly include bta/gatt/database_builder
Chris Manton [Thu, 28 Jan 2021 04:03:01 +0000 (20:03 -0800)]
Properly include bta/gatt/database_builder

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: Ia6f6c91ba9c87fae94824bd14edde00beb8b8de5

3 years agoProperly include various compilation units
Chris Manton [Sat, 30 Jan 2021 23:59:29 +0000 (15:59 -0800)]
Properly include various compilation units

Include what you use

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Id04402aeb8d7409affeae9af6c1031526db9b6c5

3 years agoMerge changes I36ba4e1c,Idec5b493,I813f1737
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

3 years agoBTM_PM refactor
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

3 years agoLet ACL Manager load IRK for now
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

3 years agoRe-route read LE local/remote address to L2cap
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

3 years agoHCI: Match commands with responses
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

3 years agoL2cap: Depend on Advertising to set privacy
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

3 years agoHCI: Remove Create New Unit Key
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

3 years agoHCI: Remove deprecated TRACK command
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

3 years agoMerge "rusty-gd: Use entire slice during packet parsing"
Zach Johnson [Fri, 29 Jan 2021 22:02:47 +0000 (22:02 +0000)]
Merge "rusty-gd: Use entire slice during packet parsing"

3 years agoMerge changes I9f76c7f7,Id5863a3c,I070cc0c0,I09f31af5,I4d4f2b79, ...
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

3 years agoRemove some unused stuff
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

3 years agoMerge "rusty-gd: Serialize size fields."
Zach Johnson [Fri, 29 Jan 2021 19:27:20 +0000 (19:27 +0000)]
Merge "rusty-gd: Serialize size fields."

3 years agoMerge "[GD ACL] Make ACL packets non-flushable by default"
Jack He [Fri, 29 Jan 2021 19:02:10 +0000 (19:02 +0000)]
Merge "[GD ACL] Make ACL packets non-flushable by default"

3 years agogd: Add dependency for Advertising/Scanning/L2CAP module
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

3 years agoFix some sco packet type features
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

3 years agobtm_log: Add pairing state changes
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

3 years agoMove stack/include/bt_types::FLOW_SPEC => stack/l2c
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

3 years agoMove stack/include/::btm_api into btm_ble_api
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

3 years agoInclude security_client_callbacks
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

3 years agoBreak out security callbacks stack/include/security_client_callbacks
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

3 years agoIntroduce stack/include/sco_client_callbacks
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

3 years agoAdd stack/acl/btm_acl::SupportTransparentSynchronousData
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

3 years agoExpand stack/include/btm_client_interface
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

3 years agoAdd explict FALLTHROUGH_INTENDED to package
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

3 years agoRe-log stack/rfcomm/rfc_mx_fsm::rfc_mx_sm_execute
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