OSDN Git Service

android-x86/system-bt.git
5 years agoCert: add common helper for event stream on the py side am: 89430fe73d
Chienyuan [Thu, 2 May 2019 01:00:00 +0000 (18:00 -0700)]
Cert: add common helper for event stream on the py side am: 89430fe73d
am: e6083fcb7c

Change-Id: Ide3c51884d49fe6c76bf4b953a263841740594d9

5 years agoCert: add common helper for event stream on the py side
Chienyuan [Thu, 2 May 2019 00:11:18 +0000 (17:11 -0700)]
Cert: add common helper for event stream on the py side
am: 89430fe73d

Change-Id: I4c0ce2ced3c292c316ee25f35e0d25fdfd972aed

5 years agoCert: add common helper for event stream on the py side
Chienyuan [Tue, 30 Apr 2019 23:21:32 +0000 (16:21 -0700)]
Cert: add common helper for event stream on the py side

* add common helper for event stream on the py side, implement
  assert_event_occurs in the helper
* add event stream helpers for hci event, sco and acl in GdDevice
* add take_for() function in BlockingQueue for take data with timeout

Test: run gd/cert/run_cert.sh
Change-Id: Ia8168159ee47441ec332046627124e0ed3811d6b

5 years agoMake SnoopLogger a Module am: 5158bf5eeb
Hansong Zhang [Wed, 1 May 2019 02:24:19 +0000 (19:24 -0700)]
Make SnoopLogger a Module am: 5158bf5eeb
am: 8264f6eae8

Change-Id: If673281f8f4f472ee3034bb158bcab95d9b6eed6

5 years agoMake SnoopLogger a Module
Hansong Zhang [Wed, 1 May 2019 02:17:12 +0000 (19:17 -0700)]
Make SnoopLogger a Module
am: 5158bf5eeb

Change-Id: If905e7c85293c2b2abbf0f23c3efa3d77743bef7

5 years agoMake SnoopLogger a Module
Hansong Zhang [Tue, 30 Apr 2019 21:52:43 +0000 (14:52 -0700)]
Make SnoopLogger a Module

* Add API SnoopLogger::SetFilePath to set output file path
* Add return code check for GdDevice backing process and rootcanal

Test: cert/run_cert.sh
Change-Id: Iac33070d4ac880d50a0dd78ad75f7ac7ccc239b2

5 years agoRootcanal: Exit local loopback mode on HciReset am: 843271b29b
Hansong Zhang [Tue, 30 Apr 2019 22:10:38 +0000 (15:10 -0700)]
Rootcanal: Exit local loopback mode on HciReset am: 843271b29b
am: d91439bf3a

Change-Id: Idd7c9bef19120a492e6aeda679616c4c728af899

5 years agoRootcanal HCI HAL: Set read from socket blocking am: 8c08ceb642
Hansong Zhang [Tue, 30 Apr 2019 22:10:20 +0000 (15:10 -0700)]
Rootcanal HCI HAL: Set read from socket blocking am: 8c08ceb642
am: 6fc40f8acd

Change-Id: I25708f7d58fc498d476e7468cde781621e3ee1bc

5 years agoRootcanal: Exit local loopback mode on HciReset
Hansong Zhang [Tue, 30 Apr 2019 22:00:26 +0000 (15:00 -0700)]
Rootcanal: Exit local loopback mode on HciReset
am: 843271b29b

Change-Id: Icb2bfeb0d50ae89fe787b16471bf35543d10296d

5 years agoRootcanal HCI HAL: Set read from socket blocking
Hansong Zhang [Tue, 30 Apr 2019 22:00:13 +0000 (15:00 -0700)]
Rootcanal HCI HAL: Set read from socket blocking
am: 8c08ceb642

Change-Id: I1f48f1c7decbe6f85d08c6872559edf409cc753e

5 years agoMerge changes I471a49f6,If5879a76 am: 4b62519c95
Zach Johnson [Tue, 30 Apr 2019 19:12:25 +0000 (12:12 -0700)]
Merge changes I471a49f6,If5879a76 am: 4b62519c95
am: 519c485efc

Change-Id: I7ef3e0785b6854207d89d44534d93e9cf44b0d33

5 years agoMerge "Create handlers for every module upon module start." am: 37de441d0d
Zach Johnson [Tue, 30 Apr 2019 19:11:28 +0000 (12:11 -0700)]
Merge "Create handlers for every module upon module start." am: 37de441d0d
am: 0264bf2009

Change-Id: I0c3c6dd08c57cc493378a923a963f90714b5c4f8

5 years agoMerge changes I471a49f6,If5879a76
Zach Johnson [Tue, 30 Apr 2019 19:06:57 +0000 (12:06 -0700)]
Merge changes I471a49f6,If5879a76
am: 4b62519c95

Change-Id: I766fc1e1fec734858dc50ee9be54f870f3816905

5 years agoMerge "Create handlers for every module upon module start."
Zach Johnson [Tue, 30 Apr 2019 19:05:56 +0000 (12:05 -0700)]
Merge "Create handlers for every module upon module start."
am: 37de441d0d

