Merge "Make BluetoothGattCallback.onServiceChanged public" am: 802503736d am: 531993dca1 am: 23c923d197
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1439193 Change-Id: Ie2a9777fbc9a4c5861e07748dfb7596bc547c931
This commit is contained in:
@@ -8771,6 +8771,7 @@ package android.bluetooth {
|
|||||||
method public void onPhyUpdate(android.bluetooth.BluetoothGatt, int, int, int);
|
method public void onPhyUpdate(android.bluetooth.BluetoothGatt, int, int, int);
|
||||||
method public void onReadRemoteRssi(android.bluetooth.BluetoothGatt, int, int);
|
method public void onReadRemoteRssi(android.bluetooth.BluetoothGatt, int, int);
|
||||||
method public void onReliableWriteCompleted(android.bluetooth.BluetoothGatt, int);
|
method public void onReliableWriteCompleted(android.bluetooth.BluetoothGatt, int);
|
||||||
|
method public void onServiceChanged(@NonNull android.bluetooth.BluetoothGatt);
|
||||||
method public void onServicesDiscovered(android.bluetooth.BluetoothGatt, int);
|
method public void onServicesDiscovered(android.bluetooth.BluetoothGatt, int);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
package android.bluetooth;
|
package android.bluetooth;
|
||||||
|
|
||||||
|
import android.annotation.NonNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This abstract class is used to implement {@link BluetoothGatt} callbacks.
|
* This abstract class is used to implement {@link BluetoothGatt} callbacks.
|
||||||
*/
|
*/
|
||||||
@@ -203,8 +205,7 @@ public abstract class BluetoothGattCallback {
|
|||||||
* called to re-discover the services.
|
* called to re-discover the services.
|
||||||
*
|
*
|
||||||
* @param gatt GATT client involved
|
* @param gatt GATT client involved
|
||||||
* @hide
|
|
||||||
*/
|
*/
|
||||||
public void onServiceChanged(BluetoothGatt gatt) {
|
public void onServiceChanged(@NonNull BluetoothGatt gatt) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8771,6 +8771,7 @@ package android.bluetooth {
|
|||||||
method public void onPhyUpdate(android.bluetooth.BluetoothGatt, int, int, int);
|
method public void onPhyUpdate(android.bluetooth.BluetoothGatt, int, int, int);
|
||||||
method public void onReadRemoteRssi(android.bluetooth.BluetoothGatt, int, int);
|
method public void onReadRemoteRssi(android.bluetooth.BluetoothGatt, int, int);
|
||||||
method public void onReliableWriteCompleted(android.bluetooth.BluetoothGatt, int);
|
method public void onReliableWriteCompleted(android.bluetooth.BluetoothGatt, int);
|
||||||
|
method public void onServiceChanged(@NonNull android.bluetooth.BluetoothGatt);
|
||||||
method public void onServicesDiscovered(android.bluetooth.BluetoothGatt, int);
|
method public void onServicesDiscovered(android.bluetooth.BluetoothGatt, int);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user