OSDN Git Service

android-x86/system-bt.git
5 years agoBasic integration of GD with ACTS
Zach Johnson [Thu, 25 Apr 2019 06:31:03 +0000 (23:31 -0700)]
Basic integration of GD with ACTS
am: facafb0849

Change-Id: Ib0aeae59c7f0e5b72bc36a456225a676e819d610

5 years agoMerge "Revert "Revert "Cert for HAL adapter"""
Hansong Zhang [Thu, 25 Apr 2019 01:49:12 +0000 (18:49 -0700)]
Merge "Revert "Revert "Cert for HAL adapter"""
am: 1bc6c42328

Change-Id: I8ccd9a439f0e30152290139049b3f1d24f26ba14

5 years agoBasic integration of GD with ACTS
Zach Johnson [Mon, 22 Apr 2019 23:34:49 +0000 (16:34 -0700)]
Basic integration of GD with ACTS

* Add GD base test, which can parse config and bring up rootcanal.
* Add GD device controller, which is only optimized for host at this point.
* Add host config for running tests,
* Add basic hal test to test end to end flows.

Missing from this patch:
* GD cert device controller (should be similar to GD device)

Test: after setting up acts (gd/cert/set_up_acts.sh): gd/cert/run_cert.sh

Change-Id: Ibde7c7b0fe85b64643ed11fffe833e9ff53ed48c

5 years agoMerge "Revert "Revert "Cert for HAL adapter"""
Treehugger Robot [Thu, 25 Apr 2019 01:30:36 +0000 (01:30 +0000)]
Merge "Revert "Revert "Cert for HAL adapter"""

5 years agoSimple btsnoop logger implementation
Jack He [Wed, 24 Apr 2019 20:41:23 +0000 (13:41 -0700)]
Simple btsnoop logger implementation
am: e066082980

Change-Id: Ib5452a6cf4b9b00cadb35c9741ea33c5ba2363bf

5 years agoRevert "Revert "Cert for HAL adapter""
Hansong Zhang [Wed, 24 Apr 2019 17:25:42 +0000 (17:25 +0000)]
Revert "Revert "Cert for HAL adapter""

This reverts commit 865d9d138f1099a0236847e39329ee641c62b1ae.

Reason for revert: Re-landing CL I3cf2f54605ce2709d1c149b1221dedc8dc5dca92

Change-Id: I63d60ab99d3a4a1b369f77d6c48eff0f463506e4

5 years agoSimple btsnoop logger implementation
Jack He [Mon, 22 Apr 2019 18:45:26 +0000 (11:45 -0700)]
Simple btsnoop logger implementation

Test: run unit test and check btsnoop log
Change-Id: Ib5ea3fc6440c48e1a7b5d5f3bcc3a0b1c23ac9c2

5 years agoMerge "Revert "Cert for HAL adapter""
SzuWei Lin [Wed, 24 Apr 2019 14:25:06 +0000 (07:25 -0700)]
Merge "Revert "Cert for HAL adapter""
am: a1cdf837cf

Change-Id: Idb0c25b945284e7f83467793a8afde35a3b2274f

5 years agoMerge "Revert "Cert for HAL adapter""
Treehugger Robot [Wed, 24 Apr 2019 14:08:23 +0000 (14:08 +0000)]
Merge "Revert "Cert for HAL adapter""

5 years agoMerge "HearingAid: add addToWhiteList NativeInterface API"
Weichin Weng [Wed, 24 Apr 2019 09:26:53 +0000 (02:26 -0700)]
Merge "HearingAid: add addToWhiteList NativeInterface API"
am: 4bafb40345

Change-Id: I6fa5a9d38d9de413f306e0c9bbb303ee227e237a

5 years agoMerge "HearingAid: add addToWhiteList NativeInterface API"
Weichin Weng [Wed, 24 Apr 2019 09:15:31 +0000 (09:15 +0000)]
Merge "HearingAid: add addToWhiteList NativeInterface API"

5 years agoRevert "Cert for HAL adapter"
SzuWei Lin [Wed, 24 Apr 2019 07:10:06 +0000 (07:10 +0000)]
Revert "Cert for HAL adapter"

This reverts commit 7b003eb97a032ae16fb5e793bd641635319724c4.

Reason for revert: aosp_x86_64-eng build error

Change-Id: I6e5484f960209b8486806ab21b8d694437e3c10f

