OSDN Git Service

android-x86/system-bt.git
4 years agoGet rid of Discoverability shim am: a71658fa0f
Automerger Merge Worker [Tue, 18 Feb 2020 21:48:18 +0000 (21:48 +0000)]
Get rid of Discoverability shim am: a71658fa0f

Change-Id: I30224c9af5eefa1c7b8b8faa36c3a3b049584ee7

4 years agoGet rid of the redundant shim interfaces am: c73a895fa2
Automerger Merge Worker [Tue, 18 Feb 2020 21:47:56 +0000 (21:47 +0000)]
Get rid of the redundant shim interfaces am: c73a895fa2

Change-Id: I68abdaf9b3e0601278c0497a581248bc0d85b034

4 years agoGet rid of Discoverability shim
Jakub Pawlowski [Tue, 18 Feb 2020 18:40:52 +0000 (19:40 +0100)]
Get rid of Discoverability shim

Bug: 149757450
Change-Id: Ibe6cccc0971d4a723ba5489332ca7933e7609a34

4 years agoCanonicalize header include files am: 6a03ea25f6
Chris Manton [Tue, 18 Feb 2020 21:09:55 +0000 (21:09 +0000)]
Canonicalize header include files am: 6a03ea25f6

Change-Id: I858a0ddbc1f44d099d79ef117b82ccdd0cc4ae29

4 years agoGet rid of the redundant shim interfaces
Jakub Pawlowski [Sun, 16 Feb 2020 00:03:04 +0000 (01:03 +0100)]
Get rid of the redundant shim interfaces

It was agred to expose gd types into the system/bt/main folder.
All the interfaces already use pimpl pattern to make them testable.
Thus there is no need for the I* shim interfaces.

Test: updated tests
Bug: 149757450
Change-Id: I9662f9ab48c61b764e4df082da1a73483cb0b2b9

4 years agoCanonicalize header include files
Chris Manton [Tue, 18 Feb 2020 19:20:31 +0000 (11:20 -0800)]
Canonicalize header include files

Bug: 147316415
Test: Compiles and Builds
Change-Id: I00316dba9cce8d727fc718250237e80ff87cdd00

4 years agoDo not redefine logging if already defined am: 183a1b0864
Jakub Pawlowski [Tue, 18 Feb 2020 17:30:04 +0000 (17:30 +0000)]
Do not redefine logging if already defined am: 183a1b0864

Change-Id: I6828c8f46b443af245622195c51aff5dfe0da684

4 years agoDo not redefine logging if already defined
Jakub Pawlowski [Sat, 15 Feb 2020 21:41:02 +0000 (22:41 +0100)]
Do not redefine logging if already defined

This patch lets us include gd code in system/bt/main. Currently if we
were to do that, we would get errors about logs being redefined.

Test: compilation
Change-Id: Ifc2c9eb913c311a50763a26f864dd91872c273cc

4 years agoMerge "gd: Add shim access to name db" am: 8962199fe6
Treehugger Robot [Tue, 18 Feb 2020 17:25:26 +0000 (17:25 +0000)]
Merge "gd: Add shim access to name db" am: 8962199fe6

Change-Id: I928f178c55ccebfad626442f7ddfcbb0e3f6f635

4 years agoMerge "gd: Add shim access to name db"
Treehugger Robot [Tue, 18 Feb 2020 17:06:36 +0000 (17:06 +0000)]
Merge "gd: Add shim access to name db"

4 years agoModify service_type constants to not collide with constants in GD am: 17799fd1ec
Jakub Pawlowski [Tue, 18 Feb 2020 05:45:35 +0000 (05:45 +0000)]
Modify service_type constants to not collide with constants in GD am: 17799fd1ec

Change-Id: I2bb623c33fc622060078e3700cdbe56b8d8ec0c7

4 years agoModify service_type constants to not collide with constants in GD
Jakub Pawlowski [Sat, 15 Feb 2020 17:46:38 +0000 (18:46 +0100)]
Modify service_type constants to not collide with constants in GD

Test: compilation
Change-Id: Ieb9540a3c5ca390a1e04d20ae378d1ab06b33707

