OSDN Git Service

android-x86/system-bt.git
4 years agoMerge "Initial entry for headless"
Chris Manton [Tue, 21 Jan 2020 23:59:30 +0000 (15:59 -0800)]
Merge "Initial entry for headless"
am: 562ec8ffd5

Change-Id: Ib413fd98722a37ccbc703a5c3d253fa68fd1c5f1

4 years agoMerge "Initial entry for headless"
Treehugger Robot [Tue, 21 Jan 2020 23:56:10 +0000 (23:56 +0000)]
Merge "Initial entry for headless"

4 years agoSplit ports for device and root-canal tests
Myles Watson [Tue, 21 Jan 2020 23:32:17 +0000 (15:32 -0800)]
Split ports for device and root-canal tests
am: 82ec67d4fb

Change-Id: I7cd54d1ebbaa376980dc4eb258258834e3084e47

4 years agoInitial entry for headless
Chris Manton [Wed, 15 Jan 2020 00:34:08 +0000 (16:34 -0800)]
Initial entry for headless

Bug: 147316415
Test: Compiles and sdp test runs

Change-Id: I2db01df68fb8807ce934b59aab5a4f593d4f8074

4 years agoSplit ports for device and root-canal tests
Myles Watson [Fri, 17 Jan 2020 21:46:23 +0000 (13:46 -0800)]
Split ports for device and root-canal tests

Use 89xx ports for Root-canal tests and 88xx for device tests.

Bug: 148096951
Test: ./cert/run_device_cert.sh && ./cert/run_cert_facade_only.sh
Change-Id: I4ad9357d882668058450b42473addb69a290e7f5

4 years agoMerge "ACL packet recombination"
Hansong Zhang [Tue, 21 Jan 2020 20:19:54 +0000 (12:19 -0800)]
Merge "ACL packet recombination"
am: 3102f77de0

Change-Id: I69757b56781e026071ef20727f2a38c7869af464

4 years agoMerge "ACL packet recombination"
Treehugger Robot [Tue, 21 Jan 2020 20:08:55 +0000 (20:08 +0000)]
Merge "ACL packet recombination"

4 years agoACL packet recombination
Hansong Zhang [Thu, 16 Jan 2020 22:05:41 +0000 (14:05 -0800)]
ACL packet recombination

Recombine ACL fragments according to indicated L2CAP PDU size. Used the
workaround that rootcanal always sends the same ACL packet to remote to
verify.

Also added ACL fragmentation support in rootcanal. Recombination in
rootcanal is not supported so far, so whenever we want to send an ACL
packet fragment, we never buffer it until we have a complete L2CAP PDU.

Test: cert/run_cert_facade_only.sh run_cert.sh
Change-Id: Ieb4d3c987327867a39ce210474b84645175b8984

4 years agoFix legacy shim namespace
Chris Manton [Mon, 20 Jan 2020 20:57:13 +0000 (12:57 -0800)]
Fix legacy shim namespace
am: b22d23d374

Change-Id: If665f563587efc22f604b96d3f6deac63bd74940

4 years agoRefactor dumpsys apis for legacy and gd
Chris Manton [Mon, 20 Jan 2020 20:56:34 +0000 (12:56 -0800)]
Refactor dumpsys apis for legacy and gd
am: ff7ffd09fc

Change-Id: I6a3b86f56711cef4748ae5130d2a280149a60b2f

4 years agoFix legacy shim namespace
Chris Manton [Sun, 19 Jan 2020 01:29:38 +0000 (17:29 -0800)]
Fix legacy shim namespace

Align namespaces to adhere to convention

Bug: 140421732
Test: Builds
Change-Id: I23e716f7250b79d147ba0db974b91578ebf63d56

4 years agoRefactor dumpsys apis for legacy and gd
Chris Manton [Sat, 18 Jan 2020 03:25:36 +0000 (19:25 -0800)]
Refactor dumpsys apis for legacy and gd

Unify legacy and gd dumpsys syntax.
Fix static initialization order problem.

Bug: 147672133
Test: bt_headless and bluetooth_test_gd
Change-Id: I6f4d0d2c5611deace5a2a11eff8001b624b3dc62

4 years agoMerge "Shim stack facade test and fix for test"
Chris Manton [Fri, 17 Jan 2020 23:52:06 +0000 (15:52 -0800)]
Merge "Shim stack facade test and fix for test"
am: 18162fbdc1

Change-Id: Ic04bc30d0aa627eb7074e4089d61b0e7e72a7c50

