Merge "Remove BluetoothHeadset#setPriority which was deprecated in Android 11"
This commit is contained in:
@@ -1533,7 +1533,6 @@ package android.bluetooth {
|
|||||||
method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean disconnect(android.bluetooth.BluetoothDevice);
|
method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean disconnect(android.bluetooth.BluetoothDevice);
|
||||||
method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public int getConnectionPolicy(@NonNull android.bluetooth.BluetoothDevice);
|
method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public int getConnectionPolicy(@NonNull android.bluetooth.BluetoothDevice);
|
||||||
method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean setConnectionPolicy(@NonNull android.bluetooth.BluetoothDevice, int);
|
method @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean setConnectionPolicy(@NonNull android.bluetooth.BluetoothDevice, int);
|
||||||
method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean setPriority(android.bluetooth.BluetoothDevice, int);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class BluetoothHearingAid implements android.bluetooth.BluetoothProfile {
|
public final class BluetoothHearingAid implements android.bluetooth.BluetoothProfile {
|
||||||
|
|||||||
@@ -48,6 +48,14 @@ package android.app.prediction {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package android.bluetooth {
|
||||||
|
|
||||||
|
public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile {
|
||||||
|
method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADMIN) public boolean setPriority(android.bluetooth.BluetoothDevice, int);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
package android.content {
|
package android.content {
|
||||||
|
|
||||||
public class Intent implements java.lang.Cloneable android.os.Parcelable {
|
public class Intent implements java.lang.Cloneable android.os.Parcelable {
|
||||||
|
|||||||
@@ -567,6 +567,7 @@ public final class BluetoothHeadset implements BluetoothProfile {
|
|||||||
* @return true if priority is set, false on error
|
* @return true if priority is set, false on error
|
||||||
* @hide
|
* @hide
|
||||||
* @deprecated Replaced with {@link #setConnectionPolicy(BluetoothDevice, int)}
|
* @deprecated Replaced with {@link #setConnectionPolicy(BluetoothDevice, int)}
|
||||||
|
* @removed
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@SystemApi
|
@SystemApi
|
||||||
|
|||||||
Reference in New Issue
Block a user