OSDN Git Service

android-x86/system-bt.git
3 years agoMerge "Update GN files for building on Linux/Chrome OS" am: c113770121 am: 8fedab6db9
Sonny Sasaka [Mon, 8 Feb 2021 22:10:14 +0000 (22:10 +0000)]
Merge "Update GN files for building on Linux/Chrome OS" am: c113770121 am: 8fedab6db9

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie7ce6919bee8f193b4b821c97fc4e1b5f8a3cff6

3 years agoMerge "Update GN files for building on Linux/Chrome OS" am: c113770121
Sonny Sasaka [Mon, 8 Feb 2021 21:37:13 +0000 (21:37 +0000)]
Merge "Update GN files for building on Linux/Chrome OS" am: c113770121

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaf50cc0c0f22fb7369b0e5604016d7a249487606

3 years agoMerge "Update GN files for building on Linux/Chrome OS"
Sonny Sasaka [Mon, 8 Feb 2021 21:00:32 +0000 (21:00 +0000)]
Merge "Update GN files for building on Linux/Chrome OS"

3 years agoMerge "bt: Make crypto_toolbox_for_test available on the host" am: 345e442e2c am...
Jakub Pawlowski [Mon, 8 Feb 2021 19:42:46 +0000 (19:42 +0000)]
Merge "bt: Make crypto_toolbox_for_test available on the host" am: 345e442e2c am: c24b2be6ac

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iee212e80030814a72f6ec8022b7f7547678a1a57

3 years agoMerge "bt: Make crypto_toolbox_for_test available on the host" am: 345e442e2c
Jakub Pawlowski [Mon, 8 Feb 2021 19:19:13 +0000 (19:19 +0000)]
Merge "bt: Make crypto_toolbox_for_test available on the host" am: 345e442e2c

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idc69e1cddb59f31ce3148ba962da32543c857d08

3 years agoMerge "bt: Make crypto_toolbox_for_test available on the host"
Jakub Pawlowski [Mon, 8 Feb 2021 18:52:22 +0000 (18:52 +0000)]
Merge "bt: Make crypto_toolbox_for_test available on the host"

3 years agoMerge "Fix two bluetooth tests" am: 813e80dd61 am: 7b70ef6764
Julien Desprez [Mon, 8 Feb 2021 18:36:09 +0000 (18:36 +0000)]
Merge "Fix two bluetooth tests" am: 813e80dd61 am: 7b70ef6764

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I057d46c2805bdc310a1174329a6c9af88cd6c389

3 years agoAsyncManager: Shorten test time am: 980e3e1414 am: 60301449a3
Myles Watson [Mon, 8 Feb 2021 18:35:58 +0000 (18:35 +0000)]
AsyncManager: Shorten test time am: 980e3e1414 am: 60301449a3

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie18b4587965cee755d16edbfb31629c8481d2f2f

3 years agoMerge "Fix two bluetooth tests" am: 813e80dd61
Julien Desprez [Mon, 8 Feb 2021 18:34:31 +0000 (18:34 +0000)]
Merge "Fix two bluetooth tests" am: 813e80dd61

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I223fa6d3f83551383e103f539b57baa57bf55eb1

3 years agoMerge "Fix two bluetooth tests"
Julien Desprez [Mon, 8 Feb 2021 18:18:54 +0000 (18:18 +0000)]
Merge "Fix two bluetooth tests"

3 years agoAsyncManager: Shorten test time am: 980e3e1414
Myles Watson [Mon, 8 Feb 2021 17:57:09 +0000 (17:57 +0000)]
AsyncManager: Shorten test time am: 980e3e1414

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iba18af66f8f411c95da81db95cc70b717b893ba5

3 years agoAsyncManager: Shorten test time
Myles Watson [Fri, 5 Feb 2021 05:40:31 +0000 (21:40 -0800)]
AsyncManager: Shorten test time

Fixes: 179441067
Test: atest AsyncManagerSocketTest
Tag: #test-fix
Change-Id: Ib1bd321141ba3da30fc3922a8f7b56c4f40cd3ae

3 years agobt: Make crypto_toolbox_for_test available on the host
Łukasz Rymanowski [Tue, 19 Jan 2021 13:07:54 +0000 (13:07 +0000)]
bt: Make crypto_toolbox_for_test available on the host

Bug: 150670922
Test: compilation
Tag: #feature
Sponsor: jpawlowski@

Change-Id: I72815f8e9f1721c0a935920bfd055ea5ed9e25ff