4 years agoMerge "PDL: Serialize nested packets in Python" am: ea2f6e05e0
Treehugger Robot [Sat, 15 Feb 2020 02:35:23 +0000 (02:35 +0000)]
Merge "PDL: Serialize nested packets in Python" am: ea2f6e05e0

Change-Id: Ifbf92b4233acac09da55a01ce697148d3a957cf0

4 years agoMerge "PDL: Serialize nested packets in Python"
Treehugger Robot [Sat, 15 Feb 2020 02:26:22 +0000 (02:26 +0000)]
Merge "PDL: Serialize nested packets in Python"

4 years agoMerge changes Iea352d4b,Ic0737465 am: 91a57b0601
Treehugger Robot [Fri, 14 Feb 2020 21:48:47 +0000 (21:48 +0000)]
Merge changes Iea352d4b,Ic0737465 am: 91a57b0601

Change-Id: Ibb4cbc8cea43fbab1219763a5bd73b4970c5071b

4 years agoMerge changes Iea352d4b,Ic0737465
Treehugger Robot [Fri, 14 Feb 2020 21:33:33 +0000 (21:33 +0000)]
Merge changes Iea352d4b,Ic0737465

* changes:
  GRPC: Use server_stream_call.cancelled() instead of hidden API
  RootCanal HAL: Fixed race condition when tearing down rootcanal HAL

4 years agoPDL: Serialize nested packets in Python
Myles Watson [Sat, 4 Jan 2020 00:30:27 +0000 (16:30 -0800)]
PDL: Serialize nested packets in Python

Bug: 148096951
Test: ./cert/run_cert_facade_only.sh
Change-Id: I2c54bb5d35dec9a9b5101165d2d1ccb22b116ef4

4 years agogd: Add shim access to name db
Chris Manton [Fri, 14 Feb 2020 00:19:05 +0000 (16:19 -0800)]
gd: Add shim access to name db

Provides replacement for remote name request db
for legacy shim side.

Bug: 149524116
Test: bluetooth_test_gd

Change-Id: I69c8c65c01935ae371debedcef2d921cea7beb4a

4 years agoMerge "Use mobly.asserts" am: 4cc2f58735
Treehugger Robot [Fri, 14 Feb 2020 06:38:18 +0000 (06:38 +0000)]
Merge "Use mobly.asserts" am: 4cc2f58735

Change-Id: Ie314bb67a9ba877d0bfbd1fe18182056f2b9214f

4 years agoMerge "Use mobly.asserts"
Treehugger Robot [Fri, 14 Feb 2020 06:23:06 +0000 (06:23 +0000)]
Merge "Use mobly.asserts"

4 years agoMerge "gd: Authenticate only if necessary" am: fac9feea44
Treehugger Robot [Fri, 14 Feb 2020 05:45:15 +0000 (05:45 +0000)]
Merge "gd: Authenticate only if necessary" am: fac9feea44

Change-Id: I594acbaa864f5683f05fc5ab2402a34fbd58839d

4 years agoMerge "gd: Authenticate only if necessary"
Treehugger Robot [Fri, 14 Feb 2020 05:35:07 +0000 (05:35 +0000)]
Merge "gd: Authenticate only if necessary"

4 years agoMerge "gd: Add link layer collision hci error code" am: d71a785f4a
Treehugger Robot [Fri, 14 Feb 2020 05:25:18 +0000 (05:25 +0000)]
Merge "gd: Add link layer collision hci error code" am: d71a785f4a

Change-Id: I7c2672abcc823a4fa1d504292f89b48efb7f54e4

4 years agoMerge "gd: Add a remote name database" am: cf9f932946
Treehugger Robot [Fri, 14 Feb 2020 05:25:11 +0000 (05:25 +0000)]
Merge "gd: Add a remote name database" am: cf9f932946

Change-Id: Ifb1d86aed13d9acb1b600f037c6346fd18039a35

4 years agoMerge "gd: Add link layer collision hci error code"
Treehugger Robot [Fri, 14 Feb 2020 05:14:15 +0000 (05:14 +0000)]
Merge "gd: Add link layer collision hci error code"

4 years agoMerge "gd: Add a remote name database"
Treehugger Robot [Fri, 14 Feb 2020 05:06:06 +0000 (05:06 +0000)]
Merge "gd: Add a remote name database"

