OSDN Git Service

android-x86/system-bt.git
3 years agoAdd host support for btif/ am: 58accc1b51
Hansong Zhang [Tue, 2 Mar 2021 01:07:46 +0000 (01:07 +0000)]
Add host support for btif/ am: 58accc1b51

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id9aeabd3e816e188163531ae17f21ce401a11365

3 years agoAdd host support for btif/
Hansong Zhang [Mon, 1 Mar 2021 20:55:37 +0000 (12:55 -0800)]
Add host support for btif/

Move some dependencies to Android only.

Bug: 181590011
Tag: #refactor
Test: compile
Change-Id: I37812378210e822d1d36fcf24aaadbcf9f4a5084

3 years agoMerge "Remove additional handle mapping between C++ and Python" am: 94b1656518
Treehugger Robot [Mon, 1 Mar 2021 23:26:41 +0000 (23:26 +0000)]
Merge "Remove additional handle mapping between C++ and Python" am: 94b1656518

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4b491223760aa702ef87cf507113da27be3c4de7

3 years agoMerge "Remove additional handle mapping between C++ and Python"
Treehugger Robot [Mon, 1 Mar 2021 22:58:55 +0000 (22:58 +0000)]
Merge "Remove additional handle mapping between C++ and Python"

3 years agoRemove additional handle mapping between C++ and Python
Jakub Pawlowski [Mon, 1 Mar 2021 14:52:06 +0000 (15:52 +0100)]
Remove additional handle mapping between C++ and Python

We must be able to access ACL handle from upcoming ISO module.

Tag: #feature
Bug: 177907117
Test: cert/run LeL2capTest
Change-Id: I3124bff551930158ae80c43166dd9d95201ce6a2

3 years agoMerge changes I0d082b14,I868d5eb4,I32c5931e am: f46a087a5d
Treehugger Robot [Mon, 1 Mar 2021 19:48:23 +0000 (19:48 +0000)]
Merge changes I0d082b14,I868d5eb4,I32c5931e am: f46a087a5d

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7d6df2c0e3400bee9ef8e472a0c19a1cbbc27d13

3 years agoMerge changes I0d082b14,I868d5eb4,I32c5931e
Treehugger Robot [Mon, 1 Mar 2021 19:31:29 +0000 (19:31 +0000)]
Merge changes I0d082b14,I868d5eb4,I32c5931e

* changes:
  PyLeAclManager: Implement connection cancel
  RootCanal: Send ConnectionComplete after Cancel
  RootCanal: Disallow configuring ongoing scans

3 years agohal: Add input port for bluetooth audio HAL am: 11b83404fa
Grzegorz Kołodziejczyk [Mon, 1 Mar 2021 19:29:35 +0000 (19:29 +0000)]
hal: Add input port for bluetooth audio HAL am: 11b83404fa

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I06281bdd73cf7e876a2ff2e3ae9bd27279a99861

3 years agohal: Add input port for bluetooth audio HAL
Grzegorz Kołodziejczyk [Tue, 9 Feb 2021 14:48:25 +0000 (14:48 +0000)]
hal: Add input port for bluetooth audio HAL

Patch adds input port for bluetooth audio HAL.

Bug: 150670922
Tag: #feature
Test: atest bluetooth-test-audio-hal-interface
Sponsor: jpawlowski@
Change-Id: I7f9a12bcf13d7ce44f1f9a73d8b8a9bf4c764f92

3 years agoDO NOT MERGE - Mark RQ2A.210105.001 as merged.
Xin Li [Mon, 1 Mar 2021 08:43:24 +0000 (00:43 -0800)]
DO NOT MERGE - Mark RQ2A.210105.001 as merged.

Bug: 180401296
Merged-In: Iad6ec9f3b83feae19d631c5d0499da4ba5885f40
Change-Id: I0756e13d93f10431ef56fce434c9da0cd9d43b5c

3 years agoMerge "[LSC] Add LOCAL_LICENSE_KINDS to system/bt" am: a349f37dfd
Treehugger Robot [Mon, 1 Mar 2021 04:59:39 +0000 (04:59 +0000)]
Merge "[LSC] Add LOCAL_LICENSE_KINDS to system/bt" am: a349f37dfd

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iad6ec9f3b83feae19d631c5d0499da4ba5885f40

