Loading api/system-current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -5299,7 +5299,10 @@ package android.telephony { method public boolean handlePinMmi(java.lang.String); method public boolean handlePinMmiForSubscriber(int, java.lang.String); method public boolean isDataConnectivityPossible(); method public deprecated boolean isIdle(); method public deprecated boolean isOffhook(); method public deprecated boolean isRadioOn(); method public deprecated boolean isRinging(); method public boolean isVideoCallingEnabled(); method public deprecated boolean isVisualVoicemailEnabled(android.telecom.PhoneAccountHandle); method public boolean needsOtaServiceProvisioning(); Loading api/system-removed.txt +0 −3 Original line number Diff line number Diff line Loading @@ -148,9 +148,6 @@ package android.telephony { public class TelephonyManager { method public deprecated void answerRingingCall(); method public deprecated boolean endCall(); method public deprecated boolean isIdle(); method public deprecated boolean isOffhook(); method public deprecated boolean isRinging(); method public deprecated void silenceRinger(); } Loading telephony/java/android/telephony/TelephonyManager.java +9 −6 Original line number Diff line number Diff line Loading @@ -6571,7 +6571,7 @@ public class TelephonyManager { } /** * @removed Use {@link android.telecom.TelecomManager#isInCall} instead * @deprecated Use {@link android.telecom.TelecomManager#isInCall} instead * @hide */ @Deprecated Loading @@ -6581,11 +6581,12 @@ public class TelephonyManager { android.Manifest.permission.READ_PHONE_STATE }) public boolean isOffhook() { return false; TelecomManager tm = (TelecomManager) mContext.getSystemService(TELECOM_SERVICE); return tm.isInCall(); } /** * @removed Use {@link android.telecom.TelecomManager#isRinging} instead * @deprecated Use {@link android.telecom.TelecomManager#isRinging} instead * @hide */ @Deprecated Loading @@ -6595,11 +6596,12 @@ public class TelephonyManager { android.Manifest.permission.READ_PHONE_STATE }) public boolean isRinging() { return false; TelecomManager tm = (TelecomManager) mContext.getSystemService(TELECOM_SERVICE); return tm.isRinging(); } /** * @removed Use {@link android.telecom.TelecomManager#isInCall} instead * @deprecated Use {@link android.telecom.TelecomManager#isInCall} instead * @hide */ @Deprecated Loading @@ -6609,7 +6611,8 @@ public class TelephonyManager { android.Manifest.permission.READ_PHONE_STATE }) public boolean isIdle() { return true; TelecomManager tm = (TelecomManager) mContext.getSystemService(TELECOM_SERVICE); return !tm.isInCall(); } /** Loading Loading
api/system-current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -5299,7 +5299,10 @@ package android.telephony { method public boolean handlePinMmi(java.lang.String); method public boolean handlePinMmiForSubscriber(int, java.lang.String); method public boolean isDataConnectivityPossible(); method public deprecated boolean isIdle(); method public deprecated boolean isOffhook(); method public deprecated boolean isRadioOn(); method public deprecated boolean isRinging(); method public boolean isVideoCallingEnabled(); method public deprecated boolean isVisualVoicemailEnabled(android.telecom.PhoneAccountHandle); method public boolean needsOtaServiceProvisioning(); Loading
api/system-removed.txt +0 −3 Original line number Diff line number Diff line Loading @@ -148,9 +148,6 @@ package android.telephony { public class TelephonyManager { method public deprecated void answerRingingCall(); method public deprecated boolean endCall(); method public deprecated boolean isIdle(); method public deprecated boolean isOffhook(); method public deprecated boolean isRinging(); method public deprecated void silenceRinger(); } Loading
telephony/java/android/telephony/TelephonyManager.java +9 −6 Original line number Diff line number Diff line Loading @@ -6571,7 +6571,7 @@ public class TelephonyManager { } /** * @removed Use {@link android.telecom.TelecomManager#isInCall} instead * @deprecated Use {@link android.telecom.TelecomManager#isInCall} instead * @hide */ @Deprecated Loading @@ -6581,11 +6581,12 @@ public class TelephonyManager { android.Manifest.permission.READ_PHONE_STATE }) public boolean isOffhook() { return false; TelecomManager tm = (TelecomManager) mContext.getSystemService(TELECOM_SERVICE); return tm.isInCall(); } /** * @removed Use {@link android.telecom.TelecomManager#isRinging} instead * @deprecated Use {@link android.telecom.TelecomManager#isRinging} instead * @hide */ @Deprecated Loading @@ -6595,11 +6596,12 @@ public class TelephonyManager { android.Manifest.permission.READ_PHONE_STATE }) public boolean isRinging() { return false; TelecomManager tm = (TelecomManager) mContext.getSystemService(TELECOM_SERVICE); return tm.isRinging(); } /** * @removed Use {@link android.telecom.TelecomManager#isInCall} instead * @deprecated Use {@link android.telecom.TelecomManager#isInCall} instead * @hide */ @Deprecated Loading @@ -6609,7 +6611,8 @@ public class TelephonyManager { android.Manifest.permission.READ_PHONE_STATE }) public boolean isIdle() { return true; TelecomManager tm = (TelecomManager) mContext.getSystemService(TELECOM_SERVICE); return !tm.isInCall(); } /** Loading