Make BluetoothCodecConfig and BluetoothCodecStatus public

Tag: #feature
Bug: 200202780
Test: make RunSettingsRoboTests
Change-Id: I2a81216de050b143cee5c537d899a699d5012330
This commit is contained in:
Etienne Ruffieux
2021-10-07 16:40:15 +00:00
parent 9d0eba50aa
commit e004eaa51b
9 changed files with 139 additions and 103 deletions

View File

@@ -71,10 +71,16 @@ public class BluetoothA2dpConfigStore {
}
public BluetoothCodecConfig createCodecConfig() {
return new BluetoothCodecConfig(mCodecType, mCodecPriority,
mSampleRate, mBitsPerSample,
mChannelMode, mCodecSpecific1Value,
mCodecSpecific2Value, mCodecSpecific3Value,
mCodecSpecific4Value);
return new BluetoothCodecConfig.Builder()
.setCodecType(mCodecType)
.setCodecPriority(mCodecPriority)
.setSampleRate(mSampleRate)
.setBitsPerSample(mBitsPerSample)
.setChannelMode(mChannelMode)
.setCodecSpecific1(mCodecSpecific1Value)
.setCodecSpecific2(mCodecSpecific2Value)
.setCodecSpecific3(mCodecSpecific3Value)
.setCodecSpecific4(mCodecSpecific4Value)
.build();
}
}