4 years agoMerge "gd: Ensure all events are handled for new classic pairing manager" am: 91040059cf
Treehugger Robot [Fri, 14 Feb 2020 04:03:07 +0000 (04:03 +0000)]
Merge "gd: Ensure all events are handled for new classic pairing manager" am: 91040059cf

Change-Id: I270c2e740bbf613881d2a568d3102bff7208f640

4 years agoMerge "gd: Expand and log more acl events" am: 495ac9fd42
Treehugger Robot [Fri, 14 Feb 2020 04:03:00 +0000 (04:03 +0000)]
Merge "gd: Expand and log more acl events" am: 495ac9fd42

Change-Id: I1efd4a34619580b4bf44d339d4b9375b86c1ffa4

4 years agoMerge "gd: Ensure all events are handled for new classic pairing manager"
Treehugger Robot [Fri, 14 Feb 2020 03:23:47 +0000 (03:23 +0000)]
Merge "gd: Ensure all events are handled for new classic pairing manager"

4 years agoMerge "gd: Expand and log more acl events"
Treehugger Robot [Fri, 14 Feb 2020 03:19:37 +0000 (03:19 +0000)]
Merge "gd: Expand and log more acl events"

4 years agoMerge "Set proper scan type before first discovery" am: 8a85f88766
Treehugger Robot [Fri, 14 Feb 2020 02:34:27 +0000 (02:34 +0000)]
Merge "Set proper scan type before first discovery" am: 8a85f88766

Change-Id: I033711d3dfacea25a514ec4eba748ffc513b8c4b

4 years agoMerge "Set proper scan type before first discovery"
Treehugger Robot [Fri, 14 Feb 2020 02:20:16 +0000 (02:20 +0000)]
Merge "Set proper scan type before first discovery"

4 years agogd: Add a remote name database
Chris Manton [Fri, 14 Feb 2020 00:18:30 +0000 (16:18 -0800)]
gd: Add a remote name database

Simple module to cache remote names.  Used by shim layer.

Bug: 149524116
Test: bluetooth_test_gd

Change-Id: I63e94e0ff1ea04c3ec35d502ac1de001a11f7b98

4 years agogd: Authenticate only if necessary
Chris Manton [Fri, 14 Feb 2020 00:20:14 +0000 (16:20 -0800)]
gd: Authenticate only if necessary

If a device are pairing but not bonding then
authenticate may get called twice, once when
the channel is set up and again when the
pairing manager is launched.

Bug: 149524116
Test: bluetooth_test_gd

Change-Id: Icddecd549030ade41e5679d46580881b56833d9e

4 years agogd: Expand and log more acl events
Chris Manton [Fri, 14 Feb 2020 00:19:47 +0000 (16:19 -0800)]
gd: Expand and log more acl events

Bug: 146086425
Test: blueooth_test_gd

Change-Id: I8dc506eea0bbcc3a9310d758311f369a31993bfd

4 years agoMerge "Update time stamp when new inq_db" am: 2a2a2ccdfe
Treehugger Robot [Fri, 14 Feb 2020 00:46:37 +0000 (00:46 +0000)]
Merge "Update time stamp when new inq_db" am: 2a2a2ccdfe

Change-Id: Iea78ed7246a5815492040f26470b638a6a92aab9

4 years agogd: Ensure all events are handled for new classic pairing manager
Chris Manton [Wed, 12 Feb 2020 20:10:08 +0000 (12:10 -0800)]
gd: Ensure all events are handled for new classic pairing manager

a new classic pairing manager never processes the initiating event.

Bug: 146086425
Test: bluetooth_test_gd

Change-Id: I3471bc5849315456d7429747e894cf80eda8b8cb

4 years agoMerge "Update time stamp when new inq_db"
Treehugger Robot [Fri, 14 Feb 2020 00:28:34 +0000 (00:28 +0000)]
Merge "Update time stamp when new inq_db"

4 years agoMerge "Remove some unused inquiry code and callback function" am: 0c680506dd
Treehugger Robot [Thu, 13 Feb 2020 23:38:08 +0000 (23:38 +0000)]
Merge "Remove some unused inquiry code and callback function" am: 0c680506dd

Change-Id: I731826725d00d797f12aea06c9089aece9349576

