Class ShadowInCallService

    • Constructor Detail

      • ShadowInCallService

        public ShadowInCallService()
    • Method Detail

      • updateCall

        public void updateCall​(ParcelableCall parcelableCall)
      • setInCallAdapter

        public void setInCallAdapter​(com.android.internal.telecom.IInCallAdapter inCallAdapter)
      • addCall

        public void addCall​(Call call)
      • 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)
      • setCanAddCall

        public void setCanAddCall​(boolean canAddCall)
        Set the value that canAddCall() method should return.
      • setAudioRoute

        @Implementation
        protected void setAudioRoute​(int audioRoute)
      • setSupportedRouteMask

        public void setSupportedRouteMask​(int mask)
      • getBluetoothAudio

        public BluetoothDevice getBluetoothAudio()
        Returns:
        the last value provided to requestBluetoothAudio().