OSDN Git Service

android-x86/system-bt.git
4 years agoRemove unused mca_cact.cc
Hansong Zhang [Tue, 10 Dec 2019 04:55:04 +0000 (20:55 -0800)]
Remove unused mca_cact.cc

Test: compile
Change-Id: Ia35d3710f973f3cb2055378399736a24b1352562

4 years agoL2CAP: Remove unnecessary #define
Hansong Zhang [Tue, 10 Dec 2019 01:24:09 +0000 (17:24 -0800)]
L2CAP: Remove unnecessary #define

Test: compile
Change-Id: Ifa472ed5bccf58eb5a57a7c412760f14343c51cb

4 years agoMerge "L2CAP: Delete more unused API"
Treehugger Robot [Mon, 9 Dec 2019 22:50:25 +0000 (22:50 +0000)]
Merge "L2CAP: Delete more unused API"

4 years agoMerge "Gd advertiser and scanner shim"
Chris Manton [Mon, 9 Dec 2019 22:05:12 +0000 (22:05 +0000)]
Merge "Gd advertiser and scanner shim"

4 years agoL2CAP: Delete more unused API
Hansong Zhang [Mon, 9 Dec 2019 20:57:45 +0000 (12:57 -0800)]
L2CAP: Delete more unused API

Test: compile
Bug: 145847248
Change-Id: I7055d63e39234bd83847655d77945b79424c1015

4 years agoMerge changes I1abcf94d,I720b8a16
Treehugger Robot [Mon, 9 Dec 2019 19:50:08 +0000 (19:50 +0000)]
Merge changes I1abcf94d,I720b8a16

* changes:
  Simplify security level parameter for SDP
  L2CAP: Remove never used API Ping and Echo

4 years agoMerge "Delete HL files"
Treehugger Robot [Mon, 9 Dec 2019 19:50:01 +0000 (19:50 +0000)]
Merge "Delete HL files"

4 years agoGd advertiser and scanner shim
Chris Manton [Mon, 9 Dec 2019 01:46:22 +0000 (17:46 -0800)]
Gd advertiser and scanner shim

Bug: 143578947
Test: Devicepicker shows le devices
Change-Id: I5a59c791b2c37ada9d2dde0563dae69bb0039501

4 years agoMerge "L2CAP: Add LE Module mock"
Treehugger Robot [Mon, 9 Dec 2019 19:21:09 +0000 (19:21 +0000)]
Merge "L2CAP: Add LE Module mock"

4 years agoMerge "AVRCP Position Changed Notification"
Joseph Pirozzo [Mon, 9 Dec 2019 18:26:03 +0000 (18:26 +0000)]
Merge "AVRCP Position Changed Notification"

4 years agoFix includes in initial_informations.h
Jakub Pawlowski [Mon, 9 Dec 2019 13:58:30 +0000 (14:58 +0100)]
Fix includes in initial_informations.h

Bug: 142341141
Change-Id: Ib650225d78420d8e910538d67158b168d1dcb33e

4 years agoSimplify security level parameter for SDP
Hansong Zhang [Mon, 9 Dec 2019 06:08:36 +0000 (22:08 -0800)]
Simplify security level parameter for SDP

Test: compile
Change-Id: I1abcf94d6eeb2a64ffa18ba895f97fb7e07ca846

4 years agoReduce Gd module api for discoverability
Chris Manton [Mon, 9 Dec 2019 01:58:35 +0000 (17:58 -0800)]
Reduce Gd module api for discoverability

No need to keep arbirary state for legacy
stack on Gd side.

Bug: 143579227
Test: Compiles

Change-Id: I05bb15e5e1033ce70dfb9f79b88f9333cb0ae4eb

4 years agoRe-format of btm api
Chris Manton [Sun, 8 Dec 2019 04:36:58 +0000 (20:36 -0800)]
Re-format of btm api

Order corresponding functions in both cc and h files

Bug: 143578947
Test: bluetooth_gd_test

Change-Id: I077a54566f8c50d38515b92776edb02d0a3bb311

4 years agoAdd GAP types
Chris Manton [Sat, 7 Dec 2019 18:17:15 +0000 (10:17 -0800)]
Add GAP types

uuid 16-32-128, appearance and manufacturer data

Bug: 142501909
Test: bluetooth_test_gd
Change-Id: I67a20bc3f87f5fa97b42414d9ea62388128e08d2