4 years agoMerge "Remove some unused inquiry code and callback function"
Treehugger Robot [Thu, 13 Feb 2020 23:20:48 +0000 (23:20 +0000)]
Merge "Remove some unused inquiry code and callback function"

4 years agoUse mobly.asserts
Hansong Zhang [Thu, 13 Feb 2020 23:12:45 +0000 (15:12 -0800)]
Use mobly.asserts

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

4 years agoGet rid of UI callbacks from SecurityManagerListener am: 780de25b57
Jakub Pawlowski [Thu, 13 Feb 2020 22:07:08 +0000 (22:07 +0000)]
Get rid of UI callbacks from SecurityManagerListener am: 780de25b57

Change-Id: I3c825fc22d8ff092267e57d90decffa517be1a57

4 years agoGet rid of UI callbacks from SecurityManagerListener
Jakub Pawlowski [Wed, 12 Feb 2020 23:10:12 +0000 (00:10 +0100)]
Get rid of UI callbacks from SecurityManagerListener

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

4 years agoMerge "HCI: Set default event mask" am: 28b85bf926
Treehugger Robot [Thu, 13 Feb 2020 21:02:23 +0000 (21:02 +0000)]
Merge "HCI: Set default event mask" am: 28b85bf926

Change-Id: Ia7a90c55859f1adf226cdd2296dad96940fb0ab1

4 years agoMerge "HCI: Set default event mask"
Treehugger Robot [Thu, 13 Feb 2020 20:52:23 +0000 (20:52 +0000)]
Merge "HCI: Set default event mask"

4 years agoMerge "Cert: Move DUT assignment to common code" am: a9c267c844
Automerger Merge Worker [Thu, 13 Feb 2020 18:34:23 +0000 (18:34 +0000)]
Merge "Cert: Move DUT assignment to common code" am: a9c267c844

Change-Id: I072331e36ee900fc8e0043ee3dac3f82e36de6b8

4 years agoMerge "Cert: Move DUT assignment to common code"
Treehugger Robot [Thu, 13 Feb 2020 18:20:01 +0000 (18:20 +0000)]
Merge "Cert: Move DUT assignment to common code"

4 years agoUpdate time stamp when new inq_db
Charles Lin [Thu, 13 Feb 2020 08:05:27 +0000 (16:05 +0800)]
Update time stamp when new inq_db

Test: Simulate a sitution with many LE devices around and start le scan
Bug: 146474336
Change-Id: I3a0f87786d0c7b13e4d85942ac0387fc334c26d4

4 years agoSet proper scan type before first discovery
Charles Lin [Thu, 13 Feb 2020 08:03:44 +0000 (16:03 +0800)]
Set proper scan type before first discovery

Set scan type when start first discover after bt enabled.
And replace adv evt hex code to define code

Test: Enable Bluetooth and then start discovery.
Bug: 146474336
Change-Id: I63c8cda5343de15381c83da4ea3afde6b75aaf6a

4 years agoRemove some unused inquiry code and callback function
Charles Lin [Thu, 13 Feb 2020 08:00:11 +0000 (16:00 +0800)]
Remove some unused inquiry code and callback function

Test: manually
Bug: 146474336
Change-Id: I6d3a0d9066ef6a4fbc14f938db6f120147340804

4 years agoMerge "Don't guess transport during pairing" am: da18b203cf
Automerger Merge Worker [Thu, 13 Feb 2020 07:02:14 +0000 (07:02 +0000)]
Merge "Don't guess transport during pairing" am: da18b203cf

Change-Id: Ide731a64de1e95717a3b8fb3809e644a683e4142

4 years agoMerge "Don't guess transport during pairing"
Treehugger Robot [Thu, 13 Feb 2020 06:49:21 +0000 (06:49 +0000)]
Merge "Don't guess transport during pairing"

4 years agoSecurity UI interface cleanup am: 4ce48335f8
Automerger Merge Worker [Thu, 13 Feb 2020 06:24:22 +0000 (06:24 +0000)]
Security UI interface cleanup am: 4ce48335f8

Change-Id: I31cfb067bcc788dd2075483ccd4fae5816957867

4 years agoSecurity UI interface cleanup
Jakub Pawlowski [Wed, 12 Feb 2020 21:02:40 +0000 (22:02 +0100)]
Security UI interface cleanup