3 years agoMerge "[LSC] Add LOCAL_LICENSE_KINDS to system/bt"
Treehugger Robot [Mon, 1 Mar 2021 03:58:55 +0000 (03:58 +0000)]
Merge "[LSC] Add LOCAL_LICENSE_KINDS to system/bt"

3 years agoRemove unused AIDL API am: f7b2fad0d2
Hansong Zhang [Sun, 28 Feb 2021 22:12:57 +0000 (22:12 +0000)]
Remove unused AIDL API am: f7b2fad0d2

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibe12418f475a1afebdb42bf9a8032c731a3cb76e

3 years agoAdd host support for bta/ am: 6aebf4c109
Hansong Zhang [Sun, 28 Feb 2021 22:12:54 +0000 (22:12 +0000)]
Add host support for bta/ am: 6aebf4c109

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie21af17729a7119175990746e3c670f24f74dc35

3 years agoAdd host support for udrv/ am: d480df840b
Hansong Zhang [Sun, 28 Feb 2021 22:12:51 +0000 (22:12 +0000)]
Add host support for udrv/ am: d480df840b

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9b9f73e6b9d94ea857abf19406ab39dc25ba7d4d

3 years agoRemove unused AIDL API
Hansong Zhang [Fri, 26 Feb 2021 23:06:23 +0000 (15:06 -0800)]
Remove unused AIDL API

Test: compile
Change-Id: Ia7bfd2d6f8bbedc17b54e6d3c56581cb28945e0e

3 years agoAdd host support for bta/
Hansong Zhang [Tue, 23 Feb 2021 23:52:11 +0000 (15:52 -0800)]
Add host support for bta/

Test: compile
Change-Id: Ife3e7c386b4384907c1b39f921812c337becab52

3 years agoAdd host support for udrv/
Hansong Zhang [Thu, 25 Feb 2021 23:46:09 +0000 (15:46 -0800)]
Add host support for udrv/

Test: compile
Change-Id: I04394268d6259ccd08e5b5964cbcadb89209da91

3 years agoRe-include stack/gatt/gatt_utils am: 6509949af2
Chris Manton [Sun, 28 Feb 2021 05:34:09 +0000 (05:34 +0000)]
Re-include stack/gatt/gatt_utils am: 6509949af2

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I93e3cab753a4dfedb5bfaea2416a468096f79702

3 years agoRe-include stack/gatt/gatt_utils
Chris Manton [Fri, 26 Feb 2021 23:34:30 +0000 (15:34 -0800)]
Re-include stack/gatt/gatt_utils

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I732e977ead70a48031e5cee3d7a9a06be3ce49bb

3 years agoGD HCI packets: add LeCisParametersTestConfig am: c2ae150871
Jakub Pawlowski [Sat, 27 Feb 2021 10:59:57 +0000 (10:59 +0000)]
GD HCI packets: add LeCisParametersTestConfig am: c2ae150871

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I15bf0f8ff1127b6393b36fd8467e1f9b4ee132c8

3 years agoGD HCI packets: add LeCisParametersTestConfig
Jakub Pawlowski [Fri, 26 Feb 2021 09:04:50 +0000 (10:04 +0100)]
GD HCI packets: add LeCisParametersTestConfig

Tag: #feature
Test: Added LeIsoTest
Bug: 177907117
Change-Id: I2ab56dc30bf02a9ea07cd0ea11135c06a77cb018

3 years agoPyLeAclManager: Implement connection cancel
Myles Watson [Sat, 27 Feb 2021 00:05:23 +0000 (16:05 -0800)]
PyLeAclManager: Implement connection cancel

Bug: 181371297
Test: cert/run LeAclManagerTest
Tag: #gd-refactor
Change-Id: I0d082b143f4a0638695af9eeb20337f185d89af2

3 years agoRootCanal: Send ConnectionComplete after Cancel
Myles Watson [Fri, 26 Feb 2021 23:44:30 +0000 (15:44 -0800)]
RootCanal: Send ConnectionComplete after Cancel

Bug: 181371297
Test: cert/run LeAclManagerTest
Tag: #gd-refactor
Change-Id: I868d5eb48ec7eca7f0ecf10ad3014f8c57634d85

3 years agoRootCanal: Disallow configuring ongoing scans
Myles Watson [Fri, 26 Feb 2021 23:06:41 +0000 (15:06 -0800)]
RootCanal: Disallow configuring ongoing scans

Bug: 181371297
Test: cert/run LeAclManagerTest
Tag: #gd-refactor
Change-Id: I32c5931e69b7ab64e4d2c2f9558efa69ea9c34fb