4 years agoMerge "L2CAP: Add test script for pts test"
Treehugger Robot [Sat, 7 Dec 2019 11:18:10 +0000 (11:18 +0000)]
Merge "L2CAP: Add test script for pts test"

4 years agoL2CAP: Remove never used API Ping and Echo
Hansong Zhang [Sat, 7 Dec 2019 07:13:14 +0000 (23:13 -0800)]
L2CAP: Remove never used API Ping and Echo

Bug: 145847248
Test: compile
Change-Id: I720b8a166b98baf4db50f69049c9ba72bcfb0ec5

4 years agoDelete HL files
Hansong Zhang [Sat, 7 Dec 2019 06:58:32 +0000 (22:58 -0800)]
Delete HL files

Test: compile
Change-Id: I358c3d4d49bf695d2f425921626cb9d1ba5ff078

4 years agoL2CAP: Add LE Module mock
Martin Brabham [Fri, 6 Dec 2019 17:45:43 +0000 (09:45 -0800)]
L2CAP: Add LE Module mock

Bug: 140813676
Test: atest atest --host -t bluetooth_test_gd
Change-Id: I6f6b7f00d7b0aad7940d82ad4942cfcc426a1cb8

4 years agoMerge "Rootcanal catch SIGPIPE"
Treehugger Robot [Fri, 6 Dec 2019 23:34:01 +0000 (23:34 +0000)]
Merge "Rootcanal catch SIGPIPE"

4 years agoMerge "Add build config for a bluetooth apex"
Zach Johnson [Fri, 6 Dec 2019 23:20:27 +0000 (23:20 +0000)]
Merge "Add build config for a bluetooth apex"

4 years agoMerge changes from topics "merge BT bond", "parameterize BT enable", "remove BT isEna...
Zach Johnson [Fri, 6 Dec 2019 23:20:07 +0000 (23:20 +0000)]
Merge changes from topics "merge BT bond", "parameterize BT enable", "remove BT isEnabled"

* changes:
  Merge the variants of createBond
  Parameterize enable instead of having two variants
  Remove isEnabled

4 years agoMerge "Migrate from libaudioclient to libaaudio"
Zach Johnson [Fri, 6 Dec 2019 22:40:54 +0000 (22:40 +0000)]
Merge "Migrate from libaudioclient to libaaudio"

4 years agoRootcanal catch SIGPIPE
Hansong Zhang [Fri, 6 Dec 2019 20:58:10 +0000 (12:58 -0800)]
Rootcanal catch SIGPIPE

In case the client socket is closed, and rootcanal doesn't detect it due
to TimerTick not fired, writing to the socket causes a SIGPIPE and we
need to catch it to prevent rootcanal from crash.

Bug: 138259663
Test: run_cert.sh with empty test case
Change-Id: I3b9753cfc1cf09fcd7ea123d79048a9b8bacdd87

4 years agoAdd build config for a bluetooth apex
Zach Johnson [Sun, 10 Nov 2019 02:24:47 +0000 (18:24 -0800)]
Add build config for a bluetooth apex

Bug: 142747680
Test: compile
Change-Id: I72be6a6c90d0eaf2e763c6595664f3e4b9a8d4e0

4 years agoMigrate from libaudioclient to libaaudio
Zach Johnson [Thu, 21 Nov 2019 03:08:01 +0000 (19:08 -0800)]
Migrate from libaudioclient to libaaudio

Need to move to a library that doesn't use libbinder.

Bug: 144441978
Test: compile, and verify with an audio sink platform
Change-Id: I9111c34d8611531d2adcaf3b08172f7328f01014

4 years agoMerge "LE ACL: Expose Connection Update API to L2CAP"
Treehugger Robot [Fri, 6 Dec 2019 17:49:59 +0000 (17:49 +0000)]
Merge "LE ACL: Expose Connection Update API to L2CAP"

4 years agoMerge "Quick cleanup"
Martin Brabham [Fri, 6 Dec 2019 17:13:20 +0000 (17:13 +0000)]
Merge "Quick cleanup"

4 years agoMerge "Add missing namespace for security UI"
Jakub Pawlowski [Fri, 6 Dec 2019 07:52:02 +0000 (07:52 +0000)]
Merge "Add missing namespace for security UI"

4 years agoL2CAP: Add test script for pts test
Ted Wang [Wed, 4 Dec 2019 11:46:09 +0000 (19:46 +0800)]
L2CAP: Add test script for pts test

