OSDN Git Service

android-x86/system-bt.git
4 years agoHF_Client: Send BTA_HF_CLIENT_RFC_CLOSE_EVT when client_cb == NULL
Song Gao [Thu, 12 Dec 2019 18:32:27 +0000 (10:32 -0800)]
HF_Client: Send BTA_HF_CLIENT_RFC_CLOSE_EVT when client_cb == NULL

Bug: 146086992
Test: manual
Change-Id: I685873b0c4c74ddb4e273e2a38307ec2af0bbd13

4 years agoHF_Client: Free the RFC if the handle doesn't match
Song Gao [Thu, 12 Dec 2019 18:28:36 +0000 (10:28 -0800)]
HF_Client: Free the RFC if the handle doesn't match

Bug: 146086995
Test: manual
Change-Id: Iac3078fa2d10373f295fe9c6fd49ddc39f15eb98

4 years agoMerge "Clean up BTM api"
Treehugger Robot [Thu, 12 Dec 2019 21:11:41 +0000 (21:11 +0000)]
Merge "Clean up BTM api"

4 years agoClean up BTM api
Chris Manton [Thu, 12 Dec 2019 19:33:44 +0000 (11:33 -0800)]
Clean up BTM api

Bug: 146086425
Test: bluetooth_test_legacy
Change-Id: If75224b6b502b553e123ff31cb53e9625c5831f8

4 years agoMerge "Add LE related fields into SecurityRecord"
Treehugger Robot [Thu, 12 Dec 2019 19:00:40 +0000 (19:00 +0000)]
Merge "Add LE related fields into SecurityRecord"

4 years agoMerge "Earlier check for inquiry scan stopping"
Treehugger Robot [Thu, 12 Dec 2019 07:04:57 +0000 (07:04 +0000)]
Merge "Earlier check for inquiry scan stopping"

4 years agoMerge "Race condition with channel closure"
Treehugger Robot [Thu, 12 Dec 2019 05:33:56 +0000 (05:33 +0000)]
Merge "Race condition with channel closure"

4 years agoRace condition with channel closure
Chris Manton [Thu, 12 Dec 2019 02:55:24 +0000 (18:55 -0800)]
Race condition with channel closure

Bug: 146086425
Test: Opp does not fail at this point
Change-Id: I5ef6e1a44c02c8d2804a47809c9cee157ec41fe0

4 years agoRemove unnecessary function logging
Chris Manton [Thu, 12 Dec 2019 02:48:26 +0000 (18:48 -0800)]
Remove unnecessary function logging

Bug: 146086425
Test: bluetooth_gd_test
Change-Id: I467c6da8c2e798f8df9b5005bcf90883fd2ba242

4 years agoEarlier check for inquiry scan stopping
Chris Manton [Thu, 12 Dec 2019 02:46:31 +0000 (18:46 -0800)]
Earlier check for inquiry scan stopping

Bug: 146086425
Test: bluetooth_gd_test
Change-Id: Ied98341a610a9a987263b4202f126be736430c41

4 years agoMerge "Cert Test: Stop using cert API protos and user layer N-1 to test layer N"
Treehugger Robot [Thu, 12 Dec 2019 02:05:32 +0000 (02:05 +0000)]
Merge "Cert Test: Stop using cert API protos and user layer N-1 to test layer N"

4 years agoMerge "Add support for le privacy"
Treehugger Robot [Thu, 12 Dec 2019 01:13:11 +0000 (01:13 +0000)]
Merge "Add support for le privacy"

4 years agoMerge "PDL: Check total field length before parsing"
Treehugger Robot [Thu, 12 Dec 2019 00:58:36 +0000 (00:58 +0000)]
Merge "PDL: Check total field length before parsing"

4 years agoCert Test: Stop using cert API protos and user layer N-1 to test layer N
Jack He [Thu, 12 Dec 2019 00:20:47 +0000 (16:20 -0800)]
Cert Test: Stop using cert API protos and user layer N-1 to test layer N

* Instead of having a separate certification stack, trying to simplify
  the testing model by moving the implementation of the certification
  stack to Python on top of the underlying layer
* This means that when testing layer N, the certification device will
  be using layer N-1 and a Python based certification stack or event
  handler
* Migrate SimpleHalTest to use facade APIs only
* Remove build rules and files related to HAL cert APIs

Bug: 146082036
Test: Run SimpleHalTests
Change-Id: I304ff425f7bb42da17a71914faeee8f20118007b

4 years agoMerge "Cert: Do not export PYTHONPATH in run scripts"
Treehugger Robot [Thu, 12 Dec 2019 00:07:28 +0000 (00:07 +0000)]
Merge "Cert: Do not export PYTHONPATH in run scripts"

