Loading telephony/java/android/telephony/DisconnectCause.java +11 −2 Original line number Original line Diff line number Diff line Loading @@ -226,6 +226,13 @@ public class DisconnectCause { */ */ public static final int DATA_LIMIT_REACHED = 55; public static final int DATA_LIMIT_REACHED = 55; /** * The emergency call was terminated because it was dialed on the wrong SIM slot. * The call needs to be redialed the other slot. * {@hide} */ public static final int DIALED_ON_WRONG_SLOT = 56; //********************************************************************************************* //********************************************************************************************* // When adding a disconnect type: // When adding a disconnect type: // 1) Please assign the new type the next id value below. // 1) Please assign the new type the next id value below. Loading @@ -234,14 +241,14 @@ public class DisconnectCause { // 4) Update toString() with the newly added disconnect type. // 4) Update toString() with the newly added disconnect type. // 5) Update android.telecom.DisconnectCauseUtil with any mappings to a telecom.DisconnectCause. // 5) Update android.telecom.DisconnectCauseUtil with any mappings to a telecom.DisconnectCause. // // // NextId: 56 // NextId: 57 //********************************************************************************************* //********************************************************************************************* /** Smallest valid value for call disconnect codes. */ /** Smallest valid value for call disconnect codes. */ public static final int MINIMUM_VALID_VALUE = NOT_DISCONNECTED; public static final int MINIMUM_VALID_VALUE = NOT_DISCONNECTED; /** Largest valid value for call disconnect codes. */ /** Largest valid value for call disconnect codes. */ public static final int MAXIMUM_VALID_VALUE = DATA_LIMIT_REACHED; public static final int MAXIMUM_VALID_VALUE = DIALED_ON_WRONG_SLOT; /** Private constructor to avoid class instantiation. */ /** Private constructor to avoid class instantiation. */ private DisconnectCause() { private DisconnectCause() { Loading Loading @@ -361,6 +368,8 @@ public class DisconnectCause { return "DATA_DISABLED"; return "DATA_DISABLED"; case DATA_LIMIT_REACHED: case DATA_LIMIT_REACHED: return "DATA_LIMIT_REACHED"; return "DATA_LIMIT_REACHED"; case DIALED_ON_WRONG_SLOT: return "DIALED_ON_WRONG_SLOT"; default: default: return "INVALID: " + cause; return "INVALID: " + cause; } } Loading Loading
telephony/java/android/telephony/DisconnectCause.java +11 −2 Original line number Original line Diff line number Diff line Loading @@ -226,6 +226,13 @@ public class DisconnectCause { */ */ public static final int DATA_LIMIT_REACHED = 55; public static final int DATA_LIMIT_REACHED = 55; /** * The emergency call was terminated because it was dialed on the wrong SIM slot. * The call needs to be redialed the other slot. * {@hide} */ public static final int DIALED_ON_WRONG_SLOT = 56; //********************************************************************************************* //********************************************************************************************* // When adding a disconnect type: // When adding a disconnect type: // 1) Please assign the new type the next id value below. // 1) Please assign the new type the next id value below. Loading @@ -234,14 +241,14 @@ public class DisconnectCause { // 4) Update toString() with the newly added disconnect type. // 4) Update toString() with the newly added disconnect type. // 5) Update android.telecom.DisconnectCauseUtil with any mappings to a telecom.DisconnectCause. // 5) Update android.telecom.DisconnectCauseUtil with any mappings to a telecom.DisconnectCause. // // // NextId: 56 // NextId: 57 //********************************************************************************************* //********************************************************************************************* /** Smallest valid value for call disconnect codes. */ /** Smallest valid value for call disconnect codes. */ public static final int MINIMUM_VALID_VALUE = NOT_DISCONNECTED; public static final int MINIMUM_VALID_VALUE = NOT_DISCONNECTED; /** Largest valid value for call disconnect codes. */ /** Largest valid value for call disconnect codes. */ public static final int MAXIMUM_VALID_VALUE = DATA_LIMIT_REACHED; public static final int MAXIMUM_VALID_VALUE = DIALED_ON_WRONG_SLOT; /** Private constructor to avoid class instantiation. */ /** Private constructor to avoid class instantiation. */ private DisconnectCause() { private DisconnectCause() { Loading Loading @@ -361,6 +368,8 @@ public class DisconnectCause { return "DATA_DISABLED"; return "DATA_DISABLED"; case DATA_LIMIT_REACHED: case DATA_LIMIT_REACHED: return "DATA_LIMIT_REACHED"; return "DATA_LIMIT_REACHED"; case DIALED_ON_WRONG_SLOT: return "DIALED_ON_WRONG_SLOT"; default: default: return "INVALID: " + cause; return "INVALID: " + cause; } } Loading