OSDN Git Service

android-x86/system-bt.git
4 years agoMerge "Connect inquiry API query implementation"
Treehugger Robot [Mon, 4 Nov 2019 19:41:00 +0000 (19:41 +0000)]
Merge "Connect inquiry API query implementation"

4 years agoL2CAP: Dequeue next request if previous response is invalid
Hansong Zhang [Mon, 4 Nov 2019 18:12:02 +0000 (10:12 -0800)]
L2CAP: Dequeue next request if previous response is invalid

If we drop the invalid response packet without dequeuing next request,
the outgoing request queue will stuck. We should dequeue it as long as
the signalling id matches.

Also fix the scid/dcid mismatch in cert stack.

Test: cert/run_cert.sh. test_open_two_channels should be fixed.
Bug: 141557006
Change-Id: Id4dd9f279ece55aa5e78443c8027df91af1dd7c8

4 years agoConnect inquiry API query implementation
Chris Manton [Mon, 4 Nov 2019 18:00:55 +0000 (10:00 -0800)]
Connect inquiry API query implementation

Bug: 143697964
Test: Verified inquiry sequence on actual device
Change-Id: I75721aa2db56c6fa28d322d3b08a32991e6d37b1

4 years agoMerge "Return matching device in CreateDatabase when called twice"
Treehugger Robot [Mon, 4 Nov 2019 17:41:30 +0000 (17:41 +0000)]
Merge "Return matching device in CreateDatabase when called twice"

4 years agoReturn matching device in CreateDatabase when called twice
Martin Brabham [Mon, 4 Nov 2019 03:11:55 +0000 (19:11 -0800)]
Return matching device in CreateDatabase when called twice

Bug: N/A
Test: atest --host -t bluetooth_test_gd:DeviceTest bluetooth_test_gd:DeviceDatabaseTest bluetooth_test_gd:DualDeviceTest
Change-Id: Ic8df7da1f3f003994acbdde773e2131b614d3def

4 years agoMerge "RootCanal:Add Hci cmds"
Treehugger Robot [Mon, 4 Nov 2019 17:38:12 +0000 (17:38 +0000)]
Merge "RootCanal:Add Hci cmds"

4 years agoMerge "RootCanal: Upgrade the LinkLayer in RootCanal to PDL"
Treehugger Robot [Sun, 3 Nov 2019 00:28:31 +0000 (00:28 +0000)]
Merge "RootCanal: Upgrade the LinkLayer in RootCanal to PDL"

4 years agoMerge "Expose psm value through l2cap classic service"
Treehugger Robot [Fri, 1 Nov 2019 21:59:08 +0000 (21:59 +0000)]
Merge "Expose psm value through l2cap classic service"

4 years agoMerge "Use proper PBF boundary for upper layer packets"
Chris Manton [Fri, 1 Nov 2019 20:46:16 +0000 (20:46 +0000)]
Merge "Use proper PBF boundary for upper layer packets"

4 years agoExpose psm value through l2cap classic service
Chris Manton [Fri, 1 Nov 2019 20:28:45 +0000 (13:28 -0700)]
Expose psm value through l2cap classic service

Test: Compiles
Bug: 143697964

Change-Id: I87c81491581fb55bda942f26f3fa3a6bf4989a08

4 years agoMerge "Add information request after acl connect"
Treehugger Robot [Fri, 1 Nov 2019 17:31:34 +0000 (17:31 +0000)]
Merge "Add information request after acl connect"

4 years agoMerge changes I238c23f5,I7c7b8045
Treehugger Robot [Fri, 1 Nov 2019 17:31:28 +0000 (17:31 +0000)]
Merge changes I238c23f5,I7c7b8045

* changes:
  Extend l2cap functionality for CoC
  Swap cid parameters

4 years agoRootCanal: Upgrade the LinkLayer in RootCanal to PDL
Chienyuan [Thu, 31 Oct 2019 06:01:28 +0000 (14:01 +0800)]
RootCanal: Upgrade the LinkLayer in RootCanal to PDL

Bug: 140384404
Test: run_cert.sh
Change-Id: I913c345f7bd6eb258c3c70ebce1a38a1fa4a764f

4 years agoMerge "HCI Classic ACL: Queue pending connection requests"
Treehugger Robot [Fri, 1 Nov 2019 05:15:32 +0000 (05:15 +0000)]
Merge "HCI Classic ACL: Queue pending connection requests"

