Commit graph

3459 commits

Author SHA1 Message Date
Jakub Pawlowski
f11f4db5ad Merge "Add option to specify initial LE connection PHY (1/3)" 2017-03-27 20:43:55 +00:00
Jakub Pawlowski
cc99bc54ec Add option to specify initial LE connection PHY (1/3)
For whitelist connections we always use all possible PHYs, for direct
connection use PHY specified by client.

Test: manual
Bug: 30622771
Change-Id: I13242608385230371e8a9170fc21e3f1b0a74c78
2017-03-27 11:40:18 -07:00
Jakub Pawlowski
b1def383da Merge "Expose connection update callback (2/3)" 2017-03-24 20:31:32 +00:00
Jakub Pawlowski
6f0c6f1874 Expose connection update callback (2/3)
Test: manual
Bug: 30622771
Change-Id: I5ed4fe503ba3212af808b759b67d71b895395bd3
2017-03-23 19:08:11 -07:00
Jakub Pawlowski
4929629d91 Merge "Set preferred PHY and read PHY implementation (2/3)" 2017-03-24 01:08:08 +00:00
Jakub Pawlowski
f3eb55825c Set preferred PHY and read PHY implementation (2/3)
Test: manual
Bug: 30622771
Change-Id: I26d64e8f0a2d881ddd648b3c7786ada25c72b455
2017-03-23 13:27:30 -07:00
Jakub Pawlowski
ecb7fc5332 Merge "Bluetooth 5 AdvertisingSet implementation (3/4)" 2017-03-20 22:19:08 +00:00
Jakub Pawlowski
a4bd8a61cb Bluetooth 5 AdvertisingSet implementation (3/4)
Test: manual
Bug: 30622771
Change-Id: I8dc3b0ee85a6a449838a61bab86be5a2ea40b0ab
2017-03-20 12:26:33 -07:00
Jakub Pawlowski
d7c37e7235 Merge "LE Maximum Advertising Data Length (3/4)" 2017-03-17 05:13:45 +00:00
Jakub Pawlowski
696f69966c LE Maximum Advertising Data Length (3/4)
Add ability to check maximum advertising data length.

Bug: 30622771
Test: manual
Change-Id: I14a66a906a3f6133eea87c538de854bbfab056f5
2017-03-16 18:28:59 -07:00
Treehugger Robot
1317fe40e0 Merge "Bluetooth 5 AdvertisingSet implementation (4/4)" 2017-03-17 01:01:17 +00:00
Jakub Pawlowski
0d0b7d1757 Bluetooth 5 AdvertisingSet implementation (4/4)
This patch wires up fist methods of AdvertisingSet, making it possible
to start advertising and stop advertising. It also replaces legacy
implemementation with calls to new implementation.

Bug: 30622771
Test: sl4a ConcurrentBleAdvertisingTest

Change-Id: I4a2739528fe114547f747d9719a4d47de7ce5589
2017-03-16 16:18:46 -07:00
Treehugger Robot
69606698b2 Merge "Bluetooth 5 feature check implementation (2/3)" 2017-03-11 02:03:43 +00:00
Treehugger Robot
60849b8da4 Merge "vibrator: fix issue with ledtrig-transient support" 2017-03-11 01:23:18 +00:00
Jakub Pawlowski
0a660af26a Bluetooth 5 feature check implementation (2/3)
Wire the new feature check API to actual values received from the
controller.

Test: manual
Bug: 30622771
Change-Id: I76d373b94fd3d4d637ddae637a8424d463286837
2017-03-09 18:19:24 -08:00
David Lin
4e8f561fcd vibrator: fix issue with ledtrig-transient support
There's a problem with enabling the transient trigger in the HAL, that is
the trigger function exports tree properties - activate, state, and
duration which require to be chown'd to system:system during the init
process. Hence, the trigger will be now enabled in the init process and
the HAL will use the "activate" property to determine if the device has
vibrator support via ledtrig-transient.

Test: device vibrates with the driver supports ledtrig-transient

Change-Id: Ieb195ddc199c6372f5dcf3ca1b2be4fd59724717
Signed-off-by: David Lin <dtwlin@google.com>
2017-03-08 17:41:53 -08:00
Steven Moreland
879e1607d7 Merge "Update nfc-base.h" 2017-03-08 06:07:05 +00:00
Steven Moreland
2b335affb8 Update nfc-base.h
Test: pass
Bug: 33541458
Change-Id: Iacbbd553871028ea174fa97c87a36ee2bae50805
2017-02-24 13:11:01 -08:00
Jakub Pawlowski
d3b3ea65c5 Merge "Use base::Callbacks in BleScannerInterface (1/3)" 2017-02-21 18:03:41 +00:00
Jakub Pawlowski
62ddb5d520 Use base::Callbacks in BleScannerInterface (1/3)
The remaining four native callbacks need more internal refactoring
before they can be turned into a callbacks.

