Package org.robolectric.shadows
Class ShadowBluetoothA2dp
java.lang.Object
org.robolectric.shadows.ShadowBluetoothA2dp
Shadow of
BluetoothA2dp
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDevice
(BluetoothDevice bluetoothDevice, int connectionState) protected BluetoothDevice
int
getBufferLengthMillis
(int codec) protected BluetoothCodecStatus
getCodecStatus
(BluetoothDevice device) protected List<BluetoothDevice>
protected int
getConnectionState
(BluetoothDevice device) protected List<BluetoothDevice>
getDevicesMatchingConnectionStates
(int[] states) protected int
protected int
void
removeDevice
(BluetoothDevice bluetoothDevice) protected boolean
setActiveDevice
(BluetoothDevice bluetoothDevice) protected boolean
setBufferLengthMillis
(int codec, int value) protected void
setCodecConfigPreference
(BluetoothDevice device, BluetoothCodecConfig codecConfig) void
setCodecStatus
(BluetoothDevice device, BluetoothCodecStatus codecStatus) void
setDynamicBufferSupport
(int type) protected void
setOptionalCodecsEnabled
(BluetoothDevice device, int value) protected void
verifyDeviceNotNull
(BluetoothDevice device, String methodName)
-
Field Details
-
realObject
-
-
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) -
getCodecStatus
@Implementation(minSdk=33) @Nullable protected BluetoothCodecStatus getCodecStatus(BluetoothDevice device) -
setCodecStatus
-
getCodecConfigPreference
-
setCodecConfigPreference
@Implementation(minSdk=33) protected void setCodecConfigPreference(BluetoothDevice device, BluetoothCodecConfig codecConfig) -
isOptionalCodecsEnabled
-
setOptionalCodecsEnabled
@Implementation(minSdk=30) protected void setOptionalCodecsEnabled(BluetoothDevice device, int value) -
verifyDeviceNotNull
@Implementation(minSdk=30) protected void verifyDeviceNotNull(BluetoothDevice device, String methodName)
-