*Add following PTS test script:
  L2CAP/COS/CED/BV-01-C
  L2CAP/COS/CED/BV-03-C
  L2CAP/COS/CED/BV-04-C
  L2CAP/COS/CED/BV-05-C
  L2CAP/COS/CED/BV-07-C
  L2CAP/COS/CED/BV-08-C
  L2CAP/COS/CED/BV-09-C
  L2CAP/COS/CED/BV-11-C
  L2CAP/COS/CED/BI-01-C
  L2CAP/COS/CFD/BV-03-C
  L2CAP/COS/CFD/BV-08-C
  L2CAP/ERM/BI-01-C

*Add method FetchConnectionClose in facade to monitor connection closed

Test: run_pts_l2cap.sh

Change-Id: Ie1d6a84ada8344321307d215f304a8cb34ea2ad6

4 years agoLE ACL: Expose Connection Update API to L2CAP
Hansong Zhang [Fri, 6 Dec 2019 00:23:03 +0000 (16:23 -0800)]
LE ACL: Expose Connection Update API to L2CAP

Allow updating connection parameter from L2CAP, because L2CAP needs to
handle ConnectionParameterUpdateRequest from remote in some cases

Test: bluetooth_test_gd
Bug: 145014338
Change-Id: I85a567c5a29798aabfe2b07b598d657d43d2c307

4 years agoQuick cleanup
Martin Brabham [Thu, 5 Dec 2019 19:04:25 +0000 (11:04 -0800)]
Quick cleanup

Bug: 139137147
Test: N/A
Change-Id: I917407eb45b4397215f26e3beee80615364815ea

4 years agoL2CAP: Fix configuration_request timeout
Ted Wang [Thu, 5 Dec 2019 17:37:48 +0000 (09:37 -0800)]
L2CAP: Fix configuration_request timeout

On configuration_request timeout, we need to send a disconnect request
with correct scid and dcid. Also fixed the cert test for this

Bug: 145720848
Test: run_cert.sh test_disconnect_on_timeout [L2CAP/COS/CED/BV-08-C]
Change-Id: I408eb14914b14ca2b7d6de68ff0480daf2dcb3c8

4 years agoL2CAP Fix cert test_sent_rej_lost
Hansong Zhang [Thu, 5 Dec 2019 19:33:27 +0000 (11:33 -0800)]
L2CAP Fix cert test_sent_rej_lost

Test: run_cert.sh test_sent_rej_lost [L2CAP/ERM/BI-01-C]
Change-Id: Ic7ecc5ad8773a2340e97451a99b84a7630dd45a1

4 years agoL2CAP SignallingManager: Store command_just_sent
Hansong Zhang [Thu, 5 Dec 2019 00:51:37 +0000 (16:51 -0800)]
L2CAP SignallingManager: Store command_just_sent

Instead of storing it in pending_commands_ *after* a command is sent, we
use a separate variable command_just_sent_ to store it, to avoid state
corruption

Test: bluetooth_test_gd and run_cert.sh
Bug: 145622504
Change-Id: I5992b3545c04ec2bc36fcc43ae84b81a6b26eb8f

4 years agoL2CAP Classic: Unreserve channel on connection response fail
Hansong Zhang [Wed, 4 Dec 2019 23:47:43 +0000 (15:47 -0800)]
L2CAP Classic: Unreserve channel on connection response fail

Free the reserved cid when dynamic channel isn't opened

Test: bluetooth_test_gd and run_cert.sh
Bug: 145626799
Change-Id: I64f5e59cc15a1188cec94c827f7c5ea147803e22

4 years agoL2CAP LE COC: Handle credit correctly
Hansong Zhang [Wed, 4 Dec 2019 22:08:40 +0000 (14:08 -0800)]
L2CAP LE COC: Handle credit correctly

Bug: 141558626
Test: bluetooth_test_gd and run_cert.sh
Change-Id: I5daa94d09d9ef7e2d769b7433d05b6310ca0e3e7

4 years agoMerge "L2CAP: add test case L2CAP/ERM/BI-01-C"
Ted Wang [Thu, 5 Dec 2019 13:00:03 +0000 (13:00 +0000)]
Merge "L2CAP: add test case L2CAP/ERM/BI-01-C"

4 years agoAdd missing namespace for security UI
Jakub Pawlowski [Thu, 5 Dec 2019 09:16:23 +0000 (10:16 +0100)]
Add missing namespace for security UI