Bug: 30622771
Test: sl4a FilteringTest
Change-Id: I5aea0485c88605d34ccf8e0a27202469bb5c0ff4
2017-02-17 17:26:46 -08:00
Tomasz Wasilczyk
cd4bc27771 Merge "Add radio HAL stub to the build list; fix format warning." 2017-02-09 20:17:49 +00:00
Tomasz Wasilczyk
dd2f59e4ab Add radio HAL stub to the build list; fix format warning.
Test: it builds
Change-Id: Id093441b9909f564d30f8351931ee3ccf55f2617
2017-02-08 15:04:31 -08:00
Jakub Pawlowski
a0ce42c710 Merge "Propagate BT5 specific scan result properties up the stack (1/3)" 2017-02-07 01:29:26 +00:00
Treehugger Robot
a82ee04b92 Merge "Add a mechanism to configure the default A2DP codec priorities" 2017-02-06 22:59:51 +00:00
Jakub Pawlowski
701ab73a50 Propagate BT5 specific scan result properties up the stack (1/3)
Bug: 30622771
Test: sl4a FilteringTest
Change-Id: I740447921d2964559b5fa8c8d7dcc32975352b61
2017-02-06 14:05:37 -08:00
Pavlin Radoslavov
310d0f5979 Add a mechanism to configure the default A2DP codec priorities
Previously, the relative codec priorities were hard-codec internally.
The new mechanism uses the following configurable resources in
packages/apps/Bluetooth/res/values/config.xml to re-assign the
default codec priorities per device, or to explicitly disable a codec.

 - a2dp_source_codec_priority_sbc
 - a2dp_source_codec_priority_aac
 - a2dp_source_codec_priority_aptx
 - a2dp_source_codec_priority_aptx_hd
 - a2dp_source_codec_priority_ldac

Those values are assigned on startup.
Also, they can be changed per device by using an overlay:
device/<VENDOR>/<DEVICE>/overlay/packages/apps/Bluetooth/res/values/config.xml

Test: Manually streaming to a headset
Change-Id: I432174975d7afbecb8f27cb0e55f5aa816c6e64e
2017-02-06 13:10:38 -08:00
Pavlin Radoslavov
451a32cb56 Merge "Update the A2DP Codec Config API" 2017-01-31 19:02:36 +00:00
Pavlin Radoslavov
1f103a4b6c Update the A2DP Codec Config API
Previously, the JNI upcall would contain only the current codec config.
In the new API, the upcall contains:
 1. The current codec config
 2. The list of codecs containing the local codecs capabilities
 3. The list of codecs containing the selectable codecs capabilities.
    This list is the intersection of the local codecs capabilities
    and the capabilities of the paired device.

Also, changed the btav_a2dp_codec_priority_t type to enum.

Test: A2DP streaming with headsets and switching the codecs
Change-Id: Icb1c7e0ac6a81e4283fb5353ec2c36712587e0e1
2017-01-27 17:15:52 -08:00
Treehugger Robot
314f08379f Merge "Integration of the AAC codec for A2DP source" 2017-01-26 19:12:55 +00:00
Pavlin Radoslavov
f9b17fed4b Integration of the AAC codec for A2DP source
Test: A2DP streaming to AAC headsets
Bug: 30958229

Change-Id: If019f9df71d4c3cab868c1d8749592aac4a87aa3
2017-01-26 00:16:00 +00:00
Peng Xu
28764df8a3 Merge "[sensors] SENSOR_TYPE_DYNAMIC_SENSOR_META should be wake up" 2017-01-19 01:11:49 +00:00
Treehugger Robot
c231e02492 Merge "Integration of the LDAC codec for A2DP source" 2017-01-05 07:43:50 +00:00
Pavlin Radoslavov
be1bfcea29 Integration of the LDAC codec for A2DP source
The codec can be used if the encoding shared library is installed
on the device:
 libldacBT_enc.so

Test: A2DP streaming to LDAC headsets
Bug: 30958229
Change-Id: I53917bb3cc18630a34d39c80425cdf80a1221793
2017-01-04 18:05:49 -08:00
Treehugger Robot
0184b42499 Merge "Integration of the aptX and aptX-HD codecs for A2DP source" 2017-01-05 01:56:35 +00:00
Pavlin Radoslavov
b2543a2f8e Integration of the aptX and aptX-HD codecs for A2DP source
Each of the codecs can be used if the corresponding encoding
shared library is installed on the device:
 - aptX: libaptX.so
 - aptX-HD: libaptXHD.so

