Package org.robolectric.shadows
Class ShadowBluetoothA2dp
java.lang.Object
org.robolectric.shadows.ShadowBluetoothA2dp
@Implements(android.bluetooth.BluetoothA2dp.class) public class ShadowBluetoothA2dp extends Object
Shadow of
BluetoothA2dp
.-
Constructor Summary
Constructors Constructor Description ShadowBluetoothA2dp()
-
Method Summary
Modifier and Type Method Description void
addDevice(BluetoothDevice bluetoothDevice, int connectionState)
protected BluetoothDevice
getActiveDevice()
int
getBufferLengthMillis(int codec)
protected List<BluetoothDevice>
getConnectedDevices()
protected int
getConnectionState(BluetoothDevice device)
protected List<BluetoothDevice>
getDevicesMatchingConnectionStates(int[] states)
protected int
getDynamicBufferSupport()
void
removeDevice(BluetoothDevice bluetoothDevice)
protected boolean
setActiveDevice(BluetoothDevice bluetoothDevice)
protected boolean
setBufferLengthMillis(int codec, int value)
void
setDynamicBufferSupport(int type)
-
Constructor Details
-
ShadowBluetoothA2dp
public ShadowBluetoothA2dp()
-
-
Method Details
-
addDevice
-
removeDevice
-
getConnectedDevices
-
getDevicesMatchingConnectionStates
-
getConnectionState
-
setDynamicBufferSupport
public void setDynamicBufferSupport(int type) -
getDynamicBufferSupport
-
setBufferLengthMillis
-
getBufferLengthMillis
public int getBufferLengthMillis(int codec) -
getActiveDevice
-
setActiveDevice
@Implementation(minSdk=28) protected boolean setActiveDevice(@Nullable BluetoothDevice bluetoothDevice)
-