diff options
author | Jakub Pawlowski <jpawlowski@google.com> | 2021-06-18 22:27:41 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-06-18 22:27:41 +0000 |
commit | 2871fb4bf1f197524ca66e1b103ae4e2e1e3b558 (patch) | |
tree | 0ded059160ee78dbba139f9a4485f41bbbb938e8 /framework/java/android/bluetooth/BluetoothVolumeControl.java | |
parent | 98cfb3ff1558b14e2e486b9c2a300bae4ca0043e (diff) | |
parent | e1b8fcea64060c980b022ea6c4d20c8a52b438e9 (diff) |
Merge "Bluetooth: fix comments on Volume Control Profile review" am: e1b8fcea64
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1740374
Change-Id: I235d9f8247e86d1220055f5cabbd04e5c83ba45b
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothVolumeControl.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothVolumeControl.java | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/framework/java/android/bluetooth/BluetoothVolumeControl.java b/framework/java/android/bluetooth/BluetoothVolumeControl.java index 4eb28ad399..e5092833d7 100644 --- a/framework/java/android/bluetooth/BluetoothVolumeControl.java +++ b/framework/java/android/bluetooth/BluetoothVolumeControl.java @@ -107,7 +107,6 @@ public final class BluetoothVolumeControl implements BluetoothProfile, AutoClose close(); } - /*package*/ @RequiresPermission(Manifest.permission.BLUETOOTH_PRIVILEGED) public void close() { mProfileConnector.disconnect(); @@ -212,23 +211,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 - */ - @RequiresPermission(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. @@ -263,22 +245,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 - */ - @RequiresPermission(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: |