OSDN Git Service

android-x86/system-bt.git
3 years agoMerge "RootCanal: Allow both sides to have OOB data" am: 7c8a8ef8e3 am: b12991cac2
Treehugger Robot [Thu, 19 Nov 2020 22:03:18 +0000 (22:03 +0000)]
Merge "RootCanal: Allow both sides to have OOB data" am: 7c8a8ef8e3 am: b12991cac2

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

Change-Id: Iea5c7dba585c0712e444bbda00bc7a404c519413

3 years agoIntroduce LE COC security enforcement shim am: 43383c4e49 am: ecdc225507
Hansong Zhang [Thu, 19 Nov 2020 22:03:06 +0000 (22:03 +0000)]
Introduce LE COC security enforcement shim am: 43383c4e49 am: ecdc225507

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

Change-Id: Ica5ed675820433c5a45e4ec96f46f1ac9ff5edf9

3 years agoMerge "RootCanal: Allow both sides to have OOB data" am: 7c8a8ef8e3
Treehugger Robot [Thu, 19 Nov 2020 21:49:42 +0000 (21:49 +0000)]
Merge "RootCanal: Allow both sides to have OOB data" am: 7c8a8ef8e3

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

Change-Id: I1494ba6173d1a220835ced65b8bcd2ec9450f187

3 years agoMerge "RootCanal: Allow both sides to have OOB data"
Treehugger Robot [Thu, 19 Nov 2020 21:42:34 +0000 (21:42 +0000)]
Merge "RootCanal: Allow both sides to have OOB data"

3 years agoIntroduce LE COC security enforcement shim am: 43383c4e49
Hansong Zhang [Thu, 19 Nov 2020 21:27:28 +0000 (21:27 +0000)]
Introduce LE COC security enforcement shim am: 43383c4e49

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

Change-Id: I86686a650e4a3b1b77ceed93dfa195eefac3fced

3 years agoMerge changes Ic66d8fcd,I9ffbe874,I59e6926b,I1fb172f7,I0eb60ace, ... am: ee5cdae366...
Zach Johnson [Thu, 19 Nov 2020 19:30:13 +0000 (19:30 +0000)]
Merge changes Ic66d8fcd,I9ffbe874,I59e6926b,I1fb172f7,I0eb60ace, ... am: ee5cdae366 am: d825173fb5

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

Change-Id: Iebf9eeba132cc6f8d3fa109d9d44a92dcb6aaa23

3 years agoIntroduce LE COC security enforcement shim
Hansong Zhang [Tue, 17 Nov 2020 23:13:51 +0000 (15:13 -0800)]
Introduce LE COC security enforcement shim

Tag: #gd-refactor
Bug: 141555841
Test: cert/run --host
Test: Pair and connect with a headset
Change-Id: Iad2d1e71582886c05a4c7df39cc85735cb3f8abf

3 years agoMerge changes Ic66d8fcd,I9ffbe874,I59e6926b,I1fb172f7,I0eb60ace, ... am: ee5cdae366
Zach Johnson [Thu, 19 Nov 2020 19:14:42 +0000 (19:14 +0000)]
Merge changes Ic66d8fcd,I9ffbe874,I59e6926b,I1fb172f7,I0eb60ace, ... am: ee5cdae366

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

Change-Id: I85ef1eb82c1763a19189ef1b5de7bcebb69328dc

3 years agoMerge changes Ic66d8fcd,I9ffbe874,I59e6926b,I1fb172f7,I0eb60ace, ...
Zach Johnson [Thu, 19 Nov 2020 18:36:42 +0000 (18:36 +0000)]
Merge changes Ic66d8fcd,I9ffbe874,I59e6926b,I1fb172f7,I0eb60ace, ...

* changes:
  Add some wait commands inside PyHal
  Simplify scan parameters & start/stop
  Simplify le random address setting for tests
  Simplify le connection logic for SimpleHalTest
  Simplify Le connect logic for SimpleHalTest
  Simplify advertisement in SimpleHalTest
  Add HciMatchers.Exactly, for more compact tests
  Add HAL reset helper
  Add advertisement abstraction in PyHal
  Add an advertisment abstraction to PyHci

3 years agogd: Add hci error code CONNECTION_FAILED_ESTABLISHMENT am: 787e582564 am: cdb54ca6ac
Chris Manton [Thu, 19 Nov 2020 08:23:12 +0000 (08:23 +0000)]
gd: Add hci error code CONNECTION_FAILED_ESTABLISHMENT am: 787e582564 am: cdb54ca6ac

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

Change-Id: I428cd6b280f3c725aab346c88d1d8716cbfcf7f6

