Jakub Pawlowski
143e94d94f
Merge "Remove enable from PeriodicAdvertisingPariameters (1/2)" am: 763765b1b1 am: 131cc43a2c
...
am: 6b1228a556
Change-Id: I58a18a01d88db5f3edc9a15cc304ad561440d3fb
2017-04-11 06:41:21 +00:00
Jakub Pawlowski
e6c453d828
Remove enable from PeriodicAdvertisingPariameters (1/2)
...
Instead of setting enable to true, one can just pass null
PeriodicAdvertisingParameters and achieve same result when starting the
set.
Passing the "enable" when updating the parameters make no sense, and
might be confusing.
Experience with "timeout" field, which was a part of AdvertiseSettings
show that merging fields that go into different HCI commands can cause
problems during processing, so keep enable as separate field.
Test: manual
Bug: 30622771
Change-Id: Ida02c59eb8433537179b4d22202fe745f8b4bb3e
2017-04-11 06:18:44 +00:00
Jack He
b111c6f753
Merge "Add developer setting and system API for inband ringing support" am: 1da38b2bcd am: d86c1fca76
...
am: 25c086b7e2
Change-Id: I7bf3b83c55a2b1dfaf23af65780529cc5a5fa8d4
2017-04-10 23:20:08 +00:00
Jack He
e86bdcaed1
Add developer setting and system API for inband ringing support
...
* Add 1 system API to check inband ringing flag in config.xml
static isInbandRingingSupported(Context)
* Add developer menu options to enable this feature
Bug: 19171297
Test: mm -j 40, HFP regression testing, testplans/82144
Change-Id: Iaf56ea41911f546bbc7ae1f82e399d0f8d48f75f
2017-04-10 19:49:36 +00:00
Jakub Pawlowski
93cba9eeca
Merge "Bluetooth 5 fix default AdvertisingSetParameters values" am: 7bf58d5975 am: 909f3b108f
...
am: bc095f035d
Change-Id: Iea394761590c392c4401e80ef67bbeecd6b3921a
2017-04-07 07:14:36 +00:00
Jakub Pawlowski
010cc95583
Bluetooth 5 fix default AdvertisingSetParameters values
...
Having advertiser be scannable and connectable by default is a bad
choice for new advertising set.
Bug: 30622771
Test: sl4a Bt5ScanTest
Change-Id: I4fc270e78ca4e62d3077c5cd28aa59b0518d2e77
2017-04-06 17:21:28 +00:00
Jakub Pawlowski
2ed8b54ee3
Merge "Bluetooth 5 advertising duration refactoring (4/4)" am: 3946df68ed am: 8c5b5b0c4b
...
am: 96e331fb1c
Change-Id: I1522cf1e15178f2680f5483e6bb4e0d30be1bb80
2017-04-01 04:54:55 +00:00
Jakub Pawlowski
fe0638ffc3
Merge "Bluetooth LE Advertising minor improvements" am: 3d84362412 am: 821523d859
...
am: bb5310743a
Change-Id: I2dbc765a656a10802a1bba43acf6591dda0f25fe
2017-04-01 04:49:24 +00:00
Jakub Pawlowski
8c5b5b0c4b
Merge "Bluetooth 5 advertising duration refactoring (4/4)"
...
am: 3946df68ed
Change-Id: I04f7f867a1387d1816d007ba4bdebf9eecc66b06
2017-04-01 04:42:45 +00:00
Jakub Pawlowski
821523d859
Merge "Bluetooth LE Advertising minor improvements"
...
am: 3d84362412
Change-Id: Idc51a6673d8c29a22f9bed177ecb949a49480e3a
2017-04-01 04:40:10 +00:00
Jakub Pawlowski
5a355610fe
Bluetooth 5 advertising duration refactoring (4/4)
...
Expose both duration and maximum extended advertising events to limit
advertising time.
Test: manual
Bug: 30622771
Change-Id: I44df300995ef985526b93f8c24389775720b3432
2017-04-01 04:34:40 +00:00
Jakub Pawlowski
f4ed33f5fa
Bluetooth LE Advertising minor improvements
...
This patch adds some additional error checking for the advertising set
parameters, and some more comments.
Test: manual
Bug: 30622771
Change-Id: I87bd44f4179ef63694ad3ed656dc2acc52e40f1e
2017-04-01 04:33:24 +00:00
Ajay Panicker
37b01db0d8
Merge "Bluetooth: Add additional BluetoothSocket logging to root cause errors" am: 985fe4cbd2 am: 7eaf518b71
...
am: 467d572ef1
Change-Id: I779329e4de18db684ffc7020fc80785fc6c8b67f
2017-04-01 03:39:13 +00:00
Ajay Panicker
7eaf518b71
Merge "Bluetooth: Add additional BluetoothSocket logging to root cause errors"
...
am: 985fe4cbd2
Change-Id: I81f642bae7fe8f1530db6474ebab26760c707fa3
2017-04-01 03:28:13 +00:00
Treehugger Robot
985fe4cbd2
Merge "Bluetooth: Add additional BluetoothSocket logging to root cause errors"
2017-04-01 03:18:46 +00:00
Jakub Pawlowski
3ff9942d6a
Merge "Fix advertise data size estimation" am: 5b2e9f40b4 am: 21bd8d5f2e
...
am: b20805d38c
Change-Id: I71ce3e69f8c8c88a4df075b2f7b8de90581c3de4
2017-04-01 02:24:08 +00:00
Jakub Pawlowski
21bd8d5f2e
Merge "Fix advertise data size estimation"
...
am: 5b2e9f40b4
Change-Id: Ic6c0a5d5a988ebeedde333910281af54c026f428
2017-04-01 02:13:41 +00:00
Jakub Pawlowski
72e9e9f815
Fix advertise data size estimation
...
UUID in service data field can be 2, 4, or 16 bytes long.
Test: manual
Bug: 36553478
Change-Id: Ib5ba2d16065496ca311e8642a15a7ea6bc84d4c1
2017-03-31 16:52:48 -07:00
Ajay Panicker
c251633ce2
Bluetooth: Add additional BluetoothSocket logging to root cause errors
...
Bug: 34780400
Test: Code still compiles
Change-Id: I166842ecc6889f9ea403e7aa3678ed818cd80968
2017-03-31 21:22:59 +00:00
Jakub Pawlowski
f96f05b108
Merge "Hide periodic scanning" am: ca7544ea15 am: c06722e788
...
am: c809a5b12b
Change-Id: I218f37b60aa5cfd4c427663b83807ffce2cfa11b
2017-03-30 03:35:53 +00:00
Jakub Pawlowski
c06722e788
Merge "Hide periodic scanning"
...
am: ca7544ea15
Change-Id: Icedae1d34de063d6b708a30bdc6217d48ed373ef
2017-03-30 03:26:18 +00:00
Jakub Pawlowski
63fad69a19
Hide periodic scanning
...
Bug: 30622771
Test: manual
Change-Id: I5d786b13cf99287732e16769e2563ac7c4fe715c
2017-03-29 17:11:59 -07:00
Pavlin Radoslavov
3713929862
Merge "Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()" am: 3c7fce3579 am: 25105f6561
...
am: dfc1264eff
Change-Id: I09fd2e135ff0410b08ce197f98a4f58b14c9b7c6
2017-03-29 22:57:22 +00:00
Pavlin Radoslavov
25105f6561
Merge "Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()"
...
am: 3c7fce3579
Change-Id: Ic8483107e72a61e8b07f26f343e36254fe57cfd9
2017-03-29 22:47:28 +00:00
Treehugger Robot
3c7fce3579
Merge "Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()"
2017-03-29 22:41:15 +00:00
Jakub Pawlowski
a6478d3a59
Merge "Bluetooth: fix comment wording" am: 6ba7c54a51 am: eeedda1453
...
am: ba2222aabb
Change-Id: I6a1cbac244e5f262bfda523abd165cef20b7e7b2
2017-03-29 18:39:44 +00:00
Jakub Pawlowski
eeedda1453
Merge "Bluetooth: fix comment wording"
...
am: 6ba7c54a51
Change-Id: I745973b35e5d756072bff1d0958470dc0f55f6ca
2017-03-29 18:28:44 +00:00
Pavlin Radoslavov
61075105ca
Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()
...
This API can be used to enable the optional codecs, or disable them
and use only the mandatory SBC.
Internally, it is implemented by raising the SBC priority to
highest (so SBC will be used/selected), or reducing the SBC priority
to its default value (lowest).
Test: A2DP streaming and enabling/disabling/selecting optional codecs
Bug: 35873828
Change-Id: Ia82036ac33590a3a402b1f5a36102264d47a9029
2017-03-29 10:58:48 -07:00
Jakub Pawlowski
e7f89b07e6
Bluetooth: fix comment wording
...
Test: manual
Bug: 30622771
Change-Id: I5a589c98553f35248b0d95d332e9f35774075b24
2017-03-29 16:34:07 +00:00
Jakub Pawlowski
5896ed8f0b
Merge "Bluetooth API spelling fixes ("wether" -> "whether")" am: 81cef3aeb8 am: 5cca752a4b
...
am: 855f9f576b
Change-Id: Icd6f6d3224c7c7fdeceb5f82f100f12e77f9c5c9
2017-03-28 20:23:49 +00:00
Jakub Pawlowski
5cca752a4b
Merge "Bluetooth API spelling fixes ("wether" -> "whether")"
...
am: 81cef3aeb8
Change-Id: Ief280cbc9283ff1cabdd3c8e53fcabd47c7881b1
2017-03-28 20:12:46 +00:00
Jakub Pawlowski
08ed924d89
Bluetooth API spelling fixes ("wether" -> "whether")
...
Bug: 30622771
Test: manual
Change-Id: I01c8b18d0057f2fd6e477ce2ca0b779321b6c0e6
2017-03-28 18:09:50 +00:00
Jakub Pawlowski
1d978329df
Merge "Bluetooth GATT callback naming fix "Ext" -> "" (1/2)" am: beb8ceada8 am: cfe099b01d
...
am: b4e8fd65bf
Change-Id: I31be1d92cf7ad95214bf353dca20b990a280f996
2017-03-27 21:34:23 +00:00
Jakub Pawlowski
cfe099b01d
Merge "Bluetooth GATT callback naming fix "Ext" -> "" (1/2)"
...
am: beb8ceada8
Change-Id: Ie88e330a1d50adac8c6b83581079c6096c4d898a
2017-03-27 21:22:15 +00:00
Jakub Pawlowski
d7116bea06
Bluetooth GATT callback naming fix "Ext" -> "" (1/2)
...
Gatt callback don't need the "Ext" postfix, as it was removed from new
API.
Test: manual
Bug: 30622771
Change-Id: I54596ffdcb818343cc313123266cfa16291c6236
2017-03-27 19:27:57 +00:00
Jakub Pawlowski
36a44f070e
Merge "Expose connection update callback (4/4)" am: 60865e4a8d am: 45487910b4
...
am: ccff3be9d4
Change-Id: I621210ff8d2c0b203d86e6ad2a11402466724b97
2017-03-24 20:46:59 +00:00
Jakub Pawlowski
45487910b4
Merge "Expose connection update callback (4/4)"
...
am: 60865e4a8d
Change-Id: I0f5301b195b697743d1fb552dac4af8e1fd1445c
2017-03-24 20:36:30 +00:00
Jakub Pawlowski
326f7b31b9
Expose connection update callback (4/4)
...
Test: manual
Bug: 30622771
Change-Id: I56a3c42814249abc33e95e84ce092c2d8df65434
2017-03-24 17:22:54 +00:00
Jakub Pawlowski
2a5b32faec
Merge "Bluetooth 5 Enable->Enabled (1/2)" am: fa69eeac5c am: cde107da6c
...
am: 88e9c86822
Change-Id: I10b47fa5566c05ddeef5e13ee9d1593c648a0b48
2017-03-23 01:33:35 +00:00
Jakub Pawlowski
cde107da6c
Merge "Bluetooth 5 Enable->Enabled (1/2)"
...
am: fa69eeac5c
Change-Id: Ia09cf5db2f69659a3b77e4c5e663d5977793df48
2017-03-23 01:25:31 +00:00
Jakub Pawlowski
93a094c37f
Merge "BluetoothGattCallbackExt removal" am: e2ddacaff4 am: 2a32d04a24
...
am: 822ddff283
Change-Id: I2bffe270bde8eecd2673b75fbd578f833b59f402
2017-03-23 00:58:44 +00:00
Jakub Pawlowski
2a32d04a24
Merge "BluetoothGattCallbackExt removal"
...
am: e2ddacaff4
Change-Id: I59ba6c9950997ea447a5b021d509a72abc546661
2017-03-23 00:44:06 +00:00
Jakub Pawlowski
7998be9e44
Bluetooth 5 Enable->Enabled (1/2)
...
Test: manual
Bug: 30622771
Change-Id: I37b198927076a0267de67e1bd94eaea9e88e53bb
2017-03-22 15:42:53 -07:00
Jakub Pawlowski
d64bb883d8
BluetoothGattCallbackExt removal
...
New methods should be added to BluetoothGattCallback, instead of
creating Ext class.
Test: manual
Bug: 30622771
Change-Id: I2567df5baace6bd2d2f30c36d2f62056408ca5d0
2017-03-22 18:27:10 +00:00
Jakub Pawlowski
a9795ca6be
Merge "Add setScannable to AdvertisingSetParameters (1/2)" am: 7f14b8f095 am: 8d06b41826
...
am: 34d23b7794
Change-Id: I960254d1c051f58c882a6c39bb6fb2173a47c0ef
2017-03-21 18:59:57 +00:00
Jakub Pawlowski
9cd0d3eec3
Merge "Add missing txPower parameter" am: a6c1f6def1 am: 43f71975d0
...
am: ac5adba90e
Change-Id: I0f7b282fb1a0d09742f8a8e9aca5a62b841adf0a
2017-03-21 18:58:31 +00:00
Jakub Pawlowski
8d06b41826
Merge "Add setScannable to AdvertisingSetParameters (1/2)"
...
am: 7f14b8f095
Change-Id: I26846383be5c0fe88501ffd1011b27f39896a74a
2017-03-21 18:44:36 +00:00
Jakub Pawlowski
43f71975d0
Merge "Add missing txPower parameter"
...
am: a6c1f6def1
Change-Id: I61ac50f7f2a5d3d3ea2a3e23b441fa22bb69f52a
2017-03-21 18:43:21 +00:00
Jakub Pawlowski
d12b5688f0
Add setScannable to AdvertisingSetParameters (1/2)
...
There must be a proper way to specify if advertisment is scannable, when
updating the parameters.
Test: manual
Bug: 30622771
Change-Id: Ie520609d3fff07ccc2960015c19311d773842852
2017-03-21 18:37:16 +00:00
Jakub Pawlowski
bcf671b7eb
Add missing txPower parameter
...
Test: manual
Bug: 30622771
Change-Id: Iaf3111d7545f9bb046b5a23b680347a75125ca7e
2017-03-21 18:36:05 +00:00