4 years agoAdd information request after acl connect
Chris Manton [Thu, 31 Oct 2019 21:36:02 +0000 (14:36 -0700)]
Add information request after acl connect

The 2 information requests are optional, but convention
by legacy android stack and other devices I've tested against
send these commands after acl connection.

Bug: 143697964
Test: Verified on actual device with wireshark

Change-Id: Idd651ac30e8d843c88105f4145756320c0f68902

4 years agoExtend l2cap functionality for CoC
Chris Manton [Fri, 1 Nov 2019 03:39:11 +0000 (20:39 -0700)]
Extend l2cap functionality for CoC

Keep packets flowing after reception
Add search for channel using remote id

Bug: 143697964
Test: Verified using wireshark

Change-Id: I238c23f58f215316223bf28548422759016bc8ab

4 years agoSwap cid parameters
Chris Manton [Thu, 31 Oct 2019 23:19:14 +0000 (16:19 -0700)]
Swap cid parameters

Confusingly the destination cid in this packet is actually the cid
of the remote and the source cid is the cid of the local.

Bug: 143697964
Test: Verified correct behavior on wireshark
Change-Id: I7c7b80458d91c2cbd48b5990ae9202fc062cd59b

4 years agoUse proper PBF boundary for upper layer packets
Chris Manton [Thu, 31 Oct 2019 21:32:18 +0000 (14:32 -0700)]
Use proper PBF boundary for upper layer packets

Test: Verified with legacy stack
Bug: 143697964
Change-Id: I13a602e08c337180767b0a219804c964a5947506

4 years agoRootCanal:Add Hci cmds
Calvin Huang [Fri, 1 Nov 2019 02:12:25 +0000 (19:12 -0700)]
RootCanal:Add Hci cmds

Add HciReadEncryptionKeySize and HciWriteSecureConnectionHostSupport

Bug: 138260499
Test: run run_device_cert.sh
Change-Id: Icd49a9e0b3fbbbeedf180946a8ba4801ea18a2b8

4 years agoMerge changes Iec8b53b8,I6f74be04
Treehugger Robot [Thu, 31 Oct 2019 23:43:02 +0000 (23:43 +0000)]
Merge changes Iec8b53b8,I6f74be04

* changes:
  packet: Add Fragmentation
  packet: Add Append for reassembly

4 years agoHCI Classic ACL: Queue pending connection requests
Hansong Zhang [Thu, 31 Oct 2019 16:50:08 +0000 (09:50 -0700)]
HCI Classic ACL: Queue pending connection requests

* Send next connection request after connection_complete event, if there
is already a pending outgoing connection_request,
accept_connection_request, or reject_connection_request.
* Don't allow sending connection_request, or accept connection, if there
is already a device with same Address connected.
* Also fix a memory leak in grpc_root_server and inquiry_test.

Bug: 143620554
Test: bluetooth_test_gd and cert/run_cert.sh
Change-Id: I4ea321eafa7857bfa3ad3fdfa0ebfa07a162ff4b

4 years agopacket: Add Fragmentation
Myles Watson [Tue, 29 Oct 2019 23:31:14 +0000 (16:31 -0700)]
packet: Add Fragmentation

Bug: 141921396
Test: builds
Change-Id: Iec8b53b83b9ba3efbee8b45738161d3db5cf0837

4 years agopacket: Add Append for reassembly
Myles Watson [Wed, 30 Oct 2019 18:19:48 +0000 (11:19 -0700)]
packet: Add Append for reassembly

Bug: 141921396
Test: bluetooth_test_gd --gtest_filter=*MultiViewAppend*
Change-Id: I6f74be0406bb2fae5713782dee0f6874386d7e17

4 years agoMerge changes I9693f8e4,I3568a3dc
Treehugger Robot [Thu, 31 Oct 2019 16:35:47 +0000 (16:35 +0000)]
Merge changes I9693f8e4,I3568a3dc

* changes:
  L2CAP Classic Cert: Auto generate cid for incoming request
  L2CAP: Fix SignallingManager request queuing

4 years agoMerge "Signal id of zero is silently ignored per spec"
Treehugger Robot [Thu, 31 Oct 2019 05:53:42 +0000 (05:53 +0000)]
Merge "Signal id of zero is silently ignored per spec"