3 years agoFix two bluetooth tests
Julien Desprez [Sun, 7 Feb 2021 21:55:59 +0000 (21:55 +0000)]
Fix two bluetooth tests

Change-Id: I0c0b75e40531169b6455a6daae6b3695a85e0ea1
Test: presubmit
Bug: 179092189

3 years agoMerge "rusty-gd: Changes to make the HCI inquiry test pass" am: 734b304010 am: 8c1cd6d6c4
Zach Johnson [Sun, 7 Feb 2021 20:14:33 +0000 (20:14 +0000)]
Merge "rusty-gd: Changes to make the HCI inquiry test pass" am: 734b304010 am: 8c1cd6d6c4

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9a3766285a04faeb2dec696d2663aa59351ccb10

3 years agoMerge "rusty-gd: Changes to make the HCI inquiry test pass" am: 734b304010
Zach Johnson [Sun, 7 Feb 2021 19:51:51 +0000 (19:51 +0000)]
Merge "rusty-gd: Changes to make the HCI inquiry test pass" am: 734b304010

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1ce480a805ae322f984ff961bb502451dafda470

3 years agoMerge "rusty-gd: Changes to make the HCI inquiry test pass"
Zach Johnson [Sun, 7 Feb 2021 19:32:11 +0000 (19:32 +0000)]
Merge "rusty-gd: Changes to make the HCI inquiry test pass"

3 years agoL2cap shim: Send config callback before register dequeue am: 16ba77a5fe am: 8496d3486a
Hansong Zhang [Sat, 6 Feb 2021 07:25:47 +0000 (07:25 +0000)]
L2cap shim: Send config callback before register dequeue am: 16ba77a5fe am: 8496d3486a

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If49529024bd32d69daf713ea78f993158995156d

3 years agoL2cap shim: Send config callback before register dequeue am: 16ba77a5fe
Hansong Zhang [Sat, 6 Feb 2021 07:02:03 +0000 (07:02 +0000)]
L2cap shim: Send config callback before register dequeue am: 16ba77a5fe

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I29d4e6b426768e529541c371e74477bdce82a4b3

3 years agoL2cap shim: Send config callback before register dequeue
Hansong Zhang [Thu, 4 Feb 2021 23:33:12 +0000 (15:33 -0800)]
L2cap shim: Send config callback before register dequeue

We want to let the client (AVCT) know the MTU first.  They might need to
send something without MTU available.

On AVCT side, initialize MTU as minimal L2cap MTU for now.

Bug: 179071567
Test: Speaker
Tag: #stability
Change-Id: I654c5fd302096876a3b6d245d173a735468ba949

3 years agorusty-gd: Changes to make the HCI inquiry test pass
Qasim Javed [Fri, 5 Feb 2021 05:49:50 +0000 (21:49 -0800)]
rusty-gd: Changes to make the HCI inquiry test pass

These include:

Writing count fields
Correct parsing of vectors
Using the correct offset when parsing struct fields

P.S. Also fixes the tokio panic caused by missing handling of the else
branch in the snoop HAL.

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

Change-Id: I4bb884369d9d811c906e271c29460a3eb134a727

3 years agoMerge "btsnoop: Fix TRUE is undefined for btsnoop socket" am: 0b512dc073 am: a746b2fe30
Treehugger Robot [Fri, 5 Feb 2021 22:09:48 +0000 (22:09 +0000)]
Merge "btsnoop: Fix TRUE is undefined for btsnoop socket" am: 0b512dc073 am: a746b2fe30

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idd78625e376b643867db18f27ae77cedb07561e8

3 years agoMerge "btsnoop: Fix TRUE is undefined for btsnoop socket" am: 0b512dc073
Treehugger Robot [Fri, 5 Feb 2021 21:47:31 +0000 (21:47 +0000)]
Merge "btsnoop: Fix TRUE is undefined for btsnoop socket" am: 0b512dc073

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9805fabc9d234cb7ed69a4909f8f31f201c25f84

3 years agoMerge "btsnoop: Fix TRUE is undefined for btsnoop socket"
Treehugger Robot [Fri, 5 Feb 2021 21:17:53 +0000 (21:17 +0000)]
Merge "btsnoop: Fix TRUE is undefined for btsnoop socket"

3 years agoUpdate GN files for building on Linux/Chrome OS
Sonny Sasaka [Wed, 3 Feb 2021 19:14:56 +0000 (19:14 +0000)]
Update GN files for building on Linux/Chrome OS

* Add missing GN files
* Move test targets under use.test
* Move non-standard codec targets under use.bt_nonstandard_codecs
* Add missing source files