3 years agoMerge "follows the advice of -Wsign-compare" am: bfed8fbddb
Christopher Di Bella [Sat, 27 Feb 2021 00:59:39 +0000 (00:59 +0000)]
Merge "follows the advice of -Wsign-compare" am: bfed8fbddb

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3804de7f155a73fa6eb4f99b56ce979a04bd7fc4

3 years agoMerge "follows the advice of -Wsign-compare"
Christopher Di Bella [Sat, 27 Feb 2021 00:20:29 +0000 (00:20 +0000)]
Merge "follows the advice of -Wsign-compare"

3 years agoSimplify build target am: 3ee67fc2d4
Hansong Zhang [Fri, 26 Feb 2021 23:34:36 +0000 (23:34 +0000)]
Simplify build target am: 3ee67fc2d4

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idc984110ce2321f401743700f2d269ec56aea929

3 years agoAdd host support for embdrv/ am: 7640ab5ca9
Hansong Zhang [Fri, 26 Feb 2021 23:34:33 +0000 (23:34 +0000)]
Add host support for embdrv/ am: 7640ab5ca9

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie606f53f425a95667f48fe4feaab0e8b92f91725

3 years agoAdd host support for stack/ am: cd0d091634
Hansong Zhang [Fri, 26 Feb 2021 23:33:41 +0000 (23:33 +0000)]
Add host support for stack/ am: cd0d091634

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8b748e1faac7b8345956fe923fb6133b500a504c

3 years agoSimplify build target
Hansong Zhang [Tue, 23 Feb 2021 23:31:20 +0000 (15:31 -0800)]
Simplify build target

Test: compile
Change-Id: Icf7a2665bf9b4b0dee651fe99d4763ab013834f3

3 years agoAdd host support for embdrv/
Hansong Zhang [Wed, 24 Feb 2021 01:22:26 +0000 (17:22 -0800)]
Add host support for embdrv/

Test: compile
Change-Id: I2b52c3012c37dfa19e49812c3b217b8716765437

3 years agoAdd host support for stack/
Hansong Zhang [Wed, 24 Feb 2021 00:35:31 +0000 (16:35 -0800)]
Add host support for stack/

Test: compile
Change-Id: Ie3c4f7c7625a50863200930c71f2e66a1cb77a9b

3 years agofollows the advice of -Wsign-compare
Christopher Di Bella [Thu, 25 Feb 2021 02:16:59 +0000 (02:16 +0000)]
follows the advice of -Wsign-compare

Bug: 181177782
Test: #stability #security
Change-Id: Icf11ac28caf05e1bdfcb9453153723f40d147090

3 years agoMerge "rusty-gd: Use spawn instead of block_on" am: e472f2ba55
Qasim Javed [Fri, 26 Feb 2021 18:52:39 +0000 (18:52 +0000)]
Merge "rusty-gd: Use spawn instead of block_on" am: e472f2ba55

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5b062bb4f02fa86e8921b2b6be6810928d760474

3 years agoMerge "GD Scanning: Always disable scan before set parameter" am: 58c75b9c01
Treehugger Robot [Fri, 26 Feb 2021 18:50:51 +0000 (18:50 +0000)]
Merge "GD Scanning: Always disable scan before set parameter" am: 58c75b9c01

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibadb760ed72cf5c2ffff7c6de27af87db4f25dfa

3 years agoMerge "rusty-gd: Use spawn instead of block_on"
Qasim Javed [Fri, 26 Feb 2021 18:45:33 +0000 (18:45 +0000)]
Merge "rusty-gd: Use spawn instead of block_on"

3 years agoMerge "GD Scanning: Always disable scan before set parameter"
Treehugger Robot [Fri, 26 Feb 2021 17:59:20 +0000 (17:59 +0000)]
Merge "GD Scanning: Always disable scan before set parameter"

3 years agoAdd HCI ISO tests for GD am: efad454aae
Jakub Pawlowski [Fri, 26 Feb 2021 13:39:12 +0000 (13:39 +0000)]
Add HCI ISO tests for GD am: efad454aae

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaf1afdb1f507099da425a286143072c5d023eb38

3 years agoAdd HCI ISO tests for GD
Jakub Pawlowski [Tue, 23 Feb 2021 17:39:51 +0000 (18:39 +0100)]
Add HCI ISO tests for GD