4 years agoMerge "Shim stack facade test and fix for test"
Treehugger Robot [Fri, 17 Jan 2020 23:48:27 +0000 (23:48 +0000)]
Merge "Shim stack facade test and fix for test"

4 years agoMerge "Fix issue around Encryption during Pairing"
Jakub Pawlowski [Fri, 17 Jan 2020 23:23:44 +0000 (15:23 -0800)]
Merge "Fix issue around Encryption during Pairing"
am: 7a62e2814c

Change-Id: I93c00c88e047eb2947ec92bff6392c7b693f065b

4 years agoMerge "Fix issue around Encryption during Pairing"
Treehugger Robot [Fri, 17 Jan 2020 23:07:49 +0000 (23:07 +0000)]
Merge "Fix issue around Encryption during Pairing"

4 years agoShim stack facade test and fix for test
Chris Manton [Fri, 17 Jan 2020 18:32:53 +0000 (10:32 -0800)]
Shim stack facade test and fix for test

Accidently 'captured' a raw pointer into a unique
pointer, which forced deletion upon destruction
resulting in other modules who rely on the no-longer-
in-existance module to call the module's pure
virtual Stop() function which is a bad thing.

Bug: 140778599
Test: ./gd/cert/run_cert_facade_only.sh

Change-Id: Ie1e39430517e47497172786fe4d8ab4976c371b4

4 years agoMerge "Cert: Swap Cert and DUT for device tests"
Myles Watson [Fri, 17 Jan 2020 21:28:46 +0000 (13:28 -0800)]
Merge "Cert: Swap Cert and DUT for device tests"
am: 12a6ff9be2

Change-Id: I0656a250441cc1c53c32a929d1adcccdad8076ea

4 years agoMerge "Cert: Swap Cert and DUT for device tests"
Treehugger Robot [Fri, 17 Jan 2020 18:59:33 +0000 (18:59 +0000)]
Merge "Cert: Swap Cert and DUT for device tests"

4 years agoFix issue around Encryption during Pairing
Jakub Pawlowski [Fri, 17 Jan 2020 18:54:47 +0000 (19:54 +0100)]
Fix issue around Encryption during Pairing

* ECC_PointMult erases private key argument, pass copy instead of
original value.
* Specify Z parameter for ECC Points

This fixes issues where LE Secure connection pairing between old and new
stack was failing due to DHKey mismatch

Test: manual pairing between phone running new and old stack
Bug: 147086339
Change-Id: Ied3404c2eb2ca55b717042ea099e1aefed1c3e8d

4 years agoMerge "Hid: Fix connection issue with legacy mouse" am: ab2c35908d
Automerger Merge Worker [Fri, 17 Jan 2020 16:53:55 +0000 (16:53 +0000)]
Merge "Hid: Fix connection issue with legacy mouse" am: ab2c35908d

Change-Id: Ib1ffbd58861ccccdc0f85c655ca9f00919d962bc

4 years agoMerge "Hid: Fix connection issue with legacy mouse"
Treehugger Robot [Fri, 17 Jan 2020 16:39:06 +0000 (16:39 +0000)]
Merge "Hid: Fix connection issue with legacy mouse"

4 years agoCert: Swap Cert and DUT for device tests
Myles Watson [Fri, 17 Jan 2020 16:28:02 +0000 (08:28 -0800)]
Cert: Swap Cert and DUT for device tests

Test: ./cert/run_device_cert.sh
Change-Id: Ib95eb8d2c7dacb252447902d0e0d6a366f20a01f

4 years agoMerge "LE-COC: Free LE-COC server resource when BluetoothServerSocket is closed"...
Automerger Merge Worker [Fri, 17 Jan 2020 14:35:26 +0000 (14:35 +0000)]
Merge "LE-COC: Free LE-COC server resource when BluetoothServerSocket is closed" am: 94193de298

Change-Id: Ib8e62df817c00e9eeb36c7a79851fc54b6584a1e

4 years agoMerge "LE-COC: Free LE-COC server resource when BluetoothServerSocket is closed"
Treehugger Robot [Fri, 17 Jan 2020 14:24:38 +0000 (14:24 +0000)]
Merge "LE-COC: Free LE-COC server resource when BluetoothServerSocket is closed"

4 years agoHid: Fix connection issue with legacy mouse
sravan voleti [Fri, 17 Jan 2020 08:44:37 +0000 (14:14 +0530)]
Hid: Fix connection issue with legacy mouse

