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

Commit 2e665a98 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Remove IMS Emergency Calling availability API

Moving to an async update model for updating
IMS emergency calling availability, so this
API is unneeded.

Bug: 74389647
Test: Telephony ImsService testapp
Change-Id: Ib7b7dc5b1438f038b370ae9faf152fb15ed4acd5
parent a33eddcd
Loading
Loading
Loading
Loading
+0 −18
Original line number Original line Diff line number Diff line
@@ -5106,24 +5106,6 @@ public class TelephonyManager {
        return null;
        return null;
    }
    }


    /**
     * Determines if emergency calling is allowed for the MMTEL feature on the slot provided.
     * @param slotIndex The SIM slot of the MMTEL feature
     * @return true if emergency calling is allowed, false otherwise.
     * @hide
     */
    public boolean isEmergencyMmTelAvailable(int slotIndex) {
        try {
            ITelephony telephony = getITelephony();
            if (telephony != null) {
                return telephony.isEmergencyMmTelAvailable(slotIndex);
            }
        } catch (RemoteException e) {
            Rlog.e(TAG, "isEmergencyMmTelAvailable, RemoteException: " + e.getMessage());
        }
        return false;
    }

    /**
    /**
     * @return true if the IMS resolver is busy resolving a binding and should not be considered
     * @return true if the IMS resolver is busy resolving a binding and should not be considered
     * available, false if the IMS resolver is idle.
     * available, false if the IMS resolver is idle.
+0 −6
Original line number Original line Diff line number Diff line
@@ -822,12 +822,6 @@ interface ITelephony {
    */
    */
    IImsConfig getImsConfig(int slotId, int feature);
    IImsConfig getImsConfig(int slotId, int feature);


    /**
    * Returns true if emergency calling is available for the MMTEL feature associated with the
    * slot specified.
    */
    boolean isEmergencyMmTelAvailable(int slotId);

    /**
    /**
     * @return true if the IMS resolver is busy resolving a binding and should not be considered
     * @return true if the IMS resolver is busy resolving a binding and should not be considered
     * available, false if the IMS resolver is idle.
     * available, false if the IMS resolver is idle.