diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-02-18 08:22:41 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-02-18 08:22:41 +0000 |
commit | 1f5175fcac7ab6702a05b0cd84dccbcdcff09e74 (patch) | |
tree | 890354c5ac0c7a80ed7437198d1b041588529f32 | |
parent | 809dd2b9ac340f296a7ff58bac06bfcb1f7410e6 (diff) | |
parent | 22446777c2fea5abf12b39f851ced1c7445648f4 (diff) | |
download | ims-1f5175fcac7ab6702a05b0cd84dccbcdcff09e74.tar.gz |
Snap for 4610834 from 22446777c2fea5abf12b39f851ced1c7445648f4 to pi-release
Change-Id: I72373da5df20b56cbad60493e5199ed33683fc2a
-rw-r--r-- | src/java/com/android/ims/ImsCall.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/java/com/android/ims/ImsCall.java b/src/java/com/android/ims/ImsCall.java index 1d728a1a..40d9faa2 100644 --- a/src/java/com/android/ims/ImsCall.java +++ b/src/java/com/android/ims/ImsCall.java @@ -605,6 +605,12 @@ public class ImsCall implements ICall { private int mOverrideReason = ImsReasonInfo.CODE_UNSPECIFIED; /** + * When true, if this call is incoming, it will be answered with an + * {@link ImsStreamMediaProfile} that has RTT enabled. + */ + private boolean mAnswerWithRtt = false; + + /** * Create an IMS call object. * * @param context the context for accessing system services @@ -1135,6 +1141,11 @@ public class ImsCall implements ICall { public void accept(int callType, ImsStreamMediaProfile profile) throws ImsException { logi("accept :: callType=" + callType + ", profile=" + profile); + if (mAnswerWithRtt) { + profile.mRttMode = ImsStreamMediaProfile.RTT_MODE_FULL; + logi("accept :: changing media profile RTT mode to full"); + } + synchronized(mLockObj) { if (mSession == null) { throw new ImsException("No call to answer", @@ -1681,6 +1692,10 @@ public class ImsCall implements ICall { } } + public void setAnswerWithRtt() { + mAnswerWithRtt = true; + } + private void clear(ImsReasonInfo lastReasonInfo) { mInCall = false; mHold = false; |