OSDN Git Service

android-x86/system-bt.git
3 years agoMerge "HCI: Warn on unhandled events" am: 0c0303dfd8
Treehugger Robot [Mon, 19 Apr 2021 22:00:31 +0000 (22:00 +0000)]
Merge "HCI: Warn on unhandled events" am: 0c0303dfd8

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

Change-Id: I795bff72647e039c24692769b6bfbf84fd0ae3b0

3 years agoshim: Wrap TRY_POSTING_ON_MAIN conditional am: 0be12632d9
Chris Manton [Mon, 19 Apr 2021 22:00:19 +0000 (22:00 +0000)]
shim: Wrap TRY_POSTING_ON_MAIN conditional am: 0be12632d9

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

Change-Id: I48ad38cc2c699731a44dd6cd62f33b86845bfe75

3 years agoMerge "HCI: Warn on unhandled events"
Treehugger Robot [Mon, 19 Apr 2021 21:44:01 +0000 (21:44 +0000)]
Merge "HCI: Warn on unhandled events"

3 years agoshim: Wrap TRY_POSTING_ON_MAIN conditional
Chris Manton [Mon, 19 Apr 2021 00:41:52 +0000 (17:41 -0700)]
shim: Wrap TRY_POSTING_ON_MAIN conditional

Bug: 185633860
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I34afd1b42744f1357f4a5ea6624e343bd7f59ad1

3 years agoHCI: Warn on unhandled events
Myles Watson [Mon, 19 Apr 2021 19:09:05 +0000 (12:09 -0700)]
HCI: Warn on unhandled events

Bug: 185731391
Test: cert/run
Tag: #gd-refactor
Change-Id: I0d63c4c85ab49a0bee857d384dd5b0d27a8fe8fd

3 years agoMerge "Fix valid check for btm_process_remote_ext_features" am: 636d7a5dbb
Jack He [Mon, 19 Apr 2021 19:10:13 +0000 (19:10 +0000)]
Merge "Fix valid check for btm_process_remote_ext_features" am: 636d7a5dbb

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

Change-Id: Iac86071fb5cf7b7bc7659436817c56ea9d780cbe

3 years agoMerge "gd hci: Correct max_page_number for read remote feature complete" am: b02fa7ced3
Jack He [Mon, 19 Apr 2021 19:09:56 +0000 (19:09 +0000)]
Merge "gd hci: Correct max_page_number for read remote feature complete" am: b02fa7ced3

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

Change-Id: Ia65e45e27edcabca8ab0ebc32a0eb1cc370a9d00

3 years agoGD Storage: Call SaveDelayed on the right thread am: 5806b93dfc
Jack He [Mon, 19 Apr 2021 19:08:10 +0000 (19:08 +0000)]
GD Storage: Call SaveDelayed on the right thread am: 5806b93dfc

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

Change-Id: I68fbf4c3abc283a06bd729a6c105a3aae623bbd0

3 years agoMerge "Fix valid check for btm_process_remote_ext_features"
Jack He [Mon, 19 Apr 2021 18:42:57 +0000 (18:42 +0000)]
Merge "Fix valid check for btm_process_remote_ext_features"

3 years agoMerge "gd hci: Correct max_page_number for read remote feature complete"
Jack He [Mon, 19 Apr 2021 18:42:48 +0000 (18:42 +0000)]
Merge "gd hci: Correct max_page_number for read remote feature complete"

3 years agoFix valid check for btm_process_remote_ext_features
Chienyuan [Mon, 19 Apr 2021 10:10:53 +0000 (18:10 +0800)]
Fix valid check for btm_process_remote_ext_features

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

3 years agogd hci: Correct max_page_number for read remote feature complete
Chienyuan [Mon, 19 Apr 2021 08:38:38 +0000 (16:38 +0800)]
gd hci: Correct max_page_number for read remote feature complete

Tag: #gd-refactor
Bug: 183688717
Test: gd/cert/run
Change-Id: I2386fb48d06f164fb3660bbb04603713ec4a742e

3 years agoGD Storage: Call SaveDelayed on the right thread
Jack He [Sat, 17 Apr 2021 08:37:25 +0000 (01:37 -0700)]
GD Storage: Call SaveDelayed on the right thread