5 years agoHearingAid: add addToWhiteList NativeInterface API
weichinweng [Tue, 23 Apr 2019 02:56:20 +0000 (10:56 +0800)]
HearingAid: add addToWhiteList NativeInterface API

Add a new native interface API, addToWhiteList, that adds a LE device to
the whitelist.

Bug: 129452236
Test: Manual testing with Hearing Aids
Change-Id: I57c327380f07243e484c5c3afedfe60404f883fa

5 years agoMerge "Cert for HAL adapter"
Hansong Zhang [Tue, 23 Apr 2019 23:58:38 +0000 (16:58 -0700)]
Merge "Cert for HAL adapter"
am: 3cad2ebdaa

Change-Id: I84ca06a36e62021f822c9570202dc8afe4b9a44e

5 years agoMerge "Cert for HAL adapter"
Treehugger Robot [Tue, 23 Apr 2019 23:49:26 +0000 (23:49 +0000)]
Merge "Cert for HAL adapter"

5 years agoMerge "PDL: Use underscores for field names"
Myles Watson [Tue, 23 Apr 2019 23:18:07 +0000 (16:18 -0700)]
Merge "PDL: Use underscores for field names"
am: 86939cc6d5

Change-Id: If3963204dc87892e5771e18e2c93f85e43ee2a5c

5 years agoMerge "PDL: Use underscores for field names"
Treehugger Robot [Tue, 23 Apr 2019 23:02:27 +0000 (23:02 +0000)]
Merge "PDL: Use underscores for field names"

5 years agoRoot-canal: Add missing payload size field to loopback evt
Hansong Zhang [Tue, 23 Apr 2019 22:00:09 +0000 (15:00 -0700)]
Root-canal: Add missing payload size field to loopback evt
am: 5af185de3e

Change-Id: I921f8b004ad8cd05d9b1161587a02c0348d9b7d3

5 years agoCert for HAL adapter
Hansong Zhang [Mon, 8 Apr 2019 23:18:21 +0000 (16:18 -0700)]
Cert for HAL adapter

Introducing cert framework and a simple test case for HCI HAL
transportation adapter

