OSDN Git Service

android-x86/system-bt.git
4 years agoMerge "Switch role to MASTER after connecting"
Treehugger Robot [Mon, 28 Oct 2019 15:45:15 +0000 (15:45 +0000)]
Merge "Switch role to MASTER after connecting"

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

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

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

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

Test: bluetooth_test_gd
Change-Id: I1e76bdd41b51f6ec3ef284f176f9a7ce76d273be

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

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

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

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

Role is needed in SMP to properly bootstrap the pairing process

Bug: 142341141
Change-Id: If0815c7bc9d07180950e66dbaafd69220e933340

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

Test: run_cert_test
Bug: 141557006
Change-Id: I37e1ec379458f40ab944ab69b0ed9c774350078a

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

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

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

Bug: 140421729
Test: Compiles
Change-Id: I7809e11273a38aa260881faf6fd10246b78a9d6d

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

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

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

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

Test: run_cert_test
Bug: 141557006
Change-Id: Ia8245a3f944dd1e731808d1c99ac79047b9d67a8

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

Change-Id: Id56826347023d4ad4c211ad5e39164bc47fdf530

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

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

Bug: 140938432
Bug: 142341141
Change-Id: I120179eef18f3ac59e32e9196f700e51c47d1a84

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

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

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

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

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

Test: build
Bug: 143245419
Change-Id: Iadfb621e477e1cef325385f3f5b10285cb3fc752

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

Change-Id: I6227fffca99e9e9ba8e4d1a054931a6995201033

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

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

Change-Id: I36c39a750ddc94e9ca4c2cb2f83c0d8fb79ff002

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

Change-Id: Iabaaa863fc8b3e17e6d800bbc81ed4b56a423a94

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

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

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

Change-Id: Ib0cd94877050a13ebc53ecf04459f38ee25e07d4

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

Change-Id: I1d4588c09a3dfbe9231096eb7d807f607d9364e3

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

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

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

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

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

Change-Id: I1073c2650b52765714e598f9cbd0210486480990

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

Test: bluetooth_test_gd
Change-Id: Ieea21b113154bac1539a1ff73f4ca46ad37dfe35

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

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

Test: run_cert_test
Bug: 141557006

Change-Id: I95774ea093d069c83313c3e6d00d0bc2c3e6c4ed

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

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

Bug: 142684649
Test: bluetooth_gd_fuzz_test
Change-Id: I1962fd497467bbf469d773823e3e6cf81f62772b

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

Bug: 143169747
Change-Id: Ib8b6901956ffde9969decbe0b4653758d6a9ce52

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

Change-Id: Ic7e47293fc6b5e7ad4cf8d6b2701f860115feb7f

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

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

Change-Id: I0828c72ede14fe37aae9f404c86c3423d1659125

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

Change-Id: I18f1f7086f46e8f9e7c5835468dbd168b532bda6

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

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

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

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

Change-Id: Ia2045a9565efc64e513b4408c25197060d7bdc83

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

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

Change-Id: I8c1bcea5d8d0a2ed607fb124cb71ae1a6b47ce34

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

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

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

Bug: 141963466
Test: Compiles for realz

Change-Id: Icea6e47bd9539613ea441ae2aed604b59e4b692f

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

Change-Id: Ifc3e57496feafbd146e3d0dbea92cc239bc0a011

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

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

Test: bluetooth_test_gd
Bug: 140938432
Change-Id: I28ed509cbaaa1c4917e1f632a6c35247f3ebe2ef

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

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

Bug: 138261114
Test: bluetooth_test_gd
Change-Id: I2bea155485a5bdc3d087336c6276952f3d64f0ac

4 years agoMerge changes I87ce02f0,I2c81de7a
Treehugger Robot [Tue, 22 Oct 2019 00:09:24 +0000 (00:09 +0000)]
Merge changes I87ce02f0,I2c81de7a

* changes:
  L2CAP: Use AddressWithType in L2CAP LE APIs
  HCI: Create AddressWithType and its unit tests

4 years agoAVRCP Controller get play status
Joseph Pirozzo [Mon, 21 Oct 2019 22:39:09 +0000 (15:39 -0700)]
AVRCP Controller get play status

Correct the parsing error in the GET_PLAY_STATUS message and call the
proper jni callback when it is received.

