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

Commit 3cc11351 authored by Nathan Harold's avatar Nathan Harold
Browse files

Remove calls to getLteOnCdmaModeStatic()

Read the sysprop directly instead. The rest of the
functionality has been removed.

Bug: 138225216
Test: compilation
Change-Id: Id44089dec29d4fea344ebd3c8d6470d69ec0d16e
parent 17b05cb6
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -891,14 +891,6 @@ public abstract class BaseCommands implements CommandsInterface {
        }
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int getLteOnCdmaMode() {
        return TelephonyManager.getLteOnCdmaModeStatic();
    }

    /**
     * {@inheritDoc}
     */
+0 −10
Original line number Diff line number Diff line
@@ -1886,16 +1886,6 @@ public interface CommandsInterface {
     */
    void setLogicalToPhysicalSlotMapping(int[] physicalSlots, Message result);

    /**
     * Return if the current radio is LTE on CDMA. This
     * is a tri-state return value as for a period of time
     * the mode may be unknown.
     *
     * @return {@link PhoneConstants#LTE_ON_CDMA_UNKNOWN}, {@link PhoneConstants#LTE_ON_CDMA_FALSE}
     * or {@link PhoneConstants#LTE_ON_CDMA_TRUE}
     */
    public int getLteOnCdmaMode();

    /**
     * Request the SIM application on the UICC to perform authentication
     * challenge/response algorithm. The data string and challenge response are
+2 −2
Original line number Diff line number Diff line
@@ -4348,9 +4348,9 @@ public class GsmCdmaPhone extends Phone {
        return mWakeLock;
    }

    @Override
    public int getLteOnCdmaMode() {
        int currentConfig = super.getLteOnCdmaMode();
        int currentConfig = TelephonyProperties.lte_on_cdma_device()
                .orElse(PhoneConstants.LTE_ON_CDMA_FALSE);
        int lteOnCdmaModeDynamicValue = currentConfig;

        UiccCardApplication cdmaApplication =
+0 −12
Original line number Diff line number Diff line
@@ -3459,18 +3459,6 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
        mNotifier.notifyDataConnectionFailed(this, apnType, apn, failCause);
    }

    /**
     * Return if the current radio is LTE on CDMA. This
     * is a tri-state return value as for a period of time
     * the mode may be unknown.
     *
     * @return {@link PhoneConstants#LTE_ON_CDMA_UNKNOWN}, {@link PhoneConstants#LTE_ON_CDMA_FALSE}
     * or {@link PhoneConstants#LTE_ON_CDMA_TRUE}
     */
    public int getLteOnCdmaMode() {
        return mCi.getLteOnCdmaMode();
    }

    /**
     * Sets the SIM voice message waiting indicator records.
     * @param line GSM Subscriber Profile Number, one-based. Only '1' is supported
+0 −5
Original line number Diff line number Diff line
@@ -1222,11 +1222,6 @@ public class SimulatedCommandsVerifier implements CommandsInterface {
    public void setLogicalToPhysicalSlotMapping(int[] physicalSlots, Message result) {
    }

    @Override
    public int getLteOnCdmaMode() {
        return 0;
    }

    @Override
    public void requestIccSimAuthentication(int authContext, String data, String aid,
                                            Message response) {