4 years agoMerge changes I33b0ace1,I3af9a79d
Treehugger Robot [Thu, 31 Oct 2019 00:01:36 +0000 (00:01 +0000)]
Merge changes I33b0ace1,I3af9a79d

* changes:
  Separate out connect actions for initiate/target
  Remove channel connection timeouts

4 years agoL2CAP Classic Cert: Auto generate cid for incoming request
Hansong Zhang [Wed, 30 Oct 2019 23:43:39 +0000 (16:43 -0700)]
L2CAP Classic Cert: Auto generate cid for incoming request

Previously the scid on cert side was hardcoded. Instead, let the cert
stack generate one, from kFirstDynamicChannelForIncomingRequest.

Test: run_cert_test
Bug: 143543622
Change-Id: I9693f8e4666c80bb62fedd0d94163e38f71211ae

4 years agoL2CAP: Fix SignallingManager request queuing
Hansong Zhang [Mon, 28 Oct 2019 21:55:02 +0000 (14:55 -0700)]
L2CAP: Fix SignallingManager request queuing

We should always wait for an outgoing request to be handled before
sending the next one. Fix the logic in queuing.

Test: run_cert_test.sh
Bug: 141557006
Change-Id: I3568a3dca4857f1ba4fa47618408f40e2f1f7d04

4 years agoMerge "Revert "RootCanal: Upgrade the LinkLayer in RootCanal to PDL""
Colin Cross [Wed, 30 Oct 2019 20:39:36 +0000 (20:39 +0000)]
Merge "Revert "RootCanal: Upgrade the LinkLayer in RootCanal to PDL""

4 years agoSeparate out connect actions for initiate/target
Chris Manton [Tue, 29 Oct 2019 23:28:29 +0000 (16:28 -0700)]
Separate out connect actions for initiate/target

One connect path is soliciated the other as a response
to the service being listened on.

Bug: 141758481
Test: Compiles and bluetooth_test_gd

Change-Id: I33b0ace1c3b691632db9a89ed85892187d3c5fed

4 years agoRemove channel connection timeouts
Chris Manton [Wed, 30 Oct 2019 18:31:41 +0000 (11:31 -0700)]
Remove channel connection timeouts

Defer timeout to lower layer.
Remove hex values for psms
Formalize cid name change to abstract away actual l2cap channel
identifiers from clients.
  (cid) channel_id ==>  connection interface descriptor

Bug: 141758481
Test: Compiles
Change-Id: I3af9a79d7fd721d0d58b131e15cdd7c0204b90cf

4 years agoRevert "RootCanal: Upgrade the LinkLayer in RootCanal to PDL"
Cody Schuffelen [Wed, 30 Oct 2019 18:39:20 +0000 (18:39 +0000)]
Revert "RootCanal: Upgrade the LinkLayer in RootCanal to PDL"

This reverts commit f58a420f29d3d37fcbceb5b8ce8c5dd12ecc3124.

Reason for revert: Crashing on cuttlefish
Bug: 143621633

Change-Id: I2dcd365093ba68c8d917e5a029484b0a7e132ce6

4 years agoSignal id of zero is silently ignored per spec
Chris Manton [Wed, 30 Oct 2019 18:14:09 +0000 (11:14 -0700)]
Signal id of zero is silently ignored per spec

Must initialize with a valid signal id.

Bug: 141758481
Test: Verified connection response recieved with non-zero signal id
Change-Id: Icf0ca6a3404759da3734c2d760683a71063340a4

4 years agoMerge "Add inquiry module unit tests"
Treehugger Robot [Wed, 30 Oct 2019 14:52:34 +0000 (14:52 +0000)]
Merge "Add inquiry module unit tests"

4 years agoMerge "Dont disconnect if connection complete event with an ACL connection exists"
Treehugger Robot [Wed, 30 Oct 2019 14:49:03 +0000 (14:49 +0000)]
Merge "Dont disconnect if connection complete event with an ACL connection exists"

4 years agoMerge "RootCanal: Upgrade the LinkLayer in RootCanal to PDL"
Treehugger Robot [Wed, 30 Oct 2019 13:09:09 +0000 (13:09 +0000)]
Merge "RootCanal: Upgrade the LinkLayer in RootCanal to PDL"

4 years agoL2cap shim layer with legacy
Chris Manton [Tue, 29 Oct 2019 00:30:39 +0000 (17:30 -0700)]
L2cap shim layer with legacy

