Package org.robolectric.shadows
Class ShadowInCallService
- java.lang.Object
-
- org.robolectric.shadows.ShadowContextWrapper
-
- org.robolectric.shadows.ShadowService
-
- org.robolectric.shadows.ShadowInCallService
-
@Implements(value=android.telecom.InCallService.class, minSdk=23) public class ShadowInCallService extends ShadowServiceShadow forInCallService.
-
-
Constructor Summary
Constructors Constructor Description ShadowInCallService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void__constructor__()voidaddCall(android.telecom.Call call)protected booleancanAddCall()android.bluetooth.BluetoothDevicegetBluetoothAudio()protected android.telecom.CallAudioStategetCallAudioState()protected voidrequestBluetoothAudio(android.bluetooth.BluetoothDevice bluetoothDevice)protected voidsetAudioRoute(int audioRoute)voidsetCanAddCall(boolean canAddCall)Set the value thatcanAddCall()method should return.protected voidsetMuted(boolean muted)-
Methods inherited from class org.robolectric.shadows.ShadowService
getLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isLastForegroundNotificationAttached, isStoppedBySelf, onDestroy, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResult
-
Methods inherited from class org.robolectric.shadows.ShadowContextWrapper
clearBroadcastIntents, clearNextStartedActivities, clearStartedServices, denyPermissions, denyPermissions, getBroadcastIntents, getBroadcastIntentsForUser, getNextStartedActivity, getNextStartedActivityForResult, getNextStartedService, getNextStoppedService, grantPermissions, grantPermissions, peekNextStartedActivity, peekNextStartedActivityForResult, peekNextStartedService, removeSystemService
-
-
-
-
Method Detail
-
__constructor__
@Implementation protected void __constructor__()
-
addCall
public void addCall(android.telecom.Call call)
-
canAddCall
@Implementation protected boolean canAddCall()
-
setCanAddCall
public void setCanAddCall(boolean canAddCall)
Set the value thatcanAddCall()method should return.
-
setMuted
@Implementation protected void setMuted(boolean muted)
-
setAudioRoute
@Implementation protected void setAudioRoute(int audioRoute)
-
getCallAudioState
@Implementation protected android.telecom.CallAudioState getCallAudioState()
-
requestBluetoothAudio
@Implementation(minSdk=28) protected void requestBluetoothAudio(android.bluetooth.BluetoothDevice bluetoothDevice)
-
getBluetoothAudio
public android.bluetooth.BluetoothDevice getBluetoothAudio()
- Returns:
- the last value provided to
requestBluetoothAudio().
-
-