Search in sources :

Example 26 with BluetoothCodecStatus

use of android.bluetooth.BluetoothCodecStatus in project android_packages_apps_Settings by omnirom.

the class AbstractBluetoothDialogPreferenceControllerTest method getCurrentCodecConfig_verifyConfig.

@Test
public void getCurrentCodecConfig_verifyConfig() {
    mCodecStatus = new BluetoothCodecStatus(mCodecConfigAAC, null, null);
    when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus);
    mController.onBluetoothServiceConnected(mBluetoothA2dp);
    assertThat(mController.getCurrentCodecConfig()).isEqualTo(mCodecConfigAAC);
}
Also used : BluetoothCodecStatus(android.bluetooth.BluetoothCodecStatus) Test(org.junit.Test)

Aggregations

BluetoothCodecStatus (android.bluetooth.BluetoothCodecStatus)26 BluetoothCodecConfig (android.bluetooth.BluetoothCodecConfig)17 Test (org.junit.Test)17 Resources (android.content.res.Resources)6 BluetoothDevice (android.bluetooth.BluetoothDevice)3 ArrayList (java.util.ArrayList)3 BluetoothA2dp (android.bluetooth.BluetoothA2dp)2 VisibleForTesting (androidx.annotation.VisibleForTesting)1