3 years agogd: Add hci error code CONNECTION_FAILED_ESTABLISHMENT am: 787e582564
Chris Manton [Thu, 19 Nov 2020 08:02:29 +0000 (08:02 +0000)]
gd: Add hci error code CONNECTION_FAILED_ESTABLISHMENT am: 787e582564

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

Change-Id: I488516932223adf230a7f09f9313bbc6a2f96e2a

3 years agogd: Add hci error code CONNECTION_FAILED_ESTABLISHMENT
Chris Manton [Wed, 18 Nov 2020 20:51:18 +0000 (12:51 -0800)]
gd: Add hci error code CONNECTION_FAILED_ESTABLISHMENT

Occurs when a connection ACL is requested to a given
device but there is already an existing ACL connection.

Bug: 145832107
Test: gd/cert/run --host
Tag: #refactor
Change-Id: I609374ba9376f2a1056971fc514d97615931c62a

3 years agoMerge changes I333524dc,Ia460804d,I90cfe69e,I848e344b,Ie9108602, ... am: 1ccacbef6e...
Zach Johnson [Thu, 19 Nov 2020 05:44:30 +0000 (05:44 +0000)]
Merge changes I333524dc,Ia460804d,I90cfe69e,I848e344b,Ie9108602, ... am: 1ccacbef6e am: adfd9a11d9

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

Change-Id: I86e010c59e25329728e0c1860810cb6393202824

3 years agoMerge changes I333524dc,Ia460804d,I90cfe69e,I848e344b,Ie9108602, ... am: 1ccacbef6e
Zach Johnson [Thu, 19 Nov 2020 05:22:29 +0000 (05:22 +0000)]
Merge changes I333524dc,Ia460804d,I90cfe69e,I848e344b,Ie9108602, ... am: 1ccacbef6e

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

Change-Id: I39f1c3b321ff43daad5d6cd353e50dd608799b2c

3 years agoMerge changes I333524dc,Ia460804d,I90cfe69e,I848e344b,Ie9108602, ...
Zach Johnson [Thu, 19 Nov 2020 04:49:39 +0000 (04:49 +0000)]
Merge changes I333524dc,Ia460804d,I90cfe69e,I848e344b,Ie9108602, ...

* changes:
  Add read_own_addres to PyHal
  Simplify ACL connection components of DirectHciTest
  Add send_acl_first to PyHal, to simplify redundancy
  Fold ACL sending into PyHal
  Simplify ACL sending in SimpleHalTest
  Add shortcut for enabling inquiry in PyHal
  Simplify DirectHciTest send_hal_acl_data
  Add HciMatchers.LoopbackOf to avoid imprecise matching
  Improve signal to noise in DirectHciTest
  DirectHciTest, remove send_hal_hci_command
  Improve hci facade proto

3 years agoRootCanal: Allow both sides to have OOB data
Myles Watson [Thu, 19 Nov 2020 01:16:59 +0000 (17:16 -0800)]
RootCanal: Allow both sides to have OOB data

Bug: 162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Change-Id: I1c30296ec80aaac883fc3012982bf6fb76c34771

3 years agoMerge "remove invalid test, restucture simple_hal_test" am: 9a230a5e0c am: ea87ea1421
Zach Johnson [Wed, 18 Nov 2020 23:28:27 +0000 (23:28 +0000)]
Merge "remove invalid test, restucture simple_hal_test" am: 9a230a5e0c am: ea87ea1421

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

Change-Id: Ie4d83d43531e9082b1336182a097f9261d3934f5

3 years agoMerge "remove invalid test, restucture simple_hal_test" am: 9a230a5e0c
Zach Johnson [Wed, 18 Nov 2020 23:12:03 +0000 (23:12 +0000)]
Merge "remove invalid test, restucture simple_hal_test" am: 9a230a5e0c

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

Change-Id: Ic173b93e33f397c29f7cbe164289669b3fd0fec4

3 years agoAdd some wait commands inside PyHal
Zach Johnson [Sat, 14 Nov 2020 23:50:00 +0000 (15:50 -0800)]
Add some wait commands inside PyHal

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: Ic66d8fcd09f3c930de0a8b1063ec355e86df4d20

3 years agoSimplify scan parameters & start/stop
Zach Johnson [Sat, 14 Nov 2020 23:12:41 +0000 (15:12 -0800)]
Simplify scan parameters & start/stop

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I9ffbe874bf84e338bd1d38873fbecac6f83fa9b5

3 years agoSimplify le random address setting for tests
Zach Johnson [Sat, 14 Nov 2020 23:06:34 +0000 (15:06 -0800)]
Simplify le random address setting for tests

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I59e6926bb00b377b3580742800fbe2743c067181

