Convert onOobData parameter for OobData from @Nullable to @NonNull
Bug: 185603183 Test: Compiles, test app works Tag: #feature Change-Id: I52636769f50f50b5ad2d135f54472bdeb1c25ee5
This commit is contained in:
@@ -1503,7 +1503,7 @@ package android.bluetooth {
|
||||
|
||||
public static interface BluetoothAdapter.OobDataCallback {
|
||||
method public void onError(int);
|
||||
method public void onOobData(int, @Nullable android.bluetooth.OobData);
|
||||
method public void onOobData(int, @NonNull android.bluetooth.OobData);
|
||||
}
|
||||
|
||||
public final class BluetoothDevice implements android.os.Parcelable {
|
||||
|
||||
@@ -3063,7 +3063,7 @@ public final class BluetoothAdapter {
|
||||
* @param transport - whether the {@link OobData} is generated for LE or Classic.
|
||||
* @param oobData - data generated in the host stack(LE) or controller (Classic)
|
||||
*/
|
||||
void onOobData(@Transport int transport, @Nullable OobData oobData);
|
||||
void onOobData(@Transport int transport, @NonNull OobData oobData);
|
||||
|
||||
/**
|
||||
* Provides feedback when things don't go as expected.
|
||||
@@ -3104,7 +3104,7 @@ public final class BluetoothAdapter {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public void onOobData(@Transport int transport, OobData oobData) {
|
||||
public void onOobData(@Transport int transport, @NonNull OobData oobData) {
|
||||
mExecutor.execute(new Runnable() {
|
||||
public void run() {
|
||||
mCallback.onOobData(transport, oobData);
|
||||
|
||||
Reference in New Issue
Block a user