use case:
1) Pair and connect mouse from DUT
2) Unpair mouse from DUT UI
3) Try to pair from mouse, SDP connection from dut
    should fail during pairing.
4) Scan the mouse from DUT and initiate pairing.

Observed Results:
Pairing stuck in bonding state.

Root cause:
On sdp failure cases, HID incoming connection flags not cleared
 and leading to HID connection and pairing failure in next outgoing pairing.

Fix:
Reset hid incoming connection flags when sdp fails,
to fix connection issue with specific HID mouse.

Fixes: 147856205
Test: Tested above use case with legacy mouse, issue not observed.
Change-Id: I11b5d52a78f861cc270d0736c912cd40f1b76d6d

4 years agoMerge "A2DP: Based on the AAC parameters to calculate its encoder interval" am: b4aaf...
Automerger Merge Worker [Fri, 17 Jan 2020 06:53:52 +0000 (06:53 +0000)]
Merge "A2DP: Based on the AAC parameters to calculate its encoder interval" am: b4aaf488dd

Change-Id: I97ebd6e841e32edd05a93a7f557d40036ae4efc4

4 years agoMerge "A2DP: Based on the AAC parameters to calculate its encoder interval"
Treehugger Robot [Fri, 17 Jan 2020 06:45:20 +0000 (06:45 +0000)]
Merge "A2DP: Based on the AAC parameters to calculate its encoder interval"

4 years agoRootcanal: Always send FIRST_NON_AUTOMATICALLY_FLUSHABLE am: 32a732d317
Automerger Merge Worker [Fri, 17 Jan 2020 03:27:50 +0000 (03:27 +0000)]
Rootcanal: Always send FIRST_NON_AUTOMATICALLY_FLUSHABLE am: 32a732d317

Change-Id: Id154ad51546e2a208a9d14c02509581a3b5698a6

4 years agoAdd queuing for incoming acl packets am: abb03e7ba2
Automerger Merge Worker [Fri, 17 Jan 2020 03:27:15 +0000 (03:27 +0000)]
Add queuing for incoming acl packets am: abb03e7ba2

Change-Id: Iad49551a0b0f969f43aa20969a747e8aeb3f9a75

4 years agoMerge "PAN: Remove bta_pan_co_tx_writebuf (dead code)" am: 4ae2ed58df
Automerger Merge Worker [Fri, 17 Jan 2020 03:26:05 +0000 (03:26 +0000)]
Merge "PAN: Remove bta_pan_co_tx_writebuf (dead code)" am: 4ae2ed58df

Change-Id: I8421c0493f8a482a4e4c05a8328b8d9634292ca5

4 years agoMerge "Delay removal of owned memory until close callback completes" am: 5fb434b0ac
Automerger Merge Worker [Fri, 17 Jan 2020 03:24:37 +0000 (03:24 +0000)]
Merge "Delay removal of owned memory until close callback completes" am: 5fb434b0ac

Change-Id: I8b429070ab6a797e4c70bdc2253a343d108021b7

4 years agoAdd names for all shim modules am: e21efea454
Automerger Merge Worker [Fri, 17 Jan 2020 03:22:16 +0000 (03:22 +0000)]
Add names for all shim modules am: e21efea454

Change-Id: Iae4d73e3280a0e1373625553d9c9ca43dd9c8ab6

4 years agoLE-COC: Free LE-COC server resource when BluetoothServerSocket is closed
Jack He [Fri, 17 Jan 2020 00:20:06 +0000 (16:20 -0800)]
LE-COC: Free LE-COC server resource when BluetoothServerSocket is closed

* When BluetoothServerSocket is closed in the Java layer, the native
  layer should respond by freeing all resources used by the server
  including file descriptors, structs, PSMs, and security IDs
* We did this correctly for BR_EDR L2CAP COC channels after
  I4e37dcd858af258fbd64fbfb2fbf0083bd743e06, but the same fix did not
  apply to LE COC
* This CL make sure LE COC server resources are freed propertly upon
  server fd closure

Test: open and close LE COC server repeatedly on an Android phone
Bug: 144148429
Change-Id: I16fa10e77612105d23848f71925ff6efc95bc75a

4 years agoRootcanal: Always send FIRST_NON_AUTOMATICALLY_FLUSHABLE
Hansong Zhang [Thu, 16 Jan 2020 23:11:22 +0000 (15:11 -0800)]
Rootcanal: Always send FIRST_NON_AUTOMATICALLY_FLUSHABLE