Bug: 177961465
Tag: #refactor
Test: atest --host bluetooth_test_common

Change-Id: Ib7ba2705b2fd53d4c4d87916e99f35e7fce6c98e

3 years agoMerge "A2DP: AAC encoder uses same value in tick interval and feeding data" am: 121f2...
Treehugger Robot [Fri, 5 Feb 2021 18:28:53 +0000 (18:28 +0000)]
Merge "A2DP: AAC encoder uses same value in tick interval and feeding data" am: 121f283252 am: 5c31dc1121

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7b355c39cda0bc4f7b1fa84685dedf0c2ea69e65

3 years agoMerge "A2DP: AAC encoder uses same value in tick interval and feeding data" am: 121f2...
Treehugger Robot [Fri, 5 Feb 2021 17:50:46 +0000 (17:50 +0000)]
Merge "A2DP: AAC encoder uses same value in tick interval and feeding data" am: 121f283252

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1b215220b70aa33ea678ef122d96d7adc17d9a55

3 years agoMerge "A2DP: AAC encoder uses same value in tick interval and feeding data"
Treehugger Robot [Fri, 5 Feb 2021 17:01:24 +0000 (17:01 +0000)]
Merge "A2DP: AAC encoder uses same value in tick interval and feeding data"

3 years agoMerge "rust: Refactor modules for static_lib propagation." am: e351f0d99e am: 4b31b6144e
Ivan Lozano [Fri, 5 Feb 2021 16:59:28 +0000 (16:59 +0000)]
Merge "rust: Refactor modules for static_lib propagation." am: e351f0d99e am: 4b31b6144e

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6d2bbb15fe848a3ff5b0629e778c0d34165b3fa1

3 years agoA2DP: AAC encoder uses same value in tick interval and feeding data
Cheney Ni [Fri, 5 Feb 2021 13:55:52 +0000 (21:55 +0800)]
A2DP: AAC encoder uses same value in tick interval and feeding data

The tick that AAC encoder wakes up is based on its codec configuration,
but usually is not that fixed 20 ms. The user would hear choppy sound if
using wrong values to calculate the data size, so have to correct.

Fixes: 179268075
Tag: #compatibility
Test: check the bitrate from BTSnoop and no overrun
Change-Id: Iaaddcbd305d4b5383b707b9e0d50e8fe116c043d

3 years agoMerge "rust: Refactor modules for static_lib propagation." am: e351f0d99e
Ivan Lozano [Fri, 5 Feb 2021 16:20:55 +0000 (16:20 +0000)]
Merge "rust: Refactor modules for static_lib propagation." am: e351f0d99e

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id91e7f608110acbca20d6a9809f3b0e67c07027a

3 years agoMerge "rust: Refactor modules for static_lib propagation."
Ivan Lozano [Fri, 5 Feb 2021 15:53:33 +0000 (15:53 +0000)]
Merge "rust: Refactor modules for static_lib propagation."

3 years agoadd irun (interactive run) am: 20134723a1 am: e515172bcc
Zach Johnson [Fri, 5 Feb 2021 01:04:07 +0000 (01:04 +0000)]
add irun (interactive run) am: 20134723a1 am: e515172bcc

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If6a64913e0fca9fbc0ef5e62f3289f3649bea798

3 years agoadd irun (interactive run) am: 20134723a1
Zach Johnson [Fri, 5 Feb 2021 00:24:09 +0000 (00:24 +0000)]
add irun (interactive run) am: 20134723a1

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3930b263f6debbffc6d836d77acd40c37743e3cc

3 years agoadd irun (interactive run)
Zach Johnson [Thu, 4 Feb 2021 22:05:52 +0000 (14:05 -0800)]
add irun (interactive run)

fire up your command list of test(s) you want to iterate on

will run to completion, and when there are changes it will rerun

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/irun --rhost
Change-Id: Ic067f70e00740bc5588bdd8b9ac334e834fdb238

3 years agoMerge "make incremental blueberry testing faster" am: e3d12d6efa am: c1d7b26ccb
Zach Johnson [Thu, 4 Feb 2021 18:39:51 +0000 (18:39 +0000)]
Merge "make incremental blueberry testing faster" am: e3d12d6efa am: c1d7b26ccb

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I54a798ed962d4a70d124859606d91c51c2bd0e93

3 years agoMerge "make incremental blueberry testing faster" am: e3d12d6efa
Zach Johnson [Thu, 4 Feb 2021 18:23:10 +0000 (18:23 +0000)]
Merge "make incremental blueberry testing faster" am: e3d12d6efa

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3abbeb7af66200ec60a04d1e4100f860537579e4

