Commit graph

3578 commits

Author SHA1 Message Date
Jakub Pawlowski
6cf186eb6b Merge "Expose connection update callback (2/3)"
am: b1def383da

Change-Id: I05a6427ed162e767e126e20572279801688c2ad2
2017-03-24 20:35:27 +00: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
d71003fef1 Merge "Set preferred PHY and read PHY implementation (2/3)"
am: 4929629d91

Change-Id: I5e4087a0661b18b6eb0910d7de9b50ed467e0524
2017-03-24 01:12:50 +00: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
00a91f290b Merge "Bluetooth 5 AdvertisingSet implementation (3/4)"
am: ecb7fc5332

Change-Id: I13dfd19877828eac02532a44fe8f6ba35418929b
2017-03-20 22:26:46 +00: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
c25f4d202e Merge "LE Maximum Advertising Data Length (3/4)"
am: d7c37e7235

Change-Id: I99c507e4a65c51dcdfadd146593ed194a83826e8
2017-03-17 05:20:02 +00: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
Jakub Pawlowski
b2475c5afa Merge "Bluetooth 5 AdvertisingSet implementation (4/4)"
am: 1317fe40e0

Change-Id: I6642bb6214f9d23e9a2a9b6c6bb3a690e9d69112
2017-03-17 01:08:05 +00: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
Jakub Pawlowski
3aa949fad0 Merge "Bluetooth 5 feature check implementation (2/3)"
am: 69606698b2

Change-Id: Iab12da0e5f36e9e1878028e50e0218200e654b9f
2017-03-11 02:13:14 +00:00
Treehugger Robot
69606698b2 Merge "Bluetooth 5 feature check implementation (2/3)" 2017-03-11 02:03:43 +00:00
David Lin
95d22ed018 Merge "vibrator: fix issue with ledtrig-transient support"
am: 60849b8da4

Change-Id: I539a36cf4b0ec0d991fefae22f0e65d68704da8f
2017-03-11 01:28:11 +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
4eae4eea23 Merge "Update nfc-base.h"
am: 879e1607d7

Change-Id: I1c388070b7ffc0f664c10bc0756eaf287013029c
2017-03-08 06:39:22 +00: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
45f56948fe Merge "Use base::Callbacks in BleScannerInterface (1/3)"
am: d3b3ea65c5

Change-Id: If8f63018e33ad39621c47bac9b0ff8f670b2a875
2017-02-21 18:06:47 +00: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
105fea4ab3 Merge "Add radio HAL stub to the build list; fix format warning." am: cd4bc27771 am: 9e1874d6a3
am: ac4a492730

Change-Id: I8081eb96b12f43cb9fc164e844441413d30e7531
2017-02-09 20:25:32 +00:00
Tomasz Wasilczyk
ac4a492730 Merge "Add radio HAL stub to the build list; fix format warning." am: cd4bc27771
am: 9e1874d6a3

Change-Id: I01a1c7aa5db67f4bb368fbadc5939fd1fc3df5c8
2017-02-09 20:23:31 +00:00
Tomasz Wasilczyk
9e1874d6a3 Merge "Add radio HAL stub to the build list; fix format warning."
am: cd4bc27771

Change-Id: Ie4b789c2cbcbda7613d64ea6fa51d4a318b6eeba
2017-02-09 20:21:34 +00: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
00aeb15b9d Merge "Propagate BT5 specific scan result properties up the stack (1/3)" am: a0ce42c710 am: 57a17f0269
am: d8c958cefa

Change-Id: Ie9d6730bc5770a9b9a3000e4a5a8c56d5329038c
2017-02-07 01:37:34 +00:00
Jakub Pawlowski
d8c958cefa Merge "Propagate BT5 specific scan result properties up the stack (1/3)" am: a0ce42c710
am: 57a17f0269

Change-Id: If237457e9c5b7f2784ceae1c8acdbab5d2263aed
2017-02-07 01:35:03 +00:00
Jakub Pawlowski
57a17f0269 Merge "Propagate BT5 specific scan result properties up the stack (1/3)"
am: a0ce42c710

Change-Id: I6e104c95c2f99a4337260df6b03a1eaf111881f1
2017-02-07 01:32:35 +00:00
Jakub Pawlowski
a0ce42c710 Merge "Propagate BT5 specific scan result properties up the stack (1/3)" 2017-02-07 01:29:26 +00:00
Pavlin Radoslavov
77ee9182aa Merge "Add a mechanism to configure the default A2DP codec priorities" am: a82ee04b92 am: adf704ce29
am: e44d2b2804

Change-Id: I1fcc37af08200d7898be2da7f85b45abb4177e78
2017-02-07 00:18:43 +00:00
Pavlin Radoslavov
e44d2b2804 Merge "Add a mechanism to configure the default A2DP codec priorities" am: a82ee04b92
am: adf704ce29

Change-Id: I9ebe63d07e486f0033765236a1d61e8a16989595
2017-02-07 00:10:26 +00:00
Pavlin Radoslavov
adf704ce29 Merge "Add a mechanism to configure the default A2DP codec priorities"
am: a82ee04b92

Change-Id: Ieb3e5803920d5068ac9c94b68acce56191789222
2017-02-06 23:12: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
9c5d5e2347 Merge "Update the A2DP Codec Config API" am: 451a32cb56 am: 6c3ad4427f
am: 28124d4384

Change-Id: I8912291f2ae40c4cf654cbf2cc1ff53fe2908c29
2017-01-31 19:17:24 +00:00
Pavlin Radoslavov
28124d4384 Merge "Update the A2DP Codec Config API" am: 451a32cb56
am: 6c3ad4427f

Change-Id: I17b6e5618ae01e96f94685c131e1008e6e942f33
2017-01-31 19:13:07 +00:00
Pavlin Radoslavov
6c3ad4427f Merge "Update the A2DP Codec Config API"
am: 451a32cb56

Change-Id: Idec7f69d45c559a4f0e482c273d0964f2948aa0c
2017-01-31 19:06:53 +00: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
Pavlin Radoslavov
b3f85b06bc Merge "Integration of the AAC codec for A2DP source" am: 314f08379f am: 428b764c7a
am: b39dfc5954

Change-Id: I0f112ef179e78afca1a3659ed450bac5fedd2ad2
2017-01-26 19:31:10 +00:00
Pavlin Radoslavov
b39dfc5954 Merge "Integration of the AAC codec for A2DP source" am: 314f08379f
am: 428b764c7a

Change-Id: Ib47915bc6839dffa1f0e5d84965799f17326dd69
2017-01-26 19:25:41 +00:00
Pavlin Radoslavov
428b764c7a Merge "Integration of the AAC codec for A2DP source"
am: 314f08379f

Change-Id: I64efc3565d1b6e6f69ed9a35a0fbdcd9c97faffb
2017-01-26 19:20:12 +00:00