* To resolve a dedlock between StorageModule and ConfigCache

Fixes: 178976563
Bug: 178976563
Test: atest bluetooth_test_gd
Tag: #gd-refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I13a51931111eb3c0e1c999cd4b7f4fc30d9e1f13

3 years agoMerge changes Ic583e487,Ic589759c,Ibe9720b5,I3fc83d6d,I3cccdf77, ... am: 1db32f98b0
Chris Manton [Fri, 16 Apr 2021 21:38:55 +0000 (21:38 +0000)]
Merge changes Ic583e487,Ic589759c,Ibe9720b5,I3fc83d6d,I3cccdf77, ... am: 1db32f98b0

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

Change-Id: I24970422923ed080828ecd3568e9d9dd1ccd5de2

3 years agoMerge changes Ic583e487,Ic589759c,Ibe9720b5,I3fc83d6d,I3cccdf77, ...
Chris Manton [Fri, 16 Apr 2021 21:21:11 +0000 (21:21 +0000)]
Merge changes Ic583e487,Ic589759c,Ibe9720b5,I3fc83d6d,I3cccdf77, ...

* changes:
  shim: Move disconnect classic/le into thread safe space
  shim: Add acl tests
  shim: Replace mock do_in_main_thread with a fake
  shim: Move dumpsys map off heap into static allocation
  shim: Clean up mock entry and add common header inclusion
  gd: Make address protected to set it for tests
  Untangle HCI_STATUS/BTM_STATUS bta/dm/bta_dm_act
  Enum-ify tSMP_STATUS

3 years agoBluetoothMetrics: Log classic pairing metrics from gd am: 38950d0a89
Chen Chen [Fri, 16 Apr 2021 17:36:55 +0000 (17:36 +0000)]
BluetoothMetrics: Log classic pairing metrics from gd am: 38950d0a89

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

Change-Id: I2a77b5b7e60507f652f4a92e8fb37bac6334b54c

3 years agoshim: Move disconnect classic/le into thread safe space
Chris Manton [Thu, 15 Apr 2021 02:03:09 +0000 (19:03 -0700)]
shim: Move disconnect classic/le into thread safe space

Bug: 184604254
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ic583e4878a2d7428f3007303f9f030e9a78bd32f

3 years agoshim: Add acl tests
Chris Manton [Thu, 15 Apr 2021 02:06:04 +0000 (19:06 -0700)]
shim: Add acl tests

Bug: 184604254
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ic589759cec3190e99f0a1659985740f415569ab2

3 years agoshim: Replace mock do_in_main_thread with a fake
Chris Manton [Thu, 15 Apr 2021 20:54:20 +0000 (13:54 -0700)]
shim: Replace mock do_in_main_thread with a fake

Bug: 184604254
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ibe9720b5934806bca2d62055fc50dc20ecac927d

3 years agoshim: Move dumpsys map off heap into static allocation
Chris Manton [Thu, 15 Apr 2021 02:45:36 +0000 (19:45 -0700)]
shim: Move dumpsys map off heap into static allocation

Bug: 184604254
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I3fc83d6d0a3ef68c0fd5ed5d17249abd7d09f833

3 years agoshim: Clean up mock entry and add common header inclusion
Chris Manton [Wed, 14 Apr 2021 22:01:23 +0000 (15:01 -0700)]
shim: Clean up mock entry and add common header inclusion

Bug: 182544206
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I3cccdf773638134affefd1a7c143e4862c53f9e3

3 years agogd: Make address protected to set it for tests
Chris Manton [Thu, 15 Apr 2021 23:54:22 +0000 (16:54 -0700)]
gd: Make address protected to set it for tests

Bug: 184604254
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I36b30d48a453bbd27c804d319971061059c9a3cf

3 years agoUntangle HCI_STATUS/BTM_STATUS bta/dm/bta_dm_act
Chris Manton [Mon, 1 Mar 2021 18:33:19 +0000 (10:33 -0800)]
Untangle HCI_STATUS/BTM_STATUS bta/dm/bta_dm_act

Toward readable code

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

Change-Id: Ib02cba5dd1a47085bb7842236a66e9c71384eada

3 years agoEnum-ify tSMP_STATUS
Chris Manton [Tue, 2 Mar 2021 17:59:07 +0000 (09:59 -0800)]
Enum-ify tSMP_STATUS