3 years agoMerge "make incremental blueberry testing faster"
Zach Johnson [Thu, 4 Feb 2021 17:48:11 +0000 (17:48 +0000)]
Merge "make incremental blueberry testing faster"

3 years agorust: Refactor modules for static_lib propagation.
Ivan Lozano [Thu, 4 Feb 2021 15:06:19 +0000 (10:06 -0500)]
rust: Refactor modules for static_lib propagation.

rust_library modules now bundle their static lib dependencies. As a
result, many of these static_lib listings are no longer necessary.

This CL also includes libcxxbridge05 in libbt_common_sys_prop_cxx and
libbt_shim_ffi in libbluetooth_rust_interop, both static libraries,
to avoid having to add these to dependencies.

Test: mma
Bug: 175886967
Bug: 179122837
Change-Id: I77c53e62d19bcda7a8ace81d7c576eed383b7c87

3 years agobtsnoop: Fix TRUE is undefined for btsnoop socket
Cheney Ni [Thu, 4 Feb 2021 10:14:28 +0000 (18:14 +0800)]
btsnoop: Fix TRUE is undefined for btsnoop socket

Because TRUE / FALSE macro is moved to bt_target.h, there is no more
such definition if including only bt_types.h.

Bug: 163134718
Tag: #refactor
Test: check BTSnoop socket is running when only BT_NET_DEBUG=true
Change-Id: I7ac1d5aeaf3eb4f910cf4498fb7096b6cf4c9fe7

3 years agoMerge changes Ibc8a2e94,I04cb8753,Idf047b8d,Id55bb63f am: 4fb81c43e0 am: 57c4cd4338
Treehugger Robot [Thu, 4 Feb 2021 06:01:37 +0000 (06:01 +0000)]
Merge changes Ibc8a2e94,I04cb8753,Idf047b8d,Id55bb63f am: 4fb81c43e0 am: 57c4cd4338

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I78702cea275bd185cb766d59717989979e62901a

3 years agoMerge changes Ibc8a2e94,I04cb8753,Idf047b8d,Id55bb63f am: 4fb81c43e0
Treehugger Robot [Thu, 4 Feb 2021 05:17:08 +0000 (05:17 +0000)]
Merge changes Ibc8a2e94,I04cb8753,Idf047b8d,Id55bb63f am: 4fb81c43e0

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia06a67e9122b52f0d7dd8bc35084490ad716b906

3 years agoMerge changes Ibc8a2e94,I04cb8753,Idf047b8d,Id55bb63f
Treehugger Robot [Thu, 4 Feb 2021 03:09:35 +0000 (03:09 +0000)]
Merge changes Ibc8a2e94,I04cb8753,Idf047b8d,Id55bb63f

* changes:
  RFCOMM: Use std map to store channel map
  AVDT: Use std map to store channel map
  Remove unused AVDT API
  Fix L2cap shim crash on shutdown

3 years agoUse proper types tHCI_STATUS/tHCI_REASON am: ad4657cf5d am: 66c32340ad
Chris Manton [Thu, 4 Feb 2021 02:31:32 +0000 (02:31 +0000)]
Use proper types tHCI_STATUS/tHCI_REASON am: ad4657cf5d am: 66c32340ad

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4b5c29f071da292cdfca5723178a58c4d69936fd

3 years agoUse proper types tHCI_STATUS/tHCI_REASON am: ad4657cf5d
Chris Manton [Thu, 4 Feb 2021 02:11:33 +0000 (02:11 +0000)]
Use proper types tHCI_STATUS/tHCI_REASON am: ad4657cf5d

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3b895b2ec8fb888ed4f4da62c60837c1d55df801

3 years agoDon't fragment when ACL shim is enabled am: 7da41cb8ea am: cbe75a9711
Hansong Zhang [Thu, 4 Feb 2021 01:42:28 +0000 (01:42 +0000)]
Don't fragment when ACL shim is enabled am: 7da41cb8ea am: cbe75a9711

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4c9a7b54eff175978494966fd9fcbae856398915

3 years agoMerge "Controller: Simplify ReadLocalSupportedCommands" am: 2e781edcdf am: 2d477d7af8
Treehugger Robot [Thu, 4 Feb 2021 01:42:16 +0000 (01:42 +0000)]
Merge "Controller: Simplify ReadLocalSupportedCommands" am: 2e781edcdf am: 2d477d7af8

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib0a9ff9f68a50f968abcfc32fa657d729a5420dc