Bug: 141758481
Test: compiles and gracefully fails connect operation
Change-Id: Id0cdc9f0cd8efed18f9a3b6df24207726f0bbd3a

4 years agogd shim layer
Chris Manton [Tue, 29 Oct 2019 00:29:29 +0000 (17:29 -0700)]
gd shim layer

Bug: 141758481
Test: Compiles and fails connect gracefully
Change-Id: I5a11b7796cd8a6990a0b9a006437b81805b4c4d0

4 years agoMerge "Interop Workaround: Add Joy-Con"
Treehugger Robot [Wed, 30 Oct 2019 02:33:47 +0000 (02:33 +0000)]
Merge "Interop Workaround: Add Joy-Con"

4 years agoMerge "Execute channel fail callbacks when link not up"
Treehugger Robot [Wed, 30 Oct 2019 02:13:41 +0000 (02:13 +0000)]
Merge "Execute channel fail callbacks when link not up"

4 years agoDont disconnect if connection complete event with an ACL connection exists
Vic Huang [Tue, 15 Oct 2019 10:06:39 +0000 (18:06 +0800)]
Dont disconnect if connection complete event with an ACL connection exists

When create connection and connect request from the same device happen
at the same time, the first connection complete event will work as
expected and set link state to LST_CONNECTED.
But the second connection complete event will disconnect the exist
connection due to the link state is LST_CONNECTED and status is
HCI_ERR_CONNECTION_EXISTS.

Bug: 141872633
Test: Create connection and receive connect request at the same time.
      Check if connection work as expected.

Change-Id: Ibefa1021c3d314522a62cae0b1a31a34b0f8dbc8

4 years agoMerge changes I40aa2b5f,Ica99086c
Treehugger Robot [Wed, 30 Oct 2019 00:25:30 +0000 (00:25 +0000)]
Merge changes I40aa2b5f,Ica99086c

* changes:
  HCI: Add LeAdvertisingManager
  HCI: Add VSC Advertising packets

4 years agoInterop Workaround: Add Joy-Con
cncn [Mon, 28 Oct 2019 21:05:30 +0000 (14:05 -0700)]
Interop Workaround: Add Joy-Con

Bug: 142440781
Test: 1) checking logcat, a log will be printed when when apply special
workaround.
2) testing on device, latency is high on device without the fix and
low with the fix
Change-Id: I0c6548946e9b0e17425086e562fba2150ba0e2cc

4 years agoExecute channel fail callbacks when link not up
Chris Manton [Tue, 29 Oct 2019 23:28:40 +0000 (16:28 -0700)]
Execute channel fail callbacks when link not up

When a user requests a channel to a device but the link
is not up, the request sits in a pending queue until
the link is complete.

Should the link not complete successfully, the user
needs to be notified that the channel connection
failed.

Bug: 141758481
Test: Verified callback completes on real device when timeout failure
Change-Id: I6ea887db30bfe9c9762756cf3c28c68e2e088b8f

4 years agoRootCanal: Upgrade the LinkLayer in RootCanal to PDL
Chienyuan [Wed, 9 Oct 2019 10:11:34 +0000 (18:11 +0800)]
RootCanal: Upgrade the LinkLayer in RootCanal to PDL

Bug: 140384404
Test: run_cert.sh
Change-Id: If66b15cdd942c7214a00a317c2b435da03ffebb7

4 years agoMerge "L2CAP Fix Echo Response"
Treehugger Robot [Mon, 28 Oct 2019 17:52:44 +0000 (17:52 +0000)]
Merge "L2CAP Fix Echo Response"

4 years agoHCI: Add LeAdvertisingManager
Myles Watson [Mon, 14 Oct 2019 23:58:31 +0000 (16:58 -0700)]
HCI: Add LeAdvertisingManager

Bug: 139080884
Test: builds
Change-Id: I40aa2b5f0cf85ce601c310020ed51a204cc0501b

4 years agoHCI: Add VSC Advertising packets
Myles Watson [Tue, 22 Oct 2019 23:21:44 +0000 (16:21 -0700)]
HCI: Add VSC Advertising packets

Bug: 139080884
Test: bluetooth_test_gd
Change-Id: Ica99086cafc3c35afce88b13c03fd3f74deb5232

4 years agoMerge "Switch role to MASTER after connecting"
Treehugger Robot [Mon, 28 Oct 2019 15:45:15 +0000 (15:45 +0000)]
Merge "Switch role to MASTER after connecting"