Toward readable code

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

Change-Id: I613ee010fef7211edb51592efcc385f3999a7ba4

3 years agoBluetoothMetrics: Log classic pairing metrics from gd
Chen Chen [Mon, 12 Apr 2021 20:20:36 +0000 (13:20 -0700)]
BluetoothMetrics: Log classic pairing metrics from gd

Test: gd/cert/run
Manual test: build and run Bluetooth (connection, pairing, music and phone call)
Bug: 181819141
Tag: #gd-refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ie2bb98151c9d22cee2374c46422809e45e07b3b0

3 years agoGd Metrics: Use le_meta_event_view before move am: 4311c6c07b
Chen Chen [Thu, 15 Apr 2021 19:20:57 +0000 (19:20 +0000)]
Gd Metrics: Use le_meta_event_view before move am: 4311c6c07b

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

Change-Id: I57e4e93eeb5490c230694dfe3a49a8cae0d12d17

3 years agoGd Metrics: Use le_meta_event_view before move
Chen Chen [Thu, 15 Apr 2021 17:20:08 +0000 (10:20 -0700)]
Gd Metrics: Use le_meta_event_view before move

Test: gd/cert/run
Bug: 181819141
Tag: #stability
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: I77d482dea2f77c8aa7c41b0e33bd398a9eb21adf

3 years agoMerge "Reference the chipset capability in LE_Set_Data_Length" am: 37b011683d
Treehugger Robot [Thu, 15 Apr 2021 08:27:55 +0000 (08:27 +0000)]
Merge "Reference the chipset capability in LE_Set_Data_Length" am: 37b011683d

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

Change-Id: I9d89c0bd8e0b99c6abad4e9297884e3bbcc94034

3 years agoMerge "Reference the chipset capability in LE_Set_Data_Length"
Treehugger Robot [Thu, 15 Apr 2021 07:29:34 +0000 (07:29 +0000)]
Merge "Reference the chipset capability in LE_Set_Data_Length"

3 years agoMerge "audio: Initial implementation for bluetooth hw driver input" am: 9e49c6a7ff
Jakub Pawlowski [Thu, 15 Apr 2021 06:57:46 +0000 (06:57 +0000)]
Merge "audio: Initial implementation for bluetooth hw driver input" am: 9e49c6a7ff

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

Change-Id: If5943181737cc45aec2a48dc335e21ef2eda5ee2

3 years agoMerge "gd Scanning: Unregister event when stop" am: a68370290c
Treehugger Robot [Thu, 15 Apr 2021 06:52:19 +0000 (06:52 +0000)]
Merge "gd Scanning: Unregister event when stop" am: a68370290c

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

Change-Id: I4ad830f631edf56fed05ca7bfc38da92e51ff83a

3 years agoMerge "audio: Initial implementation for bluetooth hw driver input"
Jakub Pawlowski [Thu, 15 Apr 2021 06:19:08 +0000 (06:19 +0000)]
Merge "audio: Initial implementation for bluetooth hw driver input"

3 years agoMerge "gd Scanning: Unregister event when stop"
Treehugger Robot [Thu, 15 Apr 2021 06:13:04 +0000 (06:13 +0000)]
Merge "gd Scanning: Unregister event when stop"

3 years agoGD metrics: remove reference before move am: 22c13c3e06
Chen Chen [Thu, 15 Apr 2021 02:45:48 +0000 (02:45 +0000)]
GD metrics: remove reference before move am: 22c13c3e06

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

Change-Id: I1d7b548ee74571eb2d87386ca73dc4145e1cd2df

3 years agogd Scanning: Unregister event when stop
Chienyuan [Tue, 13 Apr 2021 09:36:55 +0000 (17:36 +0800)]
gd Scanning: Unregister event when stop

Tag: #gd-refactor
Bug: 184002509
Test: gd/cert/run
Change-Id: I8346ccafdcb867ae8695de2b3ed087f5fadbeab4

3 years agoGD metrics: remove reference before move
Chen Chen [Thu, 15 Apr 2021 01:19:24 +0000 (18:19 -0700)]
GD metrics: remove reference before move