Change-Id: I9d0bd3aabd76603bd271b552eb00cc11d0c60da3

5 years agoRootcanal: Exit local loopback mode on HciReset
Hansong Zhang [Tue, 30 Apr 2019 17:51:27 +0000 (10:51 -0700)]
Rootcanal: Exit local loopback mode on HciReset

In Bluetooth code spec v5.1 Vol 2 Part E 7.6.2, it states "the commands
HCI_Reset and HCI_Write_Loopback_Mode can be used to exit Local Loopback
mode".

In HAL cert test, enter local loopback mode, reset, and check whether
local loopback mode.

Test: cert/run_cert.sh
Bug: 131625008
Change-Id: I79546b202affe8ccd48b10e230cf73465324b409

5 years agoRootcanal HCI HAL: Set read from socket blocking
Hansong Zhang [Tue, 30 Apr 2019 18:10:47 +0000 (11:10 -0700)]
Rootcanal HCI HAL: Set read from socket blocking

In HciSocketDevice::SendHci, rootcanal first writes to HCI socket one
byte HCI packet type first, then HCI packet body. When the stack
receives the first byte, it tries to read the entire packet, but
sometimes the rest of packet was not delivered yet, so the stack will
crash. Instead, the stack should be blocked until all bytes are read,
with a 3 second timeout when rootcanal can't deliver all bytes to stack.

Test: try cert/run_cert.sh multiple times
Bug: 131625008
Change-Id: I99df53c658717a5c931ebc075eb75df447e10332

5 years agoMerge changes I471a49f6,If5879a76
Zach Johnson [Tue, 30 Apr 2019 18:50:03 +0000 (18:50 +0000)]
Merge changes I471a49f6,If5879a76

* changes:
  Clean up facade naming and paths
  Add enforcement of module dependency declaration

5 years agoMerge "Create handlers for every module upon module start."
Zach Johnson [Tue, 30 Apr 2019 18:49:33 +0000 (18:49 +0000)]
Merge "Create handlers for every module upon module start."

5 years ago[automerger skipped] Add workaround for "Service Changed" indications breaking server...
Jakub Pawlowski [Tue, 30 Apr 2019 13:17:35 +0000 (06:17 -0700)]
[automerger skipped] Add workaround for "Service Changed" indications breaking server-only remotes
am: bd399cd575 -s ours
am skip reason: change_id Ibb2c1272bb08c7a127c8f7d37ee6a05f15618fc2 with SHA1 890c501e97 is in history

Change-Id: Id8345a8b83cf321fd47e44b923b97d94fee9004f

5 years agoAdd workaround for "Service Changed" indications breaking server-only remotes
Jakub Pawlowski [Wed, 24 Apr 2019 21:00:16 +0000 (23:00 +0200)]
Add workaround for "Service Changed" indications breaking server-only remotes

Test: Connect with ruwido remote when magictether service is registered
Bug: 122994857
(cherry picked from commit fb252b47ca9478c3678532d04e777fd6f848132a)
Merged-In: Ibb2c1272bb08c7a127c8f7d37ee6a05f15618fc2
Change-Id: Ibb2c1272bb08c7a127c8f7d37ee6a05f15618fc2

5 years ago[automerger skipped] Merge "Add a persistent key to overwrite MIN_CE_LEN for Hearing...
Stanley Tng [Tue, 30 Apr 2019 07:41:22 +0000 (00:41 -0700)]
[automerger skipped] Merge "Add a persistent key to overwrite MIN_CE_LEN for Hearing Aids" into qt-dev
am: a1dc008469 -s ours
am skip reason: change_id I1c52b2f99235f8d88e0a1d278dbf3174f1c60709 with SHA1 4900661c49 is in history

Change-Id: Ic59debfbedc9c10558e45a3ac56e9e0c8a67ae0c

5 years agoRevert "Revert "DO NOT MERGE: osi: Offload mutex pointer to local scope""
Martin Brabham [Tue, 30 Apr 2019 07:32:55 +0000 (00:32 -0700)]
Revert "Revert "DO NOT MERGE: osi: Offload mutex pointer to local scope""
am: 979b854b55

Change-Id: I9dea3ca72204769cc7b15a21e7b7110f28b505a2

5 years agoMerge "PDL: Check sizes before validating constraints" am: 0f5c7cee85
Myles Watson [Tue, 30 Apr 2019 00:43:03 +0000 (17:43 -0700)]
Merge "PDL: Check sizes before validating constraints" am: 0f5c7cee85
am: eb62d80e27

Change-Id: I9321ea1bdda64d603e9a130d8b705f259bdddca0

5 years agoMerge "PDL: Check sizes before validating constraints"
Myles Watson [Tue, 30 Apr 2019 00:37:18 +0000 (17:37 -0700)]
Merge "PDL: Check sizes before validating constraints"
am: 0f5c7cee85

Change-Id: I3974c61f92d4b8fb24c70b4f1a270651cd2bcea7