Bug: 142341141
Change-Id: I36a0e3c28efa0cefe5aed3a67106c1727b27127b

4 years agoMerge changes from topic "sm-facade"
Treehugger Robot [Thu, 5 Dec 2019 08:46:16 +0000 (08:46 +0000)]
Merge changes from topic "sm-facade"

* changes:
  SecurityModule: Implement API, Add BluetoothAddressWithType
  SecurityModule: Facade infrastructure

4 years agoMerge "HID [ASan]: Fix for heap buffer overflow issue."
Treehugger Robot [Thu, 5 Dec 2019 06:22:34 +0000 (06:22 +0000)]
Merge "HID [ASan]: Fix for heap buffer overflow issue."

4 years agoL2CAP: add test case L2CAP/ERM/BI-01-C
Ted Wang [Wed, 4 Dec 2019 08:08:22 +0000 (16:08 +0800)]
L2CAP: add test case L2CAP/ERM/BI-01-C

Test: run_cert.sh
Change-Id: I2dbea88e67664d0f2b09b0c6bb15c726d2f9c648

4 years agoMerge "rssi is signed not unsigned"
Treehugger Robot [Thu, 5 Dec 2019 01:58:11 +0000 (01:58 +0000)]
Merge "rssi is signed not unsigned"

4 years agorssi is signed not unsigned
Chris Manton [Thu, 5 Dec 2019 00:15:36 +0000 (16:15 -0800)]
rssi is signed not unsigned

Bug: 143578947
Test: bluetooth_test_gd
Change-Id: Ieb8161ae3d3cb72438b362b74f07fc1187409876

4 years agoLE signalling manager scaffolding
Hansong Zhang [Tue, 26 Nov 2019 18:55:51 +0000 (10:55 -0800)]
LE signalling manager scaffolding

Implemented LE Dynamic Channel open and close.

Connection parameter update is not implemented.

Test: bluetooth_test_gd and run_cert.sh
Bug: 141558315
Change-Id: I0a01d6c417e4fd18eaed9da0c69bc80417c93dac

4 years agoL2CAP Classic SignallingManager Fix
Hansong Zhang [Wed, 4 Dec 2019 20:26:50 +0000 (12:26 -0800)]
L2CAP Classic SignallingManager Fix

Don't send next outgoing command when we receive a request from remote

Test: run_cert.sh
Bug: 145622504
Change-Id: Ia2437b2cf1d4abd87dc31b698ae694d194f5a1d7

4 years agoLE DynamicChannel and DynamicChannelService
Hansong Zhang [Tue, 3 Dec 2019 19:17:37 +0000 (11:17 -0800)]
LE DynamicChannel and DynamicChannelService

Bug: 141556925
Test: bluetooth_test_gd
Change-Id: I2cb23d79db3e93a037eb58395480274766e11cd0

4 years agoL2CAP ERTM: Send ACK RR if we don't have I-Frame to send
Hansong Zhang [Wed, 4 Dec 2019 19:56:01 +0000 (11:56 -0800)]
L2CAP ERTM: Send ACK RR if we don't have I-Frame to send

Bug: 145679867
Test: run_cert.sh
Change-Id: I6b60f2dc5e2a2494f085366b8d5819d949ec3af8

4 years agoMerge "Properly remove callbacks when scanning stopped"
Treehugger Robot [Wed, 4 Dec 2019 07:02:03 +0000 (07:02 +0000)]
Merge "Properly remove callbacks when scanning stopped"

4 years agoSecurityModule: Implement API, Add BluetoothAddressWithType
Martin Brabham [Wed, 4 Dec 2019 05:21:06 +0000 (21:21 -0800)]
SecurityModule: Implement API, Add BluetoothAddressWithType

Bug: 145638110
Test: Targets compile
Change-Id: I2d101e9cc2a642a93e1c5af43301dc7ddb2f6864

4 years agoProperly remove callbacks when scanning stopped
Chris Manton [Wed, 4 Dec 2019 00:02:15 +0000 (16:02 -0800)]
Properly remove callbacks when scanning stopped

Hide the concrete handler variable behind a
virtual method to maintain a pure virtual class interface.

Bug: 143578947
Test: Inspection
Change-Id: Icbc74169979abc3ec44d12a165cfa4bc7235ec62

4 years agoSecurityModule: Facade infrastructure
Martin Brabham [Wed, 4 Dec 2019 04:13:05 +0000 (20:13 -0800)]
SecurityModule: Facade infrastructure