Controller should only send FIRST_NON_AUTOMATICALLY_FLUSHABLE to host
per spec 5.1 vol 2 part E 5.4.2

Test: run_cert.sh
Change-Id: Ia79a4a1d4e64de4ba0d59a44108db93e4a2f7c7a

4 years agoAdd queuing for incoming acl packets
Chris Manton [Thu, 16 Jan 2020 21:36:44 +0000 (13:36 -0800)]
Add queuing for incoming acl packets

If a second packet arrives to the acl while there is
already a packet being processed the code ASSERTS
with enqueue already registered.

Bug: 140778599
Test: Runs bt_headless for 100 runs with no errors

Change-Id: Ib7601eab2121b1888f58f71676f734080f41c8ec

4 years agoMerge "PAN: Remove bta_pan_co_tx_writebuf (dead code)"
Treehugger Robot [Thu, 16 Jan 2020 23:06:22 +0000 (23:06 +0000)]
Merge "PAN: Remove bta_pan_co_tx_writebuf (dead code)"

4 years agoMerge "Delay removal of owned memory until close callback completes"
Treehugger Robot [Thu, 16 Jan 2020 21:53:30 +0000 (21:53 +0000)]
Merge "Delay removal of owned memory until close callback completes"

4 years agoDelay removal of owned memory until close callback completes
Chris Manton [Thu, 16 Jan 2020 19:25:06 +0000 (11:25 -0800)]
Delay removal of owned memory until close callback completes

Bug: 146086425
Test: bt_headless runs many (~100) iterations without this signature failure
Change-Id: I96a59ca80cf15ca0248e6ef2a0a2f1dcaf5c9fea

4 years agoMerge "DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage...
TreeHugger Robot [Thu, 16 Jan 2020 18:29:12 +0000 (18:29 +0000)]
Merge "DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master" into stage-aosp-master

4 years agoAdd names for all shim modules
Chris Manton [Thu, 16 Jan 2020 17:53:17 +0000 (09:53 -0800)]
Add names for all shim modules

Bug: 140778599
Test: bluetooth_test_gd
Change-Id: Ie55ab28a5b1d748053c48835b2c9d7b855ede750

4 years agoMerge "AclManager::create_le_connection fixes"
Jakub Pawlowski [Thu, 16 Jan 2020 15:01:19 +0000 (07:01 -0800)]
Merge "AclManager::create_le_connection fixes"
am: 963735ccd5

Change-Id: I26baea07133e0b67b2fcb73f2f59359b0cd5df97

4 years agoMerge "AclManager::create_le_connection fixes"
Jakub Pawlowski [Thu, 16 Jan 2020 14:55:42 +0000 (14:55 +0000)]
Merge "AclManager::create_le_connection fixes"

4 years agoMerge "Convert on-device tests to facade_only"
Myles Watson [Thu, 16 Jan 2020 14:09:00 +0000 (06:09 -0800)]
Merge "Convert on-device tests to facade_only"
am: 83646936f2

Change-Id: Id54aafc0067615bfcc42ccbe0fcc4f71add7ad89

4 years agoMerge "Convert on-device tests to facade_only"
Treehugger Robot [Thu, 16 Jan 2020 14:07:39 +0000 (14:07 +0000)]
Merge "Convert on-device tests to facade_only"

4 years agoMerge "SecurityManager: Call Init in the constructor"
Myles Watson [Thu, 16 Jan 2020 14:05:19 +0000 (06:05 -0800)]
Merge "SecurityManager: Call Init in the constructor"
am: b09d920e59

Change-Id: I0121013ebe7c6421e2ff4e3d8748e26115284a94

4 years agoMerge "SecurityManager: Call Init in the constructor"
Treehugger Robot [Thu, 16 Jan 2020 14:04:09 +0000 (14:04 +0000)]
Merge "SecurityManager: Call Init in the constructor"

4 years agoA2DP: Based on the AAC parameters to calculate its encoder interval
Cheney Ni [Tue, 17 Dec 2019 07:47:01 +0000 (15:47 +0800)]
A2DP: Based on the AAC parameters to calculate its encoder interval

When running AAC software encoder, the PCM data size per AAC frame is:
  1024 (sample counts per frame) * 2 (16 bits per sample) * 2 (stereo)
If we are using 44.1 kHz, the interval is about 23.22 ms. When using 48
kHz, it is about 21.33 ms. Here we determine the interval based on the
codec configuration and feeding parameters while updating the AAC
encoder.