3 years agomake incremental blueberry testing faster
Zach Johnson [Thu, 4 Feb 2021 01:15:57 +0000 (17:15 -0800)]
make incremental blueberry testing faster

don't rebuild everything and unzip, instead

only build the specific targets we care about, copy them over directly
skips a lot of build time

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

3 years agoDon't fragment when ACL shim is enabled am: 7da41cb8ea
Hansong Zhang [Thu, 4 Feb 2021 01:06:12 +0000 (01:06 +0000)]
Don't fragment when ACL shim is enabled am: 7da41cb8ea

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I68360a23247ea41499e57595445c5384b5ca676d

3 years agoRFCOMM: Use std map to store channel map
Hansong Zhang [Thu, 4 Feb 2021 00:59:39 +0000 (16:59 -0800)]
RFCOMM: Use std map to store channel map

Instead of using legacy fixed size array

Test: Speaker
Bug: 179117950
Tag: #stability
Change-Id: Ibc8a2e947f218a6d5870cc7a9566306ddc7eb2b3

3 years agoMerge "Controller: Simplify ReadLocalSupportedCommands" am: 2e781edcdf
Treehugger Robot [Thu, 4 Feb 2021 00:54:00 +0000 (00:54 +0000)]
Merge "Controller: Simplify ReadLocalSupportedCommands" am: 2e781edcdf

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5358f96f7837fde1af4ea2a81828e08d4a1e2edd

3 years agoAVDT: Use std map to store channel map
Hansong Zhang [Thu, 4 Feb 2021 00:45:45 +0000 (16:45 -0800)]
AVDT: Use std map to store channel map

Instead of using legacy fixed size array

Test: Speaker
Bug: 179117950
Tag: #stability
Change-Id: I04cb875309ed5efc14acb34bbfdc10622eabf3be

3 years agoRemove unused AVDT API
Hansong Zhang [Thu, 4 Feb 2021 00:21:15 +0000 (16:21 -0800)]
Remove unused AVDT API

Test: compile
Change-Id: Idf047b8da8f5b19402bbfc304db1e18bd69202c2

3 years agoUse proper types tHCI_STATUS/tHCI_REASON
Chris Manton [Wed, 3 Feb 2021 23:31:04 +0000 (15:31 -0800)]
Use proper types tHCI_STATUS/tHCI_REASON

Towards readable code

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

3 years agoFix L2cap shim crash on shutdown
Hansong Zhang [Wed, 3 Feb 2021 23:34:15 +0000 (15:34 -0800)]
Fix L2cap shim crash on shutdown

Bug: 179110548
Test: car kit
Tag: #stability
Change-Id: Id55bb63fea32d426f65eecbaf32ed45972059d7e

3 years agoDon't fragment when ACL shim is enabled
Hansong Zhang [Wed, 3 Feb 2021 19:50:29 +0000 (11:50 -0800)]
Don't fragment when ACL shim is enabled

Tag: #refactor
Bug: 176963486
Test: PAN
Change-Id: I3c731946e3184e619922a26da9148bfae1fe9ff7

3 years agoMerge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev am: 63480b1eee am...
Myles Watson [Wed, 3 Feb 2021 22:11:57 +0000 (22:11 +0000)]
Merge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev am: 63480b1eee am: 131b92ac3f am: 6e271b0519 am: 8b3ad63b70 am: 3e928d15e1 am: cb0380b2d9

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia3784d42fa6a64305408ee444f9511f5ffc7e84f

3 years agoMerge "Controller: Simplify ReadLocalSupportedCommands"
Treehugger Robot [Wed, 3 Feb 2021 21:50:31 +0000 (21:50 +0000)]
Merge "Controller: Simplify ReadLocalSupportedCommands"

3 years agoMerge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev am: 63480b1eee am...
Myles Watson [Wed, 3 Feb 2021 21:42:48 +0000 (21:42 +0000)]
Merge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev am: 63480b1eee am: 131b92ac3f am: 6e271b0519 am: 8b3ad63b70 am: 3e928d15e1

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4e0c4d21e0eb5b908484c316f6047a21536b6d27

3 years agoMerge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev am: 63480b1eee am...
Myles Watson [Wed, 3 Feb 2021 21:00:11 +0000 (21:00 +0000)]
Merge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev am: 63480b1eee am: 131b92ac3f am: 6e271b0519 am: 8b3ad63b70

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I71330bdcfe131e813c2ff56b9342adad2f72a059

3 years agoMerge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev am: 63480b1eee am...
Myles Watson [Wed, 3 Feb 2021 20:15:56 +0000 (20:15 +0000)]
Merge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev am: 63480b1eee am: 131b92ac3f am: 6e271b0519

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3d2d3d2d29c497982f7a038c2779c03b2a1b486b

