summaryrefslogtreecommitdiffstats
path: root/telecomm/java/com
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@gmail.com>2014-03-27 12:15:38 -0700
committerSantos Cordon <santoscordon@google.com>2014-03-31 14:58:11 -0700
commit20e3f02c2de4efd4ccf56112b39b6056582f283a (patch)
tree07df9350cc25ab78707a04e683ee83a31aac1e08 /telecomm/java/com
parent75e1341f890e81135eb8706c4ec362d30a6af375 (diff)
downloadframeworks_base-20e3f02c2de4efd4ccf56112b39b6056582f283a.zip
frameworks_base-20e3f02c2de4efd4ccf56112b39b6056582f283a.tar.gz
frameworks_base-20e3f02c2de4efd4ccf56112b39b6056582f283a.tar.bz2
Add disconnect cause to setDisconnected.
Change-Id: I4ba9b8f47a942b82b7a3d4bed43c0ca945957592
Diffstat (limited to 'telecomm/java/com')
-rw-r--r--telecomm/java/com/android/internal/telecomm/ICallServiceAdapter.aidl5
-rw-r--r--telecomm/java/com/android/internal/telecomm/IInCallService.aidl6
2 files changed, 7 insertions, 4 deletions
diff --git a/telecomm/java/com/android/internal/telecomm/ICallServiceAdapter.aidl b/telecomm/java/com/android/internal/telecomm/ICallServiceAdapter.aidl
index e96defe..bbf4e80 100644
--- a/telecomm/java/com/android/internal/telecomm/ICallServiceAdapter.aidl
+++ b/telecomm/java/com/android/internal/telecomm/ICallServiceAdapter.aidl
@@ -89,8 +89,11 @@ oneway interface ICallServiceAdapter {
* Sets a call's state to disconnected.
*
* @param callId The unique ID of the call whose state is changing to disconnected.
+ * @param disconnectCause The reason for the disconnection, any of
+ * {@link android.telephony.DisconnectCause}.
+ * @param disconnectMessage The call-service-provided message about the disconnect cause.
*/
- void setDisconnected(String callId);
+ void setDisconnected(String callId, int disconnectCause, String disconnectMessage);
/**
* Sets a call's state to be on hold.
diff --git a/telecomm/java/com/android/internal/telecomm/IInCallService.aidl b/telecomm/java/com/android/internal/telecomm/IInCallService.aidl
index 35498a3..4e902a2 100644
--- a/telecomm/java/com/android/internal/telecomm/IInCallService.aidl
+++ b/telecomm/java/com/android/internal/telecomm/IInCallService.aidl
@@ -61,12 +61,12 @@ oneway interface IInCallService {
/**
* 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.
- * TODO(santoscordon): Needs disconnect-cause either as a numberical constant, string or both
- * depending on what is ultimately needed to support all scenarios.
*
* @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);
+ void setDisconnected(String callId, int disconnectCause);
/**
* Indicates to the in-call app that a call has been moved to the