diff options
author | Jakub Pawlowski <jpawlowski@google.com> | 2017-03-22 11:22:18 -0700 |
---|---|---|
committer | Jakub Pawlowski <jpawlowski@google.com> | 2017-03-22 18:27:10 +0000 |
commit | cd8835eecb6b07c9c97d3dc2b0945263e9e985b3 (patch) | |
tree | 265c04a55213516e7a06c440e7fa7912f6685d1c /framework/java/android/bluetooth/BluetoothGattServer.java | |
parent | 90dd95ea51affa3517bf52a71b097fefb5867ae5 (diff) |
BluetoothGattCallbackExt removal
New methods should be added to BluetoothGattCallback, instead of
creating Ext class.
Test: manual
Bug: 30622771
Change-Id: I2567df5baace6bd2d2f30c36d2f62056408ca5d0
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothGattServer.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothGattServer.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/framework/java/android/bluetooth/BluetoothGattServer.java b/framework/java/android/bluetooth/BluetoothGattServer.java index 9ee739f04b..1bd7bd4dc6 100644 --- a/framework/java/android/bluetooth/BluetoothGattServer.java +++ b/framework/java/android/bluetooth/BluetoothGattServer.java @@ -46,7 +46,7 @@ public final class BluetoothGattServer implements BluetoothProfile { private BluetoothAdapter mAdapter; private IBluetoothGatt mService; - private BluetoothGattServerCallbackExt mCallback; + private BluetoothGattServerCallback mCallback; private Object mServerIfLock = new Object(); private int mServerIf; @@ -396,7 +396,7 @@ public final class BluetoothGattServer implements BluetoothProfile { * @return true, the callback will be called to notify success or failure, * false on immediate error */ - /*package*/ boolean registerCallback(BluetoothGattServerCallbackExt callback) { + /*package*/ boolean registerCallback(BluetoothGattServerCallback callback) { if (DBG) Log.d(TAG, "registerCallback()"); if (mService == null) { Log.e(TAG, "GATT service not available"); @@ -472,7 +472,7 @@ public final class BluetoothGattServer implements BluetoothProfile { * * <p>The connection may not be established right away, but will be * completed when the remote device is available. A - * {@link BluetoothGattServerCallbackExt#onConnectionStateChange} callback will be + * {@link BluetoothGattServerCallback#onConnectionStateChange} callback will be * invoked when the connection state changes as a result of this function. * * <p>The autoConnect paramter determines whether to actively connect to @@ -528,7 +528,7 @@ public final class BluetoothGattServer implements BluetoothProfile { * recommendation, wether the PHY change will happen depends on other applications peferences, * local and remote controller capabilities. Controller can override these settings. * <p> - * {@link BluetoothGattServerCallbackExt#onPhyUpdate} will be triggered as a result of this call, even + * {@link BluetoothGattServerCallback#onPhyUpdate} will be triggered as a result of this call, even * if no PHY change happens. It is also triggered when remote device updates the PHY. * * @param device The remote device to send this response to @@ -553,7 +553,7 @@ public final class BluetoothGattServer implements BluetoothProfile { /** * Read the current transmitter PHY and receiver PHY of the connection. The values are returned - * in {@link BluetoothGattServerCallbackExt#onPhyRead} + * in {@link BluetoothGattServerCallback#onPhyRead} * * @param device The remote device to send this response to */ @@ -572,10 +572,10 @@ public final class BluetoothGattServer implements BluetoothProfile { * is received by one of these callback methods: * * <ul> - * <li>{@link BluetoothGattServerCallbackExt#onCharacteristicReadRequest} - * <li>{@link BluetoothGattServerCallbackExt#onCharacteristicWriteRequest} - * <li>{@link BluetoothGattServerCallbackExt#onDescriptorReadRequest} - * <li>{@link BluetoothGattServerCallbackExt#onDescriptorWriteRequest} + * <li>{@link BluetoothGattServerCallback#onCharacteristicReadRequest} + * <li>{@link BluetoothGattServerCallback#onCharacteristicWriteRequest} + * <li>{@link BluetoothGattServerCallback#onDescriptorReadRequest} + * <li>{@link BluetoothGattServerCallback#onDescriptorWriteRequest} * </ul> * * <p>Requires {@link android.Manifest.permission#BLUETOOTH} permission. |