4 years agoMerge "Merge Coral/Flame into AOSP master"
Xin Li [Sun, 27 Oct 2019 04:44:29 +0000 (04:44 +0000)]
Merge "Merge Coral/Flame into AOSP master"

4 years agoMerge "bluetooth_test_gd: Remove leaked thread and DB"
Treehugger Robot [Fri, 25 Oct 2019 23:50:11 +0000 (23:50 +0000)]
Merge "bluetooth_test_gd: Remove leaked thread and DB"

4 years agoMerge "Unify log tag for shim layer"
Treehugger Robot [Fri, 25 Oct 2019 23:48:53 +0000 (23:48 +0000)]
Merge "Unify log tag for shim layer"

4 years agoAdd inquiry module unit tests
Chris Manton [Wed, 23 Oct 2019 23:53:23 +0000 (16:53 -0700)]
Add inquiry module unit tests

Test: bluetooth_test_gd
Bug: 142061208

Change-Id: I0d18af5592d09d1a63f3c37f10838fd95269dac8

4 years agobluetooth_test_gd: Remove leaked thread and DB
Myles Watson [Fri, 25 Oct 2019 21:21:44 +0000 (14:21 -0700)]
bluetooth_test_gd: Remove leaked thread and DB

Test: bluetooth_test_gd
Change-Id: I1e76bdd41b51f6ec3ef284f176f9a7ce76d273be

4 years agoMerge "L2CAP: Store dynamic channel connection requests when no link"
Treehugger Robot [Fri, 25 Oct 2019 21:20:49 +0000 (21:20 +0000)]
Merge "L2CAP: Store dynamic channel connection requests when no link"

4 years agoUse AddressWithType in PairingHandlerLe
Jakub Pawlowski [Thu, 24 Oct 2019 18:12:35 +0000 (20:12 +0200)]
Use AddressWithType in PairingHandlerLe

Bug: 142341141
Test: updated unittests
Change-Id: Ic543148ca2d36f44e64ffb00744adf6d557b84c3

4 years agoExpose Role through AclConnection, Link, and le::FixedChannel
Jakub Pawlowski [Fri, 25 Oct 2019 09:36:43 +0000 (11:36 +0200)]
Expose Role through AclConnection, Link, and le::FixedChannel

Role is needed in SMP to properly bootstrap the pairing process

Bug: 142341141
Change-Id: If0815c7bc9d07180950e66dbaafd69220e933340

4 years agoL2CAP Fix Echo Response
Hansong Zhang [Fri, 25 Oct 2019 18:05:30 +0000 (11:05 -0700)]
L2CAP Fix Echo Response

Fix Echo Response Packet for PTS L2CAP/COS/ECH/BV-01-C

Test: run_cert_test
Bug: 141557006
Change-Id: I5e575d578e4b2f1aed04e35a32ece37889ee156f

4 years agoL2CAP: Store dynamic channel connection requests when no link
Hansong Zhang [Fri, 25 Oct 2019 00:23:18 +0000 (17:23 -0700)]
L2CAP: Store dynamic channel connection requests when no link

Test: run_cert_test
Bug: 141557006
Change-Id: I37e1ec379458f40ab944ab69b0ed9c774350078a

4 years agoMerge "L2CAP: Allow opening connection, and add PTS request_connection test"
Treehugger Robot [Fri, 25 Oct 2019 20:16:45 +0000 (20:16 +0000)]
Merge "L2CAP: Allow opening connection, and add PTS request_connection test"

4 years agoMerge "Add required header_libs"
Marco Nelissen [Fri, 25 Oct 2019 19:47:54 +0000 (19:47 +0000)]
Merge "Add required header_libs"

4 years agoUnify log tag for shim layer
Chris Manton [Fri, 25 Oct 2019 19:44:56 +0000 (12:44 -0700)]
Unify log tag for shim layer

Bug: 140421729
Test: Compiles
Change-Id: I7809e11273a38aa260881faf6fd10246b78a9d6d

4 years agoMerge Coral/Flame into AOSP master
Xin Li [Fri, 25 Oct 2019 17:28:40 +0000 (10:28 -0700)]
Merge Coral/Flame into AOSP master

Bug: 141248619
Change-Id: I4818ef97dfd59ee7573b3c2b84a90559d8dec289
Merged-In: Id56826347023d4ad4c211ad5e39164bc47fdf530

