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 for
InCallService.-
Constructor Summary
Constructors Constructor Description ShadowInCallService() -
Method Summary
Modifier and Type Method Description protected void__constructor__()voidaddCall(Call call)voidaddCall(ParcelableCall parcelableCall)protected booleancanAddCall()BluetoothDevicegetBluetoothAudio()protected CallAudioStategetCallAudioState()voidremoveCall(Call call)protected voidrequestBluetoothAudio(BluetoothDevice bluetoothDevice)protected voidsetAudioRoute(int audioRoute)voidsetCanAddCall(boolean canAddCall)Set the value thatcanAddCall()method should return.voidsetInCallAdapter(com.android.internal.telecom.IInCallAdapter inCallAdapter)protected voidsetMuted(boolean muted)voidupdateCall(ParcelableCall parcelableCall)Methods inherited from class org.robolectric.shadows.ShadowService
getLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isLastForegroundNotificationAttached, isStoppedBySelf, onDestroy, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResultMethods 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
-
Constructor Details
-
ShadowInCallService
public ShadowInCallService()
-
-
Method Details
-
__constructor__
-
updateCall
-
setInCallAdapter
public void setInCallAdapter(com.android.internal.telecom.IInCallAdapter inCallAdapter) -
addCall
-
addCall
-
removeCall
-
canAddCall
-
setCanAddCall
public void setCanAddCall(boolean canAddCall)Set the value thatcanAddCall()method should return. -
setMuted
-
setAudioRoute
-
getCallAudioState
-
requestBluetoothAudio
-
getBluetoothAudio
- Returns:
- the last value provided to
requestBluetoothAudio().
-