We currently have two separate UI interfaces for LE and Classic, this
patch merges them into single one.

Bug: 142341141
Test: tests updated
Change-Id: I5fa347a1d4d50d85bb051782ca27f38f3d146239

4 years agoMerge "Pass UI Into Security Manager" am: a22cc619cf
Automerger Merge Worker [Thu, 13 Feb 2020 02:35:37 +0000 (02:35 +0000)]
Merge "Pass UI Into Security Manager" am: a22cc619cf

Change-Id: Ibbdfc480ea0f00c3c165fdc59ae3160bb65afd1b

4 years agoMerge "Pass UI Into Security Manager"
Treehugger Robot [Thu, 13 Feb 2020 02:21:07 +0000 (02:21 +0000)]
Merge "Pass UI Into Security Manager"

4 years agoGRPC: Use server_stream_call.cancelled() instead of hidden API
Jack He [Wed, 12 Feb 2020 20:43:13 +0000 (12:43 -0800)]
GRPC: Use server_stream_call.cancelled() instead of hidden API

* Use server_stream_call.cancelled() to check if a stream
  is cancelled to avoid calling hidden APIs

Test: run cert tests multiple times
Bug: 148147248
Change-Id: Iea352d4b428b9b57b911576a44f7a91842613fc7

4 years agoRootCanal HAL: Fixed race condition when tearing down rootcanal HAL
Jack He [Wed, 12 Feb 2020 20:39:33 +0000 (12:39 -0800)]
RootCanal HAL: Fixed race condition when tearing down rootcanal HAL

* One race condition exist when incoming_packet_callback_ is being
  reset while an incoming packet is being processed. This is fixed
  by adding a dedicated mutex incoming_packet_callback_mutex_
* Another race condition happen when HciHalHostRootcanal::Stop()
  tries to close the rootcanal FD while incomding_packet_callback
  is trying to read from it

Test: run cert tests multiple times
Bug: 148147248
Change-Id: Ic07374651c5ec38e90e7ddc545ca4fcd4a84cd04

4 years agoCert: Move DUT assignment to common code
Hansong Zhang [Thu, 13 Feb 2020 00:22:14 +0000 (16:22 -0800)]
Cert: Move DUT assignment to common code

Test: run_cert_facade_only.sh
Change-Id: I5ca6fd006294f00e06a4d6b52832a1d64aae8c9f

4 years agoDon't guess transport during pairing
Hansong Zhang [Wed, 12 Feb 2020 22:10:38 +0000 (14:10 -0800)]
Don't guess transport during pairing

Test: pair to AirPods
Bug: 149278864
Change-Id: I689ba0a0966b3f7a2cc2ac9a29ddf694017bfb0b

4 years agoHCI: Set default event mask
Myles Watson [Wed, 12 Feb 2020 16:53:39 +0000 (08:53 -0800)]
HCI: Set default event mask

Bug: 145638034
Test: ./cert/run_cert_facade_only.sh
Change-Id: I6b5df371162222cda4c6219be56cb95611acb3e5

4 years agoMerge "Initialize device_type before use it" am: f0b8df0614
Automerger Merge Worker [Wed, 12 Feb 2020 21:54:10 +0000 (21:54 +0000)]
Merge "Initialize device_type before use it" am: f0b8df0614

Change-Id: I7b3893bde9f201aef06298cb145f8a7824a80de8

4 years agoMerge "Initialize device_type before use it"
Treehugger Robot [Wed, 12 Feb 2020 21:44:44 +0000 (21:44 +0000)]
Merge "Initialize device_type before use it"

4 years agogd: Add link layer collision hci error code
Chris Manton [Wed, 12 Feb 2020 18:54:32 +0000 (10:54 -0800)]
gd: Add link layer collision hci error code

Seen with pairing with two authentication requests

Bug: 145638034
Test: bluetooth_test_gd

Change-Id: I8af068f9a11a67fae00d4b108082a3208a44d95a

4 years agoPass UI Into Security Manager
Jakub Pawlowski [Wed, 12 Feb 2020 18:19:11 +0000 (19:19 +0100)]
Pass UI Into Security Manager

Currently we have a static UI handler inside SecurityManagerImpl. Have
it passed from upper layers instead, to match what we will need in the
future.