Bug: 146399686
Test: There were AAC frames every 23 ms in BTSnoop
Change-Id: I8af7696917b007cb751a8991f21b344724b9ba94

4 years agoMerge "HCI: Add an LeAclManagerFacade and tests"
Myles Watson [Thu, 16 Jan 2020 13:19:26 +0000 (05:19 -0800)]
Merge "HCI: Add an LeAclManagerFacade and tests"
am: fe6c2a924e

Change-Id: I420709274c0a322f9302f45e2b08e04b2b568a77

4 years agoMerge "HCI: Add an LeAclManagerFacade and tests"
Treehugger Robot [Thu, 16 Jan 2020 13:06:08 +0000 (13:06 +0000)]
Merge "HCI: Add an LeAclManagerFacade and tests"

4 years agoAclManager::create_le_connection fixes
Jakub Pawlowski [Mon, 13 Jan 2020 19:25:45 +0000 (20:25 +0100)]
AclManager::create_le_connection fixes

* modern controllers require "Enhanced" version of Create Connection
Command
* They also require "Set Random Address" to be used before attempting to
create connection
* Use same parameters for connection initiation as the old  stack is using

Test: Attempt to Bond with LE device
Change-Id: I58eb54b4e45f5884a69079421b7a2c6a67b7a2bd

4 years agoMerge "L2CAP: Call Authenticate for the Classic Pairing service"
Myles Watson [Thu, 16 Jan 2020 07:04:27 +0000 (23:04 -0800)]
Merge "L2CAP: Call Authenticate for the Classic Pairing service"
am: e76ab3001f

Change-Id: Ie7b02675a039b5c74ce63b21bfe6b15b9bea7649

4 years agoMerge "L2CAP: Call Authenticate for the Classic Pairing service"
Treehugger Robot [Thu, 16 Jan 2020 06:14:49 +0000 (06:14 +0000)]
Merge "L2CAP: Call Authenticate for the Classic Pairing service"

4 years agoMerge "Remove async grpc helper"
Hansong Zhang [Thu, 16 Jan 2020 02:06:34 +0000 (18:06 -0800)]
Merge "Remove async grpc helper"
am: 28aaf048ee

Change-Id: I11315e6be44dafc1d9065cec11099bcffb176ead

4 years agoMerge "Remove async grpc helper"
Treehugger Robot [Thu, 16 Jan 2020 02:05:23 +0000 (02:05 +0000)]
Merge "Remove async grpc helper"

4 years agoMerge "Fix flaky gd unit tests"
Hansong Zhang [Thu, 16 Jan 2020 01:40:06 +0000 (17:40 -0800)]
Merge "Fix flaky gd unit tests"
am: 5e50aea08e

Change-Id: I18538e51b3853ebce03db08344333e8873bd18df

4 years agoMerge "Fix flaky gd unit tests"
Treehugger Robot [Thu, 16 Jan 2020 01:36:22 +0000 (01:36 +0000)]
Merge "Fix flaky gd unit tests"

4 years agoMerge "gd: Repair and clean up rfcomm client/server tests"
Chris Manton [Thu, 16 Jan 2020 01:01:48 +0000 (17:01 -0800)]
Merge "gd: Repair and clean up rfcomm client/server tests"
am: 27bc74167e

Change-Id: I1e9063432a6419238cee0bc062c3979ea0cecfa9

4 years agoMerge "gd: Repair and clean up rfcomm client/server tests"
Treehugger Robot [Thu, 16 Jan 2020 00:45:53 +0000 (00:45 +0000)]
Merge "gd: Repair and clean up rfcomm client/server tests"

4 years agoConvert on-device tests to facade_only
Myles Watson [Wed, 15 Jan 2020 22:52:58 +0000 (14:52 -0800)]
Convert on-device tests to facade_only

Bug: 145832107
Test: ./cert/run_device_cert.sh
Change-Id: Ie66f87be313989ede7387aae9c3e7cce9edf3c6b

4 years agoDO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp...
Xin Li [Wed, 15 Jan 2020 23:57:29 +0000 (15:57 -0800)]
DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master

Bug: 146167222
Change-Id: Iac607a2077fd063a5abc7c1d1e30b152ee4081ec

4 years agoSecurityManager: Call Init in the constructor
Myles Watson [Wed, 15 Jan 2020 23:29:27 +0000 (15:29 -0800)]
SecurityManager: Call Init in the constructor

Bug: 145638034
Test: SecurityManager facade tests in ./cert/run_tests_facade_only.sh
Change-Id: I5ac735aa35177aa2cf34e0842dd0fd2a95347b30