3 years agoSimplify le connection logic for SimpleHalTest
Zach Johnson [Sat, 14 Nov 2020 23:00:43 +0000 (15:00 -0800)]
Simplify le connection logic for SimpleHalTest

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I1fb172f75ccd01fd449af2748ea9885991822594

3 years agoSimplify Le connect logic for SimpleHalTest
Zach Johnson [Sat, 14 Nov 2020 22:52:03 +0000 (14:52 -0800)]
Simplify Le connect logic for SimpleHalTest

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I0eb60ace4e5b354803fcbb331484cbb556f86e0f

3 years agoSimplify advertisement in SimpleHalTest
Zach Johnson [Sat, 14 Nov 2020 21:39:14 +0000 (13:39 -0800)]
Simplify advertisement in SimpleHalTest

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I297cfeac69b143d5783122f1ec103fd67af11446

3 years agoAdd read_own_addres to PyHal
Zach Johnson [Fri, 13 Nov 2020 05:34:43 +0000 (21:34 -0800)]
Add read_own_addres to PyHal

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I333524dcc50d7f9cc586ab66514cab04908686ab

3 years agoAdd HciMatchers.Exactly, for more compact tests
Zach Johnson [Sat, 14 Nov 2020 21:28:09 +0000 (13:28 -0800)]
Add HciMatchers.Exactly, for more compact tests

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: If87927d3e491f234000b7c9321832897e91bba04

3 years agoSimplify ACL connection components of DirectHciTest
Zach Johnson [Fri, 13 Nov 2020 05:22:22 +0000 (21:22 -0800)]
Simplify ACL connection components of DirectHciTest

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: Ia460804d5a8654b3ba305ca414ba1797498aecd3

3 years agoAdd HAL reset helper
Zach Johnson [Sat, 14 Nov 2020 20:48:57 +0000 (12:48 -0800)]
Add HAL reset helper

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: Ia2df0a7e05e8d8fccc8af5005c3fb2e4a5d6a6fe

3 years agoAdd send_acl_first to PyHal, to simplify redundancy
Zach Johnson [Fri, 13 Nov 2020 04:36:10 +0000 (20:36 -0800)]
Add send_acl_first to PyHal, to simplify redundancy

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I90cfe69ec30ed6b92366df81874c2ab30abe7f84

3 years agoAdd advertisement abstraction in PyHal
Zach Johnson [Fri, 13 Nov 2020 18:16:32 +0000 (10:16 -0800)]
Add advertisement abstraction in PyHal

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I07d3bb46876f86fb2aba74b49cddde7425703937

3 years agoFold ACL sending into PyHal
Zach Johnson [Fri, 13 Nov 2020 04:22:27 +0000 (20:22 -0800)]
Fold ACL sending into PyHal

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I848e344bca3b4b2516a061fdd3c221a5a9409db4

3 years agoAdd an advertisment abstraction to PyHci
Zach Johnson [Fri, 13 Nov 2020 06:23:41 +0000 (22:23 -0800)]
Add an advertisment abstraction to PyHci

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I919e9769023f53ac645313a151fdff8e70417e26

3 years agoSimplify ACL sending in SimpleHalTest
Zach Johnson [Fri, 13 Nov 2020 04:17:56 +0000 (20:17 -0800)]
Simplify ACL sending in SimpleHalTest

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: Ie9108602b0b23701a0cf9c98c4a3f314db389dd1

3 years agoAdd shortcut for enabling inquiry in PyHal
Zach Johnson [Fri, 13 Nov 2020 04:09:30 +0000 (20:09 -0800)]
Add shortcut for enabling inquiry in PyHal

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I74197927c8a61b9ab970557a9f49830b26b2d876

3 years agoSimplify DirectHciTest send_hal_acl_data
Zach Johnson [Fri, 13 Nov 2020 03:52:55 +0000 (19:52 -0800)]
Simplify DirectHciTest send_hal_acl_data

first step towards more general code

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I4957acd5868f4d079fdffb255df16200e919429b

3 years agoAdd HciMatchers.LoopbackOf to avoid imprecise matching
Zach Johnson [Fri, 13 Nov 2020 02:09:49 +0000 (18:09 -0800)]
Add HciMatchers.LoopbackOf to avoid imprecise matching

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: Id9b18af3075225b3ac09a6af485d424476151b33

3 years agoImprove signal to noise in DirectHciTest
Zach Johnson [Fri, 13 Nov 2020 00:53:45 +0000 (16:53 -0800)]
Improve signal to noise in DirectHciTest

