OSDN Git Service
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
Zach Johnson [Sun, 7 Feb 2021 19:32:11 +0000 (19:32 +0000)]
Merge "rusty-gd: Changes to make the HCI inquiry test pass"
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
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
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
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
Treehugger Robot [Fri, 5 Feb 2021 21:17:53 +0000 (21:17 +0000)]
Merge "btsnoop: Fix TRUE is undefined for btsnoop socket"
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
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"
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
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
Ivan Lozano [Fri, 5 Feb 2021 15:53:33 +0000 (15:53 +0000)]
Merge "rust: Refactor modules for static_lib propagation."
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
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
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
Zach Johnson [Thu, 4 Feb 2021 17:48:11 +0000 (17:48 +0000)]
Merge "make incremental blueberry testing faster"
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
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
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
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
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
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
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
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
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
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
Hansong Zhang [Thu, 4 Feb 2021 00:21:15 +0000 (16:21 -0800)]
Remove unused AVDT API
Test: compile
Change-Id: Idf047b8da8f5b19402bbfc304db1e18bd69202c2
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
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
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
Treehugger Robot [Wed, 3 Feb 2021 21:50:31 +0000 (21:50 +0000)]
Merge "Controller: Simplify ReadLocalSupportedCommands"
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Treehugger Robot [Wed, 3 Feb 2021 08:20:42 +0000 (08:20 +0000)]
Merge "HH: Remove redundant assignment"
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
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
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
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
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
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
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
Chris Manton [Fri, 29 Jan 2021 23:57:48 +0000 (15:57 -0800)]
Introduce gd/os/log:CASE_RETURN_TEXT
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: I2dcb01263ec78c15977b8730aab79560c2be3005
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
Treehugger Robot [Wed, 3 Feb 2021 04:41:32 +0000 (04:41 +0000)]
Merge "L2cap scheduler: Drop packets when chennel is closed"
More Kuo [Wed, 3 Feb 2021 03:01:58 +0000 (03:01 +0000)]
Merge "Fix race condition for dynamic audio buffer capabilities" am:
0a698b86fe
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1563452
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I59aae34bebf6ad436731ebcb2fdeab5bcb234520
More Kuo [Wed, 3 Feb 2021 02:39:01 +0000 (02:39 +0000)]
Merge "Fix race condition for dynamic audio buffer capabilities"
Myles Watson [Thu, 28 Jan 2021 21:10:26 +0000 (13:10 -0800)]
Controller: Simplify ReadLocalSupportedCommands
Fixes:
175422340
Test: cert/run
Tag: #gd-refactor
Change-Id: Ie32fc5511d06f3218ecca743026876db70c8bcb4
Myles Watson [Wed, 3 Feb 2021 01:40:47 +0000 (17:40 -0800)]
HH: Remove redundant assignment
Bug:
179111866
Test: compilation
Change-Id: Iff38f618060272c0e8fab9009a8cf6235ab03a97
Hansong Zhang [Wed, 3 Feb 2021 01:33:35 +0000 (01:33 +0000)]
Fix LE crash am:
a386d1e99a
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1569800
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Idebf10a7e388ff17974b523aab976ab6b223cfa5
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
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
Abhishek Pandit-Subedi [Tue, 2 Feb 2021 21:54:18 +0000 (21:54 +0000)]
Merge "Make build tweaks to support newer libchrome" am:
efea8008a4
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1560697
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iaedb783f34dd30ce6edd4b17fce705739b4f7294
Abhishek Pandit-Subedi [Tue, 2 Feb 2021 20:47:30 +0000 (20:47 +0000)]
Merge "Make build tweaks to support newer libchrome"
Treehugger Robot [Tue, 2 Feb 2021 20:06:37 +0000 (20:06 +0000)]
Merge "Fix up files to compile on Linux" am:
c375bac598
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1560696
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ibe7f63fea7ff5d0bbe5037b356ea64fe600e1a7b
Treehugger Robot [Tue, 2 Feb 2021 19:58:30 +0000 (19:58 +0000)]
Merge "Fix up files to compile on Linux"
Qasim Javed [Tue, 2 Feb 2021 19:49:57 +0000 (19:49 +0000)]
Merge changes I71b8d3f5,Ie360848b,I6705aa19,I58d1972a,I2e4658ca, ... am:
1160da5372
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1569322
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Id4c49d3ec9bf0c427c6f32f140ed6c2f5dd28448
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
Hansong Zhang [Tue, 2 Feb 2021 19:35:24 +0000 (19:35 +0000)]
L2cap: Repeat config options from remote am:
b0076a7e48
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1566913
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I5b386fffe008895652a09c399cc9279142f649ab
Hansong Zhang [Tue, 2 Feb 2021 19:34:00 +0000 (19:34 +0000)]
Fix L2cap LE crash am:
f25807bf6e
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1566909
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ie18993d8f8bbc38d5f33b0ab17040c153d95b32a
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
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
Treehugger Robot [Tue, 2 Feb 2021 16:24:20 +0000 (16:24 +0000)]
Merge "BluetoothAudioHAL: MTU not exceed an AVDTP packet" am:
6713836b74
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1560332
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I65cb8e66ac61e55c26491864b146e17a362f4def
Treehugger Robot [Tue, 2 Feb 2021 15:55:30 +0000 (15:55 +0000)]
Merge "BluetoothAudioHAL: MTU not exceed an AVDTP packet"
Cheney Ni [Tue, 2 Feb 2021 05:42:35 +0000 (05:42 +0000)]
Merge "AVDTP: static IOP database for AVDTP SUSPEND" am:
a2076f1b0d
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1560333
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iecaddaa510cf2ed558c2024fd4cf89ee15c5051b
Cheney Ni [Tue, 2 Feb 2021 05:11:17 +0000 (05:11 +0000)]
Merge "AVDTP: static IOP database for AVDTP SUSPEND"
Hansong Zhang [Tue, 2 Feb 2021 03:19:47 +0000 (03:19 +0000)]
L2cap privacy shim am:
16815787d4
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1567320
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I60be2274b7b03a3c6cbb873cbbbec92ba5ab513a
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
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
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
Hansong Zhang [Tue, 2 Feb 2021 00:48:12 +0000 (00:48 +0000)]
Fix LE link_manager_test am:
17069593a6
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1568868
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ifcab176b8082c9220b84438202f188b5f04258e4
Chris Manton [Tue, 2 Feb 2021 00:47:59 +0000 (00:47 +0000)]
Plumb through hci_status to clients am:
e80d8a9196
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1567502
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I4ebfab62aab6ebb1092bd67fe7885c1eafa316c6
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
Hansong Zhang [Tue, 2 Feb 2021 00:47:09 +0000 (00:47 +0000)]
L2cap LE: Send channel open callback after remote version am:
1fcc636ee4
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1563915
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iec7f5eb575c15c564e103ef27c7f6231c5fe86f0
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
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
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
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
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
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
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
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
Hansong Zhang [Mon, 1 Feb 2021 22:39:02 +0000 (22:39 +0000)]
There is only one BTM PM registration am:
1d7fbd391a
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1562454
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I81688b0d4b90741b798e5f44d433e2ee9c97ec62
Hansong Zhang [Mon, 1 Feb 2021 20:33:05 +0000 (20:33 +0000)]
BTM_PM_REG_SET should imply BTM_PM_REG_NOTIF am:
ade544b799
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1562453
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ia2c86d1138f3222e1a17e4172ef49f1167d94b07
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
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
Chris Manton [Mon, 1 Feb 2021 17:10:33 +0000 (17:10 +0000)]
Merge changes I14572835,Ib445933a,I842b69db,I2b8eeb2c,Iaf263d45, ... am:
caae50ebe9
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1559735
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ic55eae7b8cad4a9aaf6ba71c0db824de9c072544
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