Test: A2DP streaming to aptX and aptX-HD headsets
Bug: 30958229
Change-Id: If827933e4ea5d9d55eadff369db0eeeeb27a03ce
2017-01-04 16:31:14 -08:00
Treehugger Robot
0c45c105a5 Merge "Allow HID Device to connect to a specific device" 2017-01-04 12:56:52 +00:00
Treehugger Robot
2b4315b859 Merge "Add a mechanism for configuring the A2DP Source codecs" 2017-01-04 03:35:42 +00:00
Pavlin Radoslavov
3c6e4eb659 Add a mechanism for configuring the A2DP Source codecs
* Introduced new generic API for representing A2DP codec configuration
  or capability: codec type, priority, sample rate, bits per sample,
  channel mode, and codec-specific fields.
  The new structure is btav_a2dp_codec_config_t

* Split the A2DP callback structure into two: one for A2DP Source callbacks,
  and one for A2DP Sink callbacks:
  OLD: btav_callbacks_t
  NEW: btav_source_callbacks_t and btav_sink_callbacks_t

* Split the A2DP BT-AV interface into two: one for A2DP Source, and one for
  A2DP Sink:
  OLD: btav_interface_t
  NEW: btav_source_interface_t and btav_sink_interface_t

Test: A2DP streaming to headsets, TestPlans/71390
Bug: 30958229
Change-Id: If6a10bb95eb0fa4106123283b934d372aebad2bc
2017-01-03 17:34:14 -08:00
Ivan Podogov
7c8a3ef8f4 Allow HID Device to connect to a specific device
Test: make
Change-Id: If923a2ed8a4b0b58ecce4a1f60090adb91a0d3c6
2016-12-30 15:05:26 +00:00
Treehugger Robot
73ff921aa7 Merge "Bluetooth: Add support for HID Device Role" 2016-12-29 19:29:17 +00:00
Hemant Gupta
7ed5a7f0e6 Bluetooth: Add support for HID Device Role
This patch adds support for HID Device Role in HAL so that jni
layer can communicate wtih Bluedroid Stack when calling HID Device
API's and callbacks.

Bug: 33011576
Change-Id: I591f477ee58924a9003d6e733dcbbc4e8a7d3202
2016-12-27 22:29:56 +00:00
Jakub Pawlowski
6cab9cb65a Merge "Modernize BLE Scanner implementation (1/3)" 2016-12-20 00:36:41 +00:00
Jakub Pawlowski
442eae00eb Modernize BLE Scanner implementation (1/3)
Get rid of BTA state machine states for BLE scanning.

Test: sl4a FilteringTest
Bug: 30622771
Change-Id: I4319584c6f6c701dc49be6f52887985d2f1e112c
2016-12-19 16:20:44 -08:00
Jakub Pawlowski
39b4f8eeff Merge "Expose Bluetooth 5.0 properties to JNI" 2016-12-20 00:19:56 +00:00
Jakub Pawlowski
9790298053 Expose Bluetooth 5.0 properties to JNI
Bug: 30622771
Test: sl4a ConcurrentBleAdvertisingTest
Change-Id: I44b1d6eedb421728076671b4d9be3ebb9d466b71
2016-12-19 14:25:40 -08:00
Jakub Pawlowski
452dc05ff0 Merge "BLE scan filter setup simplification (1/3)" 2016-12-19 22:23:41 +00:00
Jakub Pawlowski
b4a82ba556 BLE scan filter setup simplification (1/3)
Bug: 30622771
Test: sl4a BleScanTest
Change-Id: I41f53e2275c0d5da5244c72faefc7b330bd1a8f9
2016-12-19 11:53:00 -08:00
Jakub Pawlowski
f43056dc4d Merge "Refactor LE scanning HAL (1/3)" 2016-12-17 01:16:47 +00:00
Jakub Pawlowski
d5286ae2ed Refactor LE scanning HAL (1/3)
This patch converts btgatt_scanner_interface_t struct into
BleScannerInterface class. It also refactors three most important
methods from this interface: RegisterAdvertiser, Scan, and Unregister.
Rest of this interface will be updated in following patches.

Bug: 30622771
Test: sl4a BleScanApiTest
Change-Id: I0b7dddc1e9906d825096e23a83a39ecc681d232c
2016-12-16 14:29:07 -08:00
Treehugger Robot
f611c0457d Merge "Replace usage of "vector<>" with "std::vector<>"" 2016-12-13 23:36:45 +00:00