import concrete objects instead of hci_packets.xyz everywhere

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: Ie906397e586ee6c12ef533d9201f7e11f4ca5f35

3 years agoDirectHciTest, remove send_hal_hci_command
Zach Johnson [Fri, 13 Nov 2020 00:20:14 +0000 (16:20 -0800)]
DirectHciTest, remove send_hal_hci_command

call to the PyHal helper instead

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host DirectHciTest
Change-Id: I432c0ccd92b8dd717fda943952605062fa6e8d23

3 years agoImprove hci facade proto
Zach Johnson [Fri, 13 Nov 2020 00:16:05 +0000 (16:16 -0800)]
Improve hci facade proto

reduce redundant or extra words

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I3994dcf0cb41784a660e6c28987b9be306f42d87

3 years agoMerge "remove invalid test, restucture simple_hal_test"
Zach Johnson [Wed, 18 Nov 2020 22:09:19 +0000 (22:09 +0000)]
Merge "remove invalid test, restucture simple_hal_test"

3 years agoMerge changes I9b41e751,If93d4d62 am: e42776fefe am: dfb2127ad3
Zach Johnson [Wed, 18 Nov 2020 17:40:11 +0000 (17:40 +0000)]
Merge changes I9b41e751,If93d4d62 am: e42776fefe am: dfb2127ad3

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

Change-Id: I6251fc3a412e192b935a370246d704522158acb6

3 years agoMerge "RootCanal: Allow only the peer to have OOB data" am: 00bc7f3b95 am: f55ae86565
Treehugger Robot [Wed, 18 Nov 2020 17:39:50 +0000 (17:39 +0000)]
Merge "RootCanal: Allow only the peer to have OOB data" am: 00bc7f3b95 am: f55ae86565

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

Change-Id: I0942ffab6aed892d398f1fe09b417894e2906169

3 years agoMerge changes I9b41e751,If93d4d62 am: e42776fefe
Zach Johnson [Wed, 18 Nov 2020 17:28:32 +0000 (17:28 +0000)]
Merge changes I9b41e751,If93d4d62 am: e42776fefe

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

Change-Id: Idbb83d3c4669a790d87cb67211771f23669f5289

3 years agoMerge "RootCanal: Allow only the peer to have OOB data" am: 00bc7f3b95
Treehugger Robot [Wed, 18 Nov 2020 17:28:22 +0000 (17:28 +0000)]
Merge "RootCanal: Allow only the peer to have OOB data" am: 00bc7f3b95

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

Change-Id: Ie2fb5b7639f7d9a97084c6713f63f7a1705b9c63

3 years agoMerge changes I9b41e751,If93d4d62
Zach Johnson [Wed, 18 Nov 2020 17:20:31 +0000 (17:20 +0000)]
Merge changes I9b41e751,If93d4d62

* changes:
  rusty-gd: plumb through ACL in the hal
  rusty-gd: plumb through commands and events for the hci hal facade

3 years agoMerge "RootCanal: Allow only the peer to have OOB data"
Treehugger Robot [Wed, 18 Nov 2020 17:08:57 +0000 (17:08 +0000)]
Merge "RootCanal: Allow only the peer to have OOB data"

3 years agoMerge "shim: check subevent for advertising module" am: d675419563 am: 06a17beab3
Treehugger Robot [Wed, 18 Nov 2020 06:30:42 +0000 (06:30 +0000)]
Merge "shim: check subevent for advertising module" am: d675419563 am: 06a17beab3

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

Change-Id: I8dde8b3162e53cd7af92988e5e26b604d89d9a3d

3 years agoMerge "shim: check subevent for advertising module" am: d675419563
Treehugger Robot [Wed, 18 Nov 2020 06:17:18 +0000 (06:17 +0000)]
Merge "shim: check subevent for advertising module" am: d675419563

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

Change-Id: I326f2fd655b20bf3735df4e4879435feded83ddb

3 years agoMerge "shim: check subevent for advertising module"
Treehugger Robot [Wed, 18 Nov 2020 05:56:49 +0000 (05:56 +0000)]
Merge "shim: check subevent for advertising module"

3 years agoHci layer: Minor clean up am: 96ed87bb6a am: 7290083f6a
Hansong Zhang [Wed, 18 Nov 2020 03:25:50 +0000 (03:25 +0000)]
Hci layer: Minor clean up am: 96ed87bb6a am: 7290083f6a

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

Change-Id: I05cfdc48b337d2057e892d97b0f2f1fdc4a41f3e

3 years agoRootCanal: Allow only the peer to have OOB data
Myles Watson [Wed, 18 Nov 2020 03:02:43 +0000 (19:02 -0800)]
RootCanal: Allow only the peer to have OOB data

