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

Commit 40678290 authored by Etan Cohen's avatar Etan Cohen Committed by Android (Google) Code Review
Browse files

Merge "Rename VoLTE/WFC enable API to available - add VT available API." into mnc-vt-dev

parents 70e84bd1 a107edd2
Loading
Loading
Loading
Loading
+26 −12
Original line number Diff line number Diff line
@@ -4188,9 +4188,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) {
@@ -4202,9 +4216,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 −3
Original line number Diff line number Diff line
@@ -921,13 +921,19 @@ 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)
     *@hide
     */
    boolean isVideoTelephonyAvailable();

    /**
      * Returns the unique device ID of phone, for example, the IMEI for