diff options
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() { |