Loading api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -29585,8 +29585,10 @@ package android.telephony { method public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String); method public java.lang.String iccTransmitApduBasicChannel(int, int, int, int, int, java.lang.String); method public java.lang.String iccTransmitApduLogicalChannel(int, int, int, int, int, int, java.lang.String); method public boolean isHearingAidCompatibilitySupported(); method public boolean isNetworkRoaming(); method public boolean isSmsCapable(); method public boolean isTtyModeSupported(); method public boolean isVoiceCapable(); method public boolean isWorldPhone(); method public void listen(android.telephony.PhoneStateListener, int); api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -31923,6 +31923,7 @@ package android.telephony { method public java.lang.String iccTransmitApduBasicChannel(int, int, int, int, int, java.lang.String); method public java.lang.String iccTransmitApduLogicalChannel(int, int, int, int, int, int, java.lang.String); method public boolean isDataConnectivityPossible(); method public boolean isHearingAidCompatibilitySupported(); method public boolean isIdle(); method public boolean isNetworkRoaming(); method public boolean isOffhook(); Loading @@ -31930,6 +31931,7 @@ package android.telephony { method public boolean isRinging(); method public boolean isSimPinEnabled(); method public boolean isSmsCapable(); method public boolean isTtyModeSupported(); method public boolean isVideoCallingEnabled(); method public boolean isVoiceCapable(); method public boolean isWorldPhone(); telephony/java/android/telephony/TelephonyManager.java +25 −5 Original line number Diff line number Diff line Loading @@ -3754,12 +3754,32 @@ public class TelephonyManager { } /** * This function retrieves value for setting "name+subId", and if that is not found * retrieves value for setting "name", and if that is not found uses def as default * Whether the phone supports TTY mode. * * @hide */ public static int getIntWithSubId(ContentResolver cr, String name, int subId, int def) { return Settings.Global.getInt(cr, name + subId, Settings.Global.getInt(cr, name, def)); * @return {@code true} if the device supports TTY mode, and {@code false} otherwise. */ public boolean isTtyModeSupported() { try { return getITelephony().isTtyModeSupported(); } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#isTtyModeSupported", e); } return false; } /** * Whether the phone supports hearing aid compatibility. * * @return {@code true} if the device supports hearing aid compatibility, and {@code false} * otherwise. */ public boolean isHearingAidCompatibilitySupported() { try { return getITelephony().isHearingAidCompatibilitySupported(); } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#isHearingAidCompatibilitySupported", e); } return false; } /** Loading telephony/java/com/android/internal/telephony/ITelephony.aidl +14 −0 Original line number Diff line number Diff line Loading @@ -881,6 +881,20 @@ interface ITelephony { */ boolean isWorldPhone(); /** * Whether the phone supports TTY mode. * * @return {@code true} if the device supports TTY mode. */ boolean isTtyModeSupported(); /** * Whether the phone supports hearing aid compatibility. * * @return {@code true} if the device supports hearing aid compatibility. */ boolean isHearingAidCompatibilitySupported(); /** * Get IMS Registration Status */ Loading Loading
api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -29585,8 +29585,10 @@ package android.telephony { method public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String); method public java.lang.String iccTransmitApduBasicChannel(int, int, int, int, int, java.lang.String); method public java.lang.String iccTransmitApduLogicalChannel(int, int, int, int, int, int, java.lang.String); method public boolean isHearingAidCompatibilitySupported(); method public boolean isNetworkRoaming(); method public boolean isSmsCapable(); method public boolean isTtyModeSupported(); method public boolean isVoiceCapable(); method public boolean isWorldPhone(); method public void listen(android.telephony.PhoneStateListener, int);
api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -31923,6 +31923,7 @@ package android.telephony { method public java.lang.String iccTransmitApduBasicChannel(int, int, int, int, int, java.lang.String); method public java.lang.String iccTransmitApduLogicalChannel(int, int, int, int, int, int, java.lang.String); method public boolean isDataConnectivityPossible(); method public boolean isHearingAidCompatibilitySupported(); method public boolean isIdle(); method public boolean isNetworkRoaming(); method public boolean isOffhook(); Loading @@ -31930,6 +31931,7 @@ package android.telephony { method public boolean isRinging(); method public boolean isSimPinEnabled(); method public boolean isSmsCapable(); method public boolean isTtyModeSupported(); method public boolean isVideoCallingEnabled(); method public boolean isVoiceCapable(); method public boolean isWorldPhone();
telephony/java/android/telephony/TelephonyManager.java +25 −5 Original line number Diff line number Diff line Loading @@ -3754,12 +3754,32 @@ public class TelephonyManager { } /** * This function retrieves value for setting "name+subId", and if that is not found * retrieves value for setting "name", and if that is not found uses def as default * Whether the phone supports TTY mode. * * @hide */ public static int getIntWithSubId(ContentResolver cr, String name, int subId, int def) { return Settings.Global.getInt(cr, name + subId, Settings.Global.getInt(cr, name, def)); * @return {@code true} if the device supports TTY mode, and {@code false} otherwise. */ public boolean isTtyModeSupported() { try { return getITelephony().isTtyModeSupported(); } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#isTtyModeSupported", e); } return false; } /** * Whether the phone supports hearing aid compatibility. * * @return {@code true} if the device supports hearing aid compatibility, and {@code false} * otherwise. */ public boolean isHearingAidCompatibilitySupported() { try { return getITelephony().isHearingAidCompatibilitySupported(); } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#isHearingAidCompatibilitySupported", e); } return false; } /** Loading
telephony/java/com/android/internal/telephony/ITelephony.aidl +14 −0 Original line number Diff line number Diff line Loading @@ -881,6 +881,20 @@ interface ITelephony { */ boolean isWorldPhone(); /** * Whether the phone supports TTY mode. * * @return {@code true} if the device supports TTY mode. */ boolean isTtyModeSupported(); /** * Whether the phone supports hearing aid compatibility. * * @return {@code true} if the device supports hearing aid compatibility. */ boolean isHearingAidCompatibilitySupported(); /** * Get IMS Registration Status */ Loading