Bug: 142341141
Change-Id: Iabc865a325b53c6455017347ade58ea23dd02a00

4 years agogd: Provide more info for unimplemented link responses am: a32e71095a
Automerger Merge Worker [Wed, 12 Feb 2020 18:15:36 +0000 (18:15 +0000)]
gd: Provide more info for unimplemented link responses am: a32e71095a

Change-Id: Id8be8e3aedd3afca3490bdcce6fb6831d3102245

4 years agogd: Provide more info for unimplemented link responses
Chris Manton [Wed, 12 Feb 2020 16:45:24 +0000 (08:45 -0800)]
gd: Provide more info for unimplemented link responses

Provide the unimplemented event info as they occur

Bug: 146086425
Test: bluetooth_test_gd
Change-Id: I7b06be303cdb36748304775b9b8554d0c605288b

4 years agoInitialize device_type before use it
Ugo Yu [Wed, 12 Feb 2020 09:04:34 +0000 (17:04 +0800)]
Initialize device_type before use it

We are using the default value of device_type when the transport type
is unkown, initialize it in case we get something weird.

Bug: 149353835
Test: Manual
Change-Id: I56d13fcebdf330356d1214cb095fcd4d5e658ff9

4 years agoMerge "Cert: Use site-packages instead of root" am: 48ed568ad8
Automerger Merge Worker [Wed, 12 Feb 2020 01:38:41 +0000 (01:38 +0000)]
Merge "Cert: Use site-packages instead of root" am: 48ed568ad8

Change-Id: Ib781208494cdb608d8b093798698af04aabb06ae

4 years agoLE Pairing Handler wiring am: 6b15a20af4
Automerger Merge Worker [Wed, 12 Feb 2020 01:38:27 +0000 (01:38 +0000)]
LE Pairing Handler wiring am: 6b15a20af4

Change-Id: Iaa7096109db6b2ffa425fbe3aa1cf8b7dbb27d97

4 years agoMerge "Cert: Use site-packages instead of root"
Treehugger Robot [Wed, 12 Feb 2020 01:34:42 +0000 (01:34 +0000)]
Merge "Cert: Use site-packages instead of root"

4 years agoLE Pairing Handler wiring
Jakub Pawlowski [Mon, 10 Feb 2020 21:29:48 +0000 (22:29 +0100)]
LE Pairing Handler wiring

Test: manual : single pairing with LE device should pass
Bug: 142341141
Change-Id: I4ec096e2d728d4b4caea1f4c4b5ba85cadaea0ae

4 years agoMerge "Increase allowed error in repeating_timer_unittest" am: a8999e3c7d
Automerger Merge Worker [Wed, 12 Feb 2020 00:49:14 +0000 (00:49 +0000)]
Merge "Increase allowed error in repeating_timer_unittest" am: a8999e3c7d

Change-Id: I416250cd268d65c332e94c443113bde49e211d7a

4 years agoMerge changes I5acd7ba9,If41d86e9,I4cea9ed3,I30a4ed0b am: 14e8936293
Automerger Merge Worker [Wed, 12 Feb 2020 00:49:00 +0000 (00:49 +0000)]
Merge changes I5acd7ba9,If41d86e9,I4cea9ed3,I30a4ed0b am: 14e8936293

Change-Id: If33300b8aee17128cfc5daad3422588eb72f094f

4 years agoMerge "DeviceCert: Add timeout for some test cases" am: 68d40fc755
Automerger Merge Worker [Wed, 12 Feb 2020 00:48:23 +0000 (00:48 +0000)]
Merge "DeviceCert: Add timeout for some test cases" am: 68d40fc755

Change-Id: Ic9bdb8239dc051a5e76de975db995791897f3fa5

4 years agoMerge "Increase allowed error in repeating_timer_unittest"
Treehugger Robot [Wed, 12 Feb 2020 00:43:32 +0000 (00:43 +0000)]
Merge "Increase allowed error in repeating_timer_unittest"

4 years agoMerge changes I5acd7ba9,If41d86e9,I4cea9ed3,I30a4ed0b
Treehugger Robot [Wed, 12 Feb 2020 00:39:33 +0000 (00:39 +0000)]
Merge changes I5acd7ba9,If41d86e9,I4cea9ed3,I30a4ed0b

