OSDN Git Service
Sal Savage [Fri, 28 Feb 2020 19:33:06 +0000 (11:33 -0800)]
Add a path to add the PSM of the BIP OBEX server to the SDP record
Tag: #feature
Bug:
153076316
Test: Build, flash, make sure everything still works as no one is using
this code path yet
Change-Id: I672be8c341c453f862a50a9b3cfb4150b9588b2e
Sal Savage [Fri, 28 Feb 2020 19:24:26 +0000 (11:24 -0800)]
Allow NewAvrcp to manage its own SDP record
Tag: #feature
Bug:
153076316
Test: Build, flash, make sure SDP record matches existing SDP record
Change-Id: Ic5add2091d8e72386dc22811e7e580fd64a278f7
Zach Johnson [Thu, 10 Dec 2020 22:12:58 +0000 (22:12 +0000)]
Merge changes I448e8ee9,I3b20f04b,I038364bc
* changes:
rusty-gd: forward ACL channels in HciExports, expose over facades
rusty-gd: simplify hci facade implementation
rusty-gd: reorg hci internals
Zach Johnson [Thu, 10 Dec 2020 20:53:16 +0000 (20:53 +0000)]
Merge "rusty-gd: stub out HCI shim FFI"
Treehugger Robot [Thu, 10 Dec 2020 20:42:59 +0000 (20:42 +0000)]
Merge changes I48e01da5,Ic6a7bff6,I9a568d60,Id1b5926a
* changes:
Add stack/acl/btm_acl::link_policy_text
Add stack/include/gatt_api::gatt_op_code_text
Add API tL2C_LCB::number_of_active_dynamic_channels
Add stack/l2cap/l2c_api::fixed_channel_text
Zach Johnson [Thu, 10 Dec 2020 19:30:47 +0000 (19:30 +0000)]
Merge changes I428211dc,I20f897a8
* changes:
rusty-gd: reorganize HCI shim to make cpp and rust distinct
rusty-gd: move common stack logic to bt_main
Qasim Javed [Thu, 10 Dec 2020 19:23:10 +0000 (19:23 +0000)]
Merge changes I7fe4a9ee,I65e5688c,I0f04b289
* changes:
rusty-gd: Update new constructor and add parse constructor.
rusty-gd: Generate constructor for structs
rusty-gd: Generate struct declarations and enums
Chris Manton [Tue, 1 Dec 2020 23:23:45 +0000 (15:23 -0800)]
Add stack/acl/btm_acl::link_policy_text
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I48e01da55fdaaef9c3d56d49bc1feb13de618bd2
Chris Manton [Fri, 20 Nov 2020 18:05:23 +0000 (10:05 -0800)]
Add stack/include/gatt_api::gatt_op_code_text
Toward readable eode
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: Ic6a7bff6be50381f1e9b1df9f22be10f3df2ed29
Chris Manton [Thu, 19 Nov 2020 00:24:42 +0000 (16:24 -0800)]
Add API tL2C_LCB::number_of_active_dynamic_channels
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I9a568d60c444c1ec9811f4fd42ac3b371318aad2
Chris Manton [Thu, 19 Nov 2020 16:49:05 +0000 (08:49 -0800)]
Add stack/l2cap/l2c_api::fixed_channel_text
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: Id1b5926a82c7a90ed1c1591a2bf561772e9ce8b1
Hansong Zhang [Tue, 8 Dec 2020 20:53:30 +0000 (12:53 -0800)]
Stop address rotation when stack is shutdown
Tag: #stability
Bug:
174293979
Test: Start and stop the stack
Change-Id: I28846762271201384c1902eccc87029b4671f462
Hansong Zhang [Fri, 4 Dec 2020 23:37:27 +0000 (15:37 -0800)]
L2cap shim: Clean up LE dynamic channel part
Use cid token as a key for channels, just like what we did for classic,
to support multiple channels for the same PSM.
Also account for channel config and security policy.
Tag: #gd-refactor
Bug:
141555841
Test: cert/run --host
Test: CtsVerifier
Change-Id: Ia5a631e8603bbe51a2b53b1fe955e3f0c1e02325
Zach Johnson [Thu, 3 Dec 2020 01:15:00 +0000 (17:15 -0800)]
rusty-gd: forward ACL channels in HciExports, expose over facades
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I448e8ee990fefe480c6e6541157565c399374be6
Zach Johnson [Wed, 2 Dec 2020 21:45:19 +0000 (13:45 -0800)]
rusty-gd: stub out HCI shim FFI
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost SimpleHalTest
Change-Id: I2e02896d344db953d1bfec6c5c7fdbdc8eb4a00c
Zach Johnson [Thu, 3 Dec 2020 01:01:27 +0000 (17:01 -0800)]
rusty-gd: simplify hci facade implementation
the extra complexity wasn't needed on the hal facade, so
we can simplify this one too
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I3b20f04b549c70c10263a95a89a2ab5becfaccd5
Zach Johnson [Thu, 3 Dec 2020 00:30:29 +0000 (16:30 -0800)]
rusty-gd: reorg hci internals
with the intent of adding dynamically registered event receivers:
1. combine incoming and outgoing into a single selected dispatch (to
eliminate need to lock on pending commands)
2. add dynamically registered event receivers
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I038364bc8d99b7ead4688f7570b79826fa7a1651
Zach Johnson [Wed, 2 Dec 2020 00:05:29 +0000 (16:05 -0800)]
rusty-gd: reorganize HCI shim to make cpp and rust distinct
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost SimpleHalTest
Change-Id: I428211dc33aa9fa062626ac873b83e499719fdfb
Zach Johnson [Tue, 1 Dec 2020 21:08:36 +0000 (13:08 -0800)]
rusty-gd: move common stack logic to bt_main
prep for sharing with shim
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost SimpleHalTest
Change-Id: I20f897a894973506cd777a5164c268db8fb2fc7d
Chris Manton [Fri, 20 Nov 2020 17:48:44 +0000 (09:48 -0800)]
enum-ify stack/include/gatt_api::GATT_OP_CODE_
Toward readable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I133f5bb129540404c1fb07dd5b3c068da725b4e5
Jakub Pawlowski [Thu, 10 Dec 2020 08:09:18 +0000 (08:09 +0000)]
Merge "Add LE Read ISO link quality"
Xin Li [Thu, 10 Dec 2020 01:44:05 +0000 (17:44 -0800)]
DO NOT MERGE - Merge Android R QPR1
Bug:
172690556
Merged-In: Ibf87b4db0c49db9f489b2937bff9691258f71e16
Change-Id: Ied5bcebdcd24b61fd49e29f6b894b56b08909327
Zach Johnson [Wed, 9 Dec 2020 21:49:05 +0000 (21:49 +0000)]
Merge changes from topic "revert-
1518559-revert-
1512686-LIHRZNOOWL-ZWQBPCZFIZ" am:
9409f22301
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1521047
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ibf87b4db0c49db9f489b2937bff9691258f71e16
Zach Johnson [Wed, 9 Dec 2020 21:02:37 +0000 (21:02 +0000)]
Merge changes from topic "revert-
1518559-revert-
1512686-LIHRZNOOWL-ZWQBPCZFIZ"
* changes:
Revert "Revert "rusty-gd: add stack start stubs, define shim lib..."
Revert^2 "rusty-gd: move init_flag parsing to rust"
Revert^2 "rusty-gd: compile into libbluetooth"
Jakub Pawlowski [Tue, 8 Dec 2020 15:06:57 +0000 (16:06 +0100)]
Add LE Read ISO link quality
Tag: #feature
Test: manually verified HCI snoop log content
Bug:
150670922
Change-Id: I0d0f91b1f7e9e61079e429c1c8fb57028b4b52a3
Jakub Pawlowski [Wed, 9 Dec 2020 18:35:11 +0000 (18:35 +0000)]
Merge "btm: Add BIS related code to Iso Manager" am:
09a743275c
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1398110
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I0198d91eb70441c1548aa107d0d3988f8bed4930
Jakub Pawlowski [Wed, 9 Dec 2020 17:44:55 +0000 (17:44 +0000)]
Merge "btm: Add BIS related code to Iso Manager"
Qasim Javed [Tue, 8 Dec 2020 19:32:11 +0000 (11:32 -0800)]
rusty-gd: Update new constructor and add parse constructor.
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost SimpleHalTest
Change-Id: I7fe4a9eef6ca37a2a4428bd7439398fc46744db0
Zach Johnson [Wed, 9 Dec 2020 00:39:55 +0000 (00:39 +0000)]
Revert "Revert "rusty-gd: add stack start stubs, define shim lib..."
Revert submission
1518559-revert-
1512686-LIHRZNOOWL
Reason for revert: build system fixed
Reverted Changes:
I760eea76d:Revert "rusty-gd: add stack start stubs, define sh...
I5740575cf:Revert "rusty-gd: move init_flag parsing to rust"
I0cfbe779c:Revert "rusty-gd: compile into libbluetooth"
Change-Id: I5f0f76450889d7906e9a763a4ebc5a46daf673b7
Zach Johnson [Wed, 9 Dec 2020 00:39:55 +0000 (00:39 +0000)]
Revert^2 "rusty-gd: move init_flag parsing to rust"
126ad36e2b8cd19d41cd60d056e704d7a5042f71
Change-Id: I93a7ee9a2fb6afda535f25348a7f94fac1a1d116
Zach Johnson [Wed, 9 Dec 2020 00:39:55 +0000 (00:39 +0000)]
Revert^2 "rusty-gd: compile into libbluetooth"
2cdb386684584e5472b77fd0a1bbf2c8d8d83979
Change-Id: I56860a238c483b55b5eb728eb8cd6cfb6ada4d28
Chris Manton [Tue, 8 Dec 2020 06:26:47 +0000 (06:26 +0000)]
Connect main::shim::acl to legacy dumpsys operation am:
c5362587d2
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1515433
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Id8fd80315788c4c368dfde392f86ec360d7e0c69
Xin Li [Mon, 7 Dec 2020 03:59:07 +0000 (19:59 -0800)]
DO NOT MERGE - Merge RQ1A.201205.011
Bug:
172690556
Merged-In: I0e8cdb9a00184f62d11fb06bc30f07b2a35bc49e
Change-Id: I7e1304fd99ee313360006f5b9a897de289d3ce2f
Xin Li [Sun, 6 Dec 2020 22:43:22 +0000 (14:43 -0800)]
DO NOT MERGE - Mark RQ1A.201004.001 as merged
Bug:
172690556
Change-Id: I34d9b0eb2cb43984423b2f857bad96bba8acf929
Chris Manton [Tue, 1 Dec 2020 22:11:43 +0000 (14:11 -0800)]
Connect main::shim::acl to legacy dumpsys operation
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I5288fe8eb2f4d9308c896d5c62e99efad35a3e51
Jeff DeCew [Fri, 4 Dec 2020 19:21:28 +0000 (19:21 +0000)]
Merge changes from topic "revert-
1512686-LIHRZNOOWL" am:
45f68e0caf
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1518559
Change-Id: I4f0fbac8df64f165cd609eb4128601c65edede6c
Jeff DeCew [Fri, 4 Dec 2020 18:23:51 +0000 (18:23 +0000)]
Merge changes from topic "revert-
1512686-LIHRZNOOWL"
* changes:
Revert "rusty-gd: compile into libbluetooth"
Revert "rusty-gd: move init_flag parsing to rust"
Revert "rusty-gd: add stack start stubs, define shim library"
Jeff DeCew [Fri, 4 Dec 2020 18:05:42 +0000 (18:05 +0000)]
Revert "rusty-gd: compile into libbluetooth"
Revert submission
1512686
Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=aosp-master&target=mainline_modules&lkgb=
7010703&lkbb=
7011903&fkbb=
7010786, bug b/
174815635
Bug:
174815635
Reverted Changes:
I163111bc8:rusty-gd: move init_flag parsing to rust
I54cffe93d:rusty-gd: compile into libbluetooth
I5207f4df9:rusty-gd: add stack start stubs, define shim libra...
Change-Id: I0cfbe779c4cad43f92cbf0ffb1a4b9ed75205c72
Jeff DeCew [Fri, 4 Dec 2020 18:05:42 +0000 (18:05 +0000)]
Revert "rusty-gd: move init_flag parsing to rust"
Revert submission
1512686
Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=aosp-master&target=mainline_modules&lkgb=
7010703&lkbb=
7011903&fkbb=
7010786, bug b/
174815635
Bug:
174815635
Reverted Changes:
I163111bc8:rusty-gd: move init_flag parsing to rust
I54cffe93d:rusty-gd: compile into libbluetooth
I5207f4df9:rusty-gd: add stack start stubs, define shim libra...
Change-Id: I5740575cf7790ed1ab43cc3f521e86f4ef6966e6
Jeff DeCew [Fri, 4 Dec 2020 18:05:42 +0000 (18:05 +0000)]
Revert "rusty-gd: add stack start stubs, define shim library"
Revert submission
1512686
Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=aosp-master&target=mainline_modules&lkgb=
7010703&lkbb=
7011903&fkbb=
7010786, bug b/
174815635
Bug:
174815635
Reverted Changes:
I163111bc8:rusty-gd: move init_flag parsing to rust
I54cffe93d:rusty-gd: compile into libbluetooth
I5207f4df9:rusty-gd: add stack start stubs, define shim libra...
Change-Id: I760eea76d21b768acb76b8b9dd7f58c2519e0723
Zach Johnson [Fri, 4 Dec 2020 01:37:16 +0000 (01:37 +0000)]
Merge changes I5207f4df,I163111bc,I54cffe93 am:
e4ecfb54df
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1512686
Change-Id: Ie2004b5083c23b7f4a40950985d7928378d25ee2
Zach Johnson [Fri, 4 Dec 2020 00:56:48 +0000 (00:56 +0000)]
Merge changes I5207f4df,I163111bc,I54cffe93
* changes:
rusty-gd: add stack start stubs, define shim library
rusty-gd: move init_flag parsing to rust
rusty-gd: compile into libbluetooth
Chris Manton [Thu, 3 Dec 2020 10:11:14 +0000 (10:11 +0000)]
Add stack::test::btm::stack_back_test::InformBtmOnConnection am:
719efc75ef
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1512841
Change-Id: Idbd85adaae1f8d6c4adda3e79748021177ceda62
Xin Li [Thu, 3 Dec 2020 03:19:08 +0000 (03:19 +0000)]
Merge "Merge rvc-qpr-dev-plus-aosp-without-vendor@
6881855" into stage-aosp-master
Chris Manton [Sun, 29 Nov 2020 16:54:52 +0000 (08:54 -0800)]
Add stack::test::btm::stack_back_test::InformBtmOnConnection
Bug:
173769100
Test: net_test_stack_btm
Tag: #refactor
Change-Id: I4a03378bf80369d575c45cfe61345d78cabf7da2
Treehugger Robot [Thu, 3 Dec 2020 02:41:07 +0000 (02:41 +0000)]
Merge changes Ie5e3e056,I48cd10d0,I63bd15ef,I450dc10c am:
58a47975cd
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1512842
Change-Id: I7cae75a4941726f276d6ed42e4107e5b1ac229be
Treehugger Robot [Thu, 3 Dec 2020 02:31:03 +0000 (02:31 +0000)]
Merge changes Ie5e3e056,I48cd10d0,I63bd15ef,I450dc10c
* changes:
Propagate ACl connected through to BTA uplink
btm: Add main/shim/acl:: connection history
Remove unused #def main/shim/dumpsys::BOOL_TEXT
Add bluetooth::common::StringFormatTime
Treehugger Robot [Thu, 3 Dec 2020 02:30:51 +0000 (02:30 +0000)]
Merge changes from topic "gd_passkey" am:
a8fbe06037
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1515145
Change-Id: I007a921ea20ee6230a3c6ca54cc1ac92922faa3a
Treehugger Robot [Thu, 3 Dec 2020 02:30:06 +0000 (02:30 +0000)]
Merge changes from topic "gd_pin_code" am:
59db3648f0
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1515147
Change-Id: Icbc444adcd04034d6e841fd0951565829f05a437
Chris Manton [Wed, 25 Nov 2020 20:20:24 +0000 (12:20 -0800)]
Propagate ACl connected through to BTA uplink
Bug:
173769100
Tag: #refactor
Test: gd/cert/run --host
Change-Id: Ie5e3e056118dfa050fe4d90693338e4b614caac0
Treehugger Robot [Thu, 3 Dec 2020 02:10:00 +0000 (02:10 +0000)]
Merge changes from topic "gd_passkey"
* changes:
PySecurity: Clarify function name
Security Passkey: Send passkey from API to controller
Treehugger Robot [Thu, 3 Dec 2020 02:04:57 +0000 (02:04 +0000)]
Merge changes from topic "gd_pin_code"
* changes:
{Py,Cert}Security: Add function to input pin code
Security: Add pin code methods to Ui interface
Zach Johnson [Tue, 1 Dec 2020 19:17:13 +0000 (11:17 -0800)]
rusty-gd: add stack start stubs, define shim library
to avoid duplicate symbols, all CXX FFI integrated into the native code
needs to be from a single library. Move init_flags FFI into libbt_shim
too.
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost SimpleHalTest
Change-Id: I5207f4df903cf434b470be84133179b04d5c9483
Chris Manton [Wed, 25 Nov 2020 02:38:19 +0000 (18:38 -0800)]
btm: Add main/shim/acl:: connection history
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I48cd10d0d4dee8632614f9b5c74be1f33358dee2
Chris Manton [Wed, 2 Dec 2020 22:29:06 +0000 (14:29 -0800)]
Remove unused #def main/shim/dumpsys::BOOL_TEXT
Use bluetooth::common::ToString(bool)
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I63bd15efd2177ccd4705d27cda4a171215963290
Chris Manton [Wed, 2 Dec 2020 22:28:55 +0000 (14:28 -0800)]
Add bluetooth::common::StringFormatTime
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I450dc10c832a11899e07da372a9cc14b5bef9ee9
Hansong Zhang [Thu, 3 Dec 2020 00:44:20 +0000 (00:44 +0000)]
L2cap shim: clean up namespace am:
29b98651d9
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1515065
Change-Id: I68734d1becfd0d44435b82f8f79cf4c86d30a6f0
Hansong Zhang [Tue, 1 Dec 2020 20:53:09 +0000 (12:53 -0800)]
L2cap shim: clean up namespace
Tag: #gd-refactor
Bug:
141555841
Test: cert/run --host
Test: Pair and connect with a headset
Change-Id: Ia796ffaae10b8ba7e9bec7864b74954aa545895c
Treehugger Robot [Thu, 3 Dec 2020 00:35:16 +0000 (00:35 +0000)]
Merge changes Icf1a6f56,I1dad4b78,I2ac68e30,Ic7083219 am:
1c26f40b66
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1513339
Change-Id: I333ff50126f0e5b7ca20905c040a2fde9d0d7ebf
Treehugger Robot [Thu, 3 Dec 2020 00:04:25 +0000 (00:04 +0000)]
Merge changes Icf1a6f56,I1dad4b78,I2ac68e30,Ic7083219
* changes:
btm: Indicate scan start/stop
TEST_MAPPING add net_test_stack_btm
Land btm control block history
Use btm_cb Init/Free
Treehugger Robot [Wed, 2 Dec 2020 23:39:30 +0000 (23:39 +0000)]
Merge "Bluetooth: AsyncFdWatcher: Fix FD leak" am:
5b7ad83d30
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1515717
Change-Id: If88d436bd65a64f2c2694d2ab62c08fac138e6ef
Zach Johnson [Mon, 30 Nov 2020 23:13:35 +0000 (15:13 -0800)]
rusty-gd: move init_flag parsing to rust
all that macro goodness comes to life
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost SimpleHalTest
Change-Id: I163111bc87267d8d35ed454c2d9a100f9290f274
Martin Brabham [Wed, 2 Dec 2020 19:39:41 +0000 (11:39 -0800)]
{Py,Cert}Security: Add function to input pin code
Additionally, update the send_ui_callback to be internal
only.
Bug:
162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Change-Id: I088e55c883412e78accfb0d478ed0b2080871881
Treehugger Robot [Wed, 2 Dec 2020 22:50:02 +0000 (22:50 +0000)]
Merge "Bluetooth: AsyncFdWatcher: Fix FD leak"
Martin Brabham [Wed, 2 Dec 2020 21:27:56 +0000 (13:27 -0800)]
PySecurity: Clarify function name
Bug:
162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest:test_successful_dut_initiated_ssp_keyboard
Change-Id: Idec264c988c08d118fe5d48a3cc110bcec1468a0
Martin Brabham [Wed, 2 Dec 2020 19:45:08 +0000 (11:45 -0800)]
Security Passkey: Send passkey from API to controller
Bug:
162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest:test_successful_dut_initiated_ssp_keyboard
Change-Id: I138a7dfa8f1860a258b62751762b07f65ef4b476
Martin Brabham [Tue, 1 Dec 2020 19:06:29 +0000 (11:06 -0800)]
Security: Add pin code methods to Ui interface
Provide functions to allow communication of Ui events
related to PIN Code entry.
Bug:
162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Change-Id: I10eceaf0f7e398c132868e9abf716ccae54e1233
Zach Johnson [Mon, 30 Nov 2020 17:17:18 +0000 (09:17 -0800)]
rusty-gd: compile into libbluetooth
adds init flag entry point, currently prints flags
disable the BT apex since it's not shipped yet (won't be for a while)
and there are a bajillion rust libraries we'd need to add apex
availibility to.
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost SimpleHalTest
Change-Id: I54cffe93d5819ffdc8229aef7be23f260483ab66
Chris Manton [Wed, 25 Nov 2020 04:14:57 +0000 (20:14 -0800)]
btm: Indicate scan start/stop
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: Icf1a6f564dc07bf2a530b663f69dcd019bca8903
Chris Manton [Fri, 27 Nov 2020 17:30:58 +0000 (09:30 -0800)]
TEST_MAPPING add net_test_stack_btm
Towards testable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I1dad4b7844fe9e1ca0906a20c930244ea3e4c9bc
Chris Manton [Wed, 25 Nov 2020 06:52:27 +0000 (22:52 -0800)]
Land btm control block history
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I2ac68e3096000f77fba83cc378484e6afb7e190b
Chris Manton [Sun, 29 Nov 2020 17:20:56 +0000 (09:20 -0800)]
Use btm_cb Init/Free
Towards life cycle aware code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: Ic7083219045de43d0363e44902ea32b633d26134
Treehugger Robot [Wed, 2 Dec 2020 10:56:47 +0000 (10:56 +0000)]
Merge changes I4a4d6ba5,I719fad7c am:
3b327a173c
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1512844
Change-Id: I470c56b37cc4c3e60008dc217f4a2935a696d20e
Treehugger Robot [Wed, 2 Dec 2020 10:35:16 +0000 (10:35 +0000)]
Merge changes I4a4d6ba5,I719fad7c
* changes:
Add btm control block btm_cb Init/Free()
Re-order btm_cb init/free sequence
Xin Li [Wed, 2 Dec 2020 08:22:22 +0000 (00:22 -0800)]
Merge rvc-qpr-dev-plus-aosp-without-vendor@
6881855
Bug:
172690556
Merged-In: I3df16624bc34baff60de7f02e555551482519385
Change-Id: I055e02bf7b5b21ad6bd91f4d73ca4501e833a892
Jakub Pawlowski [Wed, 2 Dec 2020 08:22:01 +0000 (08:22 +0000)]
Merge "Add Bluetooth LE Audio Profile (2/3)" am:
80ffd59ce2
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1511274
Change-Id: Ib8a719b86b4d91a89f784c4a3cef8dfc3cb3bfc9
Treehugger Robot [Wed, 2 Dec 2020 08:21:33 +0000 (08:21 +0000)]
Merge "gd: Implement LE read advertising physical channel tx power" am:
0ee42d98d3
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1512710
Change-Id: I2acd94536d3e96556ae622cc59637d1d7bfafb1d
Jakub Pawlowski [Wed, 2 Dec 2020 08:14:59 +0000 (08:14 +0000)]
Merge "Add Bluetooth LE Audio Profile (2/3)"
Treehugger Robot [Wed, 2 Dec 2020 07:26:07 +0000 (07:26 +0000)]
Merge "gd: Implement LE read advertising physical channel tx power"
Peng Qi [Tue, 22 Aug 2017 09:38:34 +0000 (17:38 +0800)]
Bluetooth: AsyncFdWatcher: Fix FD leak
AsyncFdWatcher thread notification pipe fds without close
which causes FD leak under Bluetooth on/off stress test.
Close the notification pipe fds when shut down Bluetooth.
Bug:
174630553
Test: Bluetooth on/off stress test
Change-Id: I7575adec49161f9764f0e070ef3c1043b8295a97
(cherry picked from commit
5c6da2669cea95d775b4a1ab0ddcdad4cac82671)
Chris Manton [Wed, 25 Nov 2020 19:39:44 +0000 (11:39 -0800)]
Add btm control block btm_cb Init/Free()
Towards life cycle aware code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I4a4d6ba5fddb2e6d8af89f6b17fdeaa7816dcc86
Chris Manton [Sun, 29 Nov 2020 17:14:32 +0000 (09:14 -0800)]
Re-order btm_cb init/free sequence
Test: gd/cert/run --host
Bug:
163134718
Tag: #refactor
Change-Id: I719fad7c0d5c5d3b4f2c90b0540659f351786346
Hansong Zhang [Wed, 2 Dec 2020 05:10:42 +0000 (05:10 +0000)]
Simplify code in shim/l2c_api.cc am:
6e021b316f
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1515064
Change-Id: I08899604e126128847e76593ee101f8b1712aa93
Hansong Zhang [Wed, 2 Dec 2020 05:09:58 +0000 (05:09 +0000)]
gd/shim/l2cap is unused am:
725f7fa994
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1510512
Change-Id: I839a60493697b9ac0aa840c4accd5db38c6c2c6d
Hansong Zhang [Mon, 30 Nov 2020 23:36:44 +0000 (15:36 -0800)]
Simplify code in shim/l2c_api.cc
Tag: #gd-refactor
Bug:
141555841
Test: cert/run --host
Test: Pair and connect with a headset
Change-Id: Iae00fbea2dba97485047793d5355c3072258d28f
Hansong Zhang [Tue, 24 Nov 2020 21:44:49 +0000 (13:44 -0800)]
gd/shim/l2cap is unused
Use main/shim/l2c_api.cc instead.
Tag: #gd-refactor
Bug:
141555841
Test: cert/run --host
Test: Pair and connect with a headset
Change-Id: Iedb42433c0aad4fe5c558d7252e0d78160dbab16
Chris Manton [Wed, 2 Dec 2020 03:43:48 +0000 (03:43 +0000)]
Add privatize option for bluetooth addresses for logging am:
bdc0872019
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1512436
Change-Id: I835c98535627b51cc87354c18e3fca354eaa4570
Chienyuan [Wed, 2 Dec 2020 03:05:30 +0000 (11:05 +0800)]
gd: Implement LE read advertising physical channel tx power
Tag: #gd-refactor
Bug:
169125803
Test: cert/run --host
Test: atest --host bluetooth_test_gd
Change-Id: Ida1ac156048c68247bd91ba929a1b70e6f26c6e9
Treehugger Robot [Wed, 2 Dec 2020 01:47:33 +0000 (01:47 +0000)]
Merge "gd: Add local/remote acl connection initiator bit" am:
73a1feb32b
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1513341
Change-Id: Ie3c9098e89caed3c593583cde39c8fa66603c0d4
Treehugger Robot [Wed, 2 Dec 2020 01:45:38 +0000 (01:45 +0000)]
Merge changes Id056390a,I2997aab5 am:
2de3418ec9
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1513753
Change-Id: If9c787cd4a6d91d6e389fd1e52aa81068ea3d34e
Chris Manton [Mon, 30 Nov 2020 01:05:05 +0000 (17:05 -0800)]
Add privatize option for bluetooth addresses for logging
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: Id568adb9f9497072a79100202501c4d207e40828
Treehugger Robot [Wed, 2 Dec 2020 00:19:27 +0000 (00:19 +0000)]
Merge "gd: Add local/remote acl connection initiator bit"
Treehugger Robot [Tue, 1 Dec 2020 23:18:21 +0000 (23:18 +0000)]
Merge changes Id056390a,I2997aab5
* changes:
gd: Fix flaky tests of LeAdvertisingManager
LeAddressManagerTest: Set InitFlags for testing
Hansong Zhang [Tue, 1 Dec 2020 22:31:04 +0000 (22:31 +0000)]
Remove unused shim/l2cap.h and shim/l2cap.cc am:
41a1fec066
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1510511
Change-Id: I8675e339cbddd793930252e35dc90be72bd27b62
Hansong Zhang [Tue, 1 Dec 2020 22:30:57 +0000 (22:30 +0000)]
Refactor LE dynamic psm assignment am:
c846c3bae0
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1510510
Change-Id: Icee49bbacb2ad6e6b7fada7c0616f2b894a00e26
Chris Manton [Wed, 25 Nov 2020 02:38:01 +0000 (18:38 -0800)]
gd: Add local/remote acl connection initiator bit
Report the initiator of the acl connection.
Bug:
166280067
Test: gd/cert/run --host
Tag: #refactor
Change-Id: If123478fd271f9f49ff9a3d0e30be8a9a6e1abfd
Hansong Zhang [Tue, 24 Nov 2020 21:19:09 +0000 (13:19 -0800)]
Remove unused shim/l2cap.h and shim/l2cap.cc
Migrated to shim/l2c_api.cc
Tag: #gd-refactor
Bug:
141555841
Test: cert/run --host
Change-Id: I1878312705cb7cb10d76cba35acbe81b7e0f8c15
Hansong Zhang [Tue, 24 Nov 2020 21:14:57 +0000 (13:14 -0800)]
Refactor LE dynamic psm assignment
Tag: #gd-refactor
Bug:
141555841
Test: cert/run --host
Test: CtsVerifier
Change-Id: If6d421a84b3978a564e5fb5da4bb97f0d440b1fe
Chris Manton [Tue, 1 Dec 2020 20:30:08 +0000 (20:30 +0000)]
Properly route acl disconnect am:
83c48080c8
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1512840
Change-Id: I7476cd63c6dcc9597aa46cbf072f1a3f164872c1
Chris Manton [Tue, 1 Dec 2020 20:30:05 +0000 (20:30 +0000)]
Add stack/btm/btm_main::btm_free am:
f822a6b195
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1512839
Change-Id: I86a9791aaebb0287080dcaa7fc2bfcb06f459e33