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 ShadowService
Shadow forInCallService
.
-
-
Constructor Summary
Constructors Constructor Description ShadowInCallService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
__constructor__()
void
addCall(Call call)
void
addCall(ParcelableCall parcelableCall)
protected boolean
canAddCall()
BluetoothDevice
getBluetoothAudio()
protected CallAudioState
getCallAudioState()
void
onConnectionEvent(String callId, String event, Bundle extras)
ExposesIIInCallService.Stub#onConnectionEvent
.void
removeCall(Call call)
protected void
requestBluetoothAudio(BluetoothDevice bluetoothDevice)
protected void
setAudioRoute(int audioRoute)
void
setCanAddCall(boolean canAddCall)
Set the value thatcanAddCall()
method should return.void
setInCallAdapter(com.android.internal.telecom.IInCallAdapter inCallAdapter)
protected void
setMuted(boolean muted)
void
setPostDialWait(String callId, String remaining)
ExposesIIInCallService.Stub#setPostDialWait
.void
setSupportedRouteMask(int mask)
void
updateCall(ParcelableCall parcelableCall)
-
Methods inherited from class org.robolectric.shadows.ShadowService
getForegroundServiceType, getLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isLastForegroundNotificationAttached, isStoppedBySelf, onDestroy, startForeground, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResult
-
Methods inherited from class org.robolectric.shadows.ShadowContextWrapper
clearBroadcastIntents, clearNextStartedActivities, clearStartedServices, denyPermissions, denyPermissions, getAllStartedServices, getBroadcastIntents, getBroadcastIntentsForUser, getBroadcastOptions, getNextStartedActivity, getNextStartedActivityForResult, getNextStartedService, getNextStoppedService, grantPermissions, grantPermissions, peekNextStartedActivity, peekNextStartedActivityForResult, peekNextStartedService, removeSystemService
-
-
-
-
Method Detail
-
__constructor__
@Implementation protected void __constructor__()
-
updateCall
public void updateCall(ParcelableCall parcelableCall)
-
setInCallAdapter
public void setInCallAdapter(com.android.internal.telecom.IInCallAdapter inCallAdapter)
-
addCall
public void addCall(Call call)
-
addCall
public void addCall(ParcelableCall parcelableCall)
-
setPostDialWait
public void setPostDialWait(String callId, String remaining)
ExposesIIInCallService.Stub#setPostDialWait
. This is normally invoked by Telecom but in Robolectric, Telecom doesn't exist, so tests can invoke this to simulate Telecom's actions.
-
onConnectionEvent
public void onConnectionEvent(String callId, String event, Bundle extras)
ExposesIIInCallService.Stub#onConnectionEvent
. This is normally invoked by Telecom but in Robolectric, Telecom doesn't exist, so tests can invoke this to simulate Telecom's actions.
-
removeCall
public void removeCall(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 CallAudioState getCallAudioState()
-
setSupportedRouteMask
public void setSupportedRouteMask(int mask)
-
requestBluetoothAudio
@Implementation(minSdk=28) protected void requestBluetoothAudio(BluetoothDevice bluetoothDevice)
-
getBluetoothAudio
public BluetoothDevice getBluetoothAudio()
- Returns:
- the last value provided to
requestBluetoothAudio()
.
-
-