Bug: 162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Change-Id: I9ea880d906ac607e659f1532dd093127fa0f7e0a

3 years agoHci layer: Minor clean up am: 96ed87bb6a
Hansong Zhang [Wed, 18 Nov 2020 03:03:21 +0000 (03:03 +0000)]
Hci layer: Minor clean up am: 96ed87bb6a

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

Change-Id: I6f3f3ce8d626b676990e406b6a23cb98ae3eaaf5

3 years agoHci layer: Minor clean up
Hansong Zhang [Tue, 17 Nov 2020 23:05:15 +0000 (15:05 -0800)]
Hci layer: Minor clean up

Tag: #gd-refactor
Bug: 141555841
Test: cert/run --host
Change-Id: I5498e56285a6523d0ce3199777c5677e9fdf6bbc

3 years agoMerge "enum-ify stack/include/bt_types::BT_PSM_" am: 002d2025db am: 6ea19a5ec6
Chris Manton [Wed, 18 Nov 2020 01:13:56 +0000 (01:13 +0000)]
Merge "enum-ify stack/include/bt_types::BT_PSM_" am: 002d2025db am: 6ea19a5ec6

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

Change-Id: Ifea11e4c76ec47caacc49cc0aefd7aa96870ab7c

3 years agoL2cap shim improvement am: b2a3ce4a4f am: 404ffb6662
Hansong Zhang [Wed, 18 Nov 2020 01:13:44 +0000 (01:13 +0000)]
L2cap shim improvement am: b2a3ce4a4f am: 404ffb6662

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

Change-Id: Ia993ea348893c7f7800acf6a70817ad8c9d7fa70

3 years agoL2cap shim: Add role switch am: 505b823e81 am: 28bdd68fde
Hansong Zhang [Wed, 18 Nov 2020 01:13:32 +0000 (01:13 +0000)]
L2cap shim: Add role switch am: 505b823e81 am: 28bdd68fde

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

Change-Id: I8bb61b2f50ecfdd96976ef430762add51a3d8833

3 years agoMerge "enum-ify stack/include/bt_types::BT_PSM_" am: 002d2025db
Chris Manton [Wed, 18 Nov 2020 01:12:52 +0000 (01:12 +0000)]
Merge "enum-ify stack/include/bt_types::BT_PSM_" am: 002d2025db

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

Change-Id: Icdd2fed488065d28633f374daa0028afbf0d5bf5

3 years agoMerge "enum-ify stack/include/bt_types::BT_PSM_"
Chris Manton [Wed, 18 Nov 2020 00:50:23 +0000 (00:50 +0000)]
Merge "enum-ify stack/include/bt_types::BT_PSM_"

3 years agoL2cap shim improvement am: b2a3ce4a4f
Hansong Zhang [Wed, 18 Nov 2020 00:47:53 +0000 (00:47 +0000)]
L2cap shim improvement am: b2a3ce4a4f

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

Change-Id: I6cdffee424b31f4a96924fb4e07b4432fafab527

3 years agoL2cap shim: Add role switch am: 505b823e81
Hansong Zhang [Wed, 18 Nov 2020 00:47:04 +0000 (00:47 +0000)]
L2cap shim: Add role switch am: 505b823e81

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

Change-Id: I71e9b334e3a659c64362c3ac6ac65b3c75934167

3 years agoL2cap shim improvement
Hansong Zhang [Thu, 5 Nov 2020 23:41:54 +0000 (15:41 -0800)]
L2cap shim improvement

Implement ReadRemoteVersion in L2cap shim.
Notify BTA layer directly when connection is up/down.

Tag: #gd-refactor
Bug: 141555841
Test: cert/run --host
Test: Pair and connect with a headset
Change-Id: I193bb24c52f06039359aeda84d68f429d60bf33b

3 years agoL2cap shim: Add role switch
Hansong Zhang [Thu, 5 Nov 2020 23:35:45 +0000 (15:35 -0800)]
L2cap shim: Add role switch

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I7fd643ca263e47a4d1f28ee87c72622774c61469

3 years agoenum-ify stack/include/bt_types::BT_PSM_
Chris Manton [Fri, 13 Nov 2020 23:55:42 +0000 (15:55 -0800)]
enum-ify stack/include/bt_types::BT_PSM_

Toward readable code

Bug: 163134718
Tag: #refactor
Test: CtsVerifier

Change-Id: Icf24f483a807c28763bf677f5d01b13cc3c9c553

