OSDN Git Service

Remove enable from PeriodicAdvertisingPariameters (1/2)
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 10 Apr 2017 20:45:16 +0000 (13:45 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 11 Apr 2017 06:18:44 +0000 (06:18 +0000)
commite6c453d828fec3df82708d2b0c3bb00bd0a0dbf8
tree0d9093f21cee7a4a3702ece5eef0d8df54e5c50e
parentbc0f610b25a8e708d7dbf411fb80a028064008fe
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
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/bluetooth/le/BluetoothLeAdvertiser.java
core/java/android/bluetooth/le/PeriodicAdvertisingParameters.java