Bug: 177907117
Tag: #feature
Test: atest bluetooth_test_gd --gtest_filter=HciTest.receiveMultiple* --gtest_repeat=100
Change-Id: I1baa6406bd9f51c002c73039a09a4a0da9439bfc

3 years ago[LSC] Add LOCAL_LICENSE_KINDS to system/bt
Bob Badour [Fri, 26 Feb 2021 11:40:36 +0000 (03:40 -0800)]
[LSC] Add LOCAL_LICENSE_KINDS to system/bt

Added SPDX-license-identifier-Apache-2.0 to:
  gd/btaa/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Ic6943c23145d418527f3e3d5abc152a3d211402a

3 years agoMerge "Shim ACL: Implement OnLocalAddressUpdate" am: 2f667ebfbf
Treehugger Robot [Fri, 26 Feb 2021 11:35:15 +0000 (11:35 +0000)]
Merge "Shim ACL: Implement OnLocalAddressUpdate" am: 2f667ebfbf

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I41f60901ccf316b5c84d9e607bfd0aaba9a49e9e

3 years agoMerge "Shim ACL: Implement OnLocalAddressUpdate"
Treehugger Robot [Fri, 26 Feb 2021 10:44:48 +0000 (10:44 +0000)]
Merge "Shim ACL: Implement OnLocalAddressUpdate"

3 years agoMerge "Controller: Debug message for unuspported opcodes" am: fd7b7ffd29
Treehugger Robot [Fri, 26 Feb 2021 09:29:27 +0000 (09:29 +0000)]
Merge "Controller: Debug message for unuspported opcodes" am: fd7b7ffd29

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4dc629b6bc6931247ebf574a59e907b91cb2049d

3 years agoMerge "Controller: Debug message for unuspported opcodes"
Treehugger Robot [Fri, 26 Feb 2021 07:33:07 +0000 (07:33 +0000)]
Merge "Controller: Debug message for unuspported opcodes"

3 years agoGD Scanning: Always disable scan before set parameter
Chienyuan [Thu, 25 Feb 2021 07:20:59 +0000 (15:20 +0800)]
GD Scanning: Always disable scan before set parameter

Tag: #gd-refactor
Bug: 181184816
Test: gd/cert/run
Test: manual, start scan from settings then start scan via other app
Change-Id: I7971d0ec674312b2cdc8b17c3532071377255ff7

3 years agoMerge "Properly include bta when BTA_PAN_INCLUDED != TRUE" am: a7b42b7090
Treehugger Robot [Fri, 26 Feb 2021 06:04:12 +0000 (06:04 +0000)]
Merge "Properly include bta when BTA_PAN_INCLUDED != TRUE" am: a7b42b7090

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0d83d867c6c1a0984b880b03ecf1d21c24e752a9

3 years agoMerge "Properly include bta when BTA_PAN_INCLUDED != TRUE"
Treehugger Robot [Fri, 26 Feb 2021 05:01:01 +0000 (05:01 +0000)]
Merge "Properly include bta when BTA_PAN_INCLUDED != TRUE"

3 years agoMerge "Unbind gd_base_test from ACTS" am: 50725066e3
Jizheng Chu [Fri, 26 Feb 2021 00:56:18 +0000 (00:56 +0000)]
Merge "Unbind gd_base_test from ACTS" am: 50725066e3

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I420f15787d78cb266b7f6e3d31e8be2438ae65a0

3 years agoMerge "Unbind gd_base_test from ACTS"
Jizheng Chu [Thu, 25 Feb 2021 23:34:54 +0000 (23:34 +0000)]
Merge "Unbind gd_base_test from ACTS"

3 years agorusty-gd: Use spawn instead of block_on
Qasim Javed [Mon, 22 Feb 2021 21:53:40 +0000 (13:53 -0800)]
rusty-gd: Use spawn instead of block_on

Using block_on causes panic since the runtime is being used to drive
asynchornous tasks.

tokio::runtime::Handle has a spawn_blocking method but that can only be
called from async context. Use spawn instead.

With this change, I tested pairing with Pixel Buds and it works.

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

Change-Id: Ife8904181bd570336e80b7980435808deba7f423

3 years agoProperly include bta when BTA_PAN_INCLUDED != TRUE
Chris Manton [Thu, 25 Feb 2021 17:52:36 +0000 (09:52 -0800)]
Properly include bta when BTA_PAN_INCLUDED != TRUE

Bug: 181201483
Test: sc-tv-dev:: lunch inuvik && make libbluetooth
Tag: #refactor

