Merge "Added service temporarily unavailable support" into sc-dev am: 76b68a37f0

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14904211

Change-Id: Ib4752170a28211a4c588e661251353e492bf3a41
This commit is contained in:
TreeHugger Robot
2021-06-08 21:13:06 +00:00
committed by Automerger Merge Worker
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;