Bug: 139033614
Test: Connect AVRCP change media players, observe correct value parsed.
Change-Id: I8302b64efdd72bfa671cca5b8c512a436fa54ab3

4 years agoMerge "Import base::CallbackList into bluetooth::common::CallbackList"
Jakub Pawlowski [Mon, 21 Oct 2019 22:19:37 +0000 (15:19 -0700)]
Merge "Import base::CallbackList into bluetooth::common::CallbackList"
am: 655c8beda9

Change-Id: Id425eaae227f90a4c22ecadb473d9a036f7ac2d1

4 years agoL2CAP: Use AddressWithType in L2CAP LE APIs
Jack He [Mon, 21 Oct 2019 22:03:11 +0000 (15:03 -0700)]
L2CAP: Use AddressWithType in L2CAP LE APIs

* Bluetooth Low Energy connections always require explicit AddressType
  information
* Replacing existing Address and AddressType arguments in l2cap::le
  stack with hci::AddressWithType objects for easier hashing and
  managment

Bug: 140938432
Test: bluetooth_test_gd
Change-Id: I87ce02f0a0c867053a2b3560886924a566881801

4 years agoHCI: Create AddressWithType and its unit tests
Jack He [Mon, 21 Oct 2019 22:01:41 +0000 (15:01 -0700)]
HCI: Create AddressWithType and its unit tests

* Create hci::AddressWithType that has both hci::Address and
  hci::AddressType in the same copyable, hashable, and comparable
  object for easier management
* Create unit tests for the hash function

Bug: 139135297
Test: bluetooth_test_gd.AddressWithTypeTest
Change-Id: I2c81de7a3bd19656b687ef498f02d6380321f92d

4 years agoMerge "Import base::CallbackList into bluetooth::common::CallbackList"
Treehugger Robot [Mon, 21 Oct 2019 21:40:33 +0000 (21:40 +0000)]
Merge "Import base::CallbackList into bluetooth::common::CallbackList"

4 years agoMerge "Add FUZZ test generator for packets and L2CAP fuzz tests"
Jack He [Mon, 21 Oct 2019 18:32:06 +0000 (11:32 -0700)]
Merge "Add FUZZ test generator for packets and L2CAP fuzz tests"
am: 21b5002021

Change-Id: I247bb7436007edf4f0e1d8b0788a2ee07877a469

4 years agoMerge "Add FUZZ test generator for packets and L2CAP fuzz tests"
Treehugger Robot [Mon, 21 Oct 2019 18:12:49 +0000 (18:12 +0000)]
Merge "Add FUZZ test generator for packets and L2CAP fuzz tests"

4 years agoImport base::CallbackList into bluetooth::common::CallbackList
Jakub Pawlowski [Mon, 21 Oct 2019 15:05:42 +0000 (17:05 +0200)]
Import base::CallbackList into bluetooth::common::CallbackList

We need a good mechanism for keeping lists of callbacks. Import if from
libchrome for now.

Test: compilation, libchrome already test that.
Change-Id: Ia88be4d80464b981e3794a6ca73909a1e7ce8c04

4 years agoMerge "Make le LinkManager aware of AddressType"
Jakub Pawlowski [Fri, 18 Oct 2019 23:55:41 +0000 (16:55 -0700)]
Merge "Make le LinkManager aware of AddressType"
am: afa8a7ce65

Change-Id: If30dcce2f776674c7e3a353ce7231f3639cf45c5

4 years agoMerge "Make le LinkManager aware of AddressType"
Jakub Pawlowski [Fri, 18 Oct 2019 23:26:51 +0000 (23:26 +0000)]
Merge "Make le LinkManager aware of AddressType"

4 years agoAdd FUZZ test generator for packets and L2CAP fuzz tests
Jack He [Fri, 18 Oct 2019 23:11:17 +0000 (16:11 -0700)]
Add FUZZ test generator for packets and L2CAP fuzz tests

* Add fuzz test generator for packet generator to generate macros for
  fuzz tests
* Add a few fuzz tests for L2CAP packets

Bug: 142684649
Test: bluetooth_gd_fuzz_test
Change-Id: I75bf726b40caef3c7895596039d01c395d34506f

