Loading framework/java/android/bluetooth/BluetoothA2dp.java +9 −1 Original line number Original line Diff line number Diff line Loading @@ -845,6 +845,10 @@ public final class BluetoothA2dp implements BluetoothProfile { * * * If the given device supports another codec type than * If the given device supports another codec type than * {@link BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC}, this will switch to it. * {@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 * See {@link #setOptionalCodecsEnabled} to enable optional codecs by default * when the given device is connected. * when the given device is connected. * * Loading @@ -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 * When optional codecs are disabled, the device will use the default * Bluetooth audio codec type. * 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 BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC}. * See {@link #setOptionalCodecsEnabled} to disable optional codecs by default * See {@link #setOptionalCodecsEnabled} to disable optional codecs by default * when the given device is connected. * when the given device is connected. Loading Loading
framework/java/android/bluetooth/BluetoothA2dp.java +9 −1 Original line number Original line Diff line number Diff line Loading @@ -845,6 +845,10 @@ public final class BluetoothA2dp implements BluetoothProfile { * * * If the given device supports another codec type than * If the given device supports another codec type than * {@link BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC}, this will switch to it. * {@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 * See {@link #setOptionalCodecsEnabled} to enable optional codecs by default * when the given device is connected. * when the given device is connected. * * Loading @@ -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 * When optional codecs are disabled, the device will use the default * Bluetooth audio codec type. * 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 BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC}. * See {@link #setOptionalCodecsEnabled} to disable optional codecs by default * See {@link #setOptionalCodecsEnabled} to disable optional codecs by default * when the given device is connected. * when the given device is connected. Loading