diff options
| author | 2018-06-07 14:47:19 -0700 | |
|---|---|---|
| committer | 2018-08-28 15:03:18 -0700 | |
| commit | 05e573e86300fda0de1750c69e5ca883ba6f4a53 (patch) | |
| tree | a97aa30e8b228c2b18b3d33956ce8d7d2455a527 | |
| parent | 372211de91296f1fbc776a7019b0c204127576e4 (diff) | |
IMS: Support Robocall Feature For MT VOLTE Calls
Added a new call fail error code for user marked unwanted calls.
Bug: 110976451
Test: atest FrameworksTelephonyTests
Change-Id: I7bbc45a39d637f93127097e8b27981c9519fe0e7
Merged-In: I7bbc45a39d637f93127097e8b27981c9519fe0e7
| -rw-r--r-- | api/system-current.txt | 1 | ||||
| -rw-r--r-- | telephony/java/android/telephony/ims/ImsReasonInfo.java | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/api/system-current.txt b/api/system-current.txt index a9afb3ffdfda..416835358e18 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -5984,6 +5984,7 @@ package android.telephony.ims { field public static final int CODE_SIP_SERVICE_UNAVAILABLE = 352; // 0x160 field public static final int CODE_SIP_TEMPRARILY_UNAVAILABLE = 336; // 0x150 field public static final int CODE_SIP_TRANSACTION_DOES_NOT_EXIST = 343; // 0x157 + field public static final int CODE_SIP_USER_MARKED_UNWANTED = 365; // 0x16d field public static final int CODE_SIP_USER_REJECTED = 361; // 0x169 field public static final int CODE_SUPP_SVC_CANCELLED = 1202; // 0x4b2 field public static final int CODE_SUPP_SVC_FAILED = 1201; // 0x4b1 diff --git a/telephony/java/android/telephony/ims/ImsReasonInfo.java b/telephony/java/android/telephony/ims/ImsReasonInfo.java index b1c66f695177..8fcdb6e90569 100644 --- a/telephony/java/android/telephony/ims/ImsReasonInfo.java +++ b/telephony/java/android/telephony/ims/ImsReasonInfo.java @@ -185,6 +185,15 @@ public final class ImsReasonInfo implements Parcelable { public static final int CODE_EMERGENCY_PERM_FAILURE = 364; /** + * Call failure code during hangup/reject if user marked the call as unwanted. + * + * Android Telephony will receive information whether ROBO call feature is supported by the + * network from modem and propagate the same to AOSP as new ImsCallProfile members. OEMs can + * check this information and provide an option to the user to mark the call as unwanted. + */ + public static final int CODE_SIP_USER_MARKED_UNWANTED = 365; + + /** * MEDIA (IMS -> Telephony) */ // Media resource initialization failed |