diff options
author | Hall Liu <hallliu@google.com> | 2017-01-25 17:12:49 -0800 |
---|---|---|
committer | Hall Liu <hallliu@google.com> | 2017-02-21 15:27:25 -0800 |
commit | 95d5587d0aad9dfd49f798408f4212f95ce68fc7 (patch) | |
tree | 3ab3c4797dfb6ba2d7e7c40c2f5da8a5701cdb52 /telecomm/java/android/telecom/InCallService.java | |
parent | 975be6c065b7b6ad256fae945551005156412073 (diff) |
Introduce APIs for RTT calls (part 1)
Add signaling methods and data pipes for handling real-time text during
a call.
Change-Id: I876827c448252c5f786d7a4919c47891acb03877
Test: manual, through telecom testapps
Diffstat (limited to 'telecomm/java/android/telecom/InCallService.java')
-rw-r--r-- | telecomm/java/android/telecom/InCallService.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/InCallService.java b/telecomm/java/android/telecom/InCallService.java index 5d68aaeda988..4bc64c05bfee 100644 --- a/telecomm/java/android/telecom/InCallService.java +++ b/telecomm/java/android/telecom/InCallService.java @@ -76,6 +76,7 @@ public abstract class InCallService extends Service { private static final int MSG_ON_CAN_ADD_CALL_CHANGED = 7; private static final int MSG_SILENCE_RINGER = 8; private static final int MSG_ON_CONNECTION_EVENT = 9; + private static final int MSG_ON_RTT_UPGRADE_REQUEST = 10; /** Default Handler used to consolidate binder method calls onto a single thread. */ private final Handler mHandler = new Handler(Looper.getMainLooper()) { @@ -133,6 +134,12 @@ public abstract class InCallService extends Service { } break; } + case MSG_ON_RTT_UPGRADE_REQUEST: { + String callId = (String) msg.obj; + int requestId = msg.arg1; + mPhone.internalOnRttUpgradeRequest(callId, requestId); + break; + } default: break; } @@ -198,6 +205,11 @@ public abstract class InCallService extends Service { args.arg3 = extras; mHandler.obtainMessage(MSG_ON_CONNECTION_EVENT, args).sendToTarget(); } + + @Override + public void onRttUpgradeRequest(String callId, int id) { + mHandler.obtainMessage(MSG_ON_RTT_UPGRADE_REQUEST, id, 0, callId).sendToTarget(); + } } private Phone.Listener mPhoneListener = new Phone.Listener() { |