Test: gd/cert/run
Bug: 181819141
Tag: #stability
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Iebe25a935aac2e1936734f775f617496ef920fd1

3 years agoMerge "GD metrics: Logging link layer events from GD" am: 09e59d4631
Chen Chen [Wed, 14 Apr 2021 23:16:15 +0000 (23:16 +0000)]
Merge "GD metrics: Logging link layer events from GD" am: 09e59d4631

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

Change-Id: I48d357934b33614e17fe252b4073402b1f6e7270

3 years agoMerge "GD metrics: Logging link layer events from GD"
Chen Chen [Wed, 14 Apr 2021 22:40:48 +0000 (22:40 +0000)]
Merge "GD metrics: Logging link layer events from GD"

3 years agogd: Enforce modules to present a unique name am: fb7add516e
Chris Manton [Wed, 14 Apr 2021 21:23:22 +0000 (21:23 +0000)]
gd: Enforce modules to present a unique name am: fb7add516e

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

Change-Id: Ia30755e98c07b0d4270367e1818d8c1da3b6977e

3 years agoheadless: Add docs and more information am: 916fb47ab0
Chris Manton [Wed, 14 Apr 2021 21:23:19 +0000 (21:23 +0000)]
headless: Add docs and more information am: 916fb47ab0

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

Change-Id: I8de903edb9dc959915fc976c0f036c3c54dc3255

3 years agoheadless: Add initial/final sentinal log markers am: 8749c7eacf
Chris Manton [Wed, 14 Apr 2021 21:23:17 +0000 (21:23 +0000)]
headless: Add initial/final sentinal log markers am: 8749c7eacf

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

Change-Id: If544f538cedc62dd3c57c5e9a6226d3cf7bf37e2

3 years agoExplict default init types module_t am: db98e4b191
Chris Manton [Wed, 14 Apr 2021 21:23:15 +0000 (21:23 +0000)]
Explict default init types module_t am: db98e4b191

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

Change-Id: I3e0a039a23949b89a4315fbeb5935ea9b7b29e0e

3 years agoEnum-ify tSMP_EVT am: b7313a27d4
Chris Manton [Wed, 14 Apr 2021 21:23:13 +0000 (21:23 +0000)]
Enum-ify tSMP_EVT am: b7313a27d4

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

Change-Id: I45a74da32b2c006c9d60fc3b92d92d9e5a59aa91

3 years agoEnum-ify tBTA_STATUS am: 0ee1b8b53f
Chris Manton [Wed, 14 Apr 2021 21:23:11 +0000 (21:23 +0000)]
Enum-ify tBTA_STATUS am: 0ee1b8b53f

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

Change-Id: I165ed90a19646e9a17e3d514525c5ccdefb10348

3 years agotesting: Use proper types am: 37a7a9f0ea
Chris Manton [Wed, 14 Apr 2021 21:22:23 +0000 (21:22 +0000)]
testing: Use proper types am: 37a7a9f0ea

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

Change-Id: I6e2e417f524e8697f593ff1b98e16964a9daeb6e

3 years agogd: Enforce modules to present a unique name
Chris Manton [Tue, 13 Apr 2021 23:49:18 +0000 (16:49 -0700)]
gd: Enforce modules to present a unique name

A rogue module should be identified if it hangs

Bug: 184608842
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I0514ff36c7b1654e8de30a262b9a3a05a305a537

3 years agoheadless: Add docs and more information
Chris Manton [Tue, 13 Apr 2021 23:49:51 +0000 (16:49 -0700)]
headless: Add docs and more information

Bug: 147316415
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I44c8a3a38914581a335446f975c9626a9587e73f

3 years agoheadless: Add initial/final sentinal log markers
Chris Manton [Tue, 13 Apr 2021 21:17:14 +0000 (14:17 -0700)]
headless: Add initial/final sentinal log markers

Bug: 147316415
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ic965827c03487d9d7984382178411e520c5a5057

3 years agoExplict default init types module_t
Chris Manton [Sat, 10 Apr 2021 17:48:17 +0000 (10:48 -0700)]
Explict default init types module_t

Toward initialized code

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

Change-Id: I343a777b57138017f825823d260a3c956f2aead0

3 years agoEnum-ify tSMP_EVT
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

3 years agoEnum-ify tBTA_STATUS
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

