Merge "Add "wifi lost" disconnect cause." am: 802b0c8fd1
am: 4e26b8e75e
Change-Id: I783d8693258d31341d946fa1f20e4c744ee410b3
This commit is contained in:
@@ -1074,6 +1074,9 @@ public class CarrierConfigManager {
|
|||||||
* and {@code NEW_CODE} is the new {@code ImsReasonInfo#CODE_*} which this combination of
|
* and {@code NEW_CODE} is the new {@code ImsReasonInfo#CODE_*} which this combination of
|
||||||
* original code and message shall be remapped to.
|
* original code and message shall be remapped to.
|
||||||
*
|
*
|
||||||
|
* Note: If {@code *} is specified for the original code, any ImsReasonInfo with the matching
|
||||||
|
* {@code MESSAGE} will be remapped to {@code NEW_CODE}.
|
||||||
|
*
|
||||||
* Example: "501|call completion elsewhere|1014"
|
* Example: "501|call completion elsewhere|1014"
|
||||||
* When the {@link ImsReasonInfo#getCode()} is {@link ImsReasonInfo#CODE_USER_TERMINATED} and
|
* When the {@link ImsReasonInfo#getCode()} is {@link ImsReasonInfo#CODE_USER_TERMINATED} and
|
||||||
* the {@link ImsReasonInfo#getExtraMessage()} is {@code "call completion elsewhere"},
|
* the {@link ImsReasonInfo#getExtraMessage()} is {@code "call completion elsewhere"},
|
||||||
|
|||||||
@@ -240,23 +240,19 @@ public class DisconnectCause {
|
|||||||
*/
|
*/
|
||||||
public static final int IMEI_NOT_ACCEPTED = 57;
|
public static final int IMEI_NOT_ACCEPTED = 57;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A call over WIFI was disconnected because the WIFI signal was lost or became too degraded to
|
||||||
|
* continue the call.
|
||||||
|
*/
|
||||||
|
public static final int WIFI_LOST = 59;
|
||||||
|
|
||||||
//*********************************************************************************************
|
//*********************************************************************************************
|
||||||
// When adding a disconnect type:
|
// When adding a disconnect type:
|
||||||
// 1) Please assign the new type the next id value below.
|
// 1) Update toString() with the newly added disconnect type.
|
||||||
// 2) Increment the next id value below to a new value.
|
// 2) Update android.telecom.DisconnectCauseUtil with any mappings to a telecom.DisconnectCause.
|
||||||
// 3) Update MAXIMUM_VALID_VALUE to the new disconnect type.
|
|
||||||
// 4) Update toString() with the newly added disconnect type.
|
|
||||||
// 5) Update android.telecom.DisconnectCauseUtil with any mappings to a telecom.DisconnectCause.
|
|
||||||
//
|
//
|
||||||
// NextId: 58
|
|
||||||
//*********************************************************************************************
|
//*********************************************************************************************
|
||||||
|
|
||||||
/** Smallest valid value for call disconnect codes. */
|
|
||||||
public static final int MINIMUM_VALID_VALUE = NOT_DISCONNECTED;
|
|
||||||
|
|
||||||
/** Largest valid value for call disconnect codes. */
|
|
||||||
public static final int MAXIMUM_VALID_VALUE = IMEI_NOT_ACCEPTED;
|
|
||||||
|
|
||||||
/** Private constructor to avoid class instantiation. */
|
/** Private constructor to avoid class instantiation. */
|
||||||
private DisconnectCause() {
|
private DisconnectCause() {
|
||||||
// Do nothing.
|
// Do nothing.
|
||||||
@@ -379,6 +375,8 @@ public class DisconnectCause {
|
|||||||
return "DIALED_ON_WRONG_SLOT";
|
return "DIALED_ON_WRONG_SLOT";
|
||||||
case IMEI_NOT_ACCEPTED:
|
case IMEI_NOT_ACCEPTED:
|
||||||
return "IMEI_NOT_ACCEPTED";
|
return "IMEI_NOT_ACCEPTED";
|
||||||
|
case WIFI_LOST:
|
||||||
|
return "WIFI_LOST";
|
||||||
default:
|
default:
|
||||||
return "INVALID: " + cause;
|
return "INVALID: " + cause;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -307,6 +307,11 @@ public class ImsReasonInfo implements Parcelable {
|
|||||||
*/
|
*/
|
||||||
public static final int CODE_DATA_DISABLED = 1406;
|
public static final int CODE_DATA_DISABLED = 1406;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates a call was disconnected due to loss of wifi signal.
|
||||||
|
*/
|
||||||
|
public static final int CODE_WIFI_LOST = 1407;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Network string error messages.
|
* Network string error messages.
|
||||||
* mExtraMessage may have these values.
|
* mExtraMessage may have these values.
|
||||||
|
|||||||
Reference in New Issue
Block a user