Bug: 145638110
Test: Targets compile
Change-Id: I2cd9a366b861eb806099ec32798d49bbc92b5421

4 years agoMerge "Replace priority with connectionPolicy in aidl"
Treehugger Robot [Wed, 4 Dec 2019 01:11:46 +0000 (01:11 +0000)]
Merge "Replace priority with connectionPolicy in aidl"

4 years agoMerge "Merge Android10 QPR1 into AOSP master"
Treehugger Robot [Tue, 3 Dec 2019 23:14:57 +0000 (23:14 +0000)]
Merge "Merge Android10 QPR1 into AOSP master"

4 years agoMerge "Add in setActiveDevice in aidl to implement API in AdapterService"
Treehugger Robot [Tue, 3 Dec 2019 21:51:44 +0000 (21:51 +0000)]
Merge "Add in setActiveDevice in aidl to implement API in AdapterService"

4 years agoNeighbor: Cache Inquiry information in the shim
Myles Watson [Tue, 3 Dec 2019 01:39:03 +0000 (17:39 -0800)]
Neighbor: Cache Inquiry information in the shim

- Remove synchronous methods
- Post asynchronous calls to the handler
- Fix the parameter ordering

Bug: 144587519
Test: bluetooth_test_gd
Change-Id: I01edfd9a16ae3cb8884afb577dc57faae75dc9ec

4 years agoMerge Android10 QPR1 into AOSP master
Xin Li [Tue, 3 Dec 2019 05:25:27 +0000 (21:25 -0800)]
Merge Android10 QPR1 into AOSP master

Bug: 145570283
Change-Id: I677c5e15140450235bf6364d152609c0f231a2b5

4 years agoMerge "Use std::future to synchronize AclManagerTest"
Myles Watson [Tue, 3 Dec 2019 00:39:00 +0000 (16:39 -0800)]
Merge "Use std::future to synchronize AclManagerTest"
am: 3b7093b65f

Change-Id: I77e90d5410c499ac62b15f0a42b919c775244d75

4 years agoMerge "Use std::future to synchronize AclManagerTest"
Treehugger Robot [Tue, 3 Dec 2019 00:33:13 +0000 (00:33 +0000)]
Merge "Use std::future to synchronize AclManagerTest"

4 years agoSend legal scan window/interval values
Chris Manton [Tue, 3 Dec 2019 00:26:48 +0000 (16:26 -0800)]
Send legal scan window/interval values
am: b2410d8543

Change-Id: I47b7971c8615cbf125be84f0277e19bf820d3ab1

4 years agoSend legal scan window/interval values
Chris Manton [Mon, 2 Dec 2019 22:56:41 +0000 (14:56 -0800)]
Send legal scan window/interval values

Bug: 143578947
Test: Compiles and boots without hci unsupported assertion
Change-Id: I5fa42f5bbd89eab47f08d3265842ddedaf7f1ae8

4 years agoMerge changes I83e8e7b4,I12bade3d
Myles Watson [Mon, 2 Dec 2019 22:57:21 +0000 (14:57 -0800)]
Merge changes I83e8e7b4,I12bade3d
am: 287ba78b34

Change-Id: Ib326b51005e78e9a3bc950dc92b1aa9ae7f572ca

4 years agoMerge changes Ic6e58cb7,Ifbbcd7a9,I2214cc0f
Hansong Zhang [Mon, 2 Dec 2019 22:56:57 +0000 (14:56 -0800)]
Merge changes Ic6e58cb7,Ifbbcd7a9,I2214cc0f
am: 84f11f0281

Change-Id: If54d334068b77a38e5692e2f80bc678a51856039

4 years agoMerge changes I83e8e7b4,I12bade3d
Treehugger Robot [Mon, 2 Dec 2019 22:54:21 +0000 (22:54 +0000)]
Merge changes I83e8e7b4,I12bade3d

* changes:
  Rootcanal: Use PDL to parse incoming commands
  HCI: Implement 36 Le commands and events

4 years agoMerge changes Ic6e58cb7,Ifbbcd7a9,I2214cc0f
Treehugger Robot [Mon, 2 Dec 2019 22:52:42 +0000 (22:52 +0000)]
Merge changes Ic6e58cb7,Ifbbcd7a9,I2214cc0f

