Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0cc8962 authored by Thomas Stuart's avatar Thomas Stuart
Browse files

rm fix_audio_flicker_for_outgoing_calls flag

This CL removes the fix_audio_flicker_for_outgoing_calls flag as a
part of a larger flag cleanup effort.

Flag: EXEMPT flag cleanup
Bug: 24642711 (original unflagged changes)
Bug: 25300192 (CL to flag original unlfagged changes later on)
Fixes: 409611484 (flag removal bug)
Test: build + atest TelecomUnitTests
Change-Id: I7cac3339326a092d6fc57aebec870c1207e32a89
parent ba06d8e3
Loading
Loading
Loading
Loading
+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"
+5 −14
Original line number Diff line number Diff line
@@ -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.
@@ -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) {
@@ -944,10 +939,6 @@ public class CallsManager extends Call.ListenerBase
            markCallAsDialing(call);
        }
    }
        else{
            markCallAsDialing(call);
        }
    }

    @Override
    public void onFailedOutgoingCall(Call call, DisconnectCause disconnectCause) {
+0 −2
Original line number Diff line number Diff line
@@ -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());
@@ -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());