Loading flags/telecom_calls_manager_flags.aconfig +0 −8 Original line number Diff line number Diff line package: "com.android.server.telecom.flags" container: "system" # OWNER=tjstuart TARGET=24Q3 flag { name: "fix_audio_flicker_for_outgoing_calls" namespace: "telecom" description: "This fix ensures the MO calls won't switch from Active to Quite b/c setDialing was not called" bug: "309540769" } # OWNER=breadley TARGET=24Q3 flag { name: "enable_call_sequencing" Loading src/com/android/server/telecom/CallsManager.java +5 −14 Original line number Diff line number Diff line Loading @@ -920,10 +920,6 @@ public class CallsManager extends Call.ListenerBase call.setPostCallPackageName(getRoleManagerAdapter().getDefaultCallScreeningApp( call.getAssociatedUser())); if (!mFeatureFlags.fixAudioFlickerForOutgoingCalls()) { setCallState(call, callState, "successful outgoing call"); } if (!mCalls.contains(call)) { // Call was not added previously in startOutgoingCall due to it being a potential MMI // code, so add it now. Loading @@ -935,7 +931,6 @@ public class CallsManager extends Call.ListenerBase listener.onConnectionServiceChanged(call, null, call.getConnectionService()); } if (mFeatureFlags.fixAudioFlickerForOutgoingCalls()) { // Allow the ConnectionService to start the call in the active state. This case is // helpful for conference calls or meetings that can skip the dialing stage. if (callState == CallState.ACTIVE) { Loading @@ -944,10 +939,6 @@ public class CallsManager extends Call.ListenerBase markCallAsDialing(call); } } else{ markCallAsDialing(call); } } @Override public void onFailedOutgoingCall(Call call, DisconnectCause disconnectCause) { Loading tests/src/com/android/server/telecom/tests/CallsManagerTest.java +0 −2 Original line number Diff line number Diff line Loading @@ -2883,7 +2883,6 @@ public class CallsManagerTest extends TelecomTestCase { @SmallTest @Test public void testOutgoingCallStateIsSetToAPreviousStateAndIgnored() { when(mFeatureFlags.fixAudioFlickerForOutgoingCalls()).thenReturn(true); Call outgoingCall = addSpyCall(CallState.CONNECTING); mCallsManager.onSuccessfulOutgoingCall(outgoingCall, CallState.NEW); verify(outgoingCall, never()).setState(eq(CallState.NEW), any()); Loading @@ -2896,7 +2895,6 @@ public class CallsManagerTest extends TelecomTestCase { @SmallTest @Test public void testOutgoingCallStateCanAvoidDialingAndGoStraightToActive() { when(mFeatureFlags.fixAudioFlickerForOutgoingCalls()).thenReturn(true); Call outgoingCall = addSpyCall(CallState.CONNECTING); mCallsManager.onSuccessfulOutgoingCall(outgoingCall, CallState.ACTIVE); verify(outgoingCall, never()).setState(eq(CallState.DIALING), any()); Loading Loading
flags/telecom_calls_manager_flags.aconfig +0 −8 Original line number Diff line number Diff line package: "com.android.server.telecom.flags" container: "system" # OWNER=tjstuart TARGET=24Q3 flag { name: "fix_audio_flicker_for_outgoing_calls" namespace: "telecom" description: "This fix ensures the MO calls won't switch from Active to Quite b/c setDialing was not called" bug: "309540769" } # OWNER=breadley TARGET=24Q3 flag { name: "enable_call_sequencing" Loading
src/com/android/server/telecom/CallsManager.java +5 −14 Original line number Diff line number Diff line Loading @@ -920,10 +920,6 @@ public class CallsManager extends Call.ListenerBase call.setPostCallPackageName(getRoleManagerAdapter().getDefaultCallScreeningApp( call.getAssociatedUser())); if (!mFeatureFlags.fixAudioFlickerForOutgoingCalls()) { setCallState(call, callState, "successful outgoing call"); } if (!mCalls.contains(call)) { // Call was not added previously in startOutgoingCall due to it being a potential MMI // code, so add it now. Loading @@ -935,7 +931,6 @@ public class CallsManager extends Call.ListenerBase listener.onConnectionServiceChanged(call, null, call.getConnectionService()); } if (mFeatureFlags.fixAudioFlickerForOutgoingCalls()) { // Allow the ConnectionService to start the call in the active state. This case is // helpful for conference calls or meetings that can skip the dialing stage. if (callState == CallState.ACTIVE) { Loading @@ -944,10 +939,6 @@ public class CallsManager extends Call.ListenerBase markCallAsDialing(call); } } else{ markCallAsDialing(call); } } @Override public void onFailedOutgoingCall(Call call, DisconnectCause disconnectCause) { Loading
tests/src/com/android/server/telecom/tests/CallsManagerTest.java +0 −2 Original line number Diff line number Diff line Loading @@ -2883,7 +2883,6 @@ public class CallsManagerTest extends TelecomTestCase { @SmallTest @Test public void testOutgoingCallStateIsSetToAPreviousStateAndIgnored() { when(mFeatureFlags.fixAudioFlickerForOutgoingCalls()).thenReturn(true); Call outgoingCall = addSpyCall(CallState.CONNECTING); mCallsManager.onSuccessfulOutgoingCall(outgoingCall, CallState.NEW); verify(outgoingCall, never()).setState(eq(CallState.NEW), any()); Loading @@ -2896,7 +2895,6 @@ public class CallsManagerTest extends TelecomTestCase { @SmallTest @Test public void testOutgoingCallStateCanAvoidDialingAndGoStraightToActive() { when(mFeatureFlags.fixAudioFlickerForOutgoingCalls()).thenReturn(true); Call outgoingCall = addSpyCall(CallState.CONNECTING); mCallsManager.onSuccessfulOutgoingCall(outgoingCall, CallState.ACTIVE); verify(outgoingCall, never()).setState(eq(CallState.DIALING), any()); Loading