Class ShadowInCallService


@Implements(value=android.telecom.InCallService.class, minSdk=23) public class ShadowInCallService extends ShadowService
Shadow for InCallService.
  • Constructor Details

    • ShadowInCallService

      public ShadowInCallService()
  • Method Details

    • __constructor__

      @Implementation protected void __constructor__()
    • addCall

      public void addCall(Call call)
    • addCall

      public void addCall(ParcelableCall parcelableCall)
    • setPostDialWait

      public void setPostDialWait(String callId, String remaining)
      Exposes IIInCallService.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)
      Exposes IIInCallService.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 that canAddCall() 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().