4 years agoUpdate file group names
Martin Brabham [Fri, 18 Oct 2019 23:08:09 +0000 (16:08 -0700)]
Update file group names
am: a5be8689ef

Change-Id: I8c310e1a3a68e291105496b8928b7b6fe34c52f3

4 years agoMake le LinkManager aware of AddressType
Jakub Pawlowski [Wed, 16 Oct 2019 20:25:28 +0000 (22:25 +0200)]
Make le LinkManager aware of AddressType

Bug: 142341141
Change-Id: I53b0d0eb8140a6109c0d3f237059b790c76a2111

4 years agoUpdate file group names
Martin Brabham [Fri, 18 Oct 2019 20:59:24 +0000 (13:59 -0700)]
Update file group names

Bug: N/A
Test: builds
Change-Id: Ie33178a3397343d0a80959a9e39f2f4ba03d5734

4 years agoPDL: Parameterize the root namespace
Myles Watson [Thu, 17 Oct 2019 16:12:36 +0000 (09:12 -0700)]
PDL: Parameterize the root namespace

Bug: 140384404
Test: bluetooth_packet_parser_test
Change-Id: I08aa14159ac86faf9e4e130540ecab77b93526e4

4 years agoRootCanal: Use gd/os/log.h logging
Myles Watson [Thu, 17 Oct 2019 18:36:33 +0000 (11:36 -0700)]
RootCanal: Use gd/os/log.h logging

Bug: 140384404
Test: builds
Change-Id: I442c9629ace0c39f26de59aaab70efa955f34c78

4 years agoMerge "Add a fuzzer in bluetooth gd for l2cap dynamic channel allocator"
Zongheng Wang [Fri, 18 Oct 2019 00:52:38 +0000 (17:52 -0700)]
Merge "Add a fuzzer in bluetooth gd for l2cap dynamic channel allocator"
am: 18662ec821

Change-Id: Ibc79a89528d4f494dc8d7cc13ba7060941739fc2

4 years agoMerge "Add a fuzzer in bluetooth gd for l2cap dynamic channel allocator"
Treehugger Robot [Fri, 18 Oct 2019 00:34:20 +0000 (00:34 +0000)]
Merge "Add a fuzzer in bluetooth gd for l2cap dynamic channel allocator"

4 years agoConnect gd/neighbor into build system
Chris Manton [Thu, 17 Oct 2019 21:47:07 +0000 (14:47 -0700)]
Connect gd/neighbor into build system
am: af1058bdfa

Change-Id: I036113f1e52116a7786ac92f27877f5b65675cf0

4 years agoAdd a fuzzer in bluetooth gd for l2cap dynamic channel allocator
Zongheng Wang [Wed, 16 Oct 2019 23:39:11 +0000 (16:39 -0700)]
Add a fuzzer in bluetooth gd for l2cap dynamic channel allocator

Initialized fuzz test for Bluetooth GD library. There is one fuzz target
gd/fuzz_test.cc and it will call all fuzz tests in gd.

Created a fuzzer for l2cap classic internal dynamic channel allocator to
test DynamicChannelAllocator::IsPsmUsed(Psm psm).

Bug: 142684649
Test: bluetooth_gd_fuzz_test
Change-Id: If7c66d6aefc5d52448824f7f96f3118607a37215

4 years agoConnect gd/neighbor into build system
Chris Manton [Thu, 17 Oct 2019 05:26:22 +0000 (22:26 -0700)]
Connect gd/neighbor into build system

Bug: 142060811
Test: Compiles but for realz
Change-Id: I719133c6466aab5b1813c9c2e49e7c1a4f29ca6b

4 years agoFix initiating_PHYS bit in HCI_LE_Extend_Create_Connection
Kevin Wang [Thu, 17 Oct 2019 14:11:00 +0000 (07:11 -0700)]
Fix initiating_PHYS bit in HCI_LE_Extend_Create_Connection
am: 618806154a

Change-Id: If132a65d0cf3c57ffff8ccb98494432a3779dc40

4 years agoFix initiating_PHYS bit in HCI_LE_Extend_Create_Connection
Kevin Wang [Thu, 17 Oct 2019 06:18:57 +0000 (14:18 +0800)]
Fix initiating_PHYS bit in HCI_LE_Extend_Create_Connection

