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

Commit 5fc29ed6 authored by Nathan Harold's avatar Nathan Harold Committed by android-build-merger
Browse files

Merge "Adding hidden isWifiCallingEnabled() and isVolteEnabled()" into lmp-mr1-wfc-dev

automerge: 8ee14a24

* commit '8ee14a24':
  Adding hidden isWifiCallingEnabled() and isVolteEnabled()
parents 349868c1 8ee14a24
Loading
Loading
Loading
Loading
+28 −0
Original line number Original line Diff line number Diff line
@@ -3792,6 +3792,34 @@ public class TelephonyManager {
       }
       }
   }
   }


   /**
    * Returns the Status of Volte
    *@hide
    */
   public boolean isVolteEnabled() {
       try {
           return getITelephony().isVolteEnabled();
       } catch (RemoteException ex) {
           return false;
       } catch (NullPointerException ex) {
           return false;
       }
   }

   /**
    * Returns the Status of Wi-Fi Calling
    *@hide
    */
   public boolean isWifiCallingEnabled() {
       try {
           return getITelephony().isWifiCallingEnabled();
       } catch (RemoteException ex) {
           return false;
       } catch (NullPointerException ex) {
           return false;
       }
   }

   /**
   /**
    * Set TelephonyProperties.PROPERTY_ICC_OPERATOR_NUMERIC for the default phone.
    * Set TelephonyProperties.PROPERTY_ICC_OPERATOR_NUMERIC for the default phone.
    *
    *
+12 −0
Original line number Original line Diff line number Diff line
@@ -872,6 +872,18 @@ interface ITelephony {
     */
     */
    boolean isImsRegistered();
    boolean isImsRegistered();


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

     /**
     * Returns the Status of Volte
     *@hide
     */
    boolean isVolteEnabled();

    /**
    /**
      * Returns the unique device ID of phone, for example, the IMEI for
      * Returns the unique device ID of phone, for example, the IMEI for
      * GSM and the MEID for CDMA phones. Return null if device ID is not available.
      * GSM and the MEID for CDMA phones. Return null if device ID is not available.