3 years agoacl: Implement ReadRemoteVersionInformation for LE am: 069cec9494 am: e79f147f94
Myles Watson [Tue, 17 Nov 2020 21:24:29 +0000 (21:24 +0000)]
acl: Implement ReadRemoteVersionInformation for LE am: 069cec9494 am: e79f147f94

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

Change-Id: I5eefdcf76114a6b03ff8a0a722ae9dc32972e80f

3 years agoacl: Remove DisconnectorForLe am: c74a4365cb am: 486dfe939c
Myles Watson [Tue, 17 Nov 2020 21:24:07 +0000 (21:24 +0000)]
acl: Remove DisconnectorForLe am: c74a4365cb am: 486dfe939c

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

Change-Id: Ib427eb49fe1aa6056a4e1b2442c966d6402a9040

3 years agoacl: Implement ReadRemoteVersionInformation for LE am: 069cec9494
Myles Watson [Tue, 17 Nov 2020 20:51:09 +0000 (20:51 +0000)]
acl: Implement ReadRemoteVersionInformation for LE am: 069cec9494

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

Change-Id: I585de35c23e7a8ddb851803c22b0254cde05274e

3 years agoacl: Remove DisconnectorForLe am: c74a4365cb
Myles Watson [Tue, 17 Nov 2020 20:50:54 +0000 (20:50 +0000)]
acl: Remove DisconnectorForLe am: c74a4365cb

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

Change-Id: I6e35b8638ea8ad9def089a1781491e6fc24e57e5

3 years agoAdd AclCommands for LE and BR/EDR am: d8817d9c21 am: 46342c498a
Myles Watson [Tue, 17 Nov 2020 19:13:05 +0000 (19:13 +0000)]
Add AclCommands for LE and BR/EDR am: d8817d9c21 am: 46342c498a

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

Change-Id: I0b5f08556236d7494edb6ff5ac7b68f9b2fbbd6b

3 years agoAdd AclCommands for LE and BR/EDR am: d8817d9c21
Myles Watson [Tue, 17 Nov 2020 18:58:57 +0000 (18:58 +0000)]
Add AclCommands for LE and BR/EDR am: d8817d9c21

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

Change-Id: I093d3c23a79a0ea9cd4de78bb8917abf544c60d1

3 years agoremove invalid test, restucture simple_hal_test
Zach Johnson [Thu, 12 Nov 2020 20:57:34 +0000 (12:57 -0800)]
remove invalid test, restucture simple_hal_test

use PyHal abstractions

test_none_event only passed on C++ gd because the reset event
was dropped because the test had not yet asked for the event
stream.

doesn't happen with rust, so the test was failing. by using the
abstractions, the stream gets registered before anthing happens
so the behavior is consistent.

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost SimpleHalTest
Change-Id: I88e7cc45d194030fdff10a247ff8bc09e6473bb5

3 years agorusty-gd: plumb through ACL in the hal
Zach Johnson [Thu, 12 Nov 2020 01:43:29 +0000 (17:43 -0800)]
rusty-gd: plumb through ACL in the hal

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost SimpleHalTest
Change-Id: I9b41e7515384d062155dbb414ce79394c1abcd36

3 years agorusty-gd: plumb through commands and events for the hci hal facade
Zach Johnson [Wed, 11 Nov 2020 23:19:48 +0000 (15:19 -0800)]
rusty-gd: plumb through commands and events for the hci hal facade

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost SimpleHalTest
Change-Id: If93d4d62e3c4d030fdf94082172c00dcb2ca47e8

3 years agoacl: Implement ReadRemoteVersionInformation for LE
Myles Watson [Tue, 17 Nov 2020 17:35:54 +0000 (09:35 -0800)]
acl: Implement ReadRemoteVersionInformation for LE

Bug: 172725986
Test: atest bluetooth_test_gd
Tag: #gd-refactor
Change-Id: I114c5510ea8396244c68b11b333249092333cff9

3 years agoacl: Remove DisconnectorForLe
Myles Watson [Tue, 17 Nov 2020 15:30:54 +0000 (07:30 -0800)]
acl: Remove DisconnectorForLe

Bug: 172725986
Test: atest bluetooth_test_gd
Tag: #gd-refactor
Change-Id: Id9a5dcbba3f4be0490baa13d3ff538f0f2158c5c

3 years agoAdd AclCommands for LE and BR/EDR
Myles Watson [Tue, 17 Nov 2020 05:24:21 +0000 (21:24 -0800)]
Add AclCommands for LE and BR/EDR

Bug: 172725986
Test: atest bluetooth_test_gd
Tag: #gd-refactor
Change-Id: I822ce0751be08a98a30c219853e1540e2e461a08