4 years agoL2CAP: Call Authenticate for the Classic Pairing service
Myles Watson [Wed, 15 Jan 2020 23:28:16 +0000 (15:28 -0800)]
L2CAP: Call Authenticate for the Classic Pairing service

Bug: 145638034
Test: SecurityManager facade tests in ./cert/run_tests_facade_only.sh
Change-Id: Ib673e0c8355a0285785e88d887cfb85d73a09227

4 years agoRemove async grpc helper
Hansong Zhang [Wed, 15 Jan 2020 23:05:29 +0000 (15:05 -0800)]
Remove async grpc helper

No longer used

Bug: 147765784
Test: run_cert.sh
Change-Id: Ib6b608e504c52ce44736f2b9f82f3cfc5fa6c520

4 years agoFix flaky gd unit tests
Hansong Zhang [Tue, 14 Jan 2020 22:31:15 +0000 (14:31 -0800)]
Fix flaky gd unit tests

Test: $ANDROID_HOST_OUT/nativetest64/bluetooth_test_gd/bluetooth_test_gd
Bug: 147765784
Bug: 146363673
Bug: 146363318
Bug: 146363313
Change-Id: I382ccfd2b561c2154d2bef6c6b87db4e82ae7acb

4 years agoInitial entry for gd shim dumpsys support
Chris Manton [Wed, 15 Jan 2020 23:12:01 +0000 (15:12 -0800)]
Initial entry for gd shim dumpsys support
am: 0cb19c8cba

Change-Id: Iff00f91c64df2e458beae1a85183f2ab516115f2

4 years agogd: Repair and clean up rfcomm client/server tests
Chris Manton [Tue, 14 Jan 2020 04:32:01 +0000 (20:32 -0800)]
gd: Repair and clean up rfcomm client/server tests

Bug: 144170448
Test: Run ctsverified for both client and server under Gd

Change-Id: Ia17eab4c4121fddf9bc9feb895d25566c765d17b

4 years agoInitial entry for gd shim dumpsys support
Chris Manton [Tue, 14 Jan 2020 05:11:48 +0000 (21:11 -0800)]
Initial entry for gd shim dumpsys support

Bug: 147672133
Test: Boot into gd and manually verify dumpsys

Change-Id: Ie588dc0e3a1fd4dfd31abec9f5a21cae87eb0c67

4 years agoMerge changes Ib064f067,Iea33782b
Myles Watson [Wed, 15 Jan 2020 16:34:29 +0000 (08:34 -0800)]
Merge changes Ib064f067,Iea33782b
am: ef2594ff01

Change-Id: If9bad394e679cb591419e8cbd410ede3fa047634

4 years agoMerge changes Ib064f067,Iea33782b
Myles Watson [Wed, 15 Jan 2020 16:33:28 +0000 (16:33 +0000)]
Merge changes Ib064f067,Iea33782b

* changes:
  Revert "Add timer to detect HwBinder thread stuck"
  Revert "Print HwBinder thread performance to dumpsys"

4 years agoMerge "Use proper CID when registering for LE Signalling Channel"
Jakub Pawlowski [Wed, 15 Jan 2020 07:15:21 +0000 (23:15 -0800)]
Merge "Use proper CID when registering for LE Signalling Channel"
am: ada37ec01f

Change-Id: I8e37211309006eb0faeaa5d539512cfe4153b984

4 years agoRevert "Add timer to detect HwBinder thread stuck"
Ugo Yu [Wed, 15 Jan 2020 06:09:19 +0000 (14:09 +0800)]
Revert "Add timer to detect HwBinder thread stuck"

This reverts commit 6c9d9f527b7ec54bee5a569e3635800bbe7be3dd.

Bug: 146533770
Test: Build pass

4 years agoRevert "Print HwBinder thread performance to dumpsys"
Ugo Yu [Wed, 15 Jan 2020 05:56:57 +0000 (05:56 +0000)]
Revert "Print HwBinder thread performance to dumpsys"

This reverts commit dff02c0428c8c32bf5c796c189fdc66ef34ee80d.

Bug: 146533770
Test: Build pass
Change-Id: Iea33782be366cb7317161b94140edb9f518b82f7

4 years agoMerge "Use proper CID when registering for LE Signalling Channel"
Jakub Pawlowski [Wed, 15 Jan 2020 07:03:58 +0000 (07:03 +0000)]
Merge "Use proper CID when registering for LE Signalling Channel"