* changes:
  L2CAP: Fix dynamic channel refcount and ERTM timeout
  L2CAP: Separate Classic and LE dynamic channel API
  L2CAP ERTM: Close channel on error

4 years agoMerge "Rootcanal: Store address types in AclConnection"
Myles Watson [Mon, 2 Dec 2019 22:10:26 +0000 (14:10 -0800)]
Merge "Rootcanal: Store address types in AclConnection"
am: 8526947a2d

Change-Id: I46c6b6e250e6ede96ef2344c4fee701b4d0ba749

4 years agoMerge "Rootcanal: Store address types in AclConnection"
Treehugger Robot [Mon, 2 Dec 2019 21:55:17 +0000 (21:55 +0000)]
Merge "Rootcanal: Store address types in AclConnection"

4 years agoUse std::future to synchronize AclManagerTest
Myles Watson [Mon, 2 Dec 2019 21:46:42 +0000 (13:46 -0800)]
Use std::future to synchronize AclManagerTest

Bug: 144587519
Test: bluetooth_test_gd --gtest_filter=*AclMan* in a while loop
Change-Id: Ie848405b06e857f1181dcd2be4335a8bc3f0494b

4 years agoRootcanal: Store address types in AclConnection
Myles Watson [Wed, 27 Nov 2019 16:15:06 +0000 (08:15 -0800)]
Rootcanal: Store address types in AclConnection

Test: ./run_cert.sh
Change-Id: I035778ee3f4e9aeeb9ae645b4c2098f3ae5a3379

4 years agoRootcanal: Use PDL to parse incoming commands
Myles Watson [Tue, 26 Nov 2019 18:03:24 +0000 (10:03 -0800)]
Rootcanal: Use PDL to parse incoming commands

Test: ./run_cert.sh
Change-Id: I83e8e7b4b958934bdd1d5d930fb966f6ddca1eb5

4 years agoHCI: Implement 36 Le commands and events
Myles Watson [Wed, 27 Nov 2019 14:02:14 +0000 (06:02 -0800)]
HCI: Implement 36 Le commands and events

Test: builds
Change-Id: I12bade3d0553668033e7b9f579e70815b902a9cd

4 years agoL2CAP: Fix dynamic channel refcount and ERTM timeout
Hansong Zhang [Tue, 26 Nov 2019 22:00:37 +0000 (14:00 -0800)]
L2CAP: Fix dynamic channel refcount and ERTM timeout

Added a simple PTS Transmit I-frames and S-Frame Transmissions
Exceed MaxTransmit to verify ERTM DataController could correctly close
the channel on error.

Test: run_cert.sh
Bug: 145006212
Bug: 141557006
Change-Id: Ic6e58cb7022b0df1b7d7eaefff2168b0044b6ec3

4 years agoL2CAP: Separate Classic and LE dynamic channel API
Hansong Zhang [Tue, 26 Nov 2019 21:01:54 +0000 (13:01 -0800)]
L2CAP: Separate Classic and LE dynamic channel API

Test: run_cert.sh
Bug: 144503952
Change-Id: Ifbbcd7a90fcd71aa0cee6d9b455c23e489d53e21

4 years agoL2CAP ERTM: Close channel on error
Hansong Zhang [Tue, 26 Nov 2019 18:54:07 +0000 (10:54 -0800)]
L2CAP ERTM: Close channel on error

Add a reference to ILink to send disconnection request.

Bug: 145006212
Test: bluetooth_test_gd
Change-Id: I2214cc0f69d7a1281e92f60c92a23484f4f3766d

4 years agoMerge "A2DP: Don't override the SDP handle if there is processing"
Cheney Ni [Thu, 28 Nov 2019 16:44:38 +0000 (08:44 -0800)]
Merge "A2DP: Don't override the SDP handle if there is processing"
am: c335efae3b

Change-Id: I4c2a7b5bd4d33ae8c7b05ce75cfe1943fde48cdc

4 years agoMerge "A2DP: More clear log messages for both BTA and AVDT SCB handle"
Cheney Ni [Thu, 28 Nov 2019 16:42:55 +0000 (08:42 -0800)]
Merge "A2DP: More clear log messages for both BTA and AVDT SCB handle"
am: 2db0a5fc2e

Change-Id: I573b7323abdf4bb23086da8008edaca297141d75

4 years agoMerge "A2DP: Don't override the SDP handle if there is processing"
Treehugger Robot [Thu, 28 Nov 2019 16:42:38 +0000 (16:42 +0000)]
Merge "A2DP: Don't override the SDP handle if there is processing"