3 years agoMerge "hci: Close linter IfChange block" am: 9e200db844 am: abf4736287
Treehugger Robot [Tue, 17 Nov 2020 07:55:25 +0000 (07:55 +0000)]
Merge "hci: Close linter IfChange block" am: 9e200db844 am: abf4736287

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

Change-Id: Ibcaa1eae86cf50d9393c1135eb5b51800f5395ff

3 years agoMerge "hci: Close linter IfChange block" am: 9e200db844
Treehugger Robot [Tue, 17 Nov 2020 07:40:09 +0000 (07:40 +0000)]
Merge "hci: Close linter IfChange block" am: 9e200db844

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

Change-Id: I0f32129b7bfbec89cd81867961a0c13fb0c813f1

3 years agoMerge "hci: Close linter IfChange block"
Treehugger Robot [Tue, 17 Nov 2020 07:03:43 +0000 (07:03 +0000)]
Merge "hci: Close linter IfChange block"

3 years agohci: Close linter IfChange block
Myles Watson [Tue, 17 Nov 2020 05:34:20 +0000 (21:34 -0800)]
hci: Close linter IfChange block

Bug: 172725986
Test: Upload CL and look for the linter complaining
Tag: #gd-refactor
Change-Id: Iadc778588d6ef95253c1efa4459c39feca845498

3 years agoMerge "btaa: do not initialize btaa module if init flag set to false" am: aba2e1297f...
Treehugger Robot [Tue, 17 Nov 2020 02:02:54 +0000 (02:02 +0000)]
Merge "btaa: do not initialize btaa module if init flag set to false" am: aba2e1297f am: b5c9645969

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

Change-Id: Ia685a7f101c619de25c864be493645f9c097ebcf

3 years agoMerge "btaa: do not initialize btaa module if init flag set to false" am: aba2e1297f
Treehugger Robot [Tue, 17 Nov 2020 01:48:59 +0000 (01:48 +0000)]
Merge "btaa: do not initialize btaa module if init flag set to false" am: aba2e1297f

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

Change-Id: Id4c226e3d843e7d321be2a4cd31141dae2613255

3 years agoMerge "btaa: do not initialize btaa module if init flag set to false"
Treehugger Robot [Tue, 17 Nov 2020 01:06:41 +0000 (01:06 +0000)]
Merge "btaa: do not initialize btaa module if init flag set to false"

3 years agoMerge "btaa: null check btaa instance when receiving callback from SystemSuspend...
Treehugger Robot [Tue, 17 Nov 2020 00:25:32 +0000 (00:25 +0000)]
Merge "btaa: null check btaa instance when receiving callback from SystemSuspend" am: f19cd47609 am: 4d37661176

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

Change-Id: I0eaadd9d9c434c37f51babddf46503df1ed66244

3 years agoMerge "btaa: null check btaa instance when receiving callback from SystemSuspend...
Treehugger Robot [Mon, 16 Nov 2020 23:54:17 +0000 (23:54 +0000)]
Merge "btaa: null check btaa instance when receiving callback from SystemSuspend" am: f19cd47609

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

Change-Id: I94b071811ed85a3f2603eb66de2e0f83563ce725

3 years agoMerge "SecurityManager: Add CreateBondOutOfBand interface." am: 0c4fb72a70 am: 970d2be67e
Treehugger Robot [Mon, 16 Nov 2020 23:26:01 +0000 (23:26 +0000)]
Merge "SecurityManager: Add CreateBondOutOfBand interface." am: 0c4fb72a70 am: 970d2be67e

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

Change-Id: If321a6f46f37e1f65d877299118c6d0281b6662c

3 years agoMerge "GD Security OobData" am: 59d606e5fd am: 34672a2ffe
Treehugger Robot [Mon, 16 Nov 2020 23:23:52 +0000 (23:23 +0000)]
Merge "GD Security OobData" am: 59d606e5fd am: 34672a2ffe

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

Change-Id: I1ec7d5b6a8cdd8ffb4a15b8d9f8cff8f0424651f

3 years agoMerge changes I4386b836,I27e6b6ce,I84842b13 am: 5c2f0c233c am: 3e8d18af25
Treehugger Robot [Mon, 16 Nov 2020 23:21:40 +0000 (23:21 +0000)]
Merge changes I4386b836,I27e6b6ce,I84842b13 am: 5c2f0c233c am: 3e8d18af25

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

Change-Id: I9878b24cb86e1a0f23f302ef23d9c3c73d88f00c

3 years agoMerge changes I53b512b1,I1be0028c,Iabd6b355,I7d3ccb15 am: 4179e0131a am: 10860657d2
Myles Watson [Mon, 16 Nov 2020 23:17:30 +0000 (23:17 +0000)]
Merge changes I53b512b1,I1be0028c,Iabd6b355,I7d3ccb15 am: 4179e0131a am: 10860657d2

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