4 years agoAdd support for le privacy
Chris Manton [Wed, 11 Dec 2019 22:47:06 +0000 (14:47 -0800)]
Add support for le privacy

Bug: 142501664
Test: Verified multiple advertisers on nordic utility
Change-Id: Ied31dcb37d814a220247a5e972288d89627f1fb0

4 years agoPDL: Check total field length before parsing
Myles Watson [Wed, 11 Dec 2019 19:26:41 +0000 (11:26 -0800)]
PDL: Check total field length before parsing

- Add a test for struct parsing in packet/parser/test
- Sum the field bits and check against the total size
- Round up when returning the number of bytes from Size

Fixes: 143118297
Fixes: 144231005
Fixes: 144245424
Fixes: 144354467
Test: bluetooth_packet_parser_test
      bluetooth_test_gd
Change-Id: Ib71b7fae2c00ae36326a2dc38bce3c56b96fe29e

4 years agoPDL: Split Fuzz test definition and registration
Myles Watson [Wed, 11 Dec 2019 01:00:23 +0000 (17:00 -0800)]
PDL: Split Fuzz test definition and registration

Bug: 146065579
Test: bluetooth_test_gd
      Manually create a test and call the function
Change-Id: Ic0c0244aa4a8371143335246c8e3aa8bf37dabc1

4 years agoCert: Do not export PYTHONPATH in run scripts
Jack He [Wed, 11 Dec 2019 22:30:32 +0000 (14:30 -0800)]
Cert: Do not export PYTHONPATH in run scripts

Test: run cert
Change-Id: I84db00b135f837cd8c48b6b6f4bff661223bacda

4 years agoPython: format all Python files in system/bt using YAPF
Jack He [Wed, 11 Dec 2019 00:41:59 +0000 (16:41 -0800)]
Python: format all Python files in system/bt using YAPF

python3 yapf -p -i $(git ls-tree --name-only -r aosp/master | grep "\.py")

Bug: 146016811
Test: run Python tests
Change-Id: Ic5fe6a21151d1abc8eb013f8c8070ba8238a5249

4 years agoAdd Python style checker to system/bt
Jack He [Tue, 10 Dec 2019 01:21:19 +0000 (17:21 -0800)]
Add Python style checker to system/bt

* Based on Google style and ensure 4 spaces are used for indentation
* http://google.github.io/styleguide/pyguide.html

Bug: 146016811
Test: upload CLs
Change-Id: I27b9232d59e9e9bd59ca1414ef6f9db85c41a808

4 years agoAdd LE related fields into SecurityRecord
Jakub Pawlowski [Wed, 11 Dec 2019 17:12:00 +0000 (18:12 +0100)]
Add LE related fields into SecurityRecord

Bug: 142341141
Change-Id: I3706f96d35716df65a47f64057598f4e1bc027c0

4 years agoAdd message loop post for shim layer
Chris Manton [Wed, 11 Dec 2019 05:56:18 +0000 (21:56 -0800)]
Add message loop post for shim layer

Bug: 142501664
Test: Compiles
Change-Id: Ia25f5ad4147bcd7206203bcb69bfcd0e901711f6

4 years agoCert: do not export PYTHONPATH
Jack He [Tue, 10 Dec 2019 22:58:03 +0000 (14:58 -0800)]
Cert: do not export PYTHONPATH

* Configure PYTHONPATH for runtime only, do not export it

Test: set_up_acts.sh
Change-Id: Ie666b76be6742603c57b063aa9bfc963d239e61c

4 years agoMerge "DO NOT MERGE Legacy side gd shim for le adv/scan"
Treehugger Robot [Tue, 10 Dec 2019 22:32:35 +0000 (22:32 +0000)]
Merge "DO NOT MERGE Legacy side gd shim for le adv/scan"

4 years agoMerge "Add sbcdecoder fuzzer on behalf of ext. researcher"
Hamzeh Zawawy [Tue, 10 Dec 2019 21:52:51 +0000 (21:52 +0000)]
Merge "Add sbcdecoder fuzzer on behalf of ext. researcher"

4 years agoMerge "Register security manager for L2CAP connection events"
Jakub Pawlowski [Tue, 10 Dec 2019 20:49:28 +0000 (20:49 +0000)]
Merge "Register security manager for L2CAP connection events"

4 years agoMerge "Plumb advertiser data through shim controller"
Treehugger Robot [Tue, 10 Dec 2019 20:02:42 +0000 (20:02 +0000)]
Merge "Plumb advertiser data through shim controller"

4 years agoDO NOT MERGE Legacy side gd shim for le adv/scan
Chris Manton [Tue, 10 Dec 2019 18:17:58 +0000 (10:17 -0800)]
DO NOT MERGE Legacy side gd shim for le adv/scan