3 years agoMerge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev am: 63480b1eee am...
Myles Watson [Wed, 3 Feb 2021 19:41:39 +0000 (19:41 +0000)]
Merge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev am: 63480b1eee am: 131b92ac3f

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If58ff39a1a996cf7f897204e5f2585589bbd4708

3 years agobtm_loghistory: Add codec reconfig am: 73152da12b am: 6d0bbd2efb
Chris Manton [Wed, 3 Feb 2021 19:07:06 +0000 (19:07 +0000)]
btm_loghistory: Add codec reconfig am: 73152da12b am: 6d0bbd2efb

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I610e86c79e2c54fea6f929aa16ef8e39c0e4c128

3 years agoDe-friend various tACL_CB am: dcea6cc2d4 am: 986dd73a8f
Chris Manton [Wed, 3 Feb 2021 19:07:05 +0000 (19:07 +0000)]
De-friend various tACL_CB am: dcea6cc2d4 am: 986dd73a8f

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8b745c45f364fdc2b4f94dfc5bfec2c74a576489

3 years agoStreamline BTM_GetNumAclLinks and acl_get_supported_packet_types am: d3896b63c8 am...
Chris Manton [Wed, 3 Feb 2021 19:07:03 +0000 (19:07 +0000)]
Streamline BTM_GetNumAclLinks and acl_get_supported_packet_types am: d3896b63c8 am: 8432517d51

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4c27fc3a26a2377a583a8631f641f95d776c26bb

3 years agoMerge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev am: 63480b1eee
Myles Watson [Wed, 3 Feb 2021 18:51:32 +0000 (18:51 +0000)]
Merge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev am: 63480b1eee

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iff120d88c8b6ef4016df7593e4e6fcd42426581a

3 years agobtm_loghistory: Add codec reconfig am: 73152da12b
Chris Manton [Wed, 3 Feb 2021 18:39:54 +0000 (18:39 +0000)]
btm_loghistory: Add codec reconfig am: 73152da12b

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I85e5d1eb215e8a9124d1a2948c1f2ab1645e4d7a

3 years agoDe-friend various tACL_CB am: dcea6cc2d4
Chris Manton [Wed, 3 Feb 2021 18:39:51 +0000 (18:39 +0000)]
De-friend various tACL_CB am: dcea6cc2d4

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9490fda2950b92b4bebd77f342e843d5045785c1

3 years agoStreamline BTM_GetNumAclLinks and acl_get_supported_packet_types am: d3896b63c8
Chris Manton [Wed, 3 Feb 2021 18:39:06 +0000 (18:39 +0000)]
Streamline BTM_GetNumAclLinks and acl_get_supported_packet_types am: d3896b63c8

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I725b6163a7a46b0d78084f37def4cb230da5b1a2

3 years agoMerge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev
Myles Watson [Wed, 3 Feb 2021 18:30:15 +0000 (18:30 +0000)]
Merge "avrc_copy_packet: Zero initialize packet" into oc-mr1-dev

3 years agobtm_loghistory: Add codec reconfig
Chris Manton [Tue, 2 Feb 2021 18:16:41 +0000 (10:16 -0800)]
btm_loghistory: Add codec reconfig

Towards loggable code

Bug: 174808695
Tag: #refactor
Test: gd/cert/run
Change-Id: Id18b467d25ab9f7e6cc4a1cd625410eb5d51ac74

3 years agoDe-friend various tACL_CB
Chris Manton [Mon, 1 Feb 2021 19:14:35 +0000 (11:14 -0800)]
De-friend various tACL_CB

Also add default initializers

Towards modular code

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

Change-Id: I79aa3045e93d157d03c75f7f5f88049b09b04124

3 years agoStreamline BTM_GetNumAclLinks and acl_get_supported_packet_types
Chris Manton [Mon, 1 Feb 2021 19:14:04 +0000 (11:14 -0800)]
Streamline BTM_GetNumAclLinks and acl_get_supported_packet_types

Towards encapsulated code

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

Change-Id: Ifb5f6853c823e35c13b997c3e44d480cc53bc89d

3 years agoMerge "HH: Remove redundant assignment" am: 7a2e611cc3 am: 559ae328dd
Treehugger Robot [Wed, 3 Feb 2021 09:37:33 +0000 (09:37 +0000)]
Merge "HH: Remove redundant assignment" am: 7a2e611cc3 am: 559ae328dd

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8aca4b9139a265864a7a12110e181c59817b096f

