Loading telephony/java/android/telephony/TelephonyManager.java +13 −5 Original line number Diff line number Diff line Loading @@ -12239,9 +12239,10 @@ public class TelephonyManager { * @param subId Subscription ID * @return true if IMS status is registered, false if the IMS status is not registered or a * RemoteException occurred. * Use {@link ImsMmTelManager.RegistrationCallback} instead. * @hide * @deprecated Use {@link ImsMmTelManager#getRegistrationState(Executor, Consumer)} instead. */ @Deprecated public boolean isImsRegistered(int subId) { try { return getITelephony().isImsRegistered(subId); Loading @@ -12259,8 +12260,10 @@ public class TelephonyManager { * @return true if IMS status is registered, false if the IMS status is not registered or a * RemoteException occurred. * @see SubscriptionManager#getDefaultSubscriptionId() * @deprecated Use {@link ImsMmTelManager#getRegistrationState(Executor, Consumer)} instead. * @hide */ @Deprecated @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) public boolean isImsRegistered() { try { Loading @@ -12277,9 +12280,10 @@ public class TelephonyManager { * @return true if Voice over LTE is available or false if it is unavailable or unknown. * @see SubscriptionManager#getDefaultSubscriptionId() * <p> * Use {@link ImsMmTelManager#isAvailable(int, int)} instead. * @Deprecated Use {@link ImsMmTelManager#isAvailable(int, int)} instead. * @hide */ @Deprecated @UnsupportedAppUsage public boolean isVolteAvailable() { try { Loading @@ -12297,9 +12301,10 @@ public class TelephonyManager { * used during creation, the default subscription ID will be used. To query the * underlying technology that VT is available on, use {@link #getImsRegTechnologyForMmTel}. * @return true if VT is available, or false if it is unavailable or unknown. * Use {@link ImsMmTelManager#isAvailable(int, int)} instead. * @Deprecated Use {@link ImsMmTelManager#isAvailable(int, int)} instead. * @hide */ @Deprecated @UnsupportedAppUsage public boolean isVideoTelephonyAvailable() { try { Loading @@ -12313,9 +12318,10 @@ public class TelephonyManager { * Returns the Status of Wi-Fi calling (Voice over WiFi) for the subscription ID specified. * @param subId the subscription ID. * @return true if VoWiFi is available, or false if it is unavailable or unknown. * Use {@link ImsMmTelManager#isAvailable(int, int)} instead. * @Deprecated Use {@link ImsMmTelManager#isAvailable(int, int)} instead. * @hide */ @Deprecated @UnsupportedAppUsage public boolean isWifiCallingAvailable() { try { Loading @@ -12336,9 +12342,11 @@ public class TelephonyManager { * other sim's internet, or * - {@link ImsRegistrationImplBase#REGISTRATION_TECH_NONE} if we are not registered or the * result is unavailable. * Use {@link ImsMmTelManager.RegistrationCallback} instead. * @Deprecated Use {@link ImsMmTelManager#registerImsRegistrationCallback(Executor, RegistrationCallback)} * or {@link ImsMmTelManager#getRegistrationTransportType(Executor, Consumer)} instead. * @hide */ @Deprecated public @ImsRegistrationImplBase.ImsRegistrationTech int getImsRegTechnologyForMmTel() { try { return getITelephony().getImsRegTechnologyForMmTel(getSubId()); Loading Loading
telephony/java/android/telephony/TelephonyManager.java +13 −5 Original line number Diff line number Diff line Loading @@ -12239,9 +12239,10 @@ public class TelephonyManager { * @param subId Subscription ID * @return true if IMS status is registered, false if the IMS status is not registered or a * RemoteException occurred. * Use {@link ImsMmTelManager.RegistrationCallback} instead. * @hide * @deprecated Use {@link ImsMmTelManager#getRegistrationState(Executor, Consumer)} instead. */ @Deprecated public boolean isImsRegistered(int subId) { try { return getITelephony().isImsRegistered(subId); Loading @@ -12259,8 +12260,10 @@ public class TelephonyManager { * @return true if IMS status is registered, false if the IMS status is not registered or a * RemoteException occurred. * @see SubscriptionManager#getDefaultSubscriptionId() * @deprecated Use {@link ImsMmTelManager#getRegistrationState(Executor, Consumer)} instead. * @hide */ @Deprecated @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) public boolean isImsRegistered() { try { Loading @@ -12277,9 +12280,10 @@ public class TelephonyManager { * @return true if Voice over LTE is available or false if it is unavailable or unknown. * @see SubscriptionManager#getDefaultSubscriptionId() * <p> * Use {@link ImsMmTelManager#isAvailable(int, int)} instead. * @Deprecated Use {@link ImsMmTelManager#isAvailable(int, int)} instead. * @hide */ @Deprecated @UnsupportedAppUsage public boolean isVolteAvailable() { try { Loading @@ -12297,9 +12301,10 @@ public class TelephonyManager { * used during creation, the default subscription ID will be used. To query the * underlying technology that VT is available on, use {@link #getImsRegTechnologyForMmTel}. * @return true if VT is available, or false if it is unavailable or unknown. * Use {@link ImsMmTelManager#isAvailable(int, int)} instead. * @Deprecated Use {@link ImsMmTelManager#isAvailable(int, int)} instead. * @hide */ @Deprecated @UnsupportedAppUsage public boolean isVideoTelephonyAvailable() { try { Loading @@ -12313,9 +12318,10 @@ public class TelephonyManager { * Returns the Status of Wi-Fi calling (Voice over WiFi) for the subscription ID specified. * @param subId the subscription ID. * @return true if VoWiFi is available, or false if it is unavailable or unknown. * Use {@link ImsMmTelManager#isAvailable(int, int)} instead. * @Deprecated Use {@link ImsMmTelManager#isAvailable(int, int)} instead. * @hide */ @Deprecated @UnsupportedAppUsage public boolean isWifiCallingAvailable() { try { Loading @@ -12336,9 +12342,11 @@ public class TelephonyManager { * other sim's internet, or * - {@link ImsRegistrationImplBase#REGISTRATION_TECH_NONE} if we are not registered or the * result is unavailable. * Use {@link ImsMmTelManager.RegistrationCallback} instead. * @Deprecated Use {@link ImsMmTelManager#registerImsRegistrationCallback(Executor, RegistrationCallback)} * or {@link ImsMmTelManager#getRegistrationTransportType(Executor, Consumer)} instead. * @hide */ @Deprecated public @ImsRegistrationImplBase.ImsRegistrationTech int getImsRegTechnologyForMmTel() { try { return getITelephony().getImsRegTechnologyForMmTel(getSubId()); Loading