4 years agoMerge "Use BASIC rather than LE_CREDIT_BASED channel for LE Fixed channels"
Jakub Pawlowski [Wed, 15 Jan 2020 03:36:13 +0000 (19:36 -0800)]
Merge "Use BASIC rather than LE_CREDIT_BASED channel for LE Fixed channels"
am: 0059c3358d

Change-Id: I8f977e16aef20f409810c8435f4fadd9a0375844

4 years agoMerge "Use BASIC rather than LE_CREDIT_BASED channel for LE Fixed channels"
Treehugger Robot [Wed, 15 Jan 2020 03:34:40 +0000 (03:34 +0000)]
Merge "Use BASIC rather than LE_CREDIT_BASED channel for LE Fixed channels"

4 years agoUse BASIC rather than LE_CREDIT_BASED channel for LE Fixed channels
Jakub Pawlowski [Tue, 14 Jan 2020 23:40:18 +0000 (00:40 +0100)]
Use BASIC rather than LE_CREDIT_BASED channel for LE Fixed channels

Bug: 147086339
Test: Send data over SMP
Change-Id: I4d2253a193872235021b3af8488db70447e563eb

4 years agoUse proper CID when registering for LE Signalling Channel
Jakub Pawlowski [Tue, 14 Jan 2020 16:04:40 +0000 (17:04 +0100)]
Use proper CID when registering for LE Signalling Channel

Currently stack crashes on first received packet on signalling channel

Test: manual test, establish LE Connection
Bug: 147086339
Change-Id: Iaf062acbe5c03c2def51df71a754572d95a6e9a3

4 years agoHCI: Add an LeAclManagerFacade and tests
Myles Watson [Tue, 14 Jan 2020 22:33:09 +0000 (14:33 -0800)]
HCI: Add an LeAclManagerFacade and tests

Bug: 145832107
Test: ./cert/run_cert_facade_only.sh
Change-Id: I99a3e713ebd98d29fa53e31fdabfd237b9428fa5

4 years agoMerge "Only use gd storage if gd stack has been started up"
Chris Manton [Tue, 14 Jan 2020 02:50:44 +0000 (18:50 -0800)]
Merge "Only use gd storage if gd stack has been started up"
am: 6479d7cb30

Change-Id: Ie02b23152a2b7805dc0a6fe9f9bafc42e397b077

4 years agoMerge "Only use gd storage if gd stack has been started up"
Treehugger Robot [Tue, 14 Jan 2020 02:46:43 +0000 (02:46 +0000)]
Merge "Only use gd storage if gd stack has been started up"

4 years agoOnly use gd storage if gd stack has been started up
Chris Manton [Mon, 13 Jan 2020 23:44:15 +0000 (15:44 -0800)]
Only use gd storage if gd stack has been started up

Add flag to detect if gd stack has started up.

Upon init btif reads from config file:
1. Local adapter name
2. Discovery timeout

And writes:
1. LE keys (x4)
2. Scan default settings
3. Discovery timeout

Test: System boots without failure
Bug: 147315979

Change-Id: I52c24433bc49466bafcc948963041fcd098d9981

4 years agoMerge "Fix Neighbor Test"
Hansong Zhang [Mon, 13 Jan 2020 23:48:05 +0000 (15:48 -0800)]
Merge "Fix Neighbor Test"
am: 7ab110cf43

Change-Id: I7e31eca3efbddbdc63de55fa26a891879fef44fc

4 years agoMerge "Fix Neighbor Test"
Treehugger Robot [Mon, 13 Jan 2020 23:46:31 +0000 (23:46 +0000)]
Merge "Fix Neighbor Test"

4 years agoMerge "Updates for bison 3.5"
Dan Willemsen [Mon, 13 Jan 2020 23:22:24 +0000 (15:22 -0800)]
Merge "Updates for bison 3.5"
am: 990fecdccd

Change-Id: If80b6c67b20b62779eb364be2f7566c55e733a3f

4 years agoMerge "Updates for bison 3.5"
Treehugger Robot [Mon, 13 Jan 2020 23:17:02 +0000 (23:17 +0000)]
Merge "Updates for bison 3.5"

4 years agoMerge changes Ibedf4957,Ic3069c6d
Hansong Zhang [Mon, 13 Jan 2020 22:10:21 +0000 (14:10 -0800)]
Merge changes Ibedf4957,Ic3069c6d
am: 186f34dc5e

Change-Id: I0a3be2d205f84fa4e566160b9542b7e9c80fa76b