Change-Id: I7c368743e855aefa6a2fbfdf0e75436cee0332da

3 years agoMerge "btaa: null check btaa instance when receiving callback from SystemSuspend"
Treehugger Robot [Mon, 16 Nov 2020 23:17:24 +0000 (23:17 +0000)]
Merge "btaa: null check btaa instance when receiving callback from SystemSuspend"

3 years agoMerge "rusty-gd: switch added services based on module under test" am: 71a9cf700d...
Zach Johnson [Mon, 16 Nov 2020 23:15:32 +0000 (23:15 +0000)]
Merge "rusty-gd: switch added services based on module under test" am: 71a9cf700d am: 892af2c353

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

Change-Id: I5515c12dd3314a9fe376087dfac72e0f58290b7e

3 years agoMerge "Simplify HAL protos" am: 7587b305c9 am: 00b06e3bd8
Zach Johnson [Mon, 16 Nov 2020 23:12:12 +0000 (23:12 +0000)]
Merge "Simplify HAL protos" am: 7587b305c9 am: 00b06e3bd8

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

Change-Id: Ib92cc8c378e27714981dc6f7b33dc7c73640d697

3 years agobtaa: do not initialize btaa module if init flag set to false
Michael Sun [Mon, 16 Nov 2020 22:24:18 +0000 (22:24 +0000)]
btaa: do not initialize btaa module if init flag set to false

Tag: #feature
Bug: 173435736
Test: m, verified BTAA not get initialized
Change-Id: I6b4195df5c908e5d7ccd7d27424c6bda7d7e5a36

3 years agoMerge "SecurityManager: Add CreateBondOutOfBand interface." am: 0c4fb72a70
Treehugger Robot [Mon, 16 Nov 2020 22:07:35 +0000 (22:07 +0000)]
Merge "SecurityManager: Add CreateBondOutOfBand interface." am: 0c4fb72a70

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

Change-Id: I31569cc1c325e7cea4f073c0a14317c89b4ca597

3 years agobtaa: null check btaa instance when receiving callback from SystemSuspend
Michael Sun [Mon, 16 Nov 2020 21:53:12 +0000 (21:53 +0000)]
btaa: null check btaa instance when receiving callback from SystemSuspend

Perform null pointer check upon receive callbacks from SystemSuspend
to mitigation the exception caused crash.

Tag: #feature
Bug: 173435736
Test: m
Change-Id: Ie15d179ebce82fdd91f32b3d8a98bb9bf8c66e84

3 years agoMerge "SecurityManager: Add CreateBondOutOfBand interface."
Treehugger Robot [Mon, 16 Nov 2020 21:52:21 +0000 (21:52 +0000)]
Merge "SecurityManager: Add CreateBondOutOfBand interface."

3 years agoMerge "GD Security OobData" am: 59d606e5fd
Treehugger Robot [Mon, 16 Nov 2020 21:30:40 +0000 (21:30 +0000)]
Merge "GD Security OobData" am: 59d606e5fd

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

Change-Id: I9c3a96e06ca9f5c2e4eaa10c052a6548bc7e9020

3 years agoMerge changes I4386b836,I27e6b6ce,I84842b13 am: 5c2f0c233c
Treehugger Robot [Mon, 16 Nov 2020 21:30:32 +0000 (21:30 +0000)]
Merge changes I4386b836,I27e6b6ce,I84842b13 am: 5c2f0c233c

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

Change-Id: I342b15190100bea707999a1fffb87a8d4170275b

3 years agoMerge changes I53b512b1,I1be0028c,Iabd6b355,I7d3ccb15 am: 4179e0131a
Myles Watson [Mon, 16 Nov 2020 21:30:11 +0000 (21:30 +0000)]
Merge changes I53b512b1,I1be0028c,Iabd6b355,I7d3ccb15 am: 4179e0131a

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

Change-Id: I7ce4415e8699ec5b8279c1facc864a572a89fb23

3 years agoMerge "rusty-gd: switch added services based on module under test" am: 71a9cf700d
Zach Johnson [Mon, 16 Nov 2020 21:29:03 +0000 (21:29 +0000)]
Merge "rusty-gd: switch added services based on module under test" am: 71a9cf700d

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

Change-Id: I63eac6fdeca2ff7f580f47da1760ea5506a20c98

3 years agoMerge "GD Security OobData"
Treehugger Robot [Mon, 16 Nov 2020 21:28:49 +0000 (21:28 +0000)]
Merge "GD Security OobData"