4 years agoL2CAP: Allow opening connection, and add PTS request_connection test
Hansong Zhang [Tue, 22 Oct 2019 23:11:53 +0000 (16:11 -0700)]
L2CAP: Allow opening connection, and add PTS request_connection test

* Allow reserving a channel to send channel connection request
* Handle open channel request from user API
* Add PTS test_basic_operation_request_connection
(L2CAP/COS/CED/BV-01-C)

Test: run_cert_test
Bug: 141557006
Change-Id: Ia8245a3f944dd1e731808d1c99ac79047b9d67a8

4 years agoMerge "Make FixedChannel and Link aware of address type"
Jakub Pawlowski [Thu, 24 Oct 2019 14:06:53 +0000 (07:06 -0700)]
Merge "Make FixedChannel and Link aware of address type"
am: b033f7d85a

Change-Id: Id56826347023d4ad4c211ad5e39164bc47fdf530

4 years agoMerge "Make FixedChannel and Link aware of address type"
Jakub Pawlowski [Thu, 24 Oct 2019 13:39:36 +0000 (13:39 +0000)]
Merge "Make FixedChannel and Link aware of address type"

4 years agoMake FixedChannel and Link aware of address type
Jakub Pawlowski [Thu, 24 Oct 2019 12:01:36 +0000 (14:01 +0200)]
Make FixedChannel and Link aware of address type

Bug: 140938432
Bug: 142341141
Change-Id: I120179eef18f3ac59e32e9196f700e51c47d1a84

4 years agoSwitch role to MASTER after connecting
Ted Wang [Mon, 21 Oct 2019 09:32:12 +0000 (17:32 +0800)]
Switch role to MASTER after connecting

It could cause issues and audio glitches when phone is at SLAVE role
after Bluetooth connection has been established, especially in dynamic
channel environment.
Request role switch after remote send connection request to make phone
at MASTER role.

Bug: 130190036
Test: Create connection from remote device and check it switched role
Change-Id: I11334a730c9fe93b841a4ed54dd6b89e9edf87f3

4 years agoMerge "Skip QD1A.190821.011 in stage-aosp-master" into stage-aosp-master
TreeHugger Robot [Thu, 24 Oct 2019 00:26:49 +0000 (00:26 +0000)]
Merge "Skip QD1A.190821.011 in stage-aosp-master" into stage-aosp-master

4 years agoAdd required header_libs
Marco Nelissen [Mon, 21 Oct 2019 21:53:45 +0000 (14:53 -0700)]
Add required header_libs

Test: build
Bug: 143245419
Change-Id: Iadfb621e477e1cef325385f3f5b10285cb3fc752

4 years agoMerge "HCI: Add fuzz test for HCI packets"
Jack He [Wed, 23 Oct 2019 22:24:16 +0000 (15:24 -0700)]
Merge "HCI: Add fuzz test for HCI packets"
am: 78487afd40

Change-Id: I6227fffca99e9e9ba8e4d1a054931a6995201033

4 years agoMerge "HCI: Add fuzz test for HCI packets"
Treehugger Robot [Wed, 23 Oct 2019 20:01:41 +0000 (20:01 +0000)]
Merge "HCI: Add fuzz test for HCI packets"

4 years agoMerge "PDL: Parameterize the root namespace"
Myles Watson [Wed, 23 Oct 2019 18:53:04 +0000 (11:53 -0700)]
Merge "PDL: Parameterize the root namespace"
am: 58da1ac0cc

Change-Id: I36c39a750ddc94e9ca4c2cb2f83c0d8fb79ff002

4 years agoMerge "L2CAP: Handle initial channel configuration"
Hansong Zhang [Wed, 23 Oct 2019 18:48:10 +0000 (11:48 -0700)]
Merge "L2CAP: Handle initial channel configuration"
am: 0f5ae76dfb

Change-Id: Iabaaa863fc8b3e17e6d800bbc81ed4b56a423a94

4 years agoMerge "PDL: Parameterize the root namespace"
Treehugger Robot [Wed, 23 Oct 2019 18:44:38 +0000 (18:44 +0000)]
Merge "PDL: Parameterize the root namespace"

4 years agoMerge "L2CAP: Handle initial channel configuration"
Treehugger Robot [Wed, 23 Oct 2019 18:00:24 +0000 (18:00 +0000)]
Merge "L2CAP: Handle initial channel configuration"