Change-Id: Ic07bf040122696dc65748185dbf8cc6caa651e12

3 years agoShim ACL: Implement OnLocalAddressUpdate
Chienyuan [Thu, 25 Feb 2021 14:18:46 +0000 (22:18 +0800)]
Shim ACL: Implement OnLocalAddressUpdate

Tag: #gd-refactor
Bug: 181090402
Test: gd/cert/run
Test: manual, bond from remote device via nRF app
Change-Id: I3e570d0459d3d5fe6315b3416b7253aa9d9f1422

3 years agoRootCanal: Iso support am: 82b3f28222
Jakub Pawlowski [Thu, 25 Feb 2021 12:48:24 +0000 (12:48 +0000)]
RootCanal: Iso support am: 82b3f28222

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idb3df5b2c2ea1c31ca7b6bbcf2ec415dd2e7e3a7

3 years agoRootCanal: Silence unused using warnings am: 4b2ee3cee5
Myles Watson [Thu, 25 Feb 2021 12:48:14 +0000 (12:48 +0000)]
RootCanal: Silence unused using warnings am: 4b2ee3cee5

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icfcf96c9000b664f7dc83f072ad89acb7eafd524

3 years agoMerge "Re-include bta/..." am: 888d89f72d
Chris Manton [Wed, 24 Feb 2021 22:26:03 +0000 (22:26 +0000)]
Merge "Re-include bta/..." am: 888d89f72d

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie5bc7e0766ebbde8d964cb1ddfa4b590b099af8a

3 years agoAdd host support for utils/ am: d1116cf32e
Hansong Zhang [Wed, 24 Feb 2021 22:21:59 +0000 (22:21 +0000)]
Add host support for utils/ am: d1116cf32e

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic53996e3a14ca0b99d41f8498af5805f9fa26913

3 years agoController: Debug message for unuspported opcodes
Myles Watson [Wed, 24 Feb 2021 15:41:39 +0000 (07:41 -0800)]
Controller: Debug message for unuspported opcodes

Bug: 181159438
Test: cert/run
Tag: #gd-refactor
Change-Id: Iebee00b614da04cac77f9b2a8c104f16c97a8252

3 years agoRootCanal: Iso support
Jakub Pawlowski [Wed, 17 Feb 2021 15:45:41 +0000 (16:45 +0100)]
RootCanal: Iso support

Add remote_handle to ISO connections.

Tag: #feature
Test: cert/run LeIsoTest
Bug: 177907117
Change-Id: I55cca5f758264c1fb408623ed8a85110076f9bd9

3 years agoRootCanal: Silence unused using warnings
Myles Watson [Tue, 23 Feb 2021 20:29:37 +0000 (12:29 -0800)]
RootCanal: Silence unused using warnings

Tag: #feature
Test: cert/run LeIsoTest
Bug: 177907117
Change-Id: Ic0737634e3d5ebe3db102453eac792c890195d00

3 years agoMerge "Re-include bta/..."
Chris Manton [Wed, 24 Feb 2021 19:35:46 +0000 (19:35 +0000)]
Merge "Re-include bta/..."

3 years agoAdd host support for utils/
Hansong Zhang [Wed, 24 Feb 2021 00:40:00 +0000 (16:40 -0800)]
Add host support for utils/

Test: compile
Change-Id: Ib6dce1c141d483ed1be261db6257110932c3efd8

3 years agoMerge "btaa: route HCI packet to BTAA module" am: f78936fdcd
Michael Sun [Wed, 24 Feb 2021 18:25:57 +0000 (18:25 +0000)]
Merge "btaa: route HCI packet to BTAA module" am: f78936fdcd

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ide29dbf9e82c1ac9d2a38af8e0a1cf05c4e1f3f3

3 years agoMerge "btaa: route HCI packet to BTAA module"
Michael Sun [Wed, 24 Feb 2021 18:01:53 +0000 (18:01 +0000)]
Merge "btaa: route HCI packet to BTAA module"

3 years agoMerge "Fix the delta_time_ms types mismtach in btsnooz.py" am: 49d839ed9b
Treehugger Robot [Wed, 24 Feb 2021 02:59:10 +0000 (02:59 +0000)]
Merge "Fix the delta_time_ms types mismtach in btsnooz.py" am: 49d839ed9b

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4e2a59f59a73efa676531c0439a746673bca7467

