aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Chataing <henrichataing@google.com>2023-12-07 16:31:20 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-12-07 16:31:20 +0000
commit22e1ce1530558538c85ac555ffde4467d23f0766 (patch)
treed94483e410a3a9bc6b27d8bdd1a65161c1bf8efd
parent05cacb7bdb4e14d783e90efebdb709f8fc727a7a (diff)
downloadsl4a-22e1ce1530558538c85ac555ffde4467d23f0766.tar.gz
Revert "Update facade for BluetoothCodecConfig with BluetoothCod..."
Revert submission 2795366-bluetooth-codec-type Reason for revert: b/315260629 New constructor is flagged, old constructor may still be used. It is likely the change is not necessary. Reverted changes: /q/submissionid:2795366-bluetooth-codec-type Change-Id: Ia79fb89f77778ec37d4047c40768d34581effa24
-rw-r--r--Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpFacade.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpFacade.java b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpFacade.java
index e3304ffc..2c200d3e 100644
--- a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpFacade.java
+++ b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpFacade.java
@@ -21,7 +21,6 @@ import android.bluetooth.BluetoothA2dp;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothCodecConfig;
import android.bluetooth.BluetoothCodecStatus;
-import android.bluetooth.BluetoothCodecType;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothProfile;
import android.bluetooth.BluetoothUuid;
@@ -63,7 +62,7 @@ public class BluetoothA2dpFacade extends RpcReceiver {
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
mBluetoothA2dpReceiver = new BluetoothA2dpReceiver();
mBluetoothCodecConfig = new BluetoothCodecConfig(
- null,
+ BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID,
BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT,
BluetoothCodecConfig.SAMPLE_RATE_NONE,
BluetoothCodecConfig.BITS_PER_SAMPLE_NONE,
@@ -259,7 +258,7 @@ public class BluetoothA2dpFacade extends RpcReceiver {
continue;
}
BluetoothCodecConfig codecConfig = new BluetoothCodecConfig(
- BluetoothCodecType.createFromType(codecType),
+ codecType,
BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST,
sampleRate,
bitsPerSample,