4 years agoMerge "A2DP: More clear log messages for both BTA and AVDT SCB handle"
Treehugger Robot [Thu, 28 Nov 2019 16:39:27 +0000 (16:39 +0000)]
Merge "A2DP: More clear log messages for both BTA and AVDT SCB handle"

4 years agoGD HCI: define PDL for BQR command/event
Chienyuan [Thu, 28 Nov 2019 16:33:39 +0000 (08:33 -0800)]
GD HCI: define PDL for BQR command/event
am: 4bf00f36cd

Change-Id: Ie7fe1093ee685b2e296de28de3f841f7964764eb

4 years agoGD HCI: define PDL for BQR command/event
Chienyuan [Wed, 27 Nov 2019 11:52:07 +0000 (19:52 +0800)]
GD HCI: define PDL for BQR command/event

Bug: 145193384
Test: run bluetooth_test_gd
Change-Id: Ifa5f7faba405509d9cc4e6b345db897dd60ae4c8

4 years agoA2DP: Don't override the SDP handle if there is processing
Cheney Ni [Wed, 27 Nov 2019 15:12:01 +0000 (23:12 +0800)]
A2DP: Don't override the SDP handle if there is processing

The stack could handle only one A2DP find service a time. If there were
2 sinks to reconnect at the same time, the SCB handle for SDP might be
override by the later, but caused this SDP event was routed to worng
handler. And, the earlier would be stuck at opening / closing state to
cause abnormal behavior.
This CL prevents such overridden, and uses Bluetooth address within SDP
results to find its handler.

Bug: 145326274
Test: Reconnect to multiple A2DP sinks
Change-Id: I256859f8c70cc948c03b8ac90bf600bef4fdc3a0

4 years agoA2DP: More clear log messages for both BTA and AVDT SCB handle
Cheney Ni [Fri, 18 Oct 2019 09:06:56 +0000 (17:06 +0800)]
A2DP: More clear log messages for both BTA and AVDT SCB handle

There were 2 types of handles for the stream control mapping between BTA
and AVDT, tBTA_AV_HNDL and for AvdtpScb respectively, and the stack used
them to communicate crossing layers. However, both of them were all
named *handle* in logs, and was not easy to read. This CL uses
bta_handle / bta_av_handle for tBTA_AV_HNDL and avdt_handle for
AvdtpScb, and raise the log level to be error if AVDT API failed.

Bug: 135655859
Bug: 145326274
Test: Logs changed only. Disconnecting / Reconnecting by A2DP manually
Change-Id: I780561ff4fbd3be0ed54376346fbdad3efb845ed

4 years agoReplace priority with connectionPolicy in aidl
Rahul Sabnis [Thu, 28 Nov 2019 02:06:09 +0000 (18:06 -0800)]
Replace priority with connectionPolicy in aidl

Bug: 145005327
Test: Manual
Change-Id: I3d028b9759ee3ecfaf9d847cf422a8e9f7d2a07b

4 years agoMerge changes Id8582211,I6cd71506
Jack He [Wed, 27 Nov 2019 23:17:05 +0000 (15:17 -0800)]
Merge changes Id8582211,I6cd71506
am: 717ad0f8a6

Change-Id: Id7bfeb883d21ce8adc60b7d5eec32621e5a00522

4 years agoMerge changes Id8582211,I6cd71506
Treehugger Robot [Wed, 27 Nov 2019 23:14:40 +0000 (23:14 +0000)]
Merge changes Id8582211,I6cd71506

* changes:
  HCI: LeAdvertisingManager facade
  Packet: Generate Python binding for struct public fields and size()

4 years agoMerge "HCI: Change CreateAdvertiser overload to ExtendedCreateAdvertiser"
Jack He [Wed, 27 Nov 2019 22:58:31 +0000 (14:58 -0800)]
Merge "HCI: Change CreateAdvertiser overload to ExtendedCreateAdvertiser"
am: 433045b59d

Change-Id: I7070e53f685e48508c5cc3720b18abafb59cecd0

4 years agoMerge "Logging: Add timestamp to logging header in x86"
Jack He [Wed, 27 Nov 2019 22:56:34 +0000 (14:56 -0800)]
Merge "Logging: Add timestamp to logging header in x86"
am: c8a85a09e2

Change-Id: Ib58b1b6a505baa8d8d560c021f63c801a9aebad3

