From f492faf405c5e6deacce10d0380b72a10bff18fb Mon Sep 17 00:00:00 2001 From: haoyu li Date: Wed, 22 Nov 2017 12:49:49 +0900 Subject: [PATCH] Add new reason code for call failed by unobtainable number To show the "Invalid number" on the end call screen when user makes a IMS call with unobtainable number, this reason code is used. Test: manual - Checked that "Invalid number" is shown when make the IMS MO call to unobtainable number. Bug: 69940434 Change-Id: If3c54e6f55850141efad56ad7712db3c82a14f43 --- telephony/java/android/telephony/ims/ImsReasonInfo.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/telephony/java/android/telephony/ims/ImsReasonInfo.java b/telephony/java/android/telephony/ims/ImsReasonInfo.java index 7b77491025909..7d654305015ea 100644 --- a/telephony/java/android/telephony/ims/ImsReasonInfo.java +++ b/telephony/java/android/telephony/ims/ImsReasonInfo.java @@ -393,6 +393,12 @@ public final class ImsReasonInfo implements Parcelable { */ public static final int CODE_SIP_ALTERNATE_EMERGENCY_CALL = 1514; + /** + * Call failed because of unobtainable number + * @hide + */ + public static final int CODE_UNOBTAINABLE_NUMBER = 1515; + /* OEM specific error codes. To be used by OEMs when they don't want to reveal error code which would be replaced by ERROR_UNSPECIFIED */ public static final int CODE_OEM_CAUSE_1 = 0xf001;