3 years agoRemove unused sco initialization am: fa292fcf65 am: d85a523a73
Chris Manton [Wed, 3 Feb 2021 09:36:36 +0000 (09:36 +0000)]
Remove unused sco initialization am: fa292fcf65 am: d85a523a73

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I619c5bd4eefc97f6afad8455141e203149f47640

3 years agoRemove unused #defs stack/include/bt_types am: 9c7dadab0d am: 45a4384b7f
Chris Manton [Wed, 3 Feb 2021 09:36:35 +0000 (09:36 +0000)]
Remove unused #defs stack/include/bt_types am: 9c7dadab0d am: 45a4384b7f

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1162804d9035d521edd59596fe70788bd2997f7b

3 years agoEnum-ify bta/include/bta_api::tBTA_PREF_ROLES am: 739bd658c5 am: c96af52a10
Chris Manton [Wed, 3 Feb 2021 09:36:34 +0000 (09:36 +0000)]
Enum-ify bta/include/bta_api::tBTA_PREF_ROLES am: 739bd658c5 am: c96af52a10

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6a9524c4543ef64a2d929bfea0f3e8bde80c7777

3 years agoAdd bta/include/bta_api::preferred_role_text am: e567a0f13f am: b088619349
Chris Manton [Wed, 3 Feb 2021 09:36:33 +0000 (09:36 +0000)]
Add bta/include/bta_api::preferred_role_text am: e567a0f13f am: b088619349

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I083f904619cd4c6db120be8f42b919ff938318f9

3 years agoRemove useless #def indirection bta/dm/bta_dm_act am: ee988d1348 am: 96e3f41af1
Chris Manton [Wed, 3 Feb 2021 09:36:32 +0000 (09:36 +0000)]
Remove useless #def indirection bta/dm/bta_dm_act am: ee988d1348 am: 96e3f41af1

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I286f196ecd1631e27b18c553cacecdb521a269f0

3 years agoMove TRACE definitions into trace header file am: e4c255de00 am: 77f9ae800a
Chris Manton [Wed, 3 Feb 2021 09:36:30 +0000 (09:36 +0000)]
Move TRACE definitions into trace header file am: e4c255de00 am: 77f9ae800a

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I353e22c34312e2c1cce83bc1e09f4559e833d031

3 years agoIntroduce gd/os/log:CASE_RETURN_TEXT am: f49eae9f0e am: dd22d037ec
Chris Manton [Wed, 3 Feb 2021 09:36:29 +0000 (09:36 +0000)]
Introduce gd/os/log:CASE_RETURN_TEXT am: f49eae9f0e am: dd22d037ec

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6c072189247067d5a07bd1673e455c1e639dadc4

3 years agoAdd various LOG_TAG bluetooth am: 53c61dd028 am: 6f40af9eff
Chris Manton [Wed, 3 Feb 2021 09:36:27 +0000 (09:36 +0000)]
Add various LOG_TAG bluetooth am: 53c61dd028 am: 6f40af9eff

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6a8b25e8644fadef67fef4d97787231bb9047855

3 years agoMerge "HH: Remove redundant assignment" am: 7a2e611cc3
Treehugger Robot [Wed, 3 Feb 2021 08:36:40 +0000 (08:36 +0000)]
Merge "HH: Remove redundant assignment" am: 7a2e611cc3

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iecbab9b9d89a8f213224e32e8f1c9f5176d5d0a4

3 years agoRemove unused sco initialization am: fa292fcf65
Chris Manton [Wed, 3 Feb 2021 08:32:32 +0000 (08:32 +0000)]
Remove unused sco initialization am: fa292fcf65

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3ff11abba425d68b50e4c5f1354208b23deb1bad

3 years agoRemove unused #defs stack/include/bt_types am: 9c7dadab0d
Chris Manton [Wed, 3 Feb 2021 08:32:29 +0000 (08:32 +0000)]
Remove unused #defs stack/include/bt_types am: 9c7dadab0d

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id87ecd07b05a1b0632b62698eaa21fa02bddb508

3 years agoEnum-ify bta/include/bta_api::tBTA_PREF_ROLES am: 739bd658c5
Chris Manton [Wed, 3 Feb 2021 08:32:26 +0000 (08:32 +0000)]
Enum-ify bta/include/bta_api::tBTA_PREF_ROLES am: 739bd658c5

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7361399e9a4b7f935c867ad5258753257272745b

