summaryrefslogtreecommitdiffstats
path: root/telecomm/java/com/android/internal/telecomm/IInCallService.aidl
diff options
context:
space:
mode:
Diffstat (limited to 'telecomm/java/com/android/internal/telecomm/IInCallService.aidl')
-rw-r--r--telecomm/java/com/android/internal/telecomm/IInCallService.aidl58
1 files changed, 12 insertions, 46 deletions
diff --git a/telecomm/java/com/android/internal/telecomm/IInCallService.aidl b/telecomm/java/com/android/internal/telecomm/IInCallService.aidl
index 4e902a2..f5847df 100644
--- a/telecomm/java/com/android/internal/telecomm/IInCallService.aidl
+++ b/telecomm/java/com/android/internal/telecomm/IInCallService.aidl
@@ -22,64 +22,30 @@ import android.telecomm.CallInfo;
import com.android.internal.telecomm.IInCallAdapter;
/**
- * This service is implemented by any app that wishes to provide the user-interface for managing
- * phone calls. Telecomm binds to this service while there exists a live (active or incoming)
- * call, and uses it to notify the in-call app of any live and and recently disconnected calls.
- * TODO(santoscordon): Needs more/better description of lifecycle once the interface is better
- * defined.
- * TODO(santoscordon): What happens if two or more apps on a given device implement this interface?
+ * Internal remote interface for in-call services.
+ *
+ * @see android.telecomm.InCallService
+ *
* {@hide}
*/
oneway interface IInCallService {
-
- /**
- * Provides the in-call app an adapter object through which to send call-commands such as
- * answering and rejecting incoming calls, disconnecting active calls, and putting calls in
- * special states (mute, hold, etc).
- *
- * @param inCallAdapter Adapter through which an in-call app can send call-commands to Telecomm.
- */
void setInCallAdapter(in IInCallAdapter inCallAdapter);
- /**
- * Indicates to the in-call app that a new call has been created and an appropriate
- * user-interface should be built and shown to notify the user. Information about the call
- * including its current state is passed in through the callInfo object.
- *
- * @param callInfo Information about the new call.
- */
void addCall(in CallInfo callInfo);
- /**
- * Indicates to the in-call app that a call has moved to the
- * {@link android.telecomm.CallState#ACTIVE} state.
- *
- * @param callId The identifier of the call that became active.
- */
void setActive(String callId);
- /**
- * Indicates to the in-call app that a call has been moved to the
- * {@link android.telecomm.CallState#DISCONNECTED} and the user should be notified.
- *
- * @param callId The identifier of the call that was disconnected.
- * @param disconnectCause The reason for the disconnection, any of
- * {@link android.telephony.DisconnectCause}.
- */
void setDisconnected(String callId, int disconnectCause);
- /**
- * Indicates to the in-call app that a call has been moved to the
- * {@link android.telecomm.CallState#HOLD} state and the user should be notified.
- *
- * @param callId The identifier of the call that was put on hold.
- */
+ void setDialing(in String callId);
+
void setOnHold(String callId);
- /**
- * Called when the audio state changes.
- *
- * @param audioState The new {@link CallAudioState}.
- */
void onAudioStateChanged(in CallAudioState audioState);
+
+ void setRinging(String callId);
+
+ void setPostDial(String callId, String remaining);
+
+ void setPostDialWait(String callId, String remaining);
}