diff options
author | Jakub Pawlowski <jpawlowski@google.com> | 2021-06-18 00:09:00 +0200 |
---|---|---|
committer | Jakub Pawlowski <jpawlowski@google.com> | 2021-06-19 08:38:35 +0000 |
commit | 807fd1cfb8a763074199be85e3096a2541ded8e9 (patch) | |
tree | 932d9c86b1a13036886e3ca9696819307fd2445b /framework/java/android/bluetooth/BluetoothVolumeControl.java | |
parent | 276d1cec5b501dc60940740ac2b3852e099f2cf1 (diff) |
Bluetooth: fix comments on Volume Control Profile review
Bug: 150670922
Test: compilation
Merged-In: I72b36b77aa97aa9501d13ecdfe0b9b7f49bcce2c
Change-Id: I72b36b77aa97aa9501d13ecdfe0b9b7f49bcce2c
(cherry picked from commit dc50891255ed0168d6068b328b48cc027cd97ca5)
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothVolumeControl.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothVolumeControl.java | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/framework/java/android/bluetooth/BluetoothVolumeControl.java b/framework/java/android/bluetooth/BluetoothVolumeControl.java index 6d515a16bf..678c11a59f 100644 --- a/framework/java/android/bluetooth/BluetoothVolumeControl.java +++ b/framework/java/android/bluetooth/BluetoothVolumeControl.java @@ -113,7 +113,6 @@ public final class BluetoothVolumeControl implements BluetoothProfile, AutoClose close(); } - /*package*/ @RequiresPermission(Manifest.permission.BLUETOOTH_PRIVILEGED) public void close() { mProfileConnector.disconnect(); @@ -231,27 +230,6 @@ public final class BluetoothVolumeControl implements BluetoothProfile, AutoClose } /** - * Set priority of the profile - * - * <p> The device should already be paired. - * Priority can be one of {@link #PRIORITY_ON} or {@link #PRIORITY_OFF}, - * - * @param device Paired bluetooth device - * @param priority - * @return true if priority is set, false on error - * @hide - */ - @RequiresBluetoothConnectPermission - @RequiresPermission(allOf = { - android.Manifest.permission.BLUETOOTH_CONNECT, - android.Manifest.permission.BLUETOOTH_PRIVILEGED, - }) - public boolean setPriority(BluetoothDevice device, int priority) { - if (DBG) log("setPriority(" + device + ", " + priority + ")"); - return setConnectionPolicy(device, BluetoothAdapter.priorityToConnectionPolicy(priority)); - } - - /** * Set connection policy of the profile * * <p> The device should already be paired. @@ -290,26 +268,6 @@ public final class BluetoothVolumeControl implements BluetoothProfile, AutoClose } /** - * Get the priority of the profile. - * - * <p> The priority can be any of: - * {@link #PRIORITY_OFF}, {@link #PRIORITY_ON}, {@link #PRIORITY_UNDEFINED} - * - * @param device Bluetooth device - * @return priority of the device - * @hide - */ - @RequiresBluetoothConnectPermission - @RequiresPermission(allOf = { - android.Manifest.permission.BLUETOOTH_CONNECT, - android.Manifest.permission.BLUETOOTH_PRIVILEGED, - }) - public int getPriority(BluetoothDevice device) { - if (VDBG) log("getPriority(" + device + ")"); - return BluetoothAdapter.connectionPolicyToPriority(getConnectionPolicy(device)); - } - - /** * Get the connection policy of the profile. * * <p> The connection policy can be any of: |