4 years agoMerge "Connect inquiry results back to legacy layer"
Chris Manton [Wed, 23 Oct 2019 17:45:41 +0000 (10:45 -0700)]
Merge "Connect inquiry results back to legacy layer"
am: 67895fd9a4

Change-Id: Ib0cd94877050a13ebc53ecf04459f38ee25e07d4

4 years agoMerge "Module: Mark getters as const"
Myles Watson [Wed, 23 Oct 2019 17:43:28 +0000 (10:43 -0700)]
Merge "Module: Mark getters as const"
am: 48ea0a7ab6

Change-Id: I1d4588c09a3dfbe9231096eb7d807f607d9364e3

4 years agoMerge "Connect inquiry results back to legacy layer"
Chris Manton [Wed, 23 Oct 2019 17:17:25 +0000 (17:17 +0000)]
Merge "Connect inquiry results back to legacy layer"

4 years agoMerge "Module: Mark getters as const"
Treehugger Robot [Wed, 23 Oct 2019 17:09:12 +0000 (17:09 +0000)]
Merge "Module: Mark getters as const"

4 years agoConnect inquiry results back to legacy layer
Chris Manton [Tue, 22 Oct 2019 21:24:58 +0000 (14:24 -0700)]
Connect inquiry results back to legacy layer

Bug: 141963466
Test: Compile
Change-Id: I949b1d90ead14cf15baa2a74db979ec76151650a
Merged-In: I949b1d90ead14cf15baa2a74db979ec76151650a

4 years agoStore Handler in common::CallbackList, and execute callbacks on proper handlers
Jakub Pawlowski [Wed, 23 Oct 2019 08:27:12 +0000 (01:27 -0700)]
Store Handler in common::CallbackList, and execute callbacks on proper handlers
am: b0e16b3158

Change-Id: I1073c2650b52765714e598f9cbd0210486480990

4 years agoModule: Mark getters as const
Myles Watson [Fri, 18 Oct 2019 18:21:47 +0000 (11:21 -0700)]
Module: Mark getters as const

Test: bluetooth_test_gd
Change-Id: Ieea21b113154bac1539a1ff73f4ca46ad37dfe35

4 years agoL2CAP: Handle initial channel configuration
Hansong Zhang [Wed, 16 Oct 2019 20:31:52 +0000 (13:31 -0700)]
L2CAP: Handle initial channel configuration

On channel open, send an empty configuration request, and always
respond empty to configuration request, to allow L2CAP basic dynamic
channel setup for testing.

Test: run_cert_test
Bug: 141557006

Change-Id: I95774ea093d069c83313c3e6d00d0bc2c3e6c4ed

4 years agoHCI: Add fuzz test for HCI packets
Jack He [Tue, 22 Oct 2019 22:57:10 +0000 (15:57 -0700)]
HCI: Add fuzz test for HCI packets

* Add fuzz test for a subset of HCI packets
* Modify the fuzz test generator to generate and register fuzz test at
  the same time

Bug: 142684649
Test: bluetooth_gd_fuzz_test
Change-Id: I1962fd497467bbf469d773823e3e6cf81f62772b

4 years agoStore Handler in common::CallbackList, and execute callbacks on proper handlers
Jakub Pawlowski [Tue, 22 Oct 2019 21:31:29 +0000 (23:31 +0200)]
Store Handler in common::CallbackList, and execute callbacks on proper handlers

Bug: 143169747
Change-Id: Ib8b6901956ffde9969decbe0b4653758d6a9ce52

4 years agoMerge "L2CAP: Call AclConnection.RegisterDisconnectCallback() in LinkManager"
Jack He [Tue, 22 Oct 2019 18:33:08 +0000 (11:33 -0700)]
Merge "L2CAP: Call AclConnection.RegisterDisconnectCallback() in LinkManager"
am: 632abab46f

Change-Id: Ic7e47293fc6b5e7ad4cf8d6b2701f860115feb7f

4 years agoMerge "L2CAP: Call AclConnection.RegisterDisconnectCallback() in LinkManager"
Treehugger Robot [Tue, 22 Oct 2019 18:12:07 +0000 (18:12 +0000)]
Merge "L2CAP: Call AclConnection.RegisterDisconnectCallback() in LinkManager"

