Loading src/com/android/server/telecom/Call.java +2 −1 Original line number Diff line number Diff line Loading @@ -1367,7 +1367,8 @@ final class Call implements CreateConnectionResponse { } public boolean getIsVoipAudioMode() { return mIsVoipAudioMode; return mIsVoipAudioMode ||((mHandle != null) ? (mHandle.getScheme() == PhoneAccount.SCHEME_SIP): false); } public void setIsVoipAudioMode(boolean audioModeIsVoip) { Loading src/com/android/server/telecom/CallActivity.java +5 −0 Original line number Diff line number Diff line Loading @@ -95,6 +95,11 @@ public class CallActivity extends Activity { Log.d(this, "isAddparticipant = "+isAddParticipant); if (isAddParticipant) { String number = PhoneNumberUtils.getNumberFromIntent(intent, this); boolean isConferenceUri = intent.getBooleanExtra( TelephonyProperties.EXTRA_DIAL_CONFERENCE_URI, false); if (!isConferenceUri) { number = PhoneNumberUtils.stripSeparators(number); } CallsManager callsManager = CallsManager.getInstance(); if (callsManager != null) { callsManager.addParticipant(number); Loading src/com/android/server/telecom/CallsManager.java +7 −1 Original line number Diff line number Diff line Loading @@ -102,6 +102,7 @@ public final class CallsManager extends Call.ListenerBase { private static final int MAXIMUM_DSDA_LIVE_CALLS = 2; private static final int MAXIMUM_DSDA_HOLD_CALLS = 2; private static final int MAXIMUM_TOP_LEVEL_CALLS = 2; private static final int MAXIMUM_DSDA_TOP_LEVEL_CALLS = 4; private static final int[] OUTGOING_CALL_STATES = {CallState.CONNECTING, CallState.DIALING}; Loading Loading @@ -1115,7 +1116,12 @@ public final class CallsManager extends Call.ListenerBase { // we could put InCallServices into a state where they are showing two calls but // also support add-call. Technically it's right, but overall looks better (UI-wise) // and acts better if we wait until the call is removed. if (count >= MAXIMUM_TOP_LEVEL_CALLS) { if (TelephonyManager.getDefault().getMultiSimConfiguration() == TelephonyManager.MultiSimVariants.DSDA) { if (count >= MAXIMUM_DSDA_TOP_LEVEL_CALLS) { return false; } } else if (count >= MAXIMUM_TOP_LEVEL_CALLS) { return false; } Loading Loading
src/com/android/server/telecom/Call.java +2 −1 Original line number Diff line number Diff line Loading @@ -1367,7 +1367,8 @@ final class Call implements CreateConnectionResponse { } public boolean getIsVoipAudioMode() { return mIsVoipAudioMode; return mIsVoipAudioMode ||((mHandle != null) ? (mHandle.getScheme() == PhoneAccount.SCHEME_SIP): false); } public void setIsVoipAudioMode(boolean audioModeIsVoip) { Loading
src/com/android/server/telecom/CallActivity.java +5 −0 Original line number Diff line number Diff line Loading @@ -95,6 +95,11 @@ public class CallActivity extends Activity { Log.d(this, "isAddparticipant = "+isAddParticipant); if (isAddParticipant) { String number = PhoneNumberUtils.getNumberFromIntent(intent, this); boolean isConferenceUri = intent.getBooleanExtra( TelephonyProperties.EXTRA_DIAL_CONFERENCE_URI, false); if (!isConferenceUri) { number = PhoneNumberUtils.stripSeparators(number); } CallsManager callsManager = CallsManager.getInstance(); if (callsManager != null) { callsManager.addParticipant(number); Loading
src/com/android/server/telecom/CallsManager.java +7 −1 Original line number Diff line number Diff line Loading @@ -102,6 +102,7 @@ public final class CallsManager extends Call.ListenerBase { private static final int MAXIMUM_DSDA_LIVE_CALLS = 2; private static final int MAXIMUM_DSDA_HOLD_CALLS = 2; private static final int MAXIMUM_TOP_LEVEL_CALLS = 2; private static final int MAXIMUM_DSDA_TOP_LEVEL_CALLS = 4; private static final int[] OUTGOING_CALL_STATES = {CallState.CONNECTING, CallState.DIALING}; Loading Loading @@ -1115,7 +1116,12 @@ public final class CallsManager extends Call.ListenerBase { // we could put InCallServices into a state where they are showing two calls but // also support add-call. Technically it's right, but overall looks better (UI-wise) // and acts better if we wait until the call is removed. if (count >= MAXIMUM_TOP_LEVEL_CALLS) { if (TelephonyManager.getDefault().getMultiSimConfiguration() == TelephonyManager.MultiSimVariants.DSDA) { if (count >= MAXIMUM_DSDA_TOP_LEVEL_CALLS) { return false; } } else if (count >= MAXIMUM_TOP_LEVEL_CALLS) { return false; } Loading