3 years agotesting: Use proper types
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

3 years agoReference the chipset capability in LE_Set_Data_Length
Ugo Yu [Wed, 14 Apr 2021 09:52:33 +0000 (17:52 +0800)]
Reference the chipset capability in LE_Set_Data_Length

The parameters in LE_Set_Data_Length was hard-coded to the maximum
value, which could break some low-end Bluetooth chips.

Tag: #feature
Bug: 178526513
Test: bluetooth_test_gd --gtest_filter="*controller*"
Change-Id: I5299beff2ab0faff12482c038137878d9ced0a7d

3 years ago[automerger skipped] Merge RQ2A.210405.006 to aosp-master - DO NOT MERGE am: 0e28b0ef...
Bill Yi [Wed, 14 Apr 2021 05:46:17 +0000 (05:46 +0000)]
[automerger skipped] Merge RQ2A.210405.006 to aosp-master - DO NOT MERGE am: 0e28b0ef8a -s ours

am skip reason: skip tag Change-Id Ia5ca732e8464d02a3c5a7b1b75f4c6afbe441fb1 with SHA-1 2e65a9a87e is already in history

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

Change-Id: Iefc5cbba7f48364a7f4a3965a6cdabb4caf4620f

3 years agoMerge RQ2A.210405.006 to aosp-master - DO NOT MERGE
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

3 years agoGD metrics: Logging link layer events from GD
Chen Chen [Wed, 31 Mar 2021 18:58:15 +0000 (11:58 -0700)]
GD metrics: Logging link layer events from GD

Events include:
* LinkLayerConnection,
* ReadRssi,
* ReadFailedContactCounter,
* ReadTxPower,
* RemoteVersionInfo,
* HciTimeout
Also move the gd metrics logging from common to os

Test: gd/cert/run
Manual test: build and run Bluetooth (connection, pairing, music and phone
call)
Bug: 181819141
Tag: #gd-refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Id84651a4cc0343ed0438083290b3aaab1ead6535

3 years agoMerge "RFCOMM: Handle configuration for pending connection" am: 851fa54a0d
Jack He [Wed, 14 Apr 2021 00:28:50 +0000 (00:28 +0000)]
Merge "RFCOMM: Handle configuration for pending connection" am: 851fa54a0d

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

Change-Id: Ia5ca732e8464d02a3c5a7b1b75f4c6afbe441fb1

3 years agoMerge "Merge RQ2A.210405.006 to stage-aosp-master - DO NOT MERGE" into stage-aosp...
Bill Yi [Wed, 14 Apr 2021 00:27:06 +0000 (00:27 +0000)]
Merge "Merge RQ2A.210405.006 to stage-aosp-master - DO NOT MERGE" into stage-aosp-master

3 years agoMerge "RFCOMM: Handle configuration for pending connection"
Jack He [Tue, 13 Apr 2021 23:58:05 +0000 (23:58 +0000)]
Merge "RFCOMM: Handle configuration for pending connection"

3 years agoaudio: Initial implementation for bluetooth hw driver input
Grzegorz Kołodziejczyk [Thu, 1 Apr 2021 15:21:17 +0000 (15:21 +0000)]
audio: Initial implementation for bluetooth hw driver input

Patch adds initial implementation for input driver of bluetooth hw.

Tag: #feature
Test: open input stream e.g. Le Audio Decoded session
Sponsor: jpawlowski@
Bug: 150670922
Change-Id: I6702f962a26c93a4f53cfc223185b5a61112d330

3 years agoMerge "OOB: Implement generateLocalOobData API" am: 1efb039447
Treehugger Robot [Tue, 13 Apr 2021 15:44:38 +0000 (15:44 +0000)]
Merge "OOB: Implement generateLocalOobData API" am: 1efb039447

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

Change-Id: I270d7bc0825686dff8484a1beb8a3f221d431b67

3 years agoMerge "Add time unit to AVDTP delay reporting value displayed for debugging." am...
Johanna Ye [Tue, 13 Apr 2021 15:42:24 +0000 (15:42 +0000)]
Merge "Add time unit to AVDTP delay reporting value displayed for debugging." am: 3d37198c66

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

Change-Id: Icfacc2ee9810de5bd31e31eee5bc3b3e5f097546

