OSDN Git Service
Chris Manton [Tue, 2 Mar 2021 20:32:59 +0000 (12:32 -0800)]
Enum-ify tSMP_EVT
Toward readable code
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: I12e2d8d7d1f8ddb05a6b9b673c74013fda5a0d22
Chris Manton [Wed, 3 Mar 2021 01:02:17 +0000 (17:02 -0800)]
Enum-ify tBTA_STATUS
Toward readable code
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: Id79e619d24484ace55409e32f99368d5d9bce06e
Chris Manton [Wed, 14 Apr 2021 03:16:41 +0000 (20:16 -0700)]
testing: Use proper types
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
Change-Id: I959e0522ca0e7394e7d1287859694d83d9e50e83
Bill Yi [Wed, 14 Apr 2021 02:29:21 +0000 (19:29 -0700)]
Merge RQ2A.210405.006 to aosp-master - DO NOT MERGE
Merged-In: Ia5ca732e8464d02a3c5a7b1b75f4c6afbe441fb1
Merged-In: I4021d889879a11a7ad2a59a1b63c4371970cc823
Change-Id: I2db132a530a87a3664f7ea24c0fc5d4ac0a85822
Jack He [Tue, 13 Apr 2021 23:58:05 +0000 (23:58 +0000)]
Merge "RFCOMM: Handle configuration for pending connection"
Treehugger Robot [Tue, 13 Apr 2021 15:28:25 +0000 (15:28 +0000)]
Merge "OOB: Implement generateLocalOobData API"
Johanna Ye [Tue, 13 Apr 2021 14:56:11 +0000 (14:56 +0000)]
Merge "Add time unit to AVDTP delay reporting value displayed for debugging."
Johanna Ye [Tue, 13 Apr 2021 13:23:14 +0000 (13:23 +0000)]
Merge "Add logging message to indicate collision with previous pending connection from the same remote device."
Johanna Ye [Mon, 12 Apr 2021 11:34:18 +0000 (13:34 +0200)]
Add time unit to AVDTP delay reporting value displayed for debugging.
Tag: #refactor
Test: ADT3 with Pixel Buds
Bug:
182167357
Change-Id: Ie2527cc4c2e9cb871d15eb26417ae4814953de84
Chienyuan [Wed, 7 Apr 2021 13:34:55 +0000 (21:34 +0800)]
RFCOMM: Handle configuration for pending connection
Tag: #refactor
Bug:
183672787
Test: manual
Change-Id: I9a41c953dc87f9c804ea6624f60516d5e640904a
Josh Wu [Tue, 13 Apr 2021 03:00:24 +0000 (03:00 +0000)]
Merge "SCO: change D1 max latency to 0xFFFF"
Treehugger Robot [Mon, 12 Apr 2021 19:20:44 +0000 (19:20 +0000)]
Merge "Initial btif/test/btif_stack_test"
Johanna Ye [Tue, 23 Mar 2021 16:04:43 +0000 (17:04 +0100)]
Add logging message to indicate collision with previous pending connection from the same remote device.
Currently, When there's already a pending connecting procedure going on in the native layer (even if it were the same remote device), the native layer returns BT_STATUS_BUSY which is then interpreted by the JNI layer as a failure to connect, resulting in a disconnection request.
This adds logging message when this happens, until there's a clear
indication to prioritize a complete fix.
Tag: #stability
Bug:
174127136
Test: manual through repeated connections in ADT3 OOBE
Change-Id: Ifc84e883f8ae248ecfa99556465c22b32ce82f79
Josh Wu [Mon, 12 Apr 2021 09:43:35 +0000 (17:43 +0800)]
SCO: change D1 max latency to 0xFFFF
Although classic SCO cannot retransmit, the max latency should be
0xFFFF(Don't care) instead of 0(reserved, not 0ms).
Tag: #compatibility
Bug:
185093884
Test: atest BluetoothInstrumentationTests
Change-Id: Ia287c32e771eff1e5550fbb2098d70c520689250
weichinweng [Mon, 12 Apr 2021 08:16:58 +0000 (16:16 +0800)]
Remove not Hwbinder thread stopwatch caller
Bug:
185083209
Test: atest BluetoothInstrumentationTests
Tag: #stability
Change-Id: I14aa41d741c30a9470929a19b633d0d936adcf04
Chris Manton [Thu, 8 Apr 2021 00:37:08 +0000 (17:37 -0700)]
Initial btif/test/btif_stack_test
Bug:
182544206
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
No-Typo-Check: Legacy code mocks
Change-Id: I5cf4b24651b436a96bfbba43ad33db28707352e3
Greg Kaiser [Fri, 9 Apr 2021 14:10:44 +0000 (07:10 -0700)]
vc: Initial field in constructor
The 'flags' field was our only field not initialized in our
constructor. To assure consistent behavior, we initialize it
here.
Test: TreeHugger
Change-Id: I92c94eb5a995b5980d635f2c6d1cb12bf28ef4ca
Łukasz Rymanowski [Mon, 4 Jan 2021 14:45:50 +0000 (14:45 +0000)]
btm_iso: Allow to start ISO by many clients
It turns out we might need btm_iso to be stated from more than one place
e.g. broadcast and unicast scenario.
Therefore, allow for that.
Bug:
150670922
Tag: #feature
Test: atest --host net_test_btm_iso
Sponsor: jpawlowski@
Change-Id: I8111a55707a00b5622a260f938e0da08fc37ae65
Treehugger Robot [Fri, 9 Apr 2021 08:59:21 +0000 (08:59 +0000)]
Merge "HCI: Accept erroneous ConnectionComplete"
Grzegorz Kołodziejczyk [Fri, 26 Feb 2021 21:38:37 +0000 (21:38 +0000)]
audio: Introduce LE Audio support for client interface and HAL
Patch introduces support for client interface and HAL.
Tag: #feature
Test: atest bluetooth-test-audio-hal-interface
Sponsor: jpawlowski@
Bug:
150670922
Change-Id: Idddddc403aacc671d8010f8c6004038ffe53da8f
Chris Manton [Thu, 8 Apr 2021 23:17:27 +0000 (16:17 -0700)]
Re-log btif/src/stack_manager
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: I3403836b9e358ecd2967de25a72cba421641e24b
Chris Manton [Thu, 8 Apr 2021 23:16:53 +0000 (16:16 -0700)]
Add layer of indirection to set hal_callbacks
Used for test injection
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: I1cfd4103bfe6b20aabff2885e5ace106e11b04e8
Chris Manton [Thu, 8 Apr 2021 00:37:18 +0000 (17:37 -0700)]
Cononicalize include pathnames
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: I5a8f78346ae26fd4cdccc5730160cb76b3a01a9e
Chris Manton [Wed, 7 Apr 2021 20:01:27 +0000 (13:01 -0700)]
Remove execute bits btif/::
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: I35654b3c03d365900c06e12a09934a27739b75b9
weichinweng [Thu, 8 Apr 2021 09:48:39 +0000 (17:48 +0800)]
Print stopwatch log when the bluetooth HAL died.
Bug:
175754404
Test: atest BluetoothInstrumentationTests
Tag: #stability
Change-Id: I775066475cc3b14de3b613b8a3b60c34214c3703
Matthew Maurer [Thu, 8 Apr 2021 19:59:20 +0000 (19:59 +0000)]
Merge "Update to use CXX 1.0"
Treehugger Robot [Thu, 8 Apr 2021 18:28:09 +0000 (18:28 +0000)]
Merge "Add a hint for cert tests"
Treehugger Robot [Thu, 8 Apr 2021 18:27:11 +0000 (18:27 +0000)]
Merge changes I3ccf85d5,I731adcff,I6f5f9cec,I9f773287,Iabf796dc, ...
* changes:
Update gitignore for Cargo.lock and tags
Use local rules for flex/bison
Specify bt_shim_ffi dependency to bluetoothtbd
Fix rust build in build.py
Avoid const value_type of vector
Guard printing PKG_CONFIG_PATH in build.py
Add missing #include <string.h> for memcpy
Fix packetgen outputs
Myles Watson [Wed, 7 Apr 2021 17:04:11 +0000 (10:04 -0700)]
HCI: Accept erroneous ConnectionComplete
Some controllers send ConnectionComplete with status code
Unknown Connection when cancelling a RemoteNameRequest.
Fixes:
184239841
Tag: #gd-refactor
Test: cert/run
Change-Id: Ibcaf68a13e18a629ab16be3bb4bfe9c1ff208095
Jack He [Thu, 8 Apr 2021 17:29:14 +0000 (17:29 +0000)]
Merge "gd hci: Check credit before sending next fragment"
Chienyuan [Thu, 8 Apr 2021 07:37:19 +0000 (15:37 +0800)]
gd hci: Check credit before sending next fragment
Tag: #gd-refactor
Bug:
180870443
Test: gd/cert/run
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: Ifd2af34886a0cf40d5ca3f4fdd4869089276d919
Myles Watson [Thu, 8 Apr 2021 00:44:36 +0000 (17:44 -0700)]
Add a hint for cert tests
Bug:
184786243
Test: cert/run
Tag: #gd-refactor
Change-Id: Ie81ce626c23016dd66c8418aeff44687d50111d5
Matthew Maurer [Thu, 8 Apr 2021 08:08:26 +0000 (01:08 -0700)]
Update to use CXX 1.0
Test: m
Bug:
184799689
Tag: #refactor
Change-Id: I93c7c2e8f754501771fe13c9f30408940dfe66a6
weichinweng [Wed, 3 Mar 2021 02:19:19 +0000 (10:19 +0800)]
Add StopWatch for Hwbinder callback function
Add stopWatch feature to monitor HCI callbacks and audio client
callbacks.
Bug:
175754854
Test: atest BluetoothInstrumentationTests
Tag: #stability
Change-Id: I87b9aac85166f345629ea110653cc873ca24c079
Hansong Zhang [Wed, 7 Apr 2021 23:29:11 +0000 (16:29 -0700)]
Update owners
Test: N/A
Change-Id: Ia98b958ea7a97b7aa5a47ce3b118148adcaa5d08
Martin Brabham [Wed, 31 Mar 2021 16:41:34 +0000 (09:41 -0700)]
OOB: Implement generateLocalOobData API
Ignore-AOSP-First: Conflict with internal
Bug:
178007935
Tag: #feature
Test: manual
Change-Id: I149907ef7ee3b6f9600ac57950afbc9616381dc0
Merged-In: I149907ef7ee3b6f9600ac57950afbc9616381dc0
Treehugger Robot [Wed, 7 Apr 2021 17:28:48 +0000 (17:28 +0000)]
Merge "SCO: Use const reference instead of const value"
Łukasz Rymanowski [Fri, 29 Jan 2021 08:56:03 +0000 (08:56 +0000)]
Add Volume Control Profile API
Bug:
150670922
Test: compilation
Tag: #feature
Sponsor: jpawlowski@
Change-Id: I4a12847f9be7cb77d9094fd5a1a8f9c68053ad21
Jack He [Wed, 7 Apr 2021 06:02:32 +0000 (23:02 -0700)]
SCO: Use const reference instead of const value
Bug:
183476377
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: I538c46eeb9cf40400f4f4ec424c4da6ae804213c
Łukasz Rymanowski [Fri, 29 Jan 2021 09:05:10 +0000 (09:05 +0000)]
vc: Implement Volume Control Profile
This implements basic version of VCP which allows to control Volume
Control Service on ther remote side.
This profile for expose only connect/disconnect/set volume
Bug:
150670922
Tag: #feature
Test: atest --host bluetooth_test_vc
Sponsor: jpawlowski@
Change-Id: Ie68c333ffece3958d68580fbfd3a86aec1186711
Chris Manton [Wed, 7 Apr 2021 01:12:21 +0000 (18:12 -0700)]
legacy: Plumb gd sco conn req to legacy stack
Bug:
183476377
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: I79fcfcf8dde071aff0a07f5440cfdca6e0e8134e
Chris Manton [Wed, 7 Apr 2021 05:42:02 +0000 (22:42 -0700)]
Const-ify btm_sco_conn_req::DEV_CLASS
Bug:
183476377
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: Iec78ab6a7b46837f9ab512d57b320b565d78f7cd
Treehugger Robot [Wed, 7 Apr 2021 06:06:49 +0000 (06:06 +0000)]
Merge "RFCOMM: Handle failed connection request"
Abhishek Pandit-Subedi [Mon, 15 Mar 2021 20:52:05 +0000 (13:52 -0700)]
Update gitignore for Cargo.lock and tags
Bug:
176847216
Tag: #floss
Test: atest --host bluetooth_test_gd
Change-Id: I3ccf85d54493630257957a1c5182e54470bcb16f
Abhishek Pandit-Subedi [Mon, 15 Mar 2021 20:44:51 +0000 (13:44 -0700)]
Use local rules for flex/bison
Use local flex and bison rules for the packet parser instead of
depending on the rules in common-mk. Right now, the packet parser is
using a re-entrant parser which can't be used with C++ codegen for flex.
Common-mk maintainers would like the flex code to use C++ codegen since
it is compiling the file as C++.
Bug:
176847216
Tag: #floss
Test: atest --host bluetooth_test_gd
Change-Id: I731adcff7c966543300d2cdf1f87ef2a69b8a211
Sonny Sasaka [Sat, 27 Mar 2021 05:17:53 +0000 (22:17 -0700)]
Specify bt_shim_ffi dependency to bluetoothtbd
Specifying lib bt_shim_ffi explicitly before ssl so that ssl references
can be linked from bt_shim_ffi.
Bug:
176846220
Tag: #floss
Test: atest --host bluetooth_test_gd
Change-Id: I6f5f9cec960157559a57fe6721cd21ea0647c312
Sonny Sasaka [Thu, 25 Mar 2021 14:10:47 +0000 (07:10 -0700)]
Fix rust build in build.py
This copies the rust build result to the gn output directory to be
accessible when linking from C++. Also adds an option to use crates.io
for rust crates.
Bug:
176846220
Tag: #floss
Test: atest --host bluetooth_test_gd
Change-Id: I9f7732878a2aced6f80f363c25aff3243d34f0d5
Sonny Sasaka [Thu, 25 Mar 2021 13:28:55 +0000 (06:28 -0700)]
Avoid const value_type of vector
This change is required to build fluoride against libstdc++.
libstdc++ asserts that: std::vector must have a non-const, non-volatile
value_type.
Bug:
176846220
Tag: #floss
Test: atest --host bluetooth_test_gd
Change-Id: Iabf796dc356826782b480fd01887c04a86e9708a
Sonny Sasaka [Thu, 25 Mar 2021 12:39:20 +0000 (05:39 -0700)]
Guard printing PKG_CONFIG_PATH in build.py
Bug:
176846220
Tag: #floss
Test: atest --host bluetooth_test_gd
Change-Id: Iba0c739a07bcfa7256ea624e2391d5cee016d2de
Sonny Sasaka [Thu, 25 Mar 2021 05:46:23 +0000 (22:46 -0700)]
Add missing #include <string.h> for memcpy
Bug:
176846220
Tag: #floss
Test: atest --host bluetooth_test_gd
Change-Id: I62b5a032c1a346a006668145407cd00f3c6bddd5
Sonny Sasaka [Thu, 4 Feb 2021 06:06:18 +0000 (22:06 -0800)]
Fix packetgen outputs
This changes action_foreach() to action() to be able to control the
outputs field correctly.
Tag: #floss
Bug:
176846220
Test: atest --host bluetooth_test_gd
Change-Id: I3cc9613e5c33aa3610a542107e97c7b4667e06c4
Chris Manton [Tue, 6 Apr 2021 22:20:35 +0000 (15:20 -0700)]
shim: Plumb e/sco through shim into legacy
Bug:
183476377
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: Id3b9e0931e17a2e376dee207af86241836e96cbb
Chris Manton [Tue, 6 Apr 2021 22:10:23 +0000 (15:10 -0700)]
shim: Plumb e/sco connect request
Bug:
183476377
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: If14d3bf2f8c632e9007fa846d514a9c3e7bbe18a
Chris Manton [Wed, 7 Apr 2021 00:39:44 +0000 (00:39 +0000)]
Merge "gd: Plumb remote esco/sco connection requests through GD"
Myles Watson [Tue, 6 Apr 2021 23:50:54 +0000 (23:50 +0000)]
Merge changes from topic "bt-gd-vse"
* changes:
Hci: Include 0xFF in event loops
GD: Crash on Root Inflammation Event
BQR: Print common BQR events
Revert "GD HCI: Pipe VSEs up in shim layer"
Revert "GD HCI: Support vendor specific event in GD"
Chris Manton [Tue, 6 Apr 2021 00:29:22 +0000 (17:29 -0700)]
gd: Plumb remote esco/sco connection requests through GD
Bug:
183476377
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: Ib36d3fded252a51be550510f11cc102df2277512
Myles Watson [Tue, 6 Apr 2021 17:26:20 +0000 (10:26 -0700)]
Hci: Include 0xFF in event loops
Bug:
183057550
Test: Enable VSEs
Tag: #gd-refactor
Change-Id: Ib06340af7965863343610c1b53d37d1f92c6c8da
Chienyuan [Tue, 6 Apr 2021 12:52:16 +0000 (20:52 +0800)]
RFCOMM: Handle failed connection request
Tag: #refactor
Bug:
183672787
Test: manual
Change-Id: Iae2682b9c6b8da5a3dead2c333b8c2054be4ac30
Josh Wu [Tue, 6 Apr 2021 01:35:57 +0000 (01:35 +0000)]
Merge "A2DP: Log BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED"
Myles Watson [Sat, 3 Apr 2021 00:50:46 +0000 (17:50 -0700)]
GD: Crash on Root Inflammation Event
Use the crash timer to allow enough time for debugging logs.
Bug:
183057550
Test: Enable VSEs
Tag: #gd-refactor
Change-Id: I11d19c7fd012cd11e237bb13b84b9d77c83c1c1f
Myles Watson [Sat, 3 Apr 2021 00:43:14 +0000 (17:43 -0700)]
BQR: Print common BQR events
Bug:
183057550
Test: Enable BQR events
Tag: #logging
Change-Id: Ibda9f7041c7f68b0bb9fff203fea556a47c12079
Myles Watson [Mon, 5 Apr 2021 22:05:30 +0000 (15:05 -0700)]
Revert "GD HCI: Pipe VSEs up in shim layer"
This reverts commit
e53576837aa0691199cba916b692711a41b499ba.
We prefer to keep the shim small and implement VSE
handling in btif, since it's mostly for logging.
Bug:
183057550
Test: Enable BQR events
Tag: #gd-refactor
Change-Id: I8f57c479eb57439f2ede486b645edc9b3975c25a
Myles Watson [Mon, 5 Apr 2021 21:59:17 +0000 (14:59 -0700)]
Revert "GD HCI: Support vendor specific event in GD"
This reverts commit
9462335b7fedd1579e5961a1dc8ddbfd1a4b35ed.
Bug:
183057550
Test: Enable BQR events
Tag: #gd-refactor
Change-Id: Ibb9302ae6bb9495880174a1ed8c6457a1e781027
Treehugger Robot [Mon, 5 Apr 2021 20:12:58 +0000 (20:12 +0000)]
Merge "Do not close the fd on drop."
Joel Galenson [Fri, 2 Apr 2021 22:50:38 +0000 (15:50 -0700)]
Do not close the fd on drop.
The nix crate now closes the fd itself, so we cannot close it ourselves.
Test: libbt_common_inline_tests
Change-Id: I270c84ff198416ad472be86b7d9fb506e3a74232
Treehugger Robot [Fri, 2 Apr 2021 17:46:42 +0000 (17:46 +0000)]
Merge "Correct log stack/rfcomm/rfc_mx_fsm::rfc_mx_sm_execute"
Chienyuan [Thu, 1 Apr 2021 17:43:50 +0000 (01:43 +0800)]
Correct log stack/rfcomm/rfc_mx_fsm::rfc_mx_sm_execute
Tag: #logging
Bug:
183672787
Test: manual
Change-Id: Id52a0d1c2c8ed18c79a4f48886e2b54487cc5bda
Qasim Javed [Thu, 1 Apr 2021 19:57:01 +0000 (19:57 +0000)]
Merge "rusty-gd: Remove CancelableTaskTracker"
Treehugger Robot [Thu, 1 Apr 2021 18:34:54 +0000 (18:34 +0000)]
Merge "gd hci: Check acl connection when start round robin"
Treehugger Robot [Thu, 1 Apr 2021 08:44:08 +0000 (08:44 +0000)]
Merge "[GD Controller] Return version info to legacy stack"
Cheney Ni [Thu, 1 Apr 2021 08:24:34 +0000 (08:24 +0000)]
Merge "BluetoothAudioHAL: Don't fetch the provider without HAL version"
Cheney Ni [Wed, 31 Mar 2021 17:33:08 +0000 (01:33 +0800)]
BluetoothAudioHAL: Don't fetch the provider without HAL version
This fixes a native crash while enabling BT with no bluetooth.audio HAL.
Fixes:
184147199
Bug:
184147199
Tag: #stability
Test: start Bluetooth on device without bluetooth.audio HAL
Change-Id: I96974b33316a73e1c0c291b9de05400d2e842e92
Chienyuan [Wed, 31 Mar 2021 18:06:54 +0000 (02:06 +0800)]
gd hci: Check acl connection when start round robin
Tag: #gd-refactor
Bug:
182541100
Test: gd/cert/run
Change-Id: I341fb4358e74b75bc1c6165af961c85cfc2ae739
Myles Watson [Wed, 31 Mar 2021 20:23:51 +0000 (20:23 +0000)]
Merge "gd hci: Handle overflow of acl credits"
Qasim Javed [Tue, 30 Mar 2021 20:22:55 +0000 (13:22 -0700)]
rusty-gd: Remove CancelableTaskTracker
Pairing, connection and A2DP streaming works with rusty-gd.
Also, tested with the default flags to make sure I am not breaking
anything.
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost DirectHciTest
Change-Id: I325e6aba146d9351aa7a06ab3c847cd410a502f3
Treehugger Robot [Wed, 31 Mar 2021 19:27:35 +0000 (19:27 +0000)]
Merge "A2DP: don't apply codec preference if service disabled"
Chienyuan [Wed, 24 Mar 2021 11:59:28 +0000 (19:59 +0800)]
gd hci: Handle overflow of acl credits
Tag: #gd-refactor
Bug:
178668450
Test: gd/cert/run
Change-Id: I3efc7a73cfbc90b876fa055b29250587c689df0c
Jack He [Wed, 31 Mar 2021 09:30:13 +0000 (02:30 -0700)]
[GD Controller] Return version info to legacy stack
* Copy and return version info to legacy stack
* Support parsing BT 5.2 version info
Tag: #gd-refactor
Bug:
183349385
Test: make, A2DP streaming
Change-Id: Ic8921570000599175b9b219052f95f6c7b4035a8
Josh Wu [Wed, 24 Mar 2021 12:15:43 +0000 (20:15 +0800)]
A2DP: Log BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED
Enable BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED Result metrics logged in stack
Tag: #feature
Bug:
183473902
Test: atest BluetoothInstrumentationTests
Change-Id: I9e9b7d1d0e6fd094978ccaad9c16a0e2306e7882
Treehugger Robot [Wed, 31 Mar 2021 01:49:18 +0000 (01:49 +0000)]
Merge "Use hci_root_inflamed_abort if received root inflamed packet"
Jakub Pawlowski [Tue, 30 Mar 2021 15:14:53 +0000 (15:14 +0000)]
Merge "audio: Introduce client interface support for HAL 2.1"
Jakub Pawlowski [Tue, 30 Mar 2021 14:55:19 +0000 (14:55 +0000)]
Merge "eatt: Adjust to new L2CAP API behaviour"
Łukasz Rymanowski [Tue, 30 Mar 2021 10:30:29 +0000 (10:30 +0000)]
eatt: Adjust to new L2CAP API behaviour
There were a changes in the L2CAP layer which needs to be taken into
account by EATT.
L2CAP calls L2CA_DisconnectInd_Cb only when channel
has been disconnected by peer and there is also no confirmation on
L2CA_DisconnectReq.
Having above in mind, EATT needs to clear its channels list just
after calling L2CA_DisconnectReq() othwerwise state of EATT will
be incorrect.
Tag: #feature
Bug:
159786353
Sponsor: jpawlowski@
Test: atest --host net_test_eatt
Change-Id: I49949ca071f40abb9ca38dcd337b4de63f493f09
Grzegorz Kołodziejczyk [Fri, 12 Feb 2021 17:05:03 +0000 (17:05 +0000)]
audio: Introduce client interface support for HAL 2.1
Patch introduces HAL 2.1 client interface support with backward compatibility.
Tag: #feature
Test: atest bluetooth-test-audio-hal-interface
Bug:
150670922
Sponsor: jpawlowski@
Change-Id: I4c277c48e4794d8ae615742de0d27084d23fd266
Sal Savage [Mon, 29 Mar 2021 18:32:36 +0000 (18:32 +0000)]
Merge "Use proper UUID for PBAP-PCE profile descriptor list"
Cheney Ni [Mon, 29 Mar 2021 07:38:59 +0000 (15:38 +0800)]
A2DP: don't apply codec preference if service disabled
Because the codec preference is saved at upper-layer, it was timing that
JNI callbacks were reset by BT turning off while querying the
preference. In order to prevent NPE, this CL checks whether A2DP is
still enabled, and uses a JNI variable to store those callbacks.
Tag: #stability
Fixes:
182756107
Test: atest net_test_btif
Change-Id: Iacfb9fee0e69a47ca7c7ed7c5fc8b4782b647f84
Jakub Pawlowski [Mon, 29 Mar 2021 06:54:56 +0000 (06:54 +0000)]
Merge changes I60b334ef,I390a385c,I0a562e1b
* changes:
Revert "Remove unused API BTM_IsPhy2mSupported"
Revert "Remove unused API BTM_RequestPeerSCA"
Revert "Remove unused API BTM_GetPeerSCA"
weichinweng [Tue, 23 Mar 2021 09:21:42 +0000 (17:21 +0800)]
Use hci_root_inflamed_abort if received root inflamed packet
Sometimes, Since the hci_timeout_abort abort_timer triggered is faster
then the bluetooth HIDL service died, the bt_stack doesn't call
hci_root_inflamed_abort even if received root inflamed packet. Use
hci_root_inflamed_abort when HCI command timeout if it received the root
inflamed packet.
Bug:
182940721
Test: atest BluetoothInstrumentationTests
Tag: #feature
Change-Id: I877ac13e46ac12ef42fc149a7d4a16d932f014d2
Łukasz Rymanowski [Fri, 26 Mar 2021 17:28:59 +0000 (17:28 +0000)]
Revert "Remove unused API BTM_IsPhy2mSupported"
Reason for revert: This is needed for LE Audio
This reverts commit
5f3ca2bb910c5f18927a15be017879a8387c78fe.
Change-Id: I60b334ef9d3f376eb1b2c68c2a40f748861a5368
Łukasz Rymanowski [Fri, 26 Mar 2021 17:28:22 +0000 (17:28 +0000)]
Revert "Remove unused API BTM_RequestPeerSCA"
Reason for revert: This is needed for LE Audio
This reverts commit
ddc067a95ef95fcdc888bfdefc07f784ecac2f1e.
Change-Id: I390a385ce8b5c2b0e76c7775ba3cae8db707b331
Łukasz Rymanowski [Fri, 26 Mar 2021 17:27:33 +0000 (17:27 +0000)]
Revert "Remove unused API BTM_GetPeerSCA"
Reason for revert: This is needed for LE Audio
This reverts commit
ab4932be3bad052d5a0f7b05cd59b21a88fe26e6.
Change-Id: I0a562e1bee8d3c4f3f7170e34ea92fe657123b96
Chris Manton [Sun, 14 Mar 2021 16:52:19 +0000 (09:52 -0700)]
Add btif/include/btif_hh::btif_hh_status_text
Toward loggable code
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: Iab6a4f33a3e498c33f4870abc5abd59e073d03f2
Chris Manton [Sat, 13 Mar 2021 03:24:11 +0000 (19:24 -0800)]
Use proper type tHCI_REASON btm_get_acl_disc_reason_code
Toward readable code
Bug:
163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: I7b2adfaa55feb96c620adfa5a6cb997055f1ce10
Ivan Lozano [Fri, 26 Mar 2021 13:01:14 +0000 (13:01 +0000)]
Merge "Use whole_static_library for cxx library deps."
Chris Manton [Fri, 26 Mar 2021 06:31:34 +0000 (06:31 +0000)]
Merge "Fix for HID disconnect bug"
Jack He [Fri, 26 Mar 2021 05:56:01 +0000 (05:56 +0000)]
Merge changes I6b35e11d,Iacec1d37
* changes:
HCI: Send Debug packet when HCI timeout
HCI: Add support for Debug packet
Chris Manton [Mon, 15 Mar 2021 17:46:12 +0000 (10:46 -0700)]
Fix for HID disconnect bug
Callback to btif layer to clear state and inform about
HID host profile disconnecting a peripheral.
Bug:
170187650
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: I17cefb6e0c641ccb4517479e6b358c80e83f1ee7
Sal Savage [Thu, 25 Mar 2021 23:16:22 +0000 (16:16 -0700)]
Use proper UUID for PBAP-PCE profile descriptor list
According to the PBAP specification, the PCE SDP record should use the
UUID 0x1130 (PBAP) in the profile descriptor list. We mistakenly use the
PBAP-PCE UUID of 0x112e instead, coming from the JNI. This changes
updates our record to use the correct UUID.
Tag: #stability
Bug:
160443921
Test: sdptool browse and check for the proper UUID 0x1130
Change-Id: I5256da3a5bba1f7ced04aa58e9784409e8ae4fc5
Myles Watson [Thu, 25 Mar 2021 20:10:33 +0000 (13:10 -0700)]
HCI: Send Debug packet when HCI timeout
Bug:
183061492
Test: cert/run
atest bluetooth_test_gd
Tag: #gd-refactor
Change-Id: I6b35e11dd802138469b0024611113eb822b08637
Myles Watson [Thu, 25 Mar 2021 20:10:12 +0000 (13:10 -0700)]
HCI: Add support for Debug packet
Bug:
183061492
Test: cert/run
atest bluetooth_test_gd
Tag: #gd-refactor
Change-Id: Iacec1d37a95514d23f90a26f42808d627d2c6b0f