Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70acc617 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: Ic9073b845d6678306ec2171d804325f289f9b1e7
parents 888b193f 76b68a37
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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() {
+5 −0
Original line number Diff line number Diff line
@@ -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;