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

Commit d00b6067 authored by Amit Mahajan's avatar Amit Mahajan Committed by Android (Google) Code Review
Browse files

Merge "IMS: add the api to get IMS registration information." into lmp-mr1-dev

parents 92ae5abf 0303be4a
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -3663,4 +3663,18 @@ public class TelephonyManager {
            }
            }
        }
        }
    }
    }

   /**
    * Returns the IMS Registration Status
    *@hide
    */
   public boolean isImsRegistered() {
       try {
           return getITelephony().isImsRegistered();
       } catch (RemoteException ex) {
           return false;
       } catch (NullPointerException ex) {
           return false;
       }
   }
}
}
+4 −0
Original line number Original line Diff line number Diff line
@@ -865,4 +865,8 @@ interface ITelephony {
     * @return {@code True} if the user has enabled video calling, {@code false} otherwise.
     * @return {@code True} if the user has enabled video calling, {@code false} otherwise.
     */
     */
    boolean isVideoCallingEnabled();
    boolean isVideoCallingEnabled();
    /**
     * Get IMS Registration Status
     */
    boolean isImsRegistered();
}
}