* commit 'ac00438d00e42f49b1d278bbd0d632e7caeef137': Un-hide connectGatt() variant with selective transport
This commit is contained in:
@@ -6676,6 +6676,7 @@ package android.bluetooth {
|
||||
|
||||
public final class BluetoothDevice implements android.os.Parcelable {
|
||||
method public android.bluetooth.BluetoothGatt connectGatt(android.content.Context, boolean, android.bluetooth.BluetoothGattCallback);
|
||||
method public android.bluetooth.BluetoothGatt connectGatt(android.content.Context, boolean, android.bluetooth.BluetoothGattCallback, int);
|
||||
method public boolean createBond();
|
||||
method public android.bluetooth.BluetoothSocket createInsecureRfcommSocketToServiceRecord(java.util.UUID) throws java.io.IOException;
|
||||
method public android.bluetooth.BluetoothSocket createRfcommSocketToServiceRecord(java.util.UUID) throws java.io.IOException;
|
||||
@@ -6719,6 +6720,9 @@ package android.bluetooth {
|
||||
field public static final java.lang.String EXTRA_UUID = "android.bluetooth.device.extra.UUID";
|
||||
field public static final int PAIRING_VARIANT_PASSKEY_CONFIRMATION = 2; // 0x2
|
||||
field public static final int PAIRING_VARIANT_PIN = 0; // 0x0
|
||||
field public static final int TRANSPORT_AUTO = 0; // 0x0
|
||||
field public static final int TRANSPORT_BREDR = 1; // 0x1
|
||||
field public static final int TRANSPORT_LE = 2; // 0x2
|
||||
}
|
||||
|
||||
public final class BluetoothGatt implements android.bluetooth.BluetoothProfile {
|
||||
|
||||
@@ -6870,6 +6870,7 @@ package android.bluetooth {
|
||||
|
||||
public final class BluetoothDevice implements android.os.Parcelable {
|
||||
method public android.bluetooth.BluetoothGatt connectGatt(android.content.Context, boolean, android.bluetooth.BluetoothGattCallback);
|
||||
method public android.bluetooth.BluetoothGatt connectGatt(android.content.Context, boolean, android.bluetooth.BluetoothGattCallback, int);
|
||||
method public boolean createBond();
|
||||
method public android.bluetooth.BluetoothSocket createInsecureRfcommSocketToServiceRecord(java.util.UUID) throws java.io.IOException;
|
||||
method public android.bluetooth.BluetoothSocket createRfcommSocketToServiceRecord(java.util.UUID) throws java.io.IOException;
|
||||
@@ -6915,6 +6916,9 @@ package android.bluetooth {
|
||||
field public static final java.lang.String EXTRA_UUID = "android.bluetooth.device.extra.UUID";
|
||||
field public static final int PAIRING_VARIANT_PASSKEY_CONFIRMATION = 2; // 0x2
|
||||
field public static final int PAIRING_VARIANT_PIN = 0; // 0x0
|
||||
field public static final int TRANSPORT_AUTO = 0; // 0x0
|
||||
field public static final int TRANSPORT_BREDR = 1; // 0x1
|
||||
field public static final int TRANSPORT_LE = 2; // 0x2
|
||||
}
|
||||
|
||||
public final class BluetoothGatt implements android.bluetooth.BluetoothProfile {
|
||||
|
||||
@@ -567,19 +567,16 @@ public final class BluetoothDevice implements Parcelable {
|
||||
|
||||
/**
|
||||
* No preferrence of physical transport for GATT connections to remote dual-mode devices
|
||||
* @hide
|
||||
*/
|
||||
public static final int TRANSPORT_AUTO = 0;
|
||||
|
||||
/**
|
||||
* Prefer BR/EDR transport for GATT connections to remote dual-mode devices
|
||||
* @hide
|
||||
*/
|
||||
public static final int TRANSPORT_BREDR = 1;
|
||||
|
||||
/**
|
||||
* Prefer LE transport for GATT connections to remote dual-mode devices
|
||||
* @hide
|
||||
*/
|
||||
public static final int TRANSPORT_LE = 2;
|
||||
|
||||
@@ -1564,7 +1561,6 @@ public final class BluetoothDevice implements Parcelable {
|
||||
* {@link BluetoothDevice#TRANSPORT_AUTO} or
|
||||
* {@link BluetoothDevice#TRANSPORT_BREDR} or {@link BluetoothDevice#TRANSPORT_LE}
|
||||
* @throws IllegalArgumentException if callback is null
|
||||
* @hide
|
||||
*/
|
||||
public BluetoothGatt connectGatt(Context context, boolean autoConnect,
|
||||
BluetoothGattCallback callback, int transport) {
|
||||
|
||||
Reference in New Issue
Block a user