4 years agoMerge changes If88cfd69,Icea6e47b
Chris Manton [Tue, 22 Oct 2019 16:15:57 +0000 (09:15 -0700)]
Merge changes If88cfd69,Icea6e47b
am: 256e3c0a5e

Change-Id: I0828c72ede14fe37aae9f404c86c3423d1659125

4 years agoMerge "RootCanal: Use gd/os/log.h logging"
Myles Watson [Tue, 22 Oct 2019 16:15:29 +0000 (09:15 -0700)]
Merge "RootCanal: Use gd/os/log.h logging"
am: 64e221d32a

Change-Id: I18f1f7086f46e8f9e7c5835468dbd168b532bda6

4 years agoMerge changes If88cfd69,Icea6e47b
Treehugger Robot [Tue, 22 Oct 2019 16:05:30 +0000 (16:05 +0000)]
Merge changes If88cfd69,Icea6e47b

* changes:
  Conditional entry between legacy Gd stack
  Gd shim layer neighbor modules

4 years agoMerge "RootCanal: Use gd/os/log.h logging"
Treehugger Robot [Tue, 22 Oct 2019 15:59:23 +0000 (15:59 +0000)]
Merge "RootCanal: Use gd/os/log.h logging"

4 years agoMerge "AVRCP Controller get play status"
Joseph Pirozzo [Tue, 22 Oct 2019 15:18:34 +0000 (08:18 -0700)]
Merge "AVRCP Controller get play status"
am: 7b6a6bbed7

Change-Id: Ia2045a9565efc64e513b4408c25197060d7bdc83

4 years agoMerge "AVRCP Controller get play status"
Joseph Pirozzo [Tue, 22 Oct 2019 15:06:10 +0000 (15:06 +0000)]
Merge "AVRCP Controller get play status"

4 years agoHCI: Use AddressWithType in various LE connection APIs
Jack He [Tue, 22 Oct 2019 10:14:50 +0000 (03:14 -0700)]
HCI: Use AddressWithType in various LE connection APIs
am: 1d4c6df162

Change-Id: I8c1bcea5d8d0a2ed607fb124cb71ae1a6b47ce34

4 years agoConditional entry between legacy Gd stack
Chris Manton [Fri, 18 Oct 2019 16:30:27 +0000 (09:30 -0700)]
Conditional entry between legacy Gd stack

Bug: 141963466
Test: Inquiry/Discoverable operational in Gd mode
Change-Id: If88cfd69d4eb60e615c1f84e8972676e27364c73

4 years agoGd shim layer neighbor modules
Chris Manton [Thu, 17 Oct 2019 17:56:37 +0000 (10:56 -0700)]
Gd shim layer neighbor modules

Bug: 141963466
Test: Compiles for realz

Change-Id: Icea6e47bd9539613ea441ae2aed604b59e4b692f

4 years agoMerge changes I87ce02f0,I2c81de7a
Jack He [Tue, 22 Oct 2019 02:12:01 +0000 (19:12 -0700)]
Merge changes I87ce02f0,I2c81de7a
am: 4d5c3e4427

Change-Id: Ifc3e57496feafbd146e3d0dbea92cc239bc0a011

4 years agoL2CAP: Call AclConnection.RegisterDisconnectCallback() in LinkManager
Jack He [Tue, 22 Oct 2019 01:44:27 +0000 (18:44 -0700)]
L2CAP: Call AclConnection.RegisterDisconnectCallback() in LinkManager

* LinkManager should get ACL disconnection callback from HCI since it
  needs to be able to free Link objects after tearing down Link states
* Previously, only Link is getting this callback, as result, there is a
  memory leak when ACL is disconnected as the Link object was never
  removed

Test: bluetooth_test_gd
Bug: 140938432
Change-Id: I28ed509cbaaa1c4917e1f632a6c35247f3ebe2ef

4 years agoHCI: Use AddressWithType in various LE connection APIs
Jack He [Tue, 22 Oct 2019 00:03:18 +0000 (17:03 -0700)]
HCI: Use AddressWithType in various LE connection APIs

* Use AddressWithType object to ease object management and hashing
* Track classic and LE pending connections separately in AclManager
* Report peer resolvable address in LE enhanced connection complete
  event if it is not empty

Bug: 138261114
Test: bluetooth_test_gd
Change-Id: I2bea155485a5bdc3d087336c6276952f3d64f0ac