Merge "Added service temporarily unavailable support" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-06-08 20:59:11 +00:00
committed by Android (Google) Code Review
2 changed files with 13 additions and 0 deletions

View File

@@ -1069,6 +1069,13 @@ public final class DataFailCause {
*/
public static final int NO_DEFAULT_DATA = 0x10008;
/**
* Data service is temporarily unavailable.
*
* @hide
*/
public static final int SERVICE_TEMPORARILY_UNAVAILABLE = 0x10009;
private static final Map<Integer, String> sFailCauseMap;
static {
sFailCauseMap = new HashMap<>();
@@ -1500,6 +1507,7 @@ public final class DataFailCause {
sFailCauseMap.put(HANDOVER_FAILED, "HANDOVER_FAILED");
sFailCauseMap.put(DUPLICATE_CID, "DUPLICATE_CID");
sFailCauseMap.put(NO_DEFAULT_DATA, "NO_DEFAULT_DATA");
sFailCauseMap.put(SERVICE_TEMPORARILY_UNAVAILABLE, "SERVICE_TEMPORARILY_UNAVAILABLE");
}
private DataFailCause() {

View File

@@ -63,6 +63,11 @@ public class DataServiceCallback {
public static final int RESULT_ERROR_BUSY = 3;
/** Request sent in illegal state */
public static final int RESULT_ERROR_ILLEGAL_STATE = 4;
/**
* Service is temporarily unavailable. Frameworks should retry the request again.
* @hide
*/
public static final int RESULT_ERROR_TEMPORARILY_UNAVAILABLE = 5;
private final IDataServiceCallback mCallback;