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(maxSdk=34) protected void __constructor__()
    • addCall

      @Deprecated public void addCall(Call call)
      Deprecated.
      Please add calls by adding a Call using InCallService.InCallServiceBinder.
    • 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

      @Deprecated public void removeCall(Call call)
      Deprecated.
      Please remove calls by invoking Call.disconnect().
    • 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().