diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2022-03-29 18:31:47 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-03-29 18:31:47 +0000 |
commit | cb3a33c81deb60fa6ad9bb15c29938eaa71e5b9c (patch) | |
tree | d133bb182f6731cb61fb0c91c9ac0af9425f7345 /framework/java/android/bluetooth | |
parent | 353b4a8e765d69a6ea703f53d3c7141c67ebf53f (diff) | |
parent | b0e5c3bff3de72449f5b43aacc3d1aed104b782d (diff) |
Merge "API-REVIEW: add detail in codec switch javadoc"
Diffstat (limited to 'framework/java/android/bluetooth')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothA2dp.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/framework/java/android/bluetooth/BluetoothA2dp.java b/framework/java/android/bluetooth/BluetoothA2dp.java index 6022058241..3fbc1898a7 100644 --- a/framework/java/android/bluetooth/BluetoothA2dp.java +++ b/framework/java/android/bluetooth/BluetoothA2dp.java @@ -845,6 +845,10 @@ public final class BluetoothA2dp implements BluetoothProfile { * * If the given device supports another codec type than * {@link BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC}, this will switch to it. + * Switching from one codec to another will create a short audio drop. + * In case of multiple applications calling the method, the last call will be taken into + * account, overriding any previous call + * * See {@link #setOptionalCodecsEnabled} to enable optional codecs by default * when the given device is connected. * @@ -865,10 +869,14 @@ public final class BluetoothA2dp implements BluetoothProfile { } /** - * Disables the optional codecs for the given device. + * Disables the optional codecs for the given device for this connection. * * When optional codecs are disabled, the device will use the default * Bluetooth audio codec type. + * Switching from one codec to another will create a short audio drop. + * In case of multiple applications calling the method, the last call will be taken into + * account, overriding any previous call + * * See {@link BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC}. * See {@link #setOptionalCodecsEnabled} to disable optional codecs by default * when the given device is connected. |