Loading api/system-current.txt +8 −0 Original line number Diff line number Diff line Loading @@ -628,6 +628,9 @@ package android.bluetooth { method public boolean isEncrypted(); method public boolean removeBond(); method public boolean setPhonebookAccessPermission(int); field public static final int ACCESS_ALLOWED = 1; // 0x1 field public static final int ACCESS_REJECTED = 2; // 0x2 field public static final int ACCESS_UNKNOWN = 0; // 0x0 } public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile { Loading @@ -636,6 +639,11 @@ package android.bluetooth { method public boolean setPriority(android.bluetooth.BluetoothDevice, int); } public abstract interface BluetoothProfile { field public static final int PRIORITY_OFF = 0; // 0x0 field public static final int PRIORITY_ON = 100; // 0x64 } } package android.bluetooth.le { Loading core/java/android/bluetooth/BluetoothDevice.java +3 −0 Original line number Diff line number Diff line Loading @@ -618,6 +618,7 @@ public final class BluetoothDevice implements Parcelable { * * @hide */ @SystemApi public static final int ACCESS_UNKNOWN = 0; /** Loading @@ -626,6 +627,7 @@ public final class BluetoothDevice implements Parcelable { * * @hide */ @SystemApi public static final int ACCESS_ALLOWED = 1; /** Loading @@ -634,6 +636,7 @@ public final class BluetoothDevice implements Parcelable { * * @hide */ @SystemApi public static final int ACCESS_REJECTED = 2; /** Loading core/java/android/bluetooth/BluetoothHeadset.java +2 −2 Original line number Diff line number Diff line Loading @@ -556,8 +556,8 @@ public final class BluetoothHeadset implements BluetoothProfile { * Set priority of the profile * * <p> The device should already be paired. * Priority can be one of {@link #PRIORITY_ON} or * {@link #PRIORITY_OFF}, * Priority can be one of {@link BluetoothProfile#PRIORITY_ON} or * {@link BluetoothProfile#PRIORITY_OFF}, * * <p>Requires {@link android.Manifest.permission#BLUETOOTH_ADMIN} * permission. Loading core/java/android/bluetooth/BluetoothProfile.java +3 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package android.bluetooth; import android.Manifest; import android.annotation.RequiresPermission; import android.annotation.SystemApi; import java.util.List; Loading Loading @@ -185,6 +186,7 @@ public interface BluetoothProfile { * * @hide **/ @SystemApi public static final int PRIORITY_ON = 100; /** Loading @@ -193,6 +195,7 @@ public interface BluetoothProfile { * * @hide **/ @SystemApi public static final int PRIORITY_OFF = 0; /** Loading Loading
api/system-current.txt +8 −0 Original line number Diff line number Diff line Loading @@ -628,6 +628,9 @@ package android.bluetooth { method public boolean isEncrypted(); method public boolean removeBond(); method public boolean setPhonebookAccessPermission(int); field public static final int ACCESS_ALLOWED = 1; // 0x1 field public static final int ACCESS_REJECTED = 2; // 0x2 field public static final int ACCESS_UNKNOWN = 0; // 0x0 } public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile { Loading @@ -636,6 +639,11 @@ package android.bluetooth { method public boolean setPriority(android.bluetooth.BluetoothDevice, int); } public abstract interface BluetoothProfile { field public static final int PRIORITY_OFF = 0; // 0x0 field public static final int PRIORITY_ON = 100; // 0x64 } } package android.bluetooth.le { Loading
core/java/android/bluetooth/BluetoothDevice.java +3 −0 Original line number Diff line number Diff line Loading @@ -618,6 +618,7 @@ public final class BluetoothDevice implements Parcelable { * * @hide */ @SystemApi public static final int ACCESS_UNKNOWN = 0; /** Loading @@ -626,6 +627,7 @@ public final class BluetoothDevice implements Parcelable { * * @hide */ @SystemApi public static final int ACCESS_ALLOWED = 1; /** Loading @@ -634,6 +636,7 @@ public final class BluetoothDevice implements Parcelable { * * @hide */ @SystemApi public static final int ACCESS_REJECTED = 2; /** Loading
core/java/android/bluetooth/BluetoothHeadset.java +2 −2 Original line number Diff line number Diff line Loading @@ -556,8 +556,8 @@ public final class BluetoothHeadset implements BluetoothProfile { * Set priority of the profile * * <p> The device should already be paired. * Priority can be one of {@link #PRIORITY_ON} or * {@link #PRIORITY_OFF}, * Priority can be one of {@link BluetoothProfile#PRIORITY_ON} or * {@link BluetoothProfile#PRIORITY_OFF}, * * <p>Requires {@link android.Manifest.permission#BLUETOOTH_ADMIN} * permission. Loading
core/java/android/bluetooth/BluetoothProfile.java +3 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package android.bluetooth; import android.Manifest; import android.annotation.RequiresPermission; import android.annotation.SystemApi; import java.util.List; Loading Loading @@ -185,6 +186,7 @@ public interface BluetoothProfile { * * @hide **/ @SystemApi public static final int PRIORITY_ON = 100; /** Loading @@ -193,6 +195,7 @@ public interface BluetoothProfile { * * @hide **/ @SystemApi public static final int PRIORITY_OFF = 0; /** Loading