3 years agoMerge "OOB: Implement generateLocalOobData API"
Treehugger Robot [Tue, 13 Apr 2021 15:28:25 +0000 (15:28 +0000)]
Merge "OOB: Implement generateLocalOobData API"

3 years agoMerge "Add time unit to AVDTP delay reporting value displayed for debugging."
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."

3 years agoMerge "Add logging message to indicate collision with previous pending connection...
Johanna Ye [Tue, 13 Apr 2021 14:14:27 +0000 (14:14 +0000)]
Merge "Add logging message to indicate collision with previous pending connection from the same remote device." am: 4d15754de7

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

Change-Id: I51b91ae19eceab15b940802694972435ed6c3005

3 years agoMerge "Add logging message to indicate collision with previous pending connection...
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."

3 years agoAdd time unit to AVDTP delay reporting value displayed for debugging.
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

3 years agoRFCOMM: Handle configuration for pending connection
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

3 years agoMerge "SCO: change D1 max latency to 0xFFFF" am: 2fc0084145
Josh Wu [Tue, 13 Apr 2021 03:42:53 +0000 (03:42 +0000)]
Merge "SCO: change D1 max latency to 0xFFFF" am: 2fc0084145

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

Change-Id: Ia6c022c984aeb85813c23056108d018c378927fb

3 years agoMerge "SCO: change D1 max latency to 0xFFFF"
Josh Wu [Tue, 13 Apr 2021 03:00:24 +0000 (03:00 +0000)]
Merge "SCO: change D1 max latency to 0xFFFF"

3 years agoMerge "Initial btif/test/btif_stack_test" am: f0eb6c4717
Treehugger Robot [Mon, 12 Apr 2021 19:48:26 +0000 (19:48 +0000)]
Merge "Initial btif/test/btif_stack_test" am: f0eb6c4717

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

Change-Id: Ia809f5e44d770e415e666ba3411677a7204636c3

3 years agoMerge "Initial btif/test/btif_stack_test"
Treehugger Robot [Mon, 12 Apr 2021 19:20:44 +0000 (19:20 +0000)]
Merge "Initial btif/test/btif_stack_test"

3 years agoRemove not Hwbinder thread stopwatch caller am: babd23df27
weichinweng [Mon, 12 Apr 2021 17:42:18 +0000 (17:42 +0000)]
Remove not Hwbinder thread stopwatch caller am: babd23df27

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

Change-Id: Ie48f4d564fe39173e66e701d2be7d7a0c0922259

3 years agoMerge RQ2A.210405.006 to stage-aosp-master - DO NOT MERGE
Bill Yi [Mon, 12 Apr 2021 16:28:14 +0000 (09:28 -0700)]
Merge RQ2A.210405.006 to stage-aosp-master - DO NOT MERGE

Merged-In: I269fdcdf301bb442f124a0813db066441ae2e29f
Change-Id: I8625ed264939f8ce9ff9795fa38d081291e95d01

3 years agoAdd logging message to indicate collision with previous pending connection from the...
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

3 years agoSCO: change D1 max latency to 0xFFFF
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

3 years agoRemove not Hwbinder thread stopwatch caller
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

3 years agoInitial btif/test/btif_stack_test
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

3 years agovc: Initial field in constructor am: c435f425cb
Greg Kaiser [Fri, 9 Apr 2021 17:07:19 +0000 (17:07 +0000)]
vc: Initial field in constructor am: c435f425cb

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

Change-Id: I7522a70f85a0c2a7086805d0e44f9f0528df4e51

3 years agovc: Initial field in constructor
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

3 years agobtm_iso: Allow to start ISO by many clients am: 1c51c0afce
Łukasz Rymanowski [Fri, 9 Apr 2021 11:42:19 +0000 (11:42 +0000)]
btm_iso: Allow to start ISO by many clients am: 1c51c0afce

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

Change-Id: Ibdd5c2a03e579a16df77c50a53d693a37271202a

3 years agobtm_iso: Allow to start ISO by many clients
Ł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

3 years agoMerge "HCI: Accept erroneous ConnectionComplete" am: 4af4ff7566
Treehugger Robot [Fri, 9 Apr 2021 09:38:05 +0000 (09:38 +0000)]
Merge "HCI: Accept erroneous ConnectionComplete" am: 4af4ff7566

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

