Class ShadowBluetoothA2dp

java.lang.Object
org.robolectric.shadows.ShadowBluetoothA2dp

@Implements(android.bluetooth.BluetoothA2dp.class) public class ShadowBluetoothA2dp extends Object
Shadow of BluetoothA2dp.
  • Field Details

  • Constructor Details

    • ShadowBluetoothA2dp

      public ShadowBluetoothA2dp()
  • Method Details

    • addDevice

      public void addDevice(BluetoothDevice bluetoothDevice, int connectionState)
    • removeDevice

      public void removeDevice(BluetoothDevice bluetoothDevice)
    • getConnectedDevices

      @Implementation protected List<BluetoothDevice> getConnectedDevices()
    • getDevicesMatchingConnectionStates

      @Implementation protected List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states)
    • getConnectionState

      @Implementation protected int getConnectionState(BluetoothDevice device)
    • setDynamicBufferSupport

      public void setDynamicBufferSupport(int type)
    • getDynamicBufferSupport

      @Implementation(minSdk=31) protected int getDynamicBufferSupport()
    • setBufferLengthMillis

      @Implementation(minSdk=31) protected boolean setBufferLengthMillis(int codec, int value)
    • getBufferLengthMillis

      public int getBufferLengthMillis(int codec)
    • getActiveDevice

      @Nullable @Implementation(minSdk=28) protected BluetoothDevice getActiveDevice()
    • setActiveDevice

      @Implementation(minSdk=28) protected boolean setActiveDevice(@Nullable BluetoothDevice bluetoothDevice)
    • getCodecStatus

      @Implementation(minSdk=33) @Nullable protected BluetoothCodecStatus getCodecStatus(BluetoothDevice device)
    • setCodecStatus

      public void setCodecStatus(BluetoothDevice device, BluetoothCodecStatus codecStatus)
    • getCodecConfigPreference

      @Nullable public BluetoothCodecConfig getCodecConfigPreference(BluetoothDevice device)
    • setCodecConfigPreference

      @Implementation(minSdk=33) protected void setCodecConfigPreference(BluetoothDevice device, BluetoothCodecConfig codecConfig)
    • isOptionalCodecsEnabled

      @Implementation(minSdk=30) protected int isOptionalCodecsEnabled(BluetoothDevice device)
    • setOptionalCodecsEnabled

      @Implementation(minSdk=30) protected void setOptionalCodecsEnabled(BluetoothDevice device, int value)
    • verifyDeviceNotNull

      @Implementation(minSdk=30, maxSdk=36, methodName="verifyDeviceNotNull") protected void verifyDeviceNotNull(BluetoothDevice device, String methodName)
    • verifyDeviceNotNullBaklava

      @Implementation(minSdk=36, methodName="verifyDeviceNotNull") protected static void verifyDeviceNotNullBaklava(BluetoothDevice device, String methodName)