Package org.robolectric.shadows
Class ShadowBluetoothA2dp
- java.lang.Object
-
- org.robolectric.shadows.ShadowBluetoothA2dp
-
@Implements(android.bluetooth.BluetoothA2dp.class) public class ShadowBluetoothA2dp extends Object
Shadow ofBluetoothA2dp
.
-
-
Constructor Summary
Constructors Constructor Description ShadowBluetoothA2dp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDevice(BluetoothDevice bluetoothDevice, int connectionState)
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
setBufferLengthMillis(int codec, int value)
void
setDynamicBufferSupport(int type)
-
-
-
Method Detail
-
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)
-
-