3 years agoRe-include bta/...
Chris Manton [Fri, 22 Jan 2021 17:26:40 +0000 (09:26 -0800)]
Re-include bta/...

and some btif/...

Bug: 163134718
Test: cert
Tag: #refactor
Change-Id: I87fc3a29e6451aa2e743c57e136675b6546e694f

3 years agoMerge "Fix the delta_time_ms types mismtach in btsnooz.py"
Treehugger Robot [Wed, 24 Feb 2021 02:15:06 +0000 (02:15 +0000)]
Merge "Fix the delta_time_ms types mismtach in btsnooz.py"

3 years agoAdd gn builds for main/shim am: 5bc5b6c961
Sonny Sasaka [Wed, 24 Feb 2021 01:44:23 +0000 (01:44 +0000)]
Add gn builds for main/shim am: 5bc5b6c961

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I34b936d76312ec2bfc58ce07a8ad7e471e5579ec

3 years agoStabilize hci_layer_test am: e26c52c7c6
Jakub Pawlowski [Wed, 24 Feb 2021 01:26:32 +0000 (01:26 +0000)]
Stabilize hci_layer_test am: e26c52c7c6

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I44db79e18f85f59d4372a497871845a9547b5bdf

3 years agoMerge changes I5c8ad512,Idce102cd am: 730c48e66b
Jakub Pawlowski [Wed, 24 Feb 2021 01:21:03 +0000 (01:21 +0000)]
Merge changes I5c8ad512,Idce102cd am: 730c48e66b

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3e2d596358b5b056410a25b6bc3e64afeaf1a0c0

3 years agoMerge "BluetoothAudioHAL: Don't cache the providers factory locally" am: 0be218317a
Treehugger Robot [Wed, 24 Feb 2021 01:15:33 +0000 (01:15 +0000)]
Merge "BluetoothAudioHAL: Don't cache the providers factory locally" am: 0be218317a

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6aa416cf79d878b7776e99b75ab7ce6de07ab033

3 years agoAdd gn builds for main/shim
Sonny Sasaka [Tue, 9 Feb 2021 06:09:59 +0000 (22:09 -0800)]
Add gn builds for main/shim

This adds GN builds for main/shim, along the way adding some fixes:
* Add message_loop_thread_bridge_header to use Rust's message loop
* Add some missing includes
* Build files for dumpsys
* Add gd/hci gn build

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

Change-Id: Ide1edbb70076c4dcc4a4e6ee41303a9e315d52af

3 years agoMerge "Rename for updating BluetoothA2dp API naming" am: 2443531023
More Kuo [Wed, 24 Feb 2021 00:39:44 +0000 (00:39 +0000)]
Merge "Rename for updating BluetoothA2dp API naming" am: 2443531023

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id8d054015deabd492d92dfb3c93f41c5735246e6

3 years agoMerge "Add explicit rate units for SCO fields" am: ec25c520ed
Treehugger Robot [Wed, 24 Feb 2021 00:38:37 +0000 (00:38 +0000)]
Merge "Add explicit rate units for SCO fields" am: ec25c520ed

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic6582b7576547b9be28cddb4bd60f40653e77e16

3 years agoMerge "Surface ACL disconnect reasons from native to Java" am: ff63225f82
Andrew Cheng [Tue, 23 Feb 2021 23:38:25 +0000 (23:38 +0000)]
Merge "Surface ACL disconnect reasons from native to Java" am: ff63225f82

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie1d0be92648da4263af4b68473161e105035c0fe

3 years agobtaa: route HCI packet to BTAA module
Michael Sun [Wed, 30 Dec 2020 23:57:53 +0000 (23:57 +0000)]
btaa: route HCI packet to BTAA module

Route HCI packets to BTAA for attribution analysis processing.

Tag: #feature
Bug: 177230507
Test: mmma -j system/bt
BYPASS_LONG_LINES_REASON: consist with gd format

Change-Id: Ic26c472758547fa7eeac1ff39c81a78c2545ad5d

3 years agoStabilize hci_layer_test
Jakub Pawlowski [Tue, 23 Feb 2021 18:26:22 +0000 (19:26 +0100)]
Stabilize hci_layer_test

Currently this test fails around 1 every 10 runs, with null pointer
exception.

Bug: 177907117
Tag: #feature
Test: atest bluetooth_test_gd --gtest_filter=HciTest.receiveMultiple* --gtest_repeat=100
Change-Id: I58de30ae493dc1a2764e36a4451906218632fd47

