Class ShadowCallLogCalls


  • @Implements(android.provider.CallLog.Calls.class)
    public class ShadowCallLogCalls
    extends java.lang.Object
    Shadow for the system's CallLog.Call class that allows tests to configure the most recent call.
    • Constructor Detail

      • ShadowCallLogCalls

        public ShadowCallLogCalls()
    • Method Detail

      • getLastOutgoingCall

        @Implementation
        protected static java.lang.String getLastOutgoingCall​(android.content.Context context)
        Gets the last outgoing call String set by setLastOutgoingCall(String).
        Parameters:
        context - A Context object not used
        Returns:
        The last outgoing call set by setLastOutgoingCall(String)
      • setLastOutgoingCall

        public static void setLastOutgoingCall​(java.lang.String lastCall)
        Sets a last outgoing call that can later be retrieved by getLastOutgoingCall(Context).
        Parameters:
        lastCall - The last outgoing call String.
      • reset

        @Resetter
        public static void reset()