summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2021-06-18 00:15:47 +0200
committerJakub Pawlowski <jpawlowski@google.com>2021-06-18 20:46:27 +0000
commit4619694a85ffe6e1605d3b79913b768dfdd5f9a9 (patch)
tree080e5e841465154f951da0c37fcab4d50422c900 /core/java/android
parent87a2d5bf91f82113955afcdffbbf2ad3661b18f8 (diff)
Bluetooth: fix comments on Volume Control Profile review
Bug: 150670922 Test: compilation Merged-In: I72b36b77aa97aa9501d13ecdfe0b9b7f49bcce2c Change-Id: I72b36b77aa97aa9501d13ecdfe0b9b7f49bcce2c
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/bluetooth/BluetoothProfile.java2
-rw-r--r--core/java/android/bluetooth/BluetoothVolumeControl.java34
2 files changed, 2 insertions, 34 deletions
diff --git a/core/java/android/bluetooth/BluetoothProfile.java b/core/java/android/bluetooth/BluetoothProfile.java
index d9791026ad6d..4d93c5c6b7de 100644
--- a/core/java/android/bluetooth/BluetoothProfile.java
+++ b/core/java/android/bluetooth/BluetoothProfile.java
@@ -217,7 +217,9 @@ public interface BluetoothProfile {
/**
* Volume Control profile
*
+ * @hide
*/
+ @SystemApi
int VOLUME_CONTROL = 23;
/**
diff --git a/core/java/android/bluetooth/BluetoothVolumeControl.java b/core/java/android/bluetooth/BluetoothVolumeControl.java
index 4eb28ad39952..e5092833d7ae 100644
--- a/core/java/android/bluetooth/BluetoothVolumeControl.java
+++ b/core/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: