summaryrefslogtreecommitdiff
path: root/telephony/java/com/android/ims/internal/ImsCallSession.java
diff options
context:
space:
mode:
authorAnju Mathapati <anjucm@codeaurora.org>2017-01-24 11:58:28 -0800
committerAnju Mathapati <anjucm@codeaurora.org>2017-03-07 16:21:05 -0800
commit7e177da50c30b9ae56db29f373ea01ab68bfdcec (patch)
tree83f7cad279c199a7785e2534b753d48bb6117bdf /telephony/java/com/android/ims/internal/ImsCallSession.java
parent6ac19c0d23a106991e145e4530c7d08d68bfa2d3 (diff)
IMS: RTT interface changes
Changes to implement RTT feature Test: compilation Change-Id: I6ce6993f5ecc321b91642cab297efb35cda3de2b
Diffstat (limited to 'telephony/java/com/android/ims/internal/ImsCallSession.java')
-rw-r--r--telephony/java/com/android/ims/internal/ImsCallSession.java103
1 files changed, 103 insertions, 0 deletions
diff --git a/telephony/java/com/android/ims/internal/ImsCallSession.java b/telephony/java/com/android/ims/internal/ImsCallSession.java
index 8196b2367ce9..f20f7c881958 100644
--- a/telephony/java/com/android/ims/internal/ImsCallSession.java
+++ b/telephony/java/com/android/ims/internal/ImsCallSession.java
@@ -403,6 +403,28 @@ public class ImsCallSession {
public void callSessionSuppServiceReceived(ImsCallSession session,
ImsSuppServiceNotification suppServiceInfo) {
}
+
+ /**
+ * Received RTT modify request from Remote Party
+ */
+ public void callSessionRttModifyRequestReceived(ImsCallSession session,
+ ImsCallProfile callProfile) {
+ // no-op
+ }
+
+ /**
+ * Received response for RTT modify request
+ */
+ public void callSessionRttModifyResponseReceived(int status) {
+ // no -op
+ }
+
+ /**
+ * Device received RTT message from Remote UE
+ */
+ public void callSessionRttMessageReceived(String rttMessage) {
+ // no-op
+ }
}
private final IImsCallSession miSession;
@@ -944,6 +966,57 @@ public class ImsCallSession {
}
/**
+ * Sends Rtt Message
+ *
+ * @param rttMessage rtt text to be sent
+ * @throws ImsException if call is absent
+ */
+ public void sendRttMessage(String rttMessage) {
+ if (mClosed) {
+ return;
+ }
+
+ try {
+ miSession.sendRttMessage(rttMessage);
+ } catch (RemoteException e) {
+ }
+ }
+
+ /**
+ * Sends RTT Upgrade request
+ *
+ * @param to : expected profile
+ * @throws CallStateException
+ */
+ public void sendRttModifyRequest(ImsCallProfile to) {
+ if (mClosed) {
+ return;
+ }
+
+ try {
+ miSession.sendRttModifyRequest(to);
+ } catch (RemoteException e) {
+ }
+ }
+
+ /**
+ * Sends RTT Upgrade response
+ *
+ * @param response : response for upgrade
+ * @throws CallStateException
+ */
+ public void sendRttModifyResponse(boolean response) {
+ if (mClosed) {
+ return;
+ }
+
+ try {
+ miSession.sendRttModifyResponse(response);
+ } catch (RemoteException e) {
+ }
+ }
+
+ /**
* A listener type for receiving notification on IMS call session events.
* When an event is generated for an {@link IImsCallSession},
* the application is notified by having one of the methods called on
@@ -1267,6 +1340,36 @@ public class ImsCallSession {
}
}
+ /**
+ * Received RTT modify request from remote party
+ */
+ @Override
+ public void callSessionRttModifyRequestReceived(IImsCallSession session,
+ ImsCallProfile callProfile) {
+ if (mListener != null) {
+ mListener.callSessionRttModifyRequestReceived(ImsCallSession.this, callProfile);
+ }
+ }
+
+ /**
+ * Received response for RTT modify request
+ */
+ @Override
+ public void callSessionRttModifyResponseReceived(int status) {
+ if (mListener != null) {
+ mListener.callSessionRttModifyResponseReceived(status);
+ }
+ }
+
+ /**
+ * RTT Message received
+ */
+ @Override
+ public void callSessionRttMessageReceived(String rttMessage) {
+ if (mListener != null) {
+ mListener.callSessionRttMessageReceived(rttMessage);
+ }
+ }
}
/**