Change-Id: I0de79dd1131a5fb4f63dd8f90c30646025f3b91a

3 years agoMerge "HCI: Accept erroneous ConnectionComplete"
Treehugger Robot [Fri, 9 Apr 2021 08:59:21 +0000 (08:59 +0000)]
Merge "HCI: Accept erroneous ConnectionComplete"

3 years agoaudio: Introduce LE Audio support for client interface and HAL am: 944543dadb
Grzegorz Kołodziejczyk [Fri, 9 Apr 2021 07:39:15 +0000 (07:39 +0000)]
audio: Introduce LE Audio support for client interface and HAL am: 944543dadb

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

Change-Id: If100a9ae30f2b344e08d8b73b1c076dc992e67c4

3 years agoaudio: Introduce LE Audio support for client interface and HAL
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

3 years agoRe-log btif/src/stack_manager am: 7923f613fe
Chris Manton [Fri, 9 Apr 2021 06:35:28 +0000 (06:35 +0000)]
Re-log btif/src/stack_manager am: 7923f613fe

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

Change-Id: I8462f1585e1ef5f2b008c00375a1a20863f58f08

3 years agoAdd layer of indirection to set hal_callbacks am: 6869395b5f
Chris Manton [Fri, 9 Apr 2021 06:35:26 +0000 (06:35 +0000)]
Add layer of indirection to set hal_callbacks am: 6869395b5f

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

Change-Id: Idb81558fb6a18ffc5ca6b967fcba208fafaa176b

3 years agoCononicalize include pathnames am: 1dcbf80e0a
Chris Manton [Fri, 9 Apr 2021 06:35:24 +0000 (06:35 +0000)]
Cononicalize include pathnames am: 1dcbf80e0a

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

Change-Id: I625540239f09f3ef04092795fb74b7ffd0548146

3 years agoRemove execute bits btif/:: am: 6938800037
Chris Manton [Fri, 9 Apr 2021 06:34:22 +0000 (06:34 +0000)]
Remove execute bits btif/:: am: 6938800037

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

Change-Id: I84a3cd6931b6aeeb0450d0d8a9fdb08b35473448

3 years agoPrint stopwatch log when the bluetooth HAL died. am: 1a7586dd08
weichinweng [Fri, 9 Apr 2021 02:31:23 +0000 (02:31 +0000)]
Print stopwatch log when the bluetooth HAL died. am: 1a7586dd08

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

Change-Id: I3b1392d8102c893b86d41d482f34338789dd4054

3 years agoRe-log btif/src/stack_manager
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

3 years agoAdd layer of indirection to set hal_callbacks
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

3 years agoCononicalize include pathnames
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

3 years agoRemove execute bits btif/::
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

3 years agoPrint stopwatch log when the bluetooth HAL died.
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

3 years agoMerge "Update to use CXX 1.0" am: 73f77c9369
Matthew Maurer [Thu, 8 Apr 2021 20:24:19 +0000 (20:24 +0000)]
Merge "Update to use CXX 1.0" am: 73f77c9369

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

Change-Id: I7d28ba797c3340d6648e88a4a6fcb42ee9209853

3 years agoMerge "Update to use CXX 1.0"
Matthew Maurer [Thu, 8 Apr 2021 19:59:20 +0000 (19:59 +0000)]
Merge "Update to use CXX 1.0"

3 years agoMerge "Add a hint for cert tests" am: 51f099ca2c
Treehugger Robot [Thu, 8 Apr 2021 18:40:54 +0000 (18:40 +0000)]
Merge "Add a hint for cert tests" am: 51f099ca2c

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

Change-Id: I12671d4a4459848b1a03ddffcbf0345ac9e4c561

3 years agoMerge changes I3ccf85d5,I731adcff,I6f5f9cec,I9f773287,Iabf796dc, ... am: 88d3421141
Treehugger Robot [Thu, 8 Apr 2021 18:38:32 +0000 (18:38 +0000)]
Merge changes I3ccf85d5,I731adcff,I6f5f9cec,I9f773287,Iabf796dc, ... am: 88d3421141

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

Change-Id: Id7317f98f5f402f462252ca28cb328f2340d288d