Loading src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java +1 −0 Original line number Diff line number Diff line Loading @@ -2127,6 +2127,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { } ImsPhoneConnection conn = findConnection(imsCall); if (conn != null) { if (DBG) log("onCallUpdated: profile is " + imsCall.getCallProfile()); processCallStateChange(imsCall, conn.getCall().mState, DisconnectCause.NOT_DISCONNECTED, true /*ignore state update*/); mMetrics.writeImsCallState(mPhone.getPhoneId(), Loading src/java/com/android/internal/telephony/imsphone/ImsPhoneConnection.java +9 −3 Original line number Diff line number Diff line Loading @@ -105,6 +105,8 @@ public class ImsPhoneConnection extends Connection implements private ImsRttTextHandler mRttTextHandler; private android.telecom.Connection.RttTextStream mRttTextStream; // This reflects the RTT status as reported to us by the IMS stack via the media profile. private boolean mIsRttEnabledForCall = false; /** * Used to indicate that this call is in the midst of being merged into a conference. Loading Loading @@ -893,15 +895,15 @@ public class ImsPhoneConnection extends Connection implements } if (negotiatedCallProfile.mMediaProfile != null) { boolean isRttOn = negotiatedCallProfile.mMediaProfile.isRttCall(); mIsRttEnabledForCall = negotiatedCallProfile.mMediaProfile.isRttCall(); if (isRttOn && mRttTextHandler == null) { if (mIsRttEnabledForCall && mRttTextHandler == null) { Rlog.d(LOG_TAG, "updateMediaCapabilities -- turning RTT on, profile=" + negotiatedCallProfile); startRttTextProcessing(); onRttInitiated(); changed = true; } else if (!isRttOn && mRttTextHandler != null) { } else if (!mIsRttEnabledForCall && mRttTextHandler != null) { Rlog.d(LOG_TAG, "updateMediaCapabilities -- turning RTT off, profile=" + negotiatedCallProfile); mRttTextHandler.tearDown(); Loading Loading @@ -1001,6 +1003,10 @@ public class ImsPhoneConnection extends Connection implements return mRttTextStream != null; } public boolean isRttEnabledForCall() { return mIsRttEnabledForCall; } public void startRttTextProcessing() { if (mRttTextStream == null) { Rlog.w(LOG_TAG, "startRttTextProcessing: no RTT text stream. Ignoring."); Loading src/java/com/android/internal/telephony/imsphone/ImsRttTextHandler.java +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ public class ImsRttTextHandler extends Handler { // limiter. msg.arg1 should be set to N. private static final int EXPIRE_SENT_CODEPOINT_COUNT = 5; // Indicates that the call is over and we should teardown everything we have set up. private static final int TEARDOWN = 6; private static final int TEARDOWN = 9999; private Connection.RttTextStream mRttTextStream; // For synchronization during testing Loading Loading
src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java +1 −0 Original line number Diff line number Diff line Loading @@ -2127,6 +2127,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { } ImsPhoneConnection conn = findConnection(imsCall); if (conn != null) { if (DBG) log("onCallUpdated: profile is " + imsCall.getCallProfile()); processCallStateChange(imsCall, conn.getCall().mState, DisconnectCause.NOT_DISCONNECTED, true /*ignore state update*/); mMetrics.writeImsCallState(mPhone.getPhoneId(), Loading
src/java/com/android/internal/telephony/imsphone/ImsPhoneConnection.java +9 −3 Original line number Diff line number Diff line Loading @@ -105,6 +105,8 @@ public class ImsPhoneConnection extends Connection implements private ImsRttTextHandler mRttTextHandler; private android.telecom.Connection.RttTextStream mRttTextStream; // This reflects the RTT status as reported to us by the IMS stack via the media profile. private boolean mIsRttEnabledForCall = false; /** * Used to indicate that this call is in the midst of being merged into a conference. Loading Loading @@ -893,15 +895,15 @@ public class ImsPhoneConnection extends Connection implements } if (negotiatedCallProfile.mMediaProfile != null) { boolean isRttOn = negotiatedCallProfile.mMediaProfile.isRttCall(); mIsRttEnabledForCall = negotiatedCallProfile.mMediaProfile.isRttCall(); if (isRttOn && mRttTextHandler == null) { if (mIsRttEnabledForCall && mRttTextHandler == null) { Rlog.d(LOG_TAG, "updateMediaCapabilities -- turning RTT on, profile=" + negotiatedCallProfile); startRttTextProcessing(); onRttInitiated(); changed = true; } else if (!isRttOn && mRttTextHandler != null) { } else if (!mIsRttEnabledForCall && mRttTextHandler != null) { Rlog.d(LOG_TAG, "updateMediaCapabilities -- turning RTT off, profile=" + negotiatedCallProfile); mRttTextHandler.tearDown(); Loading Loading @@ -1001,6 +1003,10 @@ public class ImsPhoneConnection extends Connection implements return mRttTextStream != null; } public boolean isRttEnabledForCall() { return mIsRttEnabledForCall; } public void startRttTextProcessing() { if (mRttTextStream == null) { Rlog.w(LOG_TAG, "startRttTextProcessing: no RTT text stream. Ignoring."); Loading
src/java/com/android/internal/telephony/imsphone/ImsRttTextHandler.java +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ public class ImsRttTextHandler extends Handler { // limiter. msg.arg1 should be set to N. private static final int EXPIRE_SENT_CODEPOINT_COUNT = 5; // Indicates that the call is over and we should teardown everything we have set up. private static final int TEARDOWN = 6; private static final int TEARDOWN = 9999; private Connection.RttTextStream mRttTextStream; // For synchronization during testing Loading