Test-prerequisite: gRPC python. Install from pip
(https://grpc.io/blog/installation)

Test: 1. start HCI rootcanal or HIDL transport
      $ANDROID_HOST_OUT/nativetest64/root-canal/root-canal
      2. start stack with facade
      $ANDROID_HOST_OUT/bin/stack_with_facade
      3. run a simple test case
      $ANDROID_HOST_OUT/nativetest64/bluetooth_cert_test/bluetooth_cert_test

Or: One-liner: python cert/run_cert.py

Change-Id: I3cf2f54605ce2709d1c149b1221dedc8dc5dca92

5 years agoPDL: Use underscores for field names
Myles Watson [Mon, 22 Apr 2019 21:16:41 +0000 (14:16 -0700)]
PDL: Use underscores for field names

field_name : FieldType,

Test: bluetooth_packet_parser_test
Change-Id: I3b6d673111c7c4d7b5814563b132a3b48d3fdfcf

5 years agoRoot-canal: Add missing payload size field to loopback evt
Hansong Zhang [Tue, 23 Apr 2019 20:06:52 +0000 (13:06 -0700)]
Root-canal: Add missing payload size field to loopback evt

Bug: 131168063
Test: 1. Download AOSP CL929617 and 948661
      2. mma. Run python cert/run_cert.py
      3. Check btsnoop log

Change-Id: I1e31a1323f4aa8cb549af7545029b9d21eaabe9c

5 years agoMerge "HFP: Fix null pointer dereference in bta_ag_codec_negotiate()."
Ray Kuo [Fri, 19 Apr 2019 14:05:51 +0000 (07:05 -0700)]
Merge "HFP: Fix null pointer dereference in bta_ag_codec_negotiate()."
am: 8eb55ba33a

Change-Id: I61e73aa166442ac881459f4eeda56491c7ecf54b

5 years agoMerge "HFP: Fix null pointer dereference in bta_ag_codec_negotiate()."
Treehugger Robot [Fri, 19 Apr 2019 13:54:34 +0000 (13:54 +0000)]
Merge "HFP: Fix null pointer dereference in bta_ag_codec_negotiate()."

5 years agoCall gatt_disconnect if the LE connection is not established and no APP use it.
weichinweng [Fri, 19 Apr 2019 11:48:02 +0000 (04:48 -0700)]
Call gatt_disconnect if the LE connection is not established and no APP use it.
am: c04984def6

Change-Id: Ic4547081033a5f37124094ec822e3e4e14403e9f

5 years agoCall gatt_disconnect if the LE connection is not established and no APP use it.
weichinweng [Mon, 25 Mar 2019 05:51:10 +0000 (13:51 +0800)]
Call gatt_disconnect if the LE connection is not established and no APP use it.

When the LE connection hold APP is removed, if the LE connection is not
established and no APP use it, we never free transport control block
(p_tcb) or close it. For BLE device that have not established and no APP
use it, will call gatt_disconnect to free p_tcb and go to close state.

Bug: 127908699
Test: GattConnectTest
Change-Id: Ifed10c67141cb4c9221478db759c5614714fff30

5 years agoMerge "Use GATT_WRITE_NO_RSP for "state change" updates"
weichinweng [Fri, 19 Apr 2019 03:49:44 +0000 (20:49 -0700)]
Merge "Use GATT_WRITE_NO_RSP for "state change" updates"
am: a61ee1ba8a

Change-Id: I653082394e8cb744cbe7eb2b85ad641e0dd73b18

5 years agoMerge "Use GATT_WRITE_NO_RSP for "state change" updates"
Treehugger Robot [Fri, 19 Apr 2019 03:36:29 +0000 (03:36 +0000)]
Merge "Use GATT_WRITE_NO_RSP for "state change" updates"

5 years agoMerge "HCI: Use fixed-width types"
Myles Watson [Fri, 19 Apr 2019 02:40:27 +0000 (19:40 -0700)]
Merge "HCI: Use fixed-width types"
am: 81aa71744a

Change-Id: Iabb16df2d3dc46067ab919fd05137a6cabc56552

5 years agoMerge "HCI: Use fixed-width types"
Treehugger Robot [Fri, 19 Apr 2019 02:34:30 +0000 (02:34 +0000)]
Merge "HCI: Use fixed-width types"

5 years agoMerge changes I321e12bf,If7e6e586,Ie145d1dd
Myles Watson [Fri, 19 Apr 2019 02:17:03 +0000 (19:17 -0700)]
Merge changes I321e12bf,If7e6e586,Ie145d1dd
am: 0c9c1fca6f

Change-Id: I287cfb4e5e0150c4690a2b988ff931d13a60d4de

5 years agoMerge changes I321e12bf,If7e6e586,Ie145d1dd
Treehugger Robot [Fri, 19 Apr 2019 02:00:31 +0000 (02:00 +0000)]
Merge changes I321e12bf,If7e6e586,Ie145d1dd

* changes:
  l2cap: Add FCS support
  packet/parser: Add tests for payload size modifier
  packet/parser: Add Checksum support

5 years agoMerge "rootcanal: Check return values from callbacks"
Myles Watson [Fri, 19 Apr 2019 00:47:58 +0000 (17:47 -0700)]
Merge "rootcanal: Check return values from callbacks"
am: 5baca4a9e1

Change-Id: I9806a40a3ceb043ecfd8c6bfad757cc8a18b93e5

5 years agoUse GATT_WRITE_NO_RSP for "state change" updates
weichinweng [Wed, 17 Apr 2019 07:52:07 +0000 (15:52 +0800)]
Use GATT_WRITE_NO_RSP for "state change" updates

For Hearing Aid, replaces the GATT_WRITE with GATT_WRITE_NO_RSP for the
"state change" updates that are send to the devices. Using no response
write is faster and these informational updates does not need a
confirmation from the devices.

Bug: 130332748
Test: 1.run unit test
2.Forget/Repair HearingAid device from Bluetooth UI.
3.Disconnect/Reconnect HearingAid device from Bluetooth UI.
4.HearingAid device power off/on, check them can reconnect.
5.Multiple click connect/disconnect from Bluetooth UI within 1 sec,
check them can reconnect.
6.One side HearingAid device power off/on when playing music, check it
can reconnect and music is work fine.

Change-Id: I55e9b4b0b8c76412e5810e1cec5d96819527d099

5 years agoMerge "rootcanal: Check return values from callbacks"
Treehugger Robot [Fri, 19 Apr 2019 00:28:28 +0000 (00:28 +0000)]
Merge "rootcanal: Check return values from callbacks"

5 years agoHCI: Use fixed-width types
Myles Watson [Fri, 12 Apr 2019 17:40:43 +0000 (10:40 -0700)]
HCI: Use fixed-width types

Test: run bluetooth_test_gd
Change-Id: I9a9ef272d92635d7d56b8515a1889b7922ea3b87

5 years agol2cap: Add FCS support
Myles Watson [Wed, 17 Apr 2019 00:05:10 +0000 (17:05 -0700)]
l2cap: Add FCS support

Test: bluetooth_gd_test --gtest_filter=*Fcs*
Change-Id: I321e12bfb3ec8b5652d26d2b2e5066dc6a80895c

5 years agopacket/parser: Add tests for payload size modifier
Myles Watson [Wed, 17 Apr 2019 23:17:56 +0000 (16:17 -0700)]
packet/parser: Add tests for payload size modifier

Test: bluetooth_packet_parser_test --gtest_filter=*SizeMod*
Change-Id: If7e6e586477e6580adc540127f82500642658aea

5 years agoBitInserter: Add byte observer for checksums
Myles Watson [Thu, 18 Apr 2019 21:42:03 +0000 (14:42 -0700)]
BitInserter: Add byte observer for checksums
am: afafb32eb7

Change-Id: If4c71d919a302df6b56c8ad2187ca40abb250c45

5 years agopacket/parser: Add Checksum support
Myles Watson [Thu, 18 Apr 2019 16:09:01 +0000 (09:09 -0700)]
packet/parser: Add Checksum support

Make TypeDef represent Enum, Custom, and Checksum types.
Add SimpleSum as a test checksum.

Test: bluetooth_test_gd --gtest_filter=*SimpleSum*
Change-Id: Ie145d1dd17a710b50e98de8714102945b3c65c99

5 years agoBitInserter: Add byte observer for checksums
Myles Watson [Tue, 16 Apr 2019 17:24:26 +0000 (10:24 -0700)]
BitInserter: Add byte observer for checksums

Test: bluetooth_test_gd --gtest_filter=*BitInserter*
Change-Id: I9ef5bc5951244279fc142127a5c3c9a54c4eaf5c

5 years agopacket: Support fixed-width custom types
Myles Watson [Thu, 18 Apr 2019 14:16:56 +0000 (07:16 -0700)]
packet: Support fixed-width custom types
am: af1b2d152f

Change-Id: I62a9d400acc11c43fd7aa09b40534eecfa294eb1

5 years agorootcanal: Check return values from callbacks
Myles Watson [Thu, 18 Apr 2019 13:49:50 +0000 (06:49 -0700)]
rootcanal: Check return values from callbacks

Bug: 130624816
Test: kill the Bluetooth stack
Change-Id: Ie1d0e45f5847b4b4c6e6ee86061fa1092156d5db

5 years agoHFP: Fix null pointer dereference in bta_ag_codec_negotiate().
Ray Kuo [Tue, 16 Apr 2019 13:36:23 +0000 (21:36 +0800)]
HFP: Fix null pointer dereference in bta_ag_codec_negotiate().

BTM_ReadRemoteFeatures function will return NULL if ACL link to the remote
device is disconnected. Need to check whether p_rem_feat is nullptr
before dereferencing it.

Bug: 129736080
Test: make, force BTM_ReadRemoteFeatures() to return null and perform
MT/MO call tests.

Change-Id: I28d90823340d8721ee2349d3f55f07d1e823fee3

5 years agopacket: Support fixed-width custom types
Myles Watson [Fri, 12 Apr 2019 17:39:59 +0000 (10:39 -0700)]
packet: Support fixed-width custom types

Test: bluetooth_packet_parser_test --gtest_filter=*testChildWithAddress*
Change-Id: I73ff7962d99f668b4cbf1b4068bf74d069b9f599

5 years agoSend connected callback immediately when attempting to connect to already connected...
Jakub Pawlowski [Tue, 16 Apr 2019 22:01:49 +0000 (15:01 -0700)]
Send connected callback immediately when attempting to connect to already connected device
am: 4c0701f21b

Change-Id: I89cd760c2bef5ae249df31ba7082e83cdde28987

5 years agoSend connected callback immediately when attempting to connect to already connected...
Jakub Pawlowski [Mon, 15 Apr 2019 20:07:27 +0000 (22:07 +0200)]
Send connected callback immediately when attempting to connect to already connected device

Instead of adding the device to the connection manager, just send the
successfull connection callback.

This patch is restoring behaviour from before Connection Manager
refactor. During the refactor this behaviour was broken.

Bug: 130273570
Test: sl4a GattConnectTest
Change-Id: Ic4fa7089a8262f6f792206496a7cfb9c83a16eb2

5 years agoMerge "Mark these yacc files as creating headers"
Dan Willemsen [Tue, 16 Apr 2019 00:25:11 +0000 (17:25 -0700)]
Merge "Mark these yacc files as creating headers"
am: 29a9284d99

Change-Id: I7ef27a6c6b7a769e463885a146791a3a5d1cc013

5 years agoMerge "Mark these yacc files as creating headers"
Treehugger Robot [Tue, 16 Apr 2019 00:06:53 +0000 (00:06 +0000)]
Merge "Mark these yacc files as creating headers"

5 years agoMerge "Implement Queue"
Chienyuan [Mon, 15 Apr 2019 22:10:04 +0000 (15:10 -0700)]
Merge "Implement Queue"
am: 514d25c3b1

Change-Id: I61f6b3e5560bbe603bf8c4dbdd36c52d274440e0

5 years agoMerge "Implement Queue"
Treehugger Robot [Mon, 15 Apr 2019 21:49:01 +0000 (21:49 +0000)]
Merge "Implement Queue"

5 years agoMerge "Change storage metadata type to byte array"
Ugo Yu [Mon, 15 Apr 2019 20:56:30 +0000 (13:56 -0700)]
Merge "Change storage metadata type to byte array"
am: dcab2c1b4c

Change-Id: I66e07b5a1d011a7682c28a4edad4550dd07964e9

5 years agoMerge "Change storage metadata type to byte array"
Treehugger Robot [Mon, 15 Apr 2019 20:37:28 +0000 (20:37 +0000)]
Merge "Change storage metadata type to byte array"

5 years agoRootCanal: Open network ports only if there is a console
Myles Watson [Sat, 13 Apr 2019 02:00:48 +0000 (19:00 -0700)]
RootCanal: Open network ports only if there is a console
am: 0ffd38f3a3

Change-Id: I4f55bbfd95d1bd00e4baa55720ddf94c36ce3fcf

5 years agoRootCanal: Open network ports only if there is a console
Myles Watson [Fri, 12 Apr 2019 21:30:51 +0000 (14:30 -0700)]
RootCanal: Open network ports only if there is a console

Bug: 128355308
Test: toggle airplane mode and check for opening sockets
Change-Id: I8c4581b708c05a8c72dba3604c02adea97c1653b

5 years agoMark these yacc files as creating headers
Dan Willemsen [Fri, 12 Apr 2019 22:16:12 +0000 (15:16 -0700)]
Mark these yacc files as creating headers

So that they're properly represented in the build graph.

Test: treehugger
Change-Id: If7141171117260b870dc6a0c6608dcae696b3189

5 years agoImplement Queue
Chienyuan [Thu, 4 Apr 2019 17:29:02 +0000 (10:29 -0700)]
Implement Queue

* Implement Queue which provides a flow control mechanism for data
  transmission between modules. This queue streaming data with
  EnqueueCallback and DequeueCallback based on the reactor pattern.
  Enqueue end should register callback when data is ready to be sent
  and unregister when no data ready to send. Dequeue end should
  register callback when ready to handle data and unregister when not
  ready to handle data.

* Implement ReactiveSemaphore, a wrapper for an event_fd work in
  non-blocking and Semaphore mode used by Queue to handle readable
  signal in the reactor pattern.

Test: run bluetooth_test_gd
Change-Id: Ia7019cdbe271d193c92f1a0b405ecced41a2d84b

5 years agoSimple stack bring up
Hansong Zhang [Fri, 12 Apr 2019 05:23:42 +0000 (22:23 -0700)]
Simple stack bring up
am: 3fa05ab25c

Change-Id: Icb8368a6ac9488c8b3f9534363ac48d46698d9e6

5 years agoSimple stack bring up
Hansong Zhang [Tue, 9 Apr 2019 15:55:27 +0000 (08:55 -0700)]
Simple stack bring up

Just bring up the HAL transportation layer

Test: unit test
Change-Id: I94641d3008ce155d13df6ffe78f3710b3efca645

5 years agoHCI HAL adapter: separate initialization and set_callback
Hansong Zhang [Fri, 12 Apr 2019 00:17:22 +0000 (17:17 -0700)]
HCI HAL adapter: separate initialization and set_callback
am: de51682880

Change-Id: Icb7ac3c89820f5e0591ce88445c49ba0cb41d6e2

5 years agoAdd .gitignore
Hansong Zhang [Fri, 12 Apr 2019 00:16:59 +0000 (17:16 -0700)]
Add .gitignore
am: c1255fbfdf

Change-Id: I60fbec469b1d862fa11329f0a96ba76abf4bc132

5 years agoHCI HAL adapter: separate initialization and set_callback
Hansong Zhang [Wed, 10 Apr 2019 22:46:25 +0000 (15:46 -0700)]
HCI HAL adapter: separate initialization and set_callback

Test: run bluetooth_test_gd

Change-Id: I1275be3020e34c56e0ef439e0f748db127d9f8e2

5 years agoAdd .gitignore
Hansong Zhang [Thu, 11 Apr 2019 21:24:37 +0000 (14:24 -0700)]
Add .gitignore

Test: compile
Change-Id: I0e4dd26c07ba5ed5e6ea4acf0fa9c9f831cba534

5 years agoMerge "packet: Enforce View inheritance and validation"
Myles Watson [Thu, 11 Apr 2019 08:16:22 +0000 (01:16 -0700)]
Merge "packet: Enforce View inheritance and validation"
am: 183f06aff0

Change-Id: Ic58c4bff5e28ab91bb870de31aa70a7c4b714897

5 years agoMerge "packet: Enforce View inheritance and validation"
Treehugger Robot [Thu, 11 Apr 2019 05:46:26 +0000 (05:46 +0000)]
Merge "packet: Enforce View inheritance and validation"

5 years agoMerge "PDL: SMP packet definitions"
Jakub Pawlowski [Wed, 10 Apr 2019 14:57:07 +0000 (07:57 -0700)]
Merge "PDL: SMP packet definitions"
am: b24bdd10d2

Change-Id: I8dd13c6b023d0a9371d8089c6fe7d12f4ecc89f8

5 years agoMerge "PDL: SMP packet definitions"
Jakub Pawlowski [Wed, 10 Apr 2019 14:48:30 +0000 (14:48 +0000)]
Merge "PDL: SMP packet definitions"

5 years agoMerge "Remove Ajay from owners"
Zach Johnson [Tue, 9 Apr 2019 22:59:31 +0000 (15:59 -0700)]
Merge "Remove Ajay from owners"
am: 48979694e4

Change-Id: I88b6c30bf2d4631d9e8ef3e0e46bcc233083cc15

5 years agoBluetooth HCI HAL adapter for Android HIDL
Hansong Zhang [Tue, 9 Apr 2019 22:58:54 +0000 (15:58 -0700)]
Bluetooth HCI HAL adapter for Android HIDL
am: 904c022d46

Change-Id: Ic2c1582945214fa4e5d1126737eded31cabafbf6

5 years agopacket: Enforce View inheritance and validation
Myles Watson [Thu, 4 Apr 2019 22:33:43 +0000 (15:33 -0700)]
packet: Enforce View inheritance and validation

Add was_validated_ flag to Views that can be constructed from bytes.
Check was_validated_ in every generated Get* function.

Test: bluetooth_packet_parser_test --gtest_filter=*Validate*Death*
Change-Id: I1de8d4e5e60bdd7b51562ffd258300e808db4adb

5 years agoMerge "Remove Ajay from owners"
Zach Johnson [Tue, 9 Apr 2019 21:47:23 +0000 (21:47 +0000)]
Merge "Remove Ajay from owners"

5 years agoRemove Ajay from owners
Zach Johnson [Tue, 9 Apr 2019 21:43:41 +0000 (14:43 -0700)]
Remove Ajay from owners

Moved to a different team.

Test: none
Change-Id: I2df8efa1dd59a98ae5c0d9bcd801955e5c85f8d7

5 years agoBluetooth HCI HAL adapter for Android HIDL
Hansong Zhang [Mon, 8 Apr 2019 21:26:53 +0000 (14:26 -0700)]
Bluetooth HCI HAL adapter for Android HIDL

Test: unit test
Change-Id: I60339d3f0845437e64705edc744e6091a2c3a171

5 years agoMerge "Switch to clang-r353983b."
Stephen Hines [Tue, 9 Apr 2019 17:40:21 +0000 (10:40 -0700)]
Merge "Switch to clang-r353983b."
am: 28e2d001ef

Change-Id: Id494050e454c8d4ddd66de6c7e206ec94cf35e64

5 years agoMerge "Switch to clang-r353983b."
Treehugger Robot [Tue, 9 Apr 2019 17:14:53 +0000 (17:14 +0000)]
Merge "Switch to clang-r353983b."

5 years ago[automerger skipped] Merge "DO NOT MERGE -- Merge PPRL.190405.003 into master"
Xin Li [Tue, 9 Apr 2019 06:25:15 +0000 (23:25 -0700)]
[automerger skipped] Merge "DO NOT MERGE -- Merge PPRL.190405.003 into master"
am: 0f01b3a5ea -s ours
am skip reason: subject contains skip directive

Change-Id: Ibdfe9fe7741504c66d1b4e26c08caf4e19fe8451

5 years ago[automerger skipped] DO NOT MERGE -- Merge PPRL.190405.003 into master
Xin Li [Tue, 9 Apr 2019 05:16:49 +0000 (22:16 -0700)]
[automerger skipped] DO NOT MERGE -- Merge PPRL.190405.003 into master
am: f97b951645 -s ours
am skip reason: subject contains skip directive

Change-Id: Ic383ec1408e324784845a002f2754bd17e83e22f

5 years agoMerge "hci: CreateConnectionRoleSwitch is 8 bits"
Myles Watson [Tue, 9 Apr 2019 05:16:22 +0000 (22:16 -0700)]
Merge "hci: CreateConnectionRoleSwitch is 8 bits"
am: d3367ec66f

Change-Id: Id2ed8c5d0df64d1b7688672f0f11ff7ce8b3ddfe

5 years agoMerge "DO NOT MERGE -- Merge PPRL.190405.003 into master"
Xin Li [Tue, 9 Apr 2019 04:29:22 +0000 (04:29 +0000)]
Merge "DO NOT MERGE -- Merge PPRL.190405.003 into master"

5 years agoMerge "DO NOT MERGE - Merge PPRL.190405.003 into stage-aosp-master" into stage-aosp...
Xin Li [Tue, 9 Apr 2019 04:28:37 +0000 (04:28 +0000)]
Merge "DO NOT MERGE - Merge PPRL.190405.003 into stage-aosp-master" into stage-aosp-master

5 years agoPDL: SMP packet definitions
Myles Watson [Mon, 11 Mar 2019 23:48:08 +0000 (16:48 -0700)]
PDL: SMP packet definitions

Change-Id: Ia6e2da10a959e9476c4f3f32398ac5e815996669

5 years agoMerge "hci: CreateConnectionRoleSwitch is 8 bits"
Treehugger Robot [Tue, 9 Apr 2019 04:06:16 +0000 (04:06 +0000)]
Merge "hci: CreateConnectionRoleSwitch is 8 bits"

5 years agohci: CreateConnectionRoleSwitch is 8 bits
Myles Watson [Mon, 8 Apr 2019 23:41:33 +0000 (16:41 -0700)]
hci: CreateConnectionRoleSwitch is 8 bits

Test: Manual comparison with the spec
      Vol 2 Part E 7.1.5 Command Parameter Allow_Role_Switch
Change-Id: Iaa7df5c3c946e3740115df79f14bfae0ddf872b6

5 years agoMerge "packet/parser: Add pragma once to generated files"
Myles Watson [Tue, 9 Apr 2019 02:08:21 +0000 (19:08 -0700)]
Merge "packet/parser: Add pragma once to generated files"
am: f1cf016d82

Change-Id: Iae2dd27765616d83be96d530bd9340af8e4a18a0

5 years agoDO NOT MERGE -- Merge PPRL.190405.003 into master
Xin Li [Tue, 9 Apr 2019 01:56:18 +0000 (18:56 -0700)]
DO NOT MERGE -- Merge PPRL.190405.003 into master

Bug: 130175407
Change-Id: I643bb187b1555598121d8b4a15b0acd73fe1f741

5 years agoMerge "packet/parser: Add pragma once to generated files"
Treehugger Robot [Tue, 9 Apr 2019 01:50:55 +0000 (01:50 +0000)]
Merge "packet/parser: Add pragma once to generated files"

5 years agoMerge "no forward_list in hci/acl_builder_test.cc"
Myles Watson [Tue, 9 Apr 2019 00:56:30 +0000 (17:56 -0700)]
Merge "no forward_list in hci/acl_builder_test.cc"
am: 76653a3d90

Change-Id: Ied9a7233d6a80fa97bd94e04659a4489b5ec0433

5 years agoAdapter layer for Bluetooth HCI HAL
Hansong Zhang [Tue, 9 Apr 2019 00:55:21 +0000 (17:55 -0700)]
Adapter layer for Bluetooth HCI HAL
am: 751a221208

Change-Id: Ida1e8d6e465d221844b83e38ba4b72fe4f28bdb4

5 years agoMerge "no forward_list in hci/acl_builder_test.cc"
Treehugger Robot [Tue, 9 Apr 2019 00:26:30 +0000 (00:26 +0000)]
Merge "no forward_list in hci/acl_builder_test.cc"

5 years agono forward_list in hci/acl_builder_test.cc
Myles Watson [Mon, 8 Apr 2019 19:08:33 +0000 (12:08 -0700)]
no forward_list in hci/acl_builder_test.cc

Test: bluetooth_test_gd --gtest_filter="*Acl*"
Change-Id: I6a764ec276102df59897102d6380110b5dd266ce

5 years agopacket/parser: Add pragma once to generated files
Myles Watson [Fri, 5 Apr 2019 15:45:43 +0000 (08:45 -0700)]
packet/parser: Add pragma once to generated files

Test: bluetooth_packet_parser_test
Change-Id: Ie0a2717cdbf74859fd457ee68533caded16a5d20

5 years agoDO NOT MERGE - Merge PPRL.190405.003 into stage-aosp-master
Xin Li [Mon, 8 Apr 2019 21:32:43 +0000 (14:32 -0700)]
DO NOT MERGE - Merge PPRL.190405.003 into stage-aosp-master

Bug: 130175407
Change-Id: I9729a1b9eaa1a86152fca409da33cf641e947043

5 years agoAdapter layer for Bluetooth HCI HAL
Hansong Zhang [Fri, 29 Mar 2019 21:27:05 +0000 (14:27 -0700)]
Adapter layer for Bluetooth HCI HAL

Add adapter layer for HIDL HAL and host rootcanal HAL

Test: with cert and rootcanal
Change-Id: I1a84076d3df3176b75a499ac160e503e51fad8b3

5 years agoSnap for 5310204 from 817facf4bc2a956fafa8a38c15ab5963f2d0bc0e to pi-platform-release
android-build-team Robot [Mon, 8 Apr 2019 18:10:47 +0000 (18:10 +0000)]
Snap for 5310204 from 817facf4bc2a956fafa8a38c15ab5963f2d0bc0e to pi-platform-release

Change-Id: I704240f3f6bd8da8e23865ff7a6eb85b2233bcb1

5 years agoModernise code to use override specifier
Yi Kong [Sat, 6 Apr 2019 00:24:16 +0000 (17:24 -0700)]
Modernise code to use override specifier
am: 183eacee0d

Change-Id: I09d145a1e5773fb0ab055a2e34de930ac95efe60

5 years agoSwitch to clang-r353983b.
Stephen Hines [Fri, 5 Apr 2019 23:06:55 +0000 (16:06 -0700)]
Switch to clang-r353983b.

This is the current toolchain version being used in
build/soong/cc/config/global.go, so it should be used here as well.
Ideally, this python file would be updated to pick up the value directly
from the build configuration.

Test: N/A
Change-Id: I1c615a0d0c6dc4dedd82d1ced0381bab273f9e61

5 years agoModernise code to use override specifier
Yi Kong [Fri, 29 Mar 2019 22:42:58 +0000 (15:42 -0700)]
Modernise code to use override specifier

Generated by clang-tidy.

Test: m checkbuild
Change-Id: Icba58009f6db2a0e9e1360326b0b66fc10d04a5a

5 years agoMerge changes Ica38a448,I526fb846
Hansong Zhang [Fri, 5 Apr 2019 05:22:22 +0000 (22:22 -0700)]
Merge changes Ica38a448,I526fb846
am: 7702782f80

Change-Id: Ie2710fb620e160e4ecc075feb3753fdbc7f3bb1e

5 years agoMerge changes Ica38a448,I526fb846
Treehugger Robot [Fri, 5 Apr 2019 05:05:25 +0000 (05:05 +0000)]
Merge changes Ica38a448,I526fb846

* changes:
  Add namespace in bluetooth_packetgen
  Add multi file support for bluetooth_packetgen

5 years agoMerge "Add packet parser tests to TEST_MAPPING"
Zach Johnson [Fri, 5 Apr 2019 02:31:23 +0000 (19:31 -0700)]
Merge "Add packet parser tests to TEST_MAPPING"
am: 42f90b5519

Change-Id: I7f73702671e88960d1d68932744c1eb5eb5c6a4d

5 years agoMerge "Add packet parser tests to TEST_MAPPING"
Treehugger Robot [Fri, 5 Apr 2019 02:19:38 +0000 (02:19 +0000)]
Merge "Add packet parser tests to TEST_MAPPING"