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

Commit b304fc0a authored by Etan Cohen's avatar Etan Cohen
Browse files

Rename VoLTE/WFC enable API to available - add VT available API.

Renamed API to use consistent semantics: available refers to the current
state of the service rather then whether feature is enabled by device/carrier/
user.

Added VT API to match VoLTE/WFC.

Change-Id: Ifb31f123db77e731e75a982b8594168f59a289e7
parent d8c2bbcf
Loading
Loading
Loading
Loading
+26 −12
Original line number Diff line number Diff line
@@ -4289,9 +4289,23 @@ public class TelephonyManager {
     * Returns the Status of Volte
     * @hide
     */
   public boolean isVolteEnabled() {
    public boolean isVolteAvailable() {
       try {
           return getITelephony().isVolteEnabled();
           return getITelephony().isVolteAvailable();
       } catch (RemoteException ex) {
           return false;
       } catch (NullPointerException ex) {
           return false;
       }
   }

    /**
     * Returns the Status of video telephony (VT)
     * @hide
     */
    public boolean isVideoTelephonyAvailable() {
        try {
            return getITelephony().isVideoTelephonyAvailable();
        } catch (RemoteException ex) {
            return false;
        } catch (NullPointerException ex) {
@@ -4303,9 +4317,9 @@ public class TelephonyManager {
     * Returns the Status of Wi-Fi Calling
     * @hide
     */
   public boolean isWifiCallingEnabled() {
    public boolean isWifiCallingAvailable() {
       try {
           return getITelephony().isWifiCallingEnabled();
           return getITelephony().isWifiCallingAvailable();
       } catch (RemoteException ex) {
           return false;
       } catch (NullPointerException ex) {
+9 −6
Original line number Diff line number Diff line
@@ -936,6 +936,7 @@ interface ITelephony {
     * @return {@code true} if the device supports hearing aid compatibility.
     */
    boolean isHearingAidCompatibilitySupported();

    /**
     * Get IMS Registration Status
     */
@@ -943,15 +944,18 @@ interface ITelephony {

    /**
     * Returns the Status of Wi-Fi Calling
     *@hide
     */
    boolean isWifiCallingEnabled();
    boolean isWifiCallingAvailable();
    
    /**
     * Returns the Status of Volte
     *@hide
     */
    boolean isVolteEnabled();
    boolean isVolteAvailable();

     /**
     * Returns the Status of VT (video telephony)
     */
    boolean isVideoTelephonyAvailable();

    /**
      * Returns the unique device ID of phone, for example, the IMEI for
@@ -980,7 +984,6 @@ interface ITelephony {

    /**
     * Return the modem activity info.
     *@hide
     */
    ModemActivityInfo getModemActivityInfo();
}