Make BluetoothGattCallback.onServiceChanged public

Bug: 154056389
Test: proper CTS test will be provided
Change-Id: I2c9264910b65d62124c75c3ee3fd0b5bd18a2006
This commit is contained in:
Jakub Pawlowski
2020-09-25 20:17:33 +02:00
parent f29902285a
commit 2c1d2c21cf
3 changed files with 5 additions and 2 deletions

View File

@@ -8771,6 +8771,7 @@ package android.bluetooth {
method public void onPhyUpdate(android.bluetooth.BluetoothGatt, int, int, int);
method public void onReadRemoteRssi(android.bluetooth.BluetoothGatt, int, 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);
}

View File

@@ -16,6 +16,8 @@
package android.bluetooth;
import android.annotation.NonNull;
/**
* This abstract class is used to implement {@link BluetoothGatt} callbacks.
*/
@@ -203,8 +205,7 @@ public abstract class BluetoothGattCallback {
* called to re-discover the services.
*
* @param gatt GATT client involved
* @hide
*/
public void onServiceChanged(BluetoothGatt gatt) {
public void onServiceChanged(@NonNull BluetoothGatt gatt) {
}
}

View File

@@ -8771,6 +8771,7 @@ package android.bluetooth {
method public void onPhyUpdate(android.bluetooth.BluetoothGatt, int, int, int);
method public void onReadRemoteRssi(android.bluetooth.BluetoothGatt, int, 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);
}