5 years agoMerge "PDL: Check sizes before validating constraints"
Treehugger Robot [Tue, 30 Apr 2019 00:22:30 +0000 (00:22 +0000)]
Merge "PDL: Check sizes before validating constraints"

5 years agoClean up facade naming and paths
Zach Johnson [Mon, 29 Apr 2019 23:45:21 +0000 (16:45 -0700)]
Clean up facade naming and paths

Remove "cert" from build rules that apply to stack under test

hal/facade/* -> hal/
api.proto -> facade.proto

In proto -> [x]Facade
Module -> [x]FacadeModule
Grpc service -> [x]FacadeService

A few straggling references to HciCmd and HciEvt

Test: atest --host bluetooth_test_gd and ./cert/run_cert.sh

Change-Id: I471a49f65a216d6669b3cb7f5ffebc7c069e2d6d

5 years agoGracefully shutdown SUT in cert am: c6467a9c11
Hansong Zhang [Mon, 29 Apr 2019 23:47:00 +0000 (16:47 -0700)]
Gracefully shutdown SUT in cert am: c6467a9c11
am: b4e54063fb

Change-Id: I058fa4863e2f2e31c269708ee962e3ed96cdbd22

5 years agoHAL: Add facade for fetching incoming HCI packets am: 4adb042422
Chienyuan [Mon, 29 Apr 2019 23:46:42 +0000 (16:46 -0700)]
HAL: Add facade for fetching incoming HCI packets am: 4adb042422
am: b55d6caaa2

Change-Id: Iccfad5a3c3d7499c19e19f6e7b0b7288c0141b49

5 years agoFix BlockingQueue bug when using vector am: 5041e4f269
Chienyuan [Mon, 29 Apr 2019 23:46:21 +0000 (16:46 -0700)]
Fix BlockingQueue bug when using vector am: 5041e4f269
am: 23719768e2

Change-Id: I07e9a9fed0fccb9561c37623f67bc55afea9f8a9

5 years agoRemove redundant Bluetooth from internal class names am: b45ecd2fd7
Zach Johnson [Mon, 29 Apr 2019 23:46:02 +0000 (16:46 -0700)]
Remove redundant Bluetooth from internal class names am: b45ecd2fd7
am: 273f0a1389

Change-Id: Ia1011184c162a29be434beb5aaa58005c01477a0

5 years agoMerge "Add a persistent key to overwrite MIN_CE_LEN for Hearing Aids" into qt-dev
TreeHugger Robot [Mon, 29 Apr 2019 23:36:29 +0000 (23:36 +0000)]
Merge "Add a persistent key to overwrite MIN_CE_LEN for Hearing Aids" into qt-dev

5 years agoGracefully shutdown SUT in cert
Hansong Zhang [Mon, 29 Apr 2019 23:32:37 +0000 (16:32 -0700)]
Gracefully shutdown SUT in cert
am: c6467a9c11

Change-Id: Idc2047ad66ea685babec3e3ed27c63cc71eacd4e

5 years agoHAL: Add facade for fetching incoming HCI packets
Chienyuan [Mon, 29 Apr 2019 23:32:21 +0000 (16:32 -0700)]
HAL: Add facade for fetching incoming HCI packets
am: 4adb042422

Change-Id: Ifc54f58b4d1ef0306d5055c05936af727b5529ee

5 years agoFix BlockingQueue bug when using vector
Chienyuan [Mon, 29 Apr 2019 23:32:06 +0000 (16:32 -0700)]
Fix BlockingQueue bug when using vector
am: 5041e4f269

Change-Id: I665ed4ef6ad47ad4b5b5f42c226d68b872fade7e

5 years agoRemove redundant Bluetooth from internal class names
Zach Johnson [Mon, 29 Apr 2019 23:31:49 +0000 (16:31 -0700)]
Remove redundant Bluetooth from internal class names
am: b45ecd2fd7

Change-Id: Id7b7adfe228e2729eaf542aba0ce0bcbf005e527

5 years agoCreate handlers for every module upon module start.
Zach Johnson [Mon, 29 Apr 2019 21:48:42 +0000 (14:48 -0700)]
Create handlers for every module upon module start.

Test: atest --host bluetooth_test_gd and ./cert/run_cert.sh
Change-Id: I360556ef3bb2ccf34d5658f00b30cc33949a77c1

5 years agoAdd enforcement of module dependency declaration
Zach Johnson [Mon, 29 Apr 2019 22:34:55 +0000 (15:34 -0700)]
Add enforcement of module dependency declaration

Move dependency access into module, enforce dependency was listed
in ListDependencies.

Remove ModuleRegistry from Start/Stop.

Test: atest --host bluetooth_test_gd and cert/run_cert.sh
Change-Id: If5879a76aae764286f1b5bd7df2b497ea8f51998

5 years agoGracefully shutdown SUT in cert
Hansong Zhang [Mon, 29 Apr 2019 21:35:53 +0000 (14:35 -0700)]
Gracefully shutdown SUT in cert

* After each test suite, shutdown the stack before closing rootcanal
* Don't stop gRPC server twice
* Crash the stack when can't build gRPC server

Test: cert/run_cert.sh
Change-Id: Ie4c8d749079e99b46d63fb70d157db26d9aa2474

5 years agoHAL: Add facade for fetching incoming HCI packets
Chienyuan [Thu, 25 Apr 2019 22:11:54 +0000 (15:11 -0700)]
HAL: Add facade for fetching incoming HCI packets

Adding the event stream primitives. General event stream request is
defined in facade/common.proto. "grpc/grpc_event_stream.h" provides
helper class templates GrpcEventStreamCallback and GrpcEventStream to
help user handle EventStream request without writing boilerplate code.

Test: cert/run_cert.sh
Change-Id: I00b51fc7b1faefb7c97cc647876f41854872a415

5 years agoAdd a persistent key to overwrite MIN_CE_LEN for Hearing Aids am: 4900661c49
Stanley Tng [Mon, 29 Apr 2019 21:17:46 +0000 (14:17 -0700)]
Add a persistent key to overwrite MIN_CE_LEN for Hearing Aids am: 4900661c49
am: 4bab1efe4a

Change-Id: Ibd083e39bd6d2221d26c513e52c52429d8db7fb0

5 years agoAdd a persistent key to overwrite MIN_CE_LEN for Hearing Aids
Stanley Tng [Sat, 27 Apr 2019 21:51:11 +0000 (14:51 -0700)]
Add a persistent key to overwrite MIN_CE_LEN for Hearing Aids

To help in debugging the noise issues on Hearing Aids, add a new
persistent key, persist.bluetooth.hearingaidmincelen, to overwrite the
MIN_CE_LEN parameter that are used for the Connection Parameter Update
operations.

Bug: 130916579
Test: Manual testing
Change-Id: I1c52b2f99235f8d88e0a1d278dbf3174f1c60709
(cherry picked from commit 4900661c4904fb28ab6b1fca591e510b7782fe5f)
Merged-In: I1c52b2f99235f8d88e0a1d278dbf3174f1c60709

5 years agoFix BlockingQueue bug when using vector
Chienyuan [Mon, 29 Apr 2019 20:41:32 +0000 (13:41 -0700)]
Fix BlockingQueue bug when using vector

return value instead of reference when take

Test: run unittest
Change-Id: I268f5022306353493a348a52ed363cf60a125661

5 years agoRemove redundant Bluetooth from internal class names
Zach Johnson [Mon, 29 Apr 2019 19:07:23 +0000 (12:07 -0700)]
Remove redundant Bluetooth from internal class names

Test: atest --host bluetooth_test_gd and ./cert/run_cert.sh
Change-Id: I55b2c1ecc1ec254a197d6fde70968a9aa8c06c00

5 years agoAdd a persistent key to overwrite MIN_CE_LEN for Hearing Aids
Stanley Tng [Mon, 29 Apr 2019 20:36:52 +0000 (13:36 -0700)]
Add a persistent key to overwrite MIN_CE_LEN for Hearing Aids
am: 4900661c49

Change-Id: Iae6e1b3eec5a45a5923fafcbe01d00960ee73cab

5 years agoAdd a persistent key to overwrite MIN_CE_LEN for Hearing Aids
Stanley Tng [Sat, 27 Apr 2019 21:51:11 +0000 (14:51 -0700)]
Add a persistent key to overwrite MIN_CE_LEN for Hearing Aids

To help in debugging the noise issues on Hearing Aids, add a new
persistent key, persist.bluetooth.hearingaidmincelen, to overwrite the
MIN_CE_LEN parameter that are used for the Connection Parameter Update
operations.

Bug: 130916579
Test: Manual testing
Change-Id: I1c52b2f99235f8d88e0a1d278dbf3174f1c60709

5 years agoRevert "Revert "DO NOT MERGE: osi: Offload mutex pointer to local scope""
Martin Brabham [Mon, 22 Apr 2019 16:33:25 +0000 (09:33 -0700)]
Revert "Revert "DO NOT MERGE: osi: Offload mutex pointer to local scope""

This reverts commit f964b3c6817d0a400886bd103e5294bb929b7c3b.

Bug: 117997080
Test: atest net_test_bluetooth

5 years agoMerge changes Ibcb21966,I026b9e89 am: 1e6d32cd3a
Zach Johnson [Sat, 27 Apr 2019 03:01:57 +0000 (20:01 -0700)]
Merge changes Ibcb21966,I026b9e89 am: 1e6d32cd3a
am: 094f1d311a

Change-Id: I9ae83d891e57fb0bcba05b8a985c2b2ab4d9a67c

5 years agoMerge changes Ibcb21966,I026b9e89
Zach Johnson [Sat, 27 Apr 2019 02:57:05 +0000 (19:57 -0700)]
Merge changes Ibcb21966,I026b9e89
am: 1e6d32cd3a

Change-Id: I47e78cde67529f6e1192cb28c29122af66485684

5 years agoMerge changes Ibcb21966,I026b9e89
Treehugger Robot [Sat, 27 Apr 2019 02:42:45 +0000 (02:42 +0000)]
Merge changes Ibcb21966,I026b9e89

* changes:
  Migrate GD code to module
  Add basic concept of module and module registry + dependency graph

5 years agoImplement blocking queue am: 9c2f4d0dbc
Chienyuan [Sat, 27 Apr 2019 00:20:24 +0000 (17:20 -0700)]
Implement blocking queue am: 9c2f4d0dbc
am: e20f3bfd99

Change-Id: I0c8a46eaf226a14870fbe64d74c92915e763d934

5 years agoImplement blocking queue
Chienyuan [Sat, 27 Apr 2019 00:16:20 +0000 (17:16 -0700)]
Implement blocking queue
am: 9c2f4d0dbc

Change-Id: I51ff86db093683bb7ba868e0b37e1b6851846583

5 years agoMigrate GD code to module
Zach Johnson [Fri, 26 Apr 2019 18:57:05 +0000 (11:57 -0700)]
Migrate GD code to module

Test: atest --host bluetooth_test_gd
Change-Id: Ibcb219666ff5552efc602bf063e69a6e6b7e4bd8

5 years agoAdd basic concept of module and module registry + dependency graph
Zach Johnson [Fri, 26 Apr 2019 05:24:54 +0000 (22:24 -0700)]
Add basic concept of module and module registry + dependency graph

Modules have protected lifecycle functions.
Modules are identified by a factory object that knows how to construct them.
Modules can indicate which dependencies they have.

Dependencies are started before their dependent modules.
Don't support incremental module stop for the moment - it's all or nothing.

Test: atest --host bluetooth_test_gd:ModuleTest
Change-Id: I026b9e893501506a6cea8387941b3a9424a9bec9

5 years agoImplement blocking queue
Chienyuan [Fri, 26 Apr 2019 18:59:35 +0000 (11:59 -0700)]
Implement blocking queue

Test: run unittest
Change-Id: I93c59a2d8c9bbe9bee762412b368773c4b35456f

5 years agoPDL: Check sizes before validating constraints
Myles Watson [Fri, 26 Apr 2019 16:02:18 +0000 (09:02 -0700)]
PDL: Check sizes before validating constraints

Test: bluetooth_packet_parser_test  --gtest_filter=*WayTooSmall*
Change-Id: Ia43c066c11b83f1e9b651ffdd85c6e0196c45332

5 years agoAdd workaround for "Service Changed" indications breaking server-only remotes am...
Jakub Pawlowski [Fri, 26 Apr 2019 13:51:29 +0000 (06:51 -0700)]
Add workaround for "Service Changed" indications breaking server-only remotes am: 890c501e97
am: f00a819e6e

Change-Id: I39046286b91ded7374d759c0a9b9297c8a08ac35

5 years agoAdd workaround for "Service Changed" indications breaking server-only remotes
Jakub Pawlowski [Fri, 26 Apr 2019 13:47:23 +0000 (06:47 -0700)]
Add workaround for "Service Changed" indications breaking server-only remotes
am: 890c501e97

Change-Id: Ic0727d12da91674737a0b3300eb4a0aa1e686349

5 years agoAdd workaround for "Service Changed" indications breaking server-only remotes
Jakub Pawlowski [Wed, 24 Apr 2019 21:00:16 +0000 (23:00 +0200)]
Add workaround for "Service Changed" indications breaking server-only remotes

Test: Connect with ruwido remote when magictether service is registered
Bug: 122994857
Change-Id: Ibb2c1272bb08c7a127c8f7d37ee6a05f15618fc2

5 years ago[automerger skipped] Merge "Call gatt_disconnect if the LE connection is not establis...
weichinweng [Thu, 25 Apr 2019 09:39:04 +0000 (02:39 -0700)]
[automerger skipped] Merge "Call gatt_disconnect if the LE connection is not established and no APP use it." into qt-dev
am: f0de66b7c3 -s ours
am skip reason: change_id Ifed10c67141cb4c9221478db759c5614714fff30 with SHA1 c04984def6 is in history

Change-Id: I7f5cf5430265ecad70d65837fbf21d89ae9e59f1

5 years ago[automerger skipped] HearingAid: add addToWhiteList NativeInterface API
weichinweng [Thu, 25 Apr 2019 09:19:12 +0000 (02:19 -0700)]
[automerger skipped] HearingAid: add addToWhiteList NativeInterface API
am: 3d6b283c3f -s ours
am skip reason: change_id I57c327380f07243e484c5c3afedfe60404f883fa with SHA1 32b0d4687b is in history

Change-Id: Id1aa80c2f396483859a62c1d6954e4f0ebc174c7

5 years agoBasic integration of GD with ACTS am: facafb0849
Zach Johnson [Thu, 25 Apr 2019 06:36:08 +0000 (23:36 -0700)]
Basic integration of GD with ACTS am: facafb0849
am: 95f83c04dc

Change-Id: Id4d85e5cb0e5e79cdbaabeb3206373d9d2d95540

5 years agoBasic integration of GD with ACTS
Zach Johnson [Thu, 25 Apr 2019 06:31:03 +0000 (23:31 -0700)]
Basic integration of GD with ACTS
am: facafb0849

Change-Id: Ib0aeae59c7f0e5b72bc36a456225a676e819d610

5 years agoMerge "Call gatt_disconnect if the LE connection is not established and no APP use...
TreeHugger Robot [Thu, 25 Apr 2019 05:36:05 +0000 (05:36 +0000)]
Merge "Call gatt_disconnect if the LE connection is not established and no APP use it." into qt-dev

5 years agoMerge "Revert "Revert "Cert for HAL adapter""" am: 1bc6c42328
Hansong Zhang [Thu, 25 Apr 2019 01:53:46 +0000 (18:53 -0700)]
Merge "Revert "Revert "Cert for HAL adapter""" am: 1bc6c42328
am: 34ee7abdc1

Change-Id: Icbb156c805056590ab8195c33f47bcf8982dfea8

5 years agoMerge "Revert "Revert "Cert for HAL adapter"""
Hansong Zhang [Thu, 25 Apr 2019 01:49:12 +0000 (18:49 -0700)]
Merge "Revert "Revert "Cert for HAL adapter"""
am: 1bc6c42328

Change-Id: I8ccd9a439f0e30152290139049b3f1d24f26ba14

5 years agoBasic integration of GD with ACTS
Zach Johnson [Mon, 22 Apr 2019 23:34:49 +0000 (16:34 -0700)]
Basic integration of GD with ACTS

* Add GD base test, which can parse config and bring up rootcanal.
* Add GD device controller, which is only optimized for host at this point.
* Add host config for running tests,
* Add basic hal test to test end to end flows.

Missing from this patch:
* GD cert device controller (should be similar to GD device)

Test: after setting up acts (gd/cert/set_up_acts.sh): gd/cert/run_cert.sh

Change-Id: Ibde7c7b0fe85b64643ed11fffe833e9ff53ed48c

5 years agoMerge "Revert "Revert "Cert for HAL adapter"""
Treehugger Robot [Thu, 25 Apr 2019 01:30:36 +0000 (01:30 +0000)]
Merge "Revert "Revert "Cert for HAL adapter"""

5 years agoSimple btsnoop logger implementation am: e066082980
Jack He [Wed, 24 Apr 2019 20:46:27 +0000 (13:46 -0700)]
Simple btsnoop logger implementation am: e066082980
am: 44ae3aff14

Change-Id: I9a212763b0135d55c2fb3441d3d019acd339afdf

5 years agoSimple btsnoop logger implementation
Jack He [Wed, 24 Apr 2019 20:41:23 +0000 (13:41 -0700)]
Simple btsnoop logger implementation
am: e066082980

Change-Id: Ib5452a6cf4b9b00cadb35c9741ea33c5ba2363bf

5 years agoRevert "Revert "Cert for HAL adapter""
Hansong Zhang [Wed, 24 Apr 2019 17:25:42 +0000 (17:25 +0000)]
Revert "Revert "Cert for HAL adapter""

This reverts commit 865d9d138f1099a0236847e39329ee641c62b1ae.

Reason for revert: Re-landing CL I3cf2f54605ce2709d1c149b1221dedc8dc5dca92

Change-Id: I63d60ab99d3a4a1b369f77d6c48eff0f463506e4

5 years agoSimple btsnoop logger implementation
Jack He [Mon, 22 Apr 2019 18:45:26 +0000 (11:45 -0700)]
Simple btsnoop logger implementation

Test: run unit test and check btsnoop log
Change-Id: Ib5ea3fc6440c48e1a7b5d5f3bcc3a0b1c23ac9c2

5 years agoMerge "Revert "Cert for HAL adapter"" am: a1cdf837cf
SzuWei Lin [Wed, 24 Apr 2019 14:30:10 +0000 (07:30 -0700)]
Merge "Revert "Cert for HAL adapter"" am: a1cdf837cf
am: 75c1830da0

Change-Id: I3a3516037202a0d482c28ea6fecfc39cbcf76e84

5 years agoMerge "Revert "Cert for HAL adapter""
SzuWei Lin [Wed, 24 Apr 2019 14:25:06 +0000 (07:25 -0700)]
Merge "Revert "Cert for HAL adapter""
am: a1cdf837cf

Change-Id: Idb0c25b945284e7f83467793a8afde35a3b2274f

5 years agoMerge "Revert "Cert for HAL adapter""
Treehugger Robot [Wed, 24 Apr 2019 14:08:23 +0000 (14:08 +0000)]
Merge "Revert "Cert for HAL adapter""

5 years agoMerge "HearingAid: add addToWhiteList NativeInterface API" am: 4bafb40345
Weichin Weng [Wed, 24 Apr 2019 09:32:01 +0000 (02:32 -0700)]
Merge "HearingAid: add addToWhiteList NativeInterface API" am: 4bafb40345
am: ed58588c92

Change-Id: Id20059c6ef71e216a6a43ccb46c5e1828ae3c779

5 years agoMerge "HearingAid: add addToWhiteList NativeInterface API"
Weichin Weng [Wed, 24 Apr 2019 09:26:53 +0000 (02:26 -0700)]
Merge "HearingAid: add addToWhiteList NativeInterface API"
am: 4bafb40345

Change-Id: I6fa5a9d38d9de413f306e0c9bbb303ee227e237a

5 years agoHearingAid: add addToWhiteList NativeInterface API
weichinweng [Tue, 23 Apr 2019 02:56:20 +0000 (10:56 +0800)]
HearingAid: add addToWhiteList NativeInterface API

Add a new native interface API, addToWhiteList, that adds a LE device to
the whitelist.

Bug: 129452236
Test: Manual testing with Hearing Aids
Change-Id: I57c327380f07243e484c5c3afedfe60404f883fa
Merged-In: I57c327380f07243e484c5c3afedfe60404f883fa

5 years agoMerge "HearingAid: add addToWhiteList NativeInterface API"
Weichin Weng [Wed, 24 Apr 2019 09:15:31 +0000 (09:15 +0000)]
Merge "HearingAid: add addToWhiteList NativeInterface API"

5 years agoRevert "Cert for HAL adapter"
SzuWei Lin [Wed, 24 Apr 2019 07:10:06 +0000 (07:10 +0000)]
Revert "Cert for HAL adapter"

This reverts commit 7b003eb97a032ae16fb5e793bd641635319724c4.

Reason for revert: aosp_x86_64-eng build error

Change-Id: I6e5484f960209b8486806ab21b8d694437e3c10f

5 years agoHearingAid: add addToWhiteList NativeInterface API
weichinweng [Tue, 23 Apr 2019 02:56:20 +0000 (10:56 +0800)]
HearingAid: add addToWhiteList NativeInterface API

Add a new native interface API, addToWhiteList, that adds a LE device to
the whitelist.

Bug: 129452236
Test: Manual testing with Hearing Aids
Change-Id: I57c327380f07243e484c5c3afedfe60404f883fa

5 years agoMerge "Cert for HAL adapter" am: 3cad2ebdaa
Hansong Zhang [Wed, 24 Apr 2019 00:06:56 +0000 (17:06 -0700)]
Merge "Cert for HAL adapter" am: 3cad2ebdaa
am: de6d004b99

Change-Id: If5a8ae1d17a4388c0a00bf2dfb9581cea54acdc8

5 years agoMerge "Cert for HAL adapter"
Hansong Zhang [Tue, 23 Apr 2019 23:58:38 +0000 (16:58 -0700)]
Merge "Cert for HAL adapter"
am: 3cad2ebdaa

Change-Id: I84ca06a36e62021f822c9570202dc8afe4b9a44e

5 years agoMerge "Cert for HAL adapter"
Treehugger Robot [Tue, 23 Apr 2019 23:49:26 +0000 (23:49 +0000)]
Merge "Cert for HAL adapter"

5 years agoMerge "PDL: Use underscores for field names" am: 86939cc6d5
Myles Watson [Tue, 23 Apr 2019 23:23:11 +0000 (16:23 -0700)]
Merge "PDL: Use underscores for field names" am: 86939cc6d5
am: 7bc015c4bb

Change-Id: I72eec2486f0683b4b820ca07cc028bcf7982cad2

5 years agoMerge "PDL: Use underscores for field names"
Myles Watson [Tue, 23 Apr 2019 23:18:07 +0000 (16:18 -0700)]
Merge "PDL: Use underscores for field names"
am: 86939cc6d5

Change-Id: If3963204dc87892e5771e18e2c93f85e43ee2a5c

5 years agoMerge "PDL: Use underscores for field names"
Treehugger Robot [Tue, 23 Apr 2019 23:02:27 +0000 (23:02 +0000)]
Merge "PDL: Use underscores for field names"

5 years agoRoot-canal: Add missing payload size field to loopback evt am: 5af185de3e
Hansong Zhang [Tue, 23 Apr 2019 22:05:49 +0000 (15:05 -0700)]
Root-canal: Add missing payload size field to loopback evt am: 5af185de3e
am: 8216f7609f

Change-Id: I4351bb7f843fa382617cb9e1badeb2ed3ac331b1

5 years agoRoot-canal: Add missing payload size field to loopback evt
Hansong Zhang [Tue, 23 Apr 2019 22:00:09 +0000 (15:00 -0700)]
Root-canal: Add missing payload size field to loopback evt
am: 5af185de3e

Change-Id: I921f8b004ad8cd05d9b1161587a02c0348d9b7d3

5 years agoCert for HAL adapter
Hansong Zhang [Mon, 8 Apr 2019 23:18:21 +0000 (16:18 -0700)]
Cert for HAL adapter

Introducing cert framework and a simple test case for HCI HAL
transportation adapter

Test-prerequisite: gRPC python. Install from pip
(https://grpc.io/blog/installation)

Test: 1. start HCI rootcanal or HIDL transport
      $ANDROID_HOST_OUT/nativetest64/root-canal/root-canal
      2. start stack with facade
      $ANDROID_HOST_OUT/bin/stack_with_facade
      3. run a simple test case
      $ANDROID_HOST_OUT/nativetest64/bluetooth_cert_test/bluetooth_cert_test

Or: One-liner: python cert/run_cert.py

Change-Id: I3cf2f54605ce2709d1c149b1221dedc8dc5dca92

5 years agoPDL: Use underscores for field names
Myles Watson [Mon, 22 Apr 2019 21:16:41 +0000 (14:16 -0700)]
PDL: Use underscores for field names

field_name : FieldType,

Test: bluetooth_packet_parser_test
Change-Id: I3b6d673111c7c4d7b5814563b132a3b48d3fdfcf

5 years agoRoot-canal: Add missing payload size field to loopback evt
Hansong Zhang [Tue, 23 Apr 2019 20:06:52 +0000 (13:06 -0700)]
Root-canal: Add missing payload size field to loopback evt

Bug: 131168063
Test: 1. Download AOSP CL929617 and 948661
      2. mma. Run python cert/run_cert.py
      3. Check btsnoop log

Change-Id: I1e31a1323f4aa8cb549af7545029b9d21eaabe9c

5 years agoDO NOT MERGE Don't persist bonds using sample LTK
Jakub Pawlowski [Tue, 23 Apr 2019 18:55:18 +0000 (11:55 -0700)]
DO NOT MERGE Don't persist bonds using sample LTK
am: 5ae23a59e8

Change-Id: I836bb075dc622b8b2779c4a2706b928f2b36a00b

5 years agoDO NOT MERGE Don't persist bonds using sample LTK
Jakub Pawlowski [Mon, 11 Mar 2019 18:22:01 +0000 (19:22 +0100)]
DO NOT MERGE Don't persist bonds using sample LTK

Test: compilation, manual testing
Bug: 128437297
Change-Id: I52fd484d42bf87e96dbc9e6456090f231ed48111

5 years ago[automerger skipped] Merge "HFP: Fix null pointer dereference in bta_ag_codec_negotia...
Ray Kuo [Tue, 23 Apr 2019 01:54:34 +0000 (18:54 -0700)]
[automerger skipped] Merge "HFP: Fix null pointer dereference in bta_ag_codec_negotiate()." into qt-dev
am: f2fec6a5cd -s ours
am skip reason: change_id I28d90823340d8721ee2349d3f55f07d1e823fee3 with SHA1 da2ca6a40f is in history

Change-Id: I2cb7dd72182a839ffab91af6e361846022c4b08c

5 years ago[automerger skipped] Merge "Use GATT_WRITE_NO_RSP for "state change" updates" into...
Weichin Weng [Tue, 23 Apr 2019 01:28:48 +0000 (18:28 -0700)]
[automerger skipped] Merge "Use GATT_WRITE_NO_RSP for "state change" updates" into qt-dev
am: a19d137829 -s ours
am skip reason: change_id I55e9b4b0b8c76412e5810e1cec5d96819527d099 with SHA1 3bf4b087a8 is in history

Change-Id: I8e80f7ae94f6789130c3c9b6a121a703f02f8f20

5 years agoMerge "HFP: Fix null pointer dereference in bta_ag_codec_negotiate()." into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 01:24:26 +0000 (01:24 +0000)]
Merge "HFP: Fix null pointer dereference in bta_ag_codec_negotiate()." into qt-dev

5 years agoTEST: Fix net_test_stock_rfcomm unit test
Jack He [Tue, 23 Apr 2019 01:21:40 +0000 (18:21 -0700)]
TEST: Fix net_test_stock_rfcomm unit test
am: 1b9c2af1fc

Change-Id: Id6bfe19de739f53212637364b2f00bf2048494e1

5 years agoMerge "Use GATT_WRITE_NO_RSP for "state change" updates" into qt-dev
Weichin Weng [Tue, 23 Apr 2019 00:24:21 +0000 (00:24 +0000)]
Merge "Use GATT_WRITE_NO_RSP for "state change" updates" into qt-dev

5 years agoCall gatt_disconnect if the LE connection is not established and no APP use it.
weichinweng [Mon, 25 Mar 2019 05:51:10 +0000 (13:51 +0800)]
Call gatt_disconnect if the LE connection is not established and no APP use it.

When the LE connection hold APP is removed, if the LE connection is not
established and no APP use it, we never free transport control block
(p_tcb) or close it. For BLE device that have not established and no APP
use it, will call gatt_disconnect to free p_tcb and go to close state.

Bug: 127908699
Test: GattConnectTest
Change-Id: Ifed10c67141cb4c9221478db759c5614714fff30
Merged-In: Ifed10c67141cb4c9221478db759c5614714fff30

5 years agoTEST: Fix net_test_stock_rfcomm unit test
Jack He [Sun, 21 Apr 2019 00:01:53 +0000 (17:01 -0700)]
TEST: Fix net_test_stock_rfcomm unit test

* Properly mock updated L2CAP registeration method by including the
  filtered btsnoop option
* Properly mock btsnoop module by creating a separate file to link with
  the test executable

Fixes: 123361801
Test: atest net_test_stack_rfcomm
Change-Id: I89ca875cbcc941feddd7c501fa1b7e14f8d14794