4 years agoMerge "HCI: Change CreateAdvertiser overload to ExtendedCreateAdvertiser"
Treehugger Robot [Wed, 27 Nov 2019 22:53:41 +0000 (22:53 +0000)]
Merge "HCI: Change CreateAdvertiser overload to ExtendedCreateAdvertiser"

4 years agoMerge "Logging: Add timestamp to logging header in x86"
Treehugger Robot [Wed, 27 Nov 2019 22:51:52 +0000 (22:51 +0000)]
Merge "Logging: Add timestamp to logging header in x86"

4 years agoMerge "cert: Use the Mobly TestRunConfig"
Myles Watson [Wed, 27 Nov 2019 22:06:29 +0000 (14:06 -0800)]
Merge "cert: Use the Mobly TestRunConfig"
am: 29fe81f374

Change-Id: I97d0c9aa0d689a515d9b2997c1ec85899b9ac511

4 years agoMerge "cert: Use the Mobly TestRunConfig"
Treehugger Robot [Wed, 27 Nov 2019 21:57:32 +0000 (21:57 +0000)]
Merge "cert: Use the Mobly TestRunConfig"

4 years agoHCI: LeAdvertisingManager facade
Jack He [Wed, 27 Nov 2019 19:29:59 +0000 (11:29 -0800)]
HCI: LeAdvertisingManager facade

* Implement LeAdvertisingManager facade to allow incoming LE connections

Bug: 140938432
Test: make
Change-Id: Id8582211109150dfa8afeeee724faa859650cbf4

4 years agoHCI: Change CreateAdvertiser overload to ExtendedCreateAdvertiser
Jack He [Wed, 27 Nov 2019 19:39:31 +0000 (11:39 -0800)]
HCI: Change CreateAdvertiser overload to ExtendedCreateAdvertiser

* They are inherently different methods and I want to make it more
  obvious that we are calling different methods when creating
  advertiser

Bug: 140938432
Test: make and facade tests
Change-Id: Ib8047a21f0ce8aef71629e861876fa6b408c32f9

4 years agoLogging: Add timestamp to logging header in x86
Jack He [Wed, 27 Nov 2019 19:34:29 +0000 (11:34 -0800)]
Logging: Add timestamp to logging header in x86

* Used std::chrono and strftime to generate timestamps
  for x86 logging

Bug: 140938432
Test: make, run facade tests
Change-Id: I2ab8c0502ee96dd9ee7b2e372984d347f9e5688d

4 years agoPacket: Generate Python binding for struct public fields and size()
Jack He [Wed, 27 Nov 2019 19:37:37 +0000 (11:37 -0800)]
Packet: Generate Python binding for struct public fields and size()

* Add them as Python read/write properties that can be assigned directly
  in Python

Bug: 140938432
Test: make, facade tests using these bindings
Change-Id: I6cd71506fbb76812ae22398e173467db3945b51f

4 years agoMerge "SecurityManager: Don't access packet after move()"
Greg Kaiser [Wed, 27 Nov 2019 21:41:13 +0000 (13:41 -0800)]
Merge "SecurityManager: Don't access packet after move()"
am: 51f5fdee7f

Change-Id: I244e4fef9cac0531ed13d1c924aab756d4268e8d

4 years agoMerge "SecurityManager: Don't use iterator after erase()"
Greg Kaiser [Wed, 27 Nov 2019 21:37:30 +0000 (13:37 -0800)]
Merge "SecurityManager: Don't use iterator after erase()"
am: 1fa8f658ed

Change-Id: I4457ba24b2f431935121a9d57d0a27b59b8a8a9f

4 years agoMerge "HCI: Test padded lengths for LE Advertising"
Myles Watson [Wed, 27 Nov 2019 21:33:41 +0000 (13:33 -0800)]
Merge "HCI: Test padded lengths for LE Advertising"
am: 7ee70515f9

Change-Id: I5cbc8b3b8d804ca7285e6c1817940490ab3df048

4 years agoMerge "SecurityManager: Don't access packet after move()"
Treehugger Robot [Wed, 27 Nov 2019 21:26:44 +0000 (21:26 +0000)]
Merge "SecurityManager: Don't access packet after move()"

4 years agoMerge "SecurityManager: Don't use iterator after erase()"
Treehugger Robot [Wed, 27 Nov 2019 21:26:40 +0000 (21:26 +0000)]
Merge "SecurityManager: Don't use iterator after erase()"