4 years agoFix Neighbor Test
Hansong Zhang [Mon, 13 Jan 2020 18:52:47 +0000 (10:52 -0800)]
Fix Neighbor Test

Test: cert/run_cert_facade_only.sh
Change-Id: I7a4f968790e1b9323938349ab59019757e943b7c

4 years agoMerge changes Ibedf4957,Ic3069c6d
Treehugger Robot [Mon, 13 Jan 2020 22:03:32 +0000 (22:03 +0000)]
Merge changes Ibedf4957,Ic3069c6d

* changes:
  L2CAP: Handle pending command response and fix response
  L2CAP security policy definition

4 years agoL2CAP: Handle pending command response and fix response
Hansong Zhang [Mon, 13 Jan 2020 17:47:05 +0000 (09:47 -0800)]
L2CAP: Handle pending command response and fix response

Test: run_cert.sh
Bug: 141555841
Change-Id: Ibedf49573d3787c9b96afd416977da9ef998fdeb

4 years agoMerge changes Iaa097f78,Id3f6918e,I0ee70c56
Chris Manton [Mon, 13 Jan 2020 18:32:36 +0000 (10:32 -0800)]
Merge changes Iaa097f78,Id3f6918e,I0ee70c56
am: 2b9497718b

Change-Id: Ia390af2c0478d4844c312d9b954647e25159489a

4 years agoMerge changes Iaa097f78,Id3f6918e,I0ee70c56
Treehugger Robot [Mon, 13 Jan 2020 18:30:25 +0000 (18:30 +0000)]
Merge changes Iaa097f78,Id3f6918e,I0ee70c56

* changes:
  gd: Initial entry for main legacy storage shim
  gd: Initial entry for legacy storage shim
  gd: Initial entry for legacy config storage

4 years agoL2CAP security policy definition
Hansong Zhang [Mon, 13 Jan 2020 17:44:33 +0000 (09:44 -0800)]
L2CAP security policy definition

Bug: 141555841
Test: compile
Change-Id: Ic3069c6d919c81a36b4062f04b97126236adfa84

4 years agogd: Initial entry for main legacy storage shim
Chris Manton [Sat, 11 Jan 2020 05:18:38 +0000 (21:18 -0800)]
gd: Initial entry for main legacy storage shim

Bug: 147315979
Test: bluetooth_test_gd

Change-Id: Iaa097f78e5d9406b23acbc92bd122ad17904c1aa

4 years agogd: Initial entry for legacy storage shim
Chris Manton [Sun, 12 Jan 2020 05:14:45 +0000 (21:14 -0800)]
gd: Initial entry for legacy storage shim

Bug: 147315979
Test: Compiles bluetooth_test_gd
Change-Id: Id3f6918e3216c30d214632a6a8bd36e7e8010f41

4 years agogd: Initial entry for legacy config storage
Chris Manton [Sat, 11 Jan 2020 05:17:47 +0000 (21:17 -0800)]
gd: Initial entry for legacy config storage

Bug: 147315979
Test: bluetooth_test_gd

Change-Id: I0ee70c5663796b418b5e99f78d8a2ded234d61fd

4 years agoMerge "Add LeExtendedCreateConnection definition" am: 16ad82e7a4 am: e5956f633e
Automerger Merge Worker [Sat, 11 Jan 2020 11:24:55 +0000 (11:24 +0000)]
Merge "Add LeExtendedCreateConnection definition" am: 16ad82e7a4 am: e5956f633e

Change-Id: I73359f1669088760b175b2ba257627975f3969c8

4 years agoMerge "Add LeExtendedCreateConnection definition"
Jakub Pawlowski [Sat, 11 Jan 2020 11:09:51 +0000 (03:09 -0800)]
Merge "Add LeExtendedCreateConnection definition"
am: 16ad82e7a4

Change-Id: I2c4af9c458965f1997fd405e54bd51984aabcfbf

4 years agoMerge "Add LeExtendedCreateConnection definition"
Treehugger Robot [Sat, 11 Jan 2020 11:08:06 +0000 (11:08 +0000)]
Merge "Add LeExtendedCreateConnection definition"

4 years agoCert: Enable page scans in tests am: f4af167a6e am: 7b8ffbe515
Automerger Merge Worker [Sat, 11 Jan 2020 07:23:26 +0000 (07:23 +0000)]
Cert: Enable page scans in tests am: f4af167a6e am: 7b8ffbe515

Change-Id: I9add10cafa4e9ef200f3acd00634ee79bcdf3eaf