summaryrefslogtreecommitdiffstats
path: root/telecomm/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'telecomm/java/com')
-rw-r--r--telecomm/java/com/android/internal/telecomm/ICallService.aidl18
-rw-r--r--telecomm/java/com/android/internal/telecomm/ICallServiceAdapter.aidl7
-rw-r--r--telecomm/java/com/android/internal/telecomm/IInCallAdapter.aidl14
-rw-r--r--telecomm/java/com/android/internal/telecomm/IInCallService.aidl8
4 files changed, 46 insertions, 1 deletions
diff --git a/telecomm/java/com/android/internal/telecomm/ICallService.aidl b/telecomm/java/com/android/internal/telecomm/ICallService.aidl
index 1df3f80..d05a3e0 100644
--- a/telecomm/java/com/android/internal/telecomm/ICallService.aidl
+++ b/telecomm/java/com/android/internal/telecomm/ICallService.aidl
@@ -39,7 +39,7 @@ oneway interface ICallService {
/**
* Sets an implementation of ICallServiceAdapter which the call service can use to add new calls
* and communicate state changes of existing calls. This is the first method that is called
- * after a the framework binds to the call service.
+ * after the framework binds to the call service.
*
* @param callServiceAdapter Interface to CallsManager for adding and updating calls.
*/
@@ -120,4 +120,20 @@ oneway interface ICallService {
* @param callId The identifier of the call to disconnect.
*/
void disconnect(String callId);
+
+ /**
+ * Puts the call identified by callId on hold. Telecomm invokes this method when a call should
+ * be placed on hold per user request or because a different call was made active.
+ *
+ * @param callId The identifier of the call to put on hold.
+ */
+ void hold(String callId);
+
+ /**
+ * Removes the call identified by callId from hold. Telecomm invokes this method when a call
+ * should be removed on hold per user request or because a different call was put on hold.
+ *
+ * @param callId The identifier of the call to remove from hold.
+ */
+ void unhold(String callId);
}
diff --git a/telecomm/java/com/android/internal/telecomm/ICallServiceAdapter.aidl b/telecomm/java/com/android/internal/telecomm/ICallServiceAdapter.aidl
index 7920b64..e96defe 100644
--- a/telecomm/java/com/android/internal/telecomm/ICallServiceAdapter.aidl
+++ b/telecomm/java/com/android/internal/telecomm/ICallServiceAdapter.aidl
@@ -91,4 +91,11 @@ oneway interface ICallServiceAdapter {
* @param callId The unique ID of the call whose state is changing to disconnected.
*/
void setDisconnected(String callId);
+
+ /**
+ * Sets a call's state to be on hold.
+ *
+ * @param callId The unique ID of the call whose state is changing to be on hold.
+ */
+ void setOnHold(String callId);
}
diff --git a/telecomm/java/com/android/internal/telecomm/IInCallAdapter.aidl b/telecomm/java/com/android/internal/telecomm/IInCallAdapter.aidl
index d4e67fc..6ae055d 100644
--- a/telecomm/java/com/android/internal/telecomm/IInCallAdapter.aidl
+++ b/telecomm/java/com/android/internal/telecomm/IInCallAdapter.aidl
@@ -53,4 +53,18 @@ oneway interface IInCallAdapter {
* @param callId The identifier of the call to disconnect.
*/
void disconnectCall(String callId);
+
+ /**
+ * Instructs Telecomm to put the specified call on hold.
+ *
+ * @param callId The identifier of the call to put on hold.
+ */
+ void holdCall(String callId);
+
+ /**
+ * Instructs Telecomm to release the specified call from hold.
+ *
+ * @param callId The identifier of the call to release from hold.
+ */
+ void unholdCall(String callId);
}
diff --git a/telecomm/java/com/android/internal/telecomm/IInCallService.aidl b/telecomm/java/com/android/internal/telecomm/IInCallService.aidl
index 05b0d20..b3bd0a6 100644
--- a/telecomm/java/com/android/internal/telecomm/IInCallService.aidl
+++ b/telecomm/java/com/android/internal/telecomm/IInCallService.aidl
@@ -66,4 +66,12 @@ oneway interface IInCallService {
* @param callId The identifier of the call that was disconnected.
*/
void setDisconnected(String callId);
+
+ /**
+ * 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 setOnHold(String callId);
}