* changes:
  Cert: Always unzip for host tests
  HCI: Add LE AclManager tests
  HCI: Advertise an address with D for DUT
  HCI: Spell COMPLETE_ADVERTISEMENT

4 years agoIncrease allowed error in repeating_timer_unittest
Hansong Zhang [Tue, 11 Feb 2020 22:41:54 +0000 (14:41 -0800)]
Increase allowed error in repeating_timer_unittest

Bug: 147469737
Test: atest bluetooth_test_common
Change-Id: I076192d55835b34300962e450407f8c21109ac1e

4 years agoMerge "DeviceCert: Add timeout for some test cases"
Treehugger Robot [Wed, 12 Feb 2020 00:32:13 +0000 (00:32 +0000)]
Merge "DeviceCert: Add timeout for some test cases"

4 years agoMerge changes I685873b0,Iac3078fa am: 9eb605cf8c
Automerger Merge Worker [Tue, 11 Feb 2020 23:42:10 +0000 (23:42 +0000)]
Merge changes I685873b0,Iac3078fa am: 9eb605cf8c

Change-Id: Ifac858837a0af68784a362880271578ae57d411d

4 years agoMerge changes I685873b0,Iac3078fa
Treehugger Robot [Tue, 11 Feb 2020 23:25:30 +0000 (23:25 +0000)]
Merge changes I685873b0,Iac3078fa

* changes:
  HF_Client: Send BTA_HF_CLIENT_RFC_CLOSE_EVT when client_cb == NULL
  HF_Client: Free the RFC if the handle doesn't match

4 years agoCert: Always unzip for host tests
Myles Watson [Tue, 11 Feb 2020 21:46:10 +0000 (13:46 -0800)]
Cert: Always unzip for host tests

Bug: 148096951
Test: ./cert/run_cert_facade_only.sh
Change-Id: I5acd7ba9860b54dc9b5f984dc4c3f301a6bdef85

4 years agoHCI: Add LE AclManager tests
Myles Watson [Tue, 11 Feb 2020 21:45:20 +0000 (13:45 -0800)]
HCI: Add LE AclManager tests

Bug: 148096951
Test: ./cert/run_cert_facade_only.sh
Change-Id: If41d86e9b34ae5f74a1917a0f5de03d8f7a8892a

4 years agoHCI: Advertise an address with D for DUT
Myles Watson [Tue, 11 Feb 2020 00:16:01 +0000 (16:16 -0800)]
HCI: Advertise an address with D for DUT

Bug: 148096951
Test: ./cert/run_cert_facade_only.sh
Change-Id: I4cea9ed386b28a50507563681c3d14ef4df8c74d

4 years agoHCI: Spell COMPLETE_ADVERTISEMENT
Myles Watson [Tue, 11 Feb 2020 00:15:08 +0000 (16:15 -0800)]
HCI: Spell COMPLETE_ADVERTISEMENT

Bug: 148096951
Test: ./run/cert_facade_only.sh
Change-Id: I30a4ed0b6f71a4a546aae95fff39de97da262c6c

4 years agoCert: Use site-packages instead of root
Jack He [Tue, 11 Feb 2020 22:47:37 +0000 (14:47 -0800)]
Cert: Use site-packages instead of root

* Symbolic link libraries in site-packages instead of root one
* Now we can finally run cert tests in virtualenv without PYTHONPATH

Example command without PYTHONPATH:

    act.py -c $ANDROID_BUILD_TOP/system/bt/gd/cert/host_only_config.json -tf $ANDROID_BUILD_TOP/system/bt/gd/cert/cert_testcases_facade_only -tp $ANDROID_BUILD_TOP/system/bt/gd

Bug: 148147248
Test: set up virtual env and run tests
Change-Id: I42ba29602addab41059916071c5d0b42cf17fd8f

4 years agoSecurityRecordDatabase am: 66b66414cc
Automerger Merge Worker [Tue, 11 Feb 2020 22:36:34 +0000 (22:36 +0000)]
SecurityRecordDatabase am: 66b66414cc

Change-Id: Ia29199b2caeba79a1e8efdcd08f209edd1a153e5

4 years agoDeviceCert: Add timeout for some test cases
Hansong Zhang [Tue, 11 Feb 2020 20:58:09 +0000 (12:58 -0800)]
DeviceCert: Add timeout for some test cases

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

4 years agoSecurityRecordDatabase
Jakub Pawlowski [Tue, 11 Feb 2020 17:42:08 +0000 (18:42 +0100)]
SecurityRecordDatabase

Store SecurityRecords directly in vector, rather than shared_ptr
Move management of SecurityRecord into separate unit -
SecurityRecordDatabase.

Bug: 142341141
Change-Id: I0cc2dd8a7ddcf5a01117f0ebf7bd68111a93a2c5

4 years agoMerge "DeviceCert: Fix AclManagerTest" am: e0f872ac25
Automerger Merge Worker [Tue, 11 Feb 2020 16:32:31 +0000 (16:32 +0000)]
Merge "DeviceCert: Fix AclManagerTest" am: e0f872ac25

Change-Id: I1a576fda7be3f4852bf3cae25b32801da1556712

4 years agoMerge "DeviceCert: Fix AclManagerTest"
Hansong Zhang [Tue, 11 Feb 2020 16:20:44 +0000 (16:20 +0000)]
Merge "DeviceCert: Fix AclManagerTest"

4 years agoMerge "RFCOMM: Refuse connection if max RFCOMM ports are used" am: 58cd3d00d8
Automerger Merge Worker [Tue, 11 Feb 2020 14:17:47 +0000 (14:17 +0000)]
Merge "RFCOMM: Refuse connection if max RFCOMM ports are used" am: 58cd3d00d8

Change-Id: I287981bc7832ec2f343a61d969b622a4d7e17c6c

4 years agoMerge "RFCOMM: Refuse connection if max RFCOMM ports are used"
Treehugger Robot [Tue, 11 Feb 2020 14:08:49 +0000 (14:08 +0000)]
Merge "RFCOMM: Refuse connection if max RFCOMM ports are used"

4 years agoMerge "Cert: Add a script to set up the on device cert test" am: f29a1c5662
Automerger Merge Worker [Tue, 11 Feb 2020 08:50:21 +0000 (08:50 +0000)]
Merge "Cert: Add a script to set up the on device cert test" am: f29a1c5662

Change-Id: I51f4bcea00743199ed0d88bfd952d1a0e6cb67e2

4 years agoMerge "Cert: Add a script to set up the on device cert test"
Treehugger Robot [Tue, 11 Feb 2020 08:35:59 +0000 (08:35 +0000)]
Merge "Cert: Add a script to set up the on device cert test"

4 years agoDeviceCert: Fix AclManagerTest
Hansong Zhang [Tue, 11 Feb 2020 06:29:26 +0000 (22:29 -0800)]
DeviceCert: Fix AclManagerTest

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

4 years agoSecurityRecord: naming and comments clarification am: 1b11f48184
Automerger Merge Worker [Tue, 11 Feb 2020 04:12:59 +0000 (04:12 +0000)]
SecurityRecord: naming and comments clarification am: 1b11f48184

Change-Id: I4823b346dcf0db5259d401de70f3ae76aa576420

4 years agoSecurityRecord: naming and comments clarification
Jakub Pawlowski [Mon, 10 Feb 2020 22:39:57 +0000 (23:39 +0100)]
SecurityRecord: naming and comments clarification

Change-Id: I1de20bb38d76d1dfd91d6f16e0909d7db7561203

4 years agoMerge "BQR: Add Bluetooth Quality Report v2 feature" am: 440315e3b5
Automerger Merge Worker [Tue, 11 Feb 2020 02:43:35 +0000 (02:43 +0000)]
Merge "BQR: Add Bluetooth Quality Report v2 feature" am: 440315e3b5

Change-Id: Idfc85062b1a169b2f4b81eab42df56537ecb58c4

4 years agoDeviceCert: Fix LeAdvertisingManagerTest, LeScanningManagerTest am: 398342ffdd
Automerger Merge Worker [Tue, 11 Feb 2020 02:43:26 +0000 (02:43 +0000)]
DeviceCert: Fix LeAdvertisingManagerTest, LeScanningManagerTest am: 398342ffdd

Change-Id: I48b73f7e6085c66506c9df5e0240e18b2714c9c5