Telephony: Add DisconnectCause values for clear code
Supplement the DisconnectCause value for each clear code
to support different behavior when the call is disconnected.
Change-Id: Ifbbc923779565d31a57cd056c5202f0f062700d6
diff --git a/telephony/java/android/telephony/DisconnectCause.java b/telephony/java/android/telephony/DisconnectCause.java
index 096cae2..bcacae9 100644
--- a/telephony/java/android/telephony/DisconnectCause.java
+++ b/telephony/java/android/telephony/DisconnectCause.java
@@ -179,9 +179,53 @@
/** Smallest valid value for call disconnect codes. */
public static final int MINIMUM_VALID_VALUE = NOT_DISCONNECTED;
+ public static final int NO_CIRCUIT_AVAIL = 48;
+ public static final int NO_ROUTE_TO_DESTINAON = 49;
+ public static final int OPERATOR_DETERMINED_BARRING = 50;
+ public static final int CALL_FAIL_NO_USER_RESPONDING = 51;
+ public static final int CALL_FAIL_NO_ANSWER_FROM_USER = 52;
+ public static final int CALL_FAIL_DESTINATION_OUT_OF_ORDER = 53;
+ public static final int BEARER_CAPABILITY_NOT_AUTHORIZED = 54;
+ public static final int CHANNEL_UNACCEPTABLE = 55;
+ public static final int CALL_REJECTED = 56;
+ public static final int NUMBER_CHANGED = 57;
+ public static final int PREEMPTION = 58;
+ public static final int FACILITY_REJECTED = 59;
+ public static final int RESP_TO_STATUS_ENQUIRY = 60;
+ public static final int NORMAL_UNSPECIFIED = 61;
+ public static final int NETWORK_OUT_OF_ORDER = 62;
+ public static final int TEMPORARY_FAILURE = 63;
+ public static final int SWITCHING_EQUIPMENT_CONGESTION = 64;
+ public static final int ACCESS_INFORMATION_DISCARDED = 65;
+ public static final int REQUESTED_CIRCUIT_OR_CHANNEL_NOT_AVAILABLE = 66;
+ public static final int RESOURCES_UNAVAILABLE_OR_UNSPECIFIED = 67;
+ public static final int QOS_UNAVAILABLE = 68;
+ public static final int REQUESTED_FACILITY_NOT_SUBSCRIBED = 69;
+ public static final int INCOMING_CALLS_BARRED_WITHIN_CUG = 70;
+ public static final int BEARER_CAPABILITY_UNAVAILABLE = 71;
+ public static final int SERVICE_OPTION_NOT_AVAILABLE = 72;
+ public static final int BEARER_SERVICE_NOT_IMPLEMENTED = 73;
+ public static final int REQUESTED_FACILITY_NOT_IMPLEMENTED = 74;
+ public static final int ONLY_DIGITAL_INFORMATION_BEARER_AVAILABLE = 75;
+ public static final int SERVICE_OR_OPTION_NOT_IMPLEMENTED = 76;
+ public static final int INVALID_TRANSACTION_IDENTIFIER = 77;
+ public static final int USER_NOT_MEMBER_OF_CUG = 78;
+ public static final int INCOMPATIBLE_DESTINATION = 79;
+ public static final int INVALID_TRANSIT_NW_SELECTION = 80;
+ public static final int SEMANTICALLY_INCORRECT_MESSAGE = 81;
+ public static final int INVALID_MANDATORY_INFORMATION = 82;
+ public static final int MESSAGE_TYPE_NON_IMPLEMENTED = 83;
+ public static final int MESSAGE_TYPE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 84;
+ public static final int INFORMATION_ELEMENT_NON_EXISTENT = 85;
+ public static final int CONDITIONAL_IE_ERROR = 86;
+ public static final int MESSAGE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 87;
+ public static final int RECOVERY_ON_TIMER_EXPIRED = 88;
+ public static final int PROTOCOL_ERROR_UNSPECIFIED = 89;
+ public static final int INTERWORKING_UNSPECIFIED = 90;
+
/** Largest valid value for call disconnect codes.
TODO: Not changing the max value as it will need API update. */
- public static final int MAXIMUM_VALID_VALUE = OUTGOING_CANCELED;
+ public static final int MAXIMUM_VALID_VALUE = INTERWORKING_UNSPECIFIED;
/** Private constructor to avoid class instantiation. */
private DisconnectCause() {