3 years agoMerge changes I5c8ad512,Idce102cd
Jakub Pawlowski [Tue, 23 Feb 2021 15:44:22 +0000 (15:44 +0000)]
Merge changes I5c8ad512,Idce102cd

* changes:
  Support Bluetooth HAL 1.1 in GD
  Rust HAL: Store header size as constant rather than enum

3 years agoMerge "BluetoothAudioHAL: Don't cache the providers factory locally"
Treehugger Robot [Tue, 23 Feb 2021 15:11:05 +0000 (15:11 +0000)]
Merge "BluetoothAudioHAL: Don't cache the providers factory locally"

3 years agoSupport Bluetooth HAL 1.1 in GD
Jakub Pawlowski [Tue, 23 Feb 2021 08:10:38 +0000 (09:10 +0100)]
Support Bluetooth HAL 1.1 in GD

Because ISO support is coming

Bug: 177907117
Tag: #feature
Test: run GD stack on device supporting 1.1HAL, verify it's choosen
Change-Id: I5c8ad512b93be443e09c02a435f9fd08179e4367

3 years agoRust HAL: Store header size as constant rather than enum
Jakub Pawlowski [Tue, 23 Feb 2021 10:35:53 +0000 (11:35 +0100)]
Rust HAL: Store header size as constant rather than enum

Enums are not appropriate here, headers size can be equal, i.e. for ACL
and upcoming ISO packets.

Bug: 177907117
Tag: #feature
Test: compilation
Change-Id: Idce102cd4f42fb37c723129e80671cedb5c6858a

3 years agoBluetoothAudioHAL: Don't cache the providers factory locally
Cheney Ni [Tue, 23 Feb 2021 12:03:45 +0000 (20:03 +0800)]
BluetoothAudioHAL: Don't cache the providers factory locally

This object is provided by Audio HAL, and we should get the
service every time while fetching a provider. It fixes the crash
which is due to out-of-sync in case of Audio HAL restarting.

Fixes: 173538746
Tag: #stability
Test: atest bluetooth-test-audio-hal-interface
      restart Audio HAL when Bluetooth is ON
Change-Id: I1e88136c768a1d5fdcd70cfd9e5f1a3a13645333

3 years agoMerge "Merge ab/7061308 into stage." into stage-aosp-master
TreeHugger Robot [Tue, 23 Feb 2021 08:43:25 +0000 (08:43 +0000)]
Merge "Merge ab/7061308 into stage." into stage-aosp-master

3 years agoFix the delta_time_ms types mismtach in btsnooz.py
Alice Kuo [Tue, 23 Feb 2021 03:11:12 +0000 (11:11 +0800)]
Fix the delta_time_ms types mismtach in btsnooz.py

The delta_time_ms field in btif_debug_btsnoop.h is 32 bits. The offset
count for 64 bits, and cause the decoder error. Change the offset back
for 32 bits.

Bug: 175283029
Test: ./btsnooz.py bugreport-WXYZ.txt
Change-Id: I28324c4ff33ab817dbad5c813616a8e8c994ff2a

3 years agoUnbind gd_base_test from ACTS
Jizheng Chu [Tue, 23 Feb 2021 02:49:36 +0000 (18:49 -0800)]
Unbind gd_base_test from ACTS

Test: gd/cert/run
Change-Id: If09e5ef2296e8964217e9542c1269549eb5e1b93

3 years agoMerge "Rename for updating BluetoothA2dp API naming"
More Kuo [Tue, 23 Feb 2021 02:37:41 +0000 (02:37 +0000)]
Merge "Rename for updating BluetoothA2dp API naming"

3 years agoMerge "Add explicit rate units for SCO fields"
Treehugger Robot [Mon, 22 Feb 2021 21:13:39 +0000 (21:13 +0000)]
Merge "Add explicit rate units for SCO fields"

3 years agoMerge "Surface ACL disconnect reasons from native to Java"
Andrew Cheng [Mon, 22 Feb 2021 19:25:13 +0000 (19:25 +0000)]
Merge "Surface ACL disconnect reasons from native to Java"

3 years agoUse Builders for Iso and Sco am: d5ddc63609
Myles Watson [Mon, 22 Feb 2021 17:22:02 +0000 (17:22 +0000)]
Use Builders for Iso and Sco am: d5ddc63609

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0f18413c10f8dfec22c6e58d07ba8e7aef1d6e53