3 years agoAdd bta/include/bta_api::preferred_role_text am: e567a0f13f
Chris Manton [Wed, 3 Feb 2021 08:32:23 +0000 (08:32 +0000)]
Add bta/include/bta_api::preferred_role_text am: e567a0f13f

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaa7254a581f1d06998ad91369d9d890ae71396ce

3 years agoRemove useless #def indirection bta/dm/bta_dm_act am: ee988d1348
Chris Manton [Wed, 3 Feb 2021 08:32:19 +0000 (08:32 +0000)]
Remove useless #def indirection bta/dm/bta_dm_act am: ee988d1348

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I659c3ba38731558e8315e33534d3dbb3ece32ab6

3 years agoMove TRACE definitions into trace header file am: e4c255de00
Chris Manton [Wed, 3 Feb 2021 08:32:16 +0000 (08:32 +0000)]
Move TRACE definitions into trace header file am: e4c255de00

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7b4e9bd1a6f6a69437feac110dabc726cf022d0e

3 years agoIntroduce gd/os/log:CASE_RETURN_TEXT am: f49eae9f0e
Chris Manton [Wed, 3 Feb 2021 08:32:13 +0000 (08:32 +0000)]
Introduce gd/os/log:CASE_RETURN_TEXT am: f49eae9f0e

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8b04c7afebe3e23ed522b2c19d34d3a91a831911

3 years agoAdd various LOG_TAG bluetooth am: 53c61dd028
Chris Manton [Wed, 3 Feb 2021 08:31:27 +0000 (08:31 +0000)]
Add various LOG_TAG bluetooth am: 53c61dd028

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9a11ce3ddf89c3eb511be52ff1be7aa268cbb344

3 years agoMerge "HH: Remove redundant assignment"
Treehugger Robot [Wed, 3 Feb 2021 08:20:42 +0000 (08:20 +0000)]
Merge "HH: Remove redundant assignment"

3 years agoMerge "L2cap scheduler: Drop packets when chennel is closed" am: 6d26c92124 am: 8172d...
Treehugger Robot [Wed, 3 Feb 2021 06:09:05 +0000 (06:09 +0000)]
Merge "L2cap scheduler: Drop packets when chennel is closed" am: 6d26c92124 am: 8172d8dbdb

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I07cfa44ab25cb656891fc85037c7e42e5a657903

3 years agoMerge "L2cap scheduler: Drop packets when chennel is closed" am: 6d26c92124
Treehugger Robot [Wed, 3 Feb 2021 05:31:30 +0000 (05:31 +0000)]
Merge "L2cap scheduler: Drop packets when chennel is closed" am: 6d26c92124

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1d41a3bc275810390bd118c82c1b07228af0a3fa

3 years agoRemove unused sco initialization
Chris Manton [Mon, 1 Feb 2021 19:00:36 +0000 (11:00 -0800)]
Remove unused sco initialization

Towards meaningful code

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

Change-Id: I4b264f8e0f63d4fcd2f5f851670395e13b5f5c02

3 years agoRemove unused #defs stack/include/bt_types
Chris Manton [Sat, 30 Jan 2021 00:00:34 +0000 (16:00 -0800)]
Remove unused #defs stack/include/bt_types

Towards meaningful code

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

Change-Id: If38dd725f5ef9ecb0caf055a32d1056e9eef7909

3 years agoEnum-ify bta/include/bta_api::tBTA_PREF_ROLES
Chris Manton [Fri, 29 Jan 2021 22:01:33 +0000 (14:01 -0800)]
Enum-ify bta/include/bta_api::tBTA_PREF_ROLES

Towards loggable code

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

Change-Id: I56d20d42bd08485c2e682ae7be8fa640a9880e5f

3 years agoAdd bta/include/bta_api::preferred_role_text
Chris Manton [Fri, 29 Jan 2021 23:58:12 +0000 (15:58 -0800)]
Add bta/include/bta_api::preferred_role_text

Towards loggable code

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

Change-Id: I105d807a90ede26af7b0ef59a3a0e5b989997799

3 years agoRemove useless #def indirection bta/dm/bta_dm_act
Chris Manton [Fri, 29 Jan 2021 23:59:48 +0000 (15:59 -0800)]
Remove useless #def indirection bta/dm/bta_dm_act

Towards meaningful code

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

Change-Id: I3cde2343803de17c17425e4fbe1b4474b19f5ea6

3 years agoMove TRACE definitions into trace header file
Chris Manton [Fri, 29 Jan 2021 23:59:09 +0000 (15:59 -0800)]
Move TRACE definitions into trace header file

Towards meaningful code

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

Change-Id: Ic59357f9180baa416d8634f557a56948746c9d83