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

Commit d868b495 authored by Tyler Gunn's avatar Tyler Gunn Committed by android-build-merger
Browse files

Merge "Change getCallForwardingOption to specify voice service class."

am: 0f34557b

Change-Id: Ib000c0a09b1bed540d0f825de919cc9c49bcdf6e
parents dcdd1238 0f34557b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1704,7 +1704,8 @@ public class GsmCdmaPhone extends Phone {
                } else {
                    resp = onComplete;
                }
                mCi.queryCallForwardStatus(commandInterfaceCFReason, 0, null, resp);
                mCi.queryCallForwardStatus(commandInterfaceCFReason,
                        CommandsInterface.SERVICE_CLASS_VOICE, null, resp);
            }
        } else {
            loge("getCallForwardingOption: not possible in CDMA");
+2 −2
Original line number Diff line number Diff line
@@ -475,8 +475,8 @@ public class GsmCdmaPhoneTest extends TelephonyTest {
        doReturn(imsi).when(mSimRecords).getIMSI();
        mPhoneUT.getCallForwardingOption(CF_REASON_UNCONDITIONAL, null);
        verify(mSimulatedCommandsVerifier).queryCallForwardStatus(
                eq(CF_REASON_UNCONDITIONAL), anyInt(), nullable(String.class),
                nullable(Message.class));
                eq(CF_REASON_UNCONDITIONAL), eq(CommandsInterface.SERVICE_CLASS_VOICE),
                nullable(String.class), nullable(Message.class));
        waitForMs(50);
        verify(mSimRecords).setVoiceCallForwardingFlag(anyInt(), anyBoolean(),
                nullable(String.class));