Loading framework/java/android/bluetooth/BluetoothA2dp.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -769,6 +769,9 @@ public final class BluetoothA2dp implements BluetoothProfile { /** /** * Retrieves the current codec configuration and the capabilities of the remote {@code device}. * Retrieves the current codec configuration and the capabilities of the remote {@code device}. * * * <p>This method also requires {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED} * permission in API level {@link android.os.Build.VERSION_CODES#TIRAMISU} or older. * * @param device the remote Bluetooth device * @param device the remote Bluetooth device * @return the current codec status of the remote Bluetooth device * @return the current codec status of the remote Bluetooth device */ */ Loading Loading @@ -810,6 +813,9 @@ public final class BluetoothA2dp implements BluetoothProfile { * caller has the {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED} permission, they can * caller has the {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED} permission, they can * bypass the Companion Device Manager association requirement. * bypass the Companion Device Manager association requirement. * * * <p>This method also requires {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED} * permission in API level {@link android.os.Build.VERSION_CODES#TIRAMISU} or older. * * @param device the remote Bluetooth device * @param device the remote Bluetooth device * @param codecConfig the preferred codec configuration preference * @param codecConfig the preferred codec configuration preference */ */ Loading Loading
framework/java/android/bluetooth/BluetoothA2dp.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -769,6 +769,9 @@ public final class BluetoothA2dp implements BluetoothProfile { /** /** * Retrieves the current codec configuration and the capabilities of the remote {@code device}. * Retrieves the current codec configuration and the capabilities of the remote {@code device}. * * * <p>This method also requires {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED} * permission in API level {@link android.os.Build.VERSION_CODES#TIRAMISU} or older. * * @param device the remote Bluetooth device * @param device the remote Bluetooth device * @return the current codec status of the remote Bluetooth device * @return the current codec status of the remote Bluetooth device */ */ Loading Loading @@ -810,6 +813,9 @@ public final class BluetoothA2dp implements BluetoothProfile { * caller has the {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED} permission, they can * caller has the {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED} permission, they can * bypass the Companion Device Manager association requirement. * bypass the Companion Device Manager association requirement. * * * <p>This method also requires {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED} * permission in API level {@link android.os.Build.VERSION_CODES#TIRAMISU} or older. * * @param device the remote Bluetooth device * @param device the remote Bluetooth device * @param codecConfig the preferred codec configuration preference * @param codecConfig the preferred codec configuration preference */ */ Loading