The initiating_PHYS bit in HCI_LE_Extend_Create_Connection should
be set properly according to the ability of bluetooth controller.
PHY_LE_CODED bit should be 0x04 instead of 0x03.

Test: Start to scan on settings then pick LE device to create bond

Bug: 142840872

Change-Id: Ia991ac2d4090629f0c20e41cdb2ab992aefcba72

4 years agoMerge "Inquiry module implementation"
Chris Manton [Thu, 17 Oct 2019 05:01:52 +0000 (22:01 -0700)]
Merge "Inquiry module implementation"
am: 92401c009e

Change-Id: Icbd7a92588ca6af329666fae4c07bdb532b3514d

4 years agoMerge "Inquiry module implementation"
Chris Manton [Thu, 17 Oct 2019 04:49:07 +0000 (04:49 +0000)]
Merge "Inquiry module implementation"

4 years agoMerge "Add connectability module"
Chris Manton [Thu, 17 Oct 2019 04:19:54 +0000 (21:19 -0700)]
Merge "Add connectability module"
am: 61eb84c2a4

Change-Id: I57299d12a4ed738f95c8878f2288bb06c985ae8c

4 years agoMerge changes Ib4c81ba3,I79bead5d
Chris Manton [Thu, 17 Oct 2019 04:17:43 +0000 (21:17 -0700)]
Merge changes Ib4c81ba3,I79bead5d
am: 99e9c76e9d

Change-Id: I644a68a3a6728818c4dd100052eea97d400cb39c

4 years agoMerge "Add connectability module"
Treehugger Robot [Thu, 17 Oct 2019 01:29:44 +0000 (01:29 +0000)]
Merge "Add connectability module"

4 years agoMerge changes Ib4c81ba3,I79bead5d
Treehugger Robot [Thu, 17 Oct 2019 00:35:16 +0000 (00:35 +0000)]
Merge changes Ib4c81ba3,I79bead5d

* changes:
  Add discoverability module
  Add page scan module

4 years agoMerge "Make hci::AclConnection aware of AddressType for LE Connections"
Jakub Pawlowski [Thu, 17 Oct 2019 00:13:38 +0000 (17:13 -0700)]
Merge "Make hci::AclConnection aware of AddressType for LE Connections"
am: 40950804d2

Change-Id: Ia3de6e5d5e06e414127784c211acb8b493eea0e5

4 years agoMerge "HFP: remove the dropped HF connection request message in btif connect_queue...
jonerlin [Thu, 17 Oct 2019 00:07:57 +0000 (17:07 -0700)]
Merge "HFP: remove the dropped HF connection request message in btif connect_queue and advance to the next scheduled connection request."
am: 77a4b9bf03

Change-Id: Ia687b9510175f3c02d2cb60455185714f84abf89

4 years agoMerge "Classic inquiry scan API"
Chris Manton [Thu, 17 Oct 2019 00:06:23 +0000 (17:06 -0700)]
Merge "Classic inquiry scan API"
am: 877bfb10c3

Change-Id: I0b2626cb3a5da6032192189e4c6d93fb1e79d60e

4 years agoMerge "Make hci::AclConnection aware of AddressType for LE Connections"
Treehugger Robot [Thu, 17 Oct 2019 00:04:14 +0000 (00:04 +0000)]
Merge "Make hci::AclConnection aware of AddressType for LE Connections"

4 years agoMerge "HFP: remove the dropped HF connection request message in btif connect_queue...
Treehugger Robot [Wed, 16 Oct 2019 23:53:22 +0000 (23:53 +0000)]
Merge "HFP: remove the dropped HF connection request message in btif connect_queue and advance to the next scheduled connection request."

4 years agoMerge "Classic inquiry scan API"
Treehugger Robot [Wed, 16 Oct 2019 23:35:11 +0000 (23:35 +0000)]
Merge "Classic inquiry scan API"

4 years agoAdd discoverability module
Chris Manton [Wed, 16 Oct 2019 23:11:11 +0000 (16:11 -0700)]
Add discoverability module

Bug: 142060811
Test: Compiles
Change-Id: Ib4c81ba3d4c30c30602d451c97609f7577e3e8e3

4 years agoAdd connectability module
Chris Manton [Wed, 16 Oct 2019 22:53:16 +0000 (15:53 -0700)]
Add connectability module

Bug: 142060811
Test: Compiles
Change-Id: I0afa5f6a29b8c9c4d2b3e7dd8df427549abe01d5

4 years agoAdd page scan module
Chris Manton [Wed, 16 Oct 2019 22:35:19 +0000 (15:35 -0700)]
Add page scan module

Bug: 142060811
Test: Compiles
Change-Id: I79bead5da3706520fd4c22c4e0e921d930bd5fb2

4 years agoSkip QD1A.190821.011 in stage-aosp-master
Xin Li [Wed, 16 Oct 2019 22:19:30 +0000 (15:19 -0700)]
Skip QD1A.190821.011 in stage-aosp-master

Bug: 141248619
Change-Id: Ibab25eb0c5ea3e5451bdfee88a5f9ec5beed0460

4 years agoInquiry module implementation
Chris Manton [Wed, 16 Oct 2019 17:26:32 +0000 (10:26 -0700)]
Inquiry module implementation

Bug: 142061208
Test: Compiles
Change-Id: Iead1e6dfe2c476ecd4671a99413527b9b628bb36

4 years agoClassic inquiry scan API
Chris Manton [Tue, 15 Oct 2019 16:42:29 +0000 (09:42 -0700)]
Classic inquiry scan API

Bug: 142061208
Test: API - Compiles
Change-Id: Ie7a5bda3f10bedefc412b50f61c593e496999596

4 years agoMerge "Inquiry and page scan common module"
Chris Manton [Wed, 16 Oct 2019 21:14:50 +0000 (14:14 -0700)]
Merge "Inquiry and page scan common module"
am: d4e3ea41d9

Change-Id: I98a819a3d253f7bfccee0b53988a049d94ab3c5c

4 years agoMerge "Inquiry and page scan common module"
Treehugger Robot [Wed, 16 Oct 2019 21:02:57 +0000 (21:02 +0000)]
Merge "Inquiry and page scan common module"

4 years agoMake hci::AclConnection aware of AddressType for LE Connections
Jakub Pawlowski [Wed, 16 Oct 2019 12:54:53 +0000 (14:54 +0200)]
Make hci::AclConnection aware of AddressType for LE Connections

Bug: 142341141
Change-Id: I64e3e3265195d10e488e9c25d369d9c458ad67cc

4 years agoMerge "Add Page Write commands"
Chris Manton [Wed, 16 Oct 2019 19:57:06 +0000 (12:57 -0700)]
Merge "Add Page Write commands"
am: 3f9c9b2d16

Change-Id: Ic1468465205a8f95ad99b6eaf97ac878e8bf1685

4 years agoMerge "Add Page Write commands"
Treehugger Robot [Wed, 16 Oct 2019 19:42:45 +0000 (19:42 +0000)]
Merge "Add Page Write commands"

4 years agoMerge "Support inquiry commands and tests"
Chris Manton [Wed, 16 Oct 2019 16:33:31 +0000 (09:33 -0700)]
Merge "Support inquiry commands and tests"
am: 20f0311578

Change-Id: I8026e4cbe210c9e43d469c160ef4e0df33371b2e

4 years agoMerge "Support inquiry commands and tests"
Chris Manton [Wed, 16 Oct 2019 16:10:21 +0000 (16:10 +0000)]
Merge "Support inquiry commands and tests"

4 years agoHFP: remove the dropped HF connection request message in btif connect_queue and advan...
jonerlin [Mon, 23 Sep 2019 15:25:48 +0000 (23:25 +0800)]
HFP: remove the dropped HF connection request message in btif connect_queue and advance to the next scheduled connection request.

* hf connect-request message does not be handled in btif connect_queue when remote headset has already reconnected hfp, but it did not be removed, either.
it will make subsequent connecting request messsages blocked in btif connect_queue and never be handled.
* Add unit test for btif_profile_queue to verify the case when connect_cb() returns non BT_STATUS_SUCCESS

Bug: 140846154
Test: Connected 2 headset (HS1, HS2) -> Disable Bluetooth and Turn Off
HS2 ->  Enable Bluetooth and Turn On HS2 -> Check hfp and a2dp profole
state after HS2 connected

Change-Id: I503fba1975054efe3180ecf1f7daa917fb6edf99