diff options
| author | 2017-03-23 01:29:27 +0000 | |
|---|---|---|
| committer | 2017-03-23 01:29:27 +0000 | |
| commit | 88e9c86822ef26a8dcee0a279f2a2b659d34501c (patch) | |
| tree | 0c44cf220c88ea6452da8ee5318f83ef2560a5fc | |
| parent | adecfd3e78eb973b48ad78c6b307d1d8da5c67f9 (diff) | |
| parent | cde107da6cc142ff9b2c996b180d010f11814619 (diff) | |
Merge "Bluetooth 5 Enable->Enabled (1/2)" am: fa69eeac5c
am: cde107da6c
Change-Id: Id8151bf6c58a384b5ca264faae71b601a9dcfc63
| -rw-r--r-- | api/current.txt | 2 | ||||
| -rw-r--r-- | api/system-current.txt | 2 | ||||
| -rw-r--r-- | api/test-current.txt | 2 | ||||
| -rw-r--r-- | core/java/android/bluetooth/le/AdvertisingSetCallback.java | 2 | ||||
| -rw-r--r-- | core/java/android/bluetooth/le/BluetoothLeAdvertiser.java | 4 | ||||
| -rw-r--r-- | core/java/android/bluetooth/le/IAdvertisingSetCallback.aidl | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/api/current.txt b/api/current.txt index fb2a2cfef1a6..01a27f9d939f 100644 --- a/api/current.txt +++ b/api/current.txt @@ -7513,7 +7513,7 @@ package android.bluetooth.le { method public void onAdvertisingSetStarted(android.bluetooth.le.AdvertisingSet, int, int); method public void onAdvertisingSetStopped(android.bluetooth.le.AdvertisingSet); method public void onPeriodicAdvertisingDataSet(android.bluetooth.le.AdvertisingSet, int); - method public void onPeriodicAdvertisingEnable(android.bluetooth.le.AdvertisingSet, boolean, int); + method public void onPeriodicAdvertisingEnabled(android.bluetooth.le.AdvertisingSet, boolean, int); method public void onPeriodicAdvertisingParametersUpdated(android.bluetooth.le.AdvertisingSet, int); method public void onScanResponseDataSet(android.bluetooth.le.AdvertisingSet, int); field public static final int ADVERTISE_FAILED_ALREADY_STARTED = 3; // 0x3 diff --git a/api/system-current.txt b/api/system-current.txt index 45c78e4dc068..896baa3508b3 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -7817,7 +7817,7 @@ package android.bluetooth.le { method public void onAdvertisingSetStarted(android.bluetooth.le.AdvertisingSet, int, int); method public void onAdvertisingSetStopped(android.bluetooth.le.AdvertisingSet); method public void onPeriodicAdvertisingDataSet(android.bluetooth.le.AdvertisingSet, int); - method public void onPeriodicAdvertisingEnable(android.bluetooth.le.AdvertisingSet, boolean, int); + method public void onPeriodicAdvertisingEnabled(android.bluetooth.le.AdvertisingSet, boolean, int); method public void onPeriodicAdvertisingParametersUpdated(android.bluetooth.le.AdvertisingSet, int); method public void onScanResponseDataSet(android.bluetooth.le.AdvertisingSet, int); field public static final int ADVERTISE_FAILED_ALREADY_STARTED = 3; // 0x3 diff --git a/api/test-current.txt b/api/test-current.txt index a1b8882d74bd..6651d9f9f819 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -7522,7 +7522,7 @@ package android.bluetooth.le { method public void onAdvertisingSetStarted(android.bluetooth.le.AdvertisingSet, int, int); method public void onAdvertisingSetStopped(android.bluetooth.le.AdvertisingSet); method public void onPeriodicAdvertisingDataSet(android.bluetooth.le.AdvertisingSet, int); - method public void onPeriodicAdvertisingEnable(android.bluetooth.le.AdvertisingSet, boolean, int); + method public void onPeriodicAdvertisingEnabled(android.bluetooth.le.AdvertisingSet, boolean, int); method public void onPeriodicAdvertisingParametersUpdated(android.bluetooth.le.AdvertisingSet, int); method public void onScanResponseDataSet(android.bluetooth.le.AdvertisingSet, int); field public static final int ADVERTISE_FAILED_ALREADY_STARTED = 3; // 0x3 diff --git a/core/java/android/bluetooth/le/AdvertisingSetCallback.java b/core/java/android/bluetooth/le/AdvertisingSetCallback.java index 8d2b82ab350c..fe3b1cdd63a0 100644 --- a/core/java/android/bluetooth/le/AdvertisingSetCallback.java +++ b/core/java/android/bluetooth/le/AdvertisingSetCallback.java @@ -141,6 +141,6 @@ public abstract class AdvertisingSetCallback { * @param advertisingSet The advertising set. * @param status Status of the operation. */ - public void onPeriodicAdvertisingEnable(AdvertisingSet advertisingSet, boolean enable, + public void onPeriodicAdvertisingEnabled(AdvertisingSet advertisingSet, boolean enable, int status) {} }
\ No newline at end of file diff --git a/core/java/android/bluetooth/le/BluetoothLeAdvertiser.java b/core/java/android/bluetooth/le/BluetoothLeAdvertiser.java index ae012d9391e3..242ee77ce0e9 100644 --- a/core/java/android/bluetooth/le/BluetoothLeAdvertiser.java +++ b/core/java/android/bluetooth/le/BluetoothLeAdvertiser.java @@ -504,12 +504,12 @@ public final class BluetoothLeAdvertiser { } @Override - public void onPeriodicAdvertisingEnable(int advertiserId, boolean enable, int status) { + public void onPeriodicAdvertisingEnabled(int advertiserId, boolean enable, int status) { handler.post(new Runnable() { @Override public void run() { AdvertisingSet advertisingSet = mAdvertisingSets.get(advertiserId); - callback.onPeriodicAdvertisingEnable(advertisingSet, enable, status); + callback.onPeriodicAdvertisingEnabled(advertisingSet, enable, status); } }); } diff --git a/core/java/android/bluetooth/le/IAdvertisingSetCallback.aidl b/core/java/android/bluetooth/le/IAdvertisingSetCallback.aidl index e6a09f1d71d6..2c9f4baad520 100644 --- a/core/java/android/bluetooth/le/IAdvertisingSetCallback.aidl +++ b/core/java/android/bluetooth/le/IAdvertisingSetCallback.aidl @@ -28,5 +28,5 @@ oneway interface IAdvertisingSetCallback { void onAdvertisingParametersUpdated(in int advertiserId, in int tx_power, in int status); void onPeriodicAdvertisingParametersUpdated(in int advertiserId, in int status); void onPeriodicAdvertisingDataSet(in int advertiserId, in int status); - void onPeriodicAdvertisingEnable(in int advertiserId, in boolean enable, in int status); + void onPeriodicAdvertisingEnabled(in int advertiserId, in boolean enable, in int status); } |