3 years agoMerge ab/7061308 into stage.
Xin Li [Sun, 21 Feb 2021 17:25:20 +0000 (09:25 -0800)]
Merge ab/7061308 into stage.

Bug: 180401296
Test: Manual
Tag: #compatibility
Merged-In: I7e4d41466d34c565f4f0f410292f84642c8ee1dd
Change-Id: I13a069c9e36cc2e91f51883e82243f3ad7f77cac

3 years agoUse Builders for Iso and Sco
Myles Watson [Sat, 20 Feb 2021 04:57:57 +0000 (20:57 -0800)]
Use Builders for Iso and Sco

Change-Id: Ic0b237d6b48d3b7fe5b190a74940cb7eab3f9d14

3 years agoMerge "Packet: Remove non-standard iterator cases" am: 32467ca636
Myles Watson [Sat, 20 Feb 2021 05:30:21 +0000 (05:30 +0000)]
Merge "Packet: Remove non-standard iterator cases" am: 32467ca636

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia4aff902ec19e235d02a90b9eee92ff089972cc6

3 years agoAdd explicit rate units for SCO fields
Chris Manton [Fri, 19 Feb 2021 21:33:12 +0000 (13:33 -0800)]
Add explicit rate units for SCO fields

Bug: 175844355
Test: gd/cert/run
Tag: #gd-refactor
Change-Id: I2ecc05a2ef46016929afedeafd44ef7d9a77f333

3 years agoMerge "Packet: Remove non-standard iterator cases"
Myles Watson [Sat, 20 Feb 2021 04:47:25 +0000 (04:47 +0000)]
Merge "Packet: Remove non-standard iterator cases"

3 years agoSurface ACL disconnect reasons from native to Java
Andrew Cheng [Fri, 15 Jan 2021 01:28:13 +0000 (17:28 -0800)]
Surface ACL disconnect reasons from native to Java

HCI disconnect commands and events have an accompanying "reason"
parameter comprising of a HCI error code. This can be useful in both
debugging and re-connection logic at the Java level.

This CL grabs the HCI codes from native and passes it up to Java via an
extra parameter to existing ACL connection callbacks.

Tag: #feature
Bug: 177668957
Test: atest net_test_bluetooth # verify no regressions
Test: atest bluetoothtbd_test # verify no regressions
Test: atest bt_headless # verify test still builds
Test: manually disconnect local and remote devices and check logcats
from Java layer for disconnect reasons

Change-Id: Idcb1711345b515c5f60e55430352f5f4ff252d69

3 years agoMerge changes I026085cc,I7b090528,I0223c420,I3884a9b3 am: ddc0331c2d
Chris Manton [Sat, 20 Feb 2021 01:53:06 +0000 (01:53 +0000)]
Merge changes I026085cc,I7b090528,I0223c420,I3884a9b3 am: ddc0331c2d

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I00558e8d1b535fcc6a96be4cdf95f5c40c84f3f2

3 years agoMerge changes I453ace5a,I6184560e am: 872d614c0f
Myles Watson [Sat, 20 Feb 2021 01:52:11 +0000 (01:52 +0000)]
Merge changes I453ace5a,I6184560e am: 872d614c0f

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie4c21bbe5c4d8fc863de9e4d9aa362cac55afafa

3 years agoMerge changes I026085cc,I7b090528,I0223c420,I3884a9b3
Chris Manton [Sat, 20 Feb 2021 01:50:08 +0000 (01:50 +0000)]
Merge changes I026085cc,I7b090528,I0223c420,I3884a9b3

* changes:
  Re-include bta/av/bta_av_api.cc
  Re-include bta/av/bta_av_act.cc
  Re-include bta/av/bta_av_aact.cc
  Re-include bta/ar/bta_ar.cc

3 years agoMerge changes I453ace5a,I6184560e
Myles Watson [Sat, 20 Feb 2021 01:24:03 +0000 (01:24 +0000)]
Merge changes I453ace5a,I6184560e

* changes:
  RootCanal: Support LeReadRemoteFeatures
  RootCanal: Send LeReadRemoteFeaturesStatus

3 years agobtaa: add btaa btif implementation am: c33a6b3acc
Michael Sun [Sat, 20 Feb 2021 01:18:26 +0000 (01:18 +0000)]
btaa: add btaa btif implementation am: c33a6b3acc

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I86ba41f9ea7506023f19f91e387e6901f8e08aa0