Bug: 143579227
Test: Verify advertising data obtained via nRF logger
Change-Id: I529070a2ed2b8e50fc7a12fdcaa03344a3df9df3

4 years agoMerge "SecurityModule: Add PairingResultOrFailure to callback signature."
Martin Brabham [Tue, 10 Dec 2019 19:44:49 +0000 (19:44 +0000)]
Merge "SecurityModule: Add PairingResultOrFailure to callback signature."

4 years agoRegister security manager for L2CAP connection events
Jakub Pawlowski [Thu, 5 Dec 2019 09:30:41 +0000 (10:30 +0100)]
Register security manager for L2CAP connection events

Bug: 142341141
Change-Id: Ifddba2f08c202bd7b659b516fdb2704c94b3bf7f

4 years agoPlumb advertiser data through shim controller
Chris Manton [Tue, 10 Dec 2019 17:54:03 +0000 (09:54 -0800)]
Plumb advertiser data through shim controller

Bug: 142501909
Test: Verify advertising data obtained via nRF logger
Change-Id: I40f5aafd322c3a78ff80750def4a1decafa78b7a

4 years agoHCI: Add LeAdvertisingManager Extended tests
Myles Watson [Tue, 3 Dec 2019 23:22:30 +0000 (15:22 -0800)]
HCI: Add LeAdvertisingManager Extended tests

Make tests more reliable.  Add disable to the tests.

Bug:143568835
Test: bluetooth_test_gd
Change-Id: If5983b830735c0221fbc9fcd0b2f36a64671d01d

4 years agoMerge "Remove unused mca_cact.cc"
Treehugger Robot [Tue, 10 Dec 2019 16:54:35 +0000 (16:54 +0000)]
Merge "Remove unused mca_cact.cc"

4 years agoMerge "L2CAP: Remove unnecessary #define"
Treehugger Robot [Tue, 10 Dec 2019 16:54:17 +0000 (16:54 +0000)]
Merge "L2CAP: Remove unnecessary #define"

4 years agoMerge "Change advertising set data size"
Treehugger Robot [Tue, 10 Dec 2019 07:16:34 +0000 (07:16 +0000)]
Merge "Change advertising set data size"

4 years agoMerge "Gd advertiser and scanner shim to legacy"
Treehugger Robot [Tue, 10 Dec 2019 06:59:43 +0000 (06:59 +0000)]
Merge "Gd advertiser and scanner shim to legacy"

4 years agoChange advertising set data size
Chris Manton [Tue, 10 Dec 2019 05:53:45 +0000 (21:53 -0800)]
Change advertising set data size

It is 8 bit not 16 bit.

Bug: 142501909
Test: bluetooth_gd_test
Change-Id: I1a60d9980a1446035123abff8952e94e1efd0c4e

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 agoMerge "Cert Test: Simplify server-client stream handling"
Treehugger Robot [Tue, 10 Dec 2019 04:43:37 +0000 (04:43 +0000)]
Merge "Cert Test: Simplify server-client stream handling"

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

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

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 agoCert Test: Simplify server-client stream handling
Jack He [Sat, 7 Dec 2019 01:13:27 +0000 (17:13 -0800)]
Cert Test: Simplify server-client stream handling

* Created EventCallbackStream in Python to handle gRPC server
  one-directional stream asynchronously
* Created EventAsserts in Python that uses EventCallbackStream
  to assert on incoming gRPC stream events
* Created bluetooth::grpc::GrpcEventQueue to handle gRPC server
  stream request asynchronously. This class blocks the calling
  gRPC thread whiling taking incoming events on a different
  thread and pass the event via a common::BlockingQueue
* Migrated all existing facade tests to use the new infrastructure
* Get rid of legacy definition of EventStream

Bug: 143373417
Test: SimpleHalTest, SimpleHciTest, SimpleL2capTest
Change-Id: I9d841fe2729e284450f8b031d9d1f094dd0c021b

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 agoSecurityModule: Add PairingResultOrFailure to callback signature.
Martin Brabham [Thu, 5 Dec 2019 21:14:31 +0000 (13:14 -0800)]
SecurityModule: Add PairingResultOrFailure to callback signature.

Bug: 139137147
Test: atest --host -t bluetooth_test_gd:ClassicPairingHandlerTest
Change-Id: I93b87d12143af21f7897bb27193c4115c2f4c019

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 agoAdd sbcdecoder fuzzer on behalf of ext. researcher
hamzeh [Sun, 8 Dec 2019 09:53:36 +0000 (01:53 -0800)]
Add sbcdecoder fuzzer on behalf of ext. researcher

Bug: 145143919
Test: successfully built and ran
Change-Id: I32a53dcfd853f60aaf2ff81e4552ff4dc17f9f26

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