Package org.robolectric.shadows
Class ShadowBluetoothA2dp
java.lang.Object
org.robolectric.shadows.ShadowBluetoothA2dp
Shadow of 
BluetoothA2dp.- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDevice(BluetoothDevice bluetoothDevice, int connectionState) protected BluetoothDeviceintgetBufferLengthMillis(int codec) protected BluetoothCodecStatusgetCodecStatus(BluetoothDevice device) protected List<BluetoothDevice> protected intgetConnectionState(BluetoothDevice device) protected List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) protected intprotected intvoidremoveDevice(BluetoothDevice bluetoothDevice) protected booleansetActiveDevice(BluetoothDevice bluetoothDevice) protected booleansetBufferLengthMillis(int codec, int value) protected voidsetCodecConfigPreference(BluetoothDevice device, BluetoothCodecConfig codecConfig) voidsetCodecStatus(BluetoothDevice device, BluetoothCodecStatus codecStatus) voidsetDynamicBufferSupport(int type) protected voidsetOptionalCodecsEnabled(BluetoothDevice device, int value) protected voidverifyDeviceNotNull(BluetoothDevice device, String methodName) protected static voidverifyDeviceNotNullBaklava(BluetoothDevice device, String methodName) 
- 
Field Details- 
realObject
 
- 
- 
Constructor Details- 
ShadowBluetoothA2dppublic ShadowBluetoothA2dp()
 
- 
- 
Method Details- 
addDevice
- 
removeDevice
- 
getConnectedDevices
- 
getDevicesMatchingConnectionStates
- 
getConnectionState
- 
setDynamicBufferSupportpublic void setDynamicBufferSupport(int type) 
- 
getDynamicBufferSupport
- 
setBufferLengthMillis
- 
getBufferLengthMillispublic 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, maxSdk=35, methodName="verifyDeviceNotNull") protected void verifyDeviceNotNull(BluetoothDevice device, String methodName) 
- 
verifyDeviceNotNullBaklava@Implementation(minSdk=36, methodName="verifyDeviceNotNull") protected static void verifyDeviceNotNullBaklava(BluetoothDevice device, String methodName) 
 
-