Merge "Change abortReliableWrite(BluetoothDevice) to abortReliableWrite()" into klp-dev
This commit is contained in:
@@ -5014,7 +5014,8 @@ package android.bluetooth {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class BluetoothGatt implements android.bluetooth.BluetoothProfile {
|
public final class BluetoothGatt implements android.bluetooth.BluetoothProfile {
|
||||||
method public void abortReliableWrite(android.bluetooth.BluetoothDevice);
|
method public void abortReliableWrite();
|
||||||
|
method public deprecated void abortReliableWrite(android.bluetooth.BluetoothDevice);
|
||||||
method public boolean beginReliableWrite();
|
method public boolean beginReliableWrite();
|
||||||
method public void close();
|
method public void close();
|
||||||
method public boolean connect();
|
method public boolean connect();
|
||||||
|
|||||||
@@ -1102,7 +1102,7 @@ public final class BluetoothGatt implements BluetoothProfile {
|
|||||||
*
|
*
|
||||||
* <p>Requires {@link android.Manifest.permission#BLUETOOTH} permission.
|
* <p>Requires {@link android.Manifest.permission#BLUETOOTH} permission.
|
||||||
*/
|
*/
|
||||||
public void abortReliableWrite(BluetoothDevice mDevice) {
|
public void abortReliableWrite() {
|
||||||
if (DBG) Log.d(TAG, "abortReliableWrite() - device: " + mDevice.getAddress());
|
if (DBG) Log.d(TAG, "abortReliableWrite() - device: " + mDevice.getAddress());
|
||||||
if (mService == null || mClientIf == 0) return;
|
if (mService == null || mClientIf == 0) return;
|
||||||
|
|
||||||
@@ -1113,6 +1113,13 @@ public final class BluetoothGatt implements BluetoothProfile {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link abortReliableWrite()}
|
||||||
|
*/
|
||||||
|
public void abortReliableWrite(BluetoothDevice mDevice) {
|
||||||
|
abortReliableWrite();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable or disable notifications/indications for a given characteristic.
|
* Enable or disable notifications/indications for a given characteristic.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user