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

Commit 6586f342 authored by Sarah Chin's avatar Sarah Chin Committed by Gerrit Code Review
Browse files

Merge changes from topics "deactivate_all_errors", "deactivate_radio_not_available"

* changes:
  DeactivateDataCall remove network on all errors
  Add ERROR_RADIO_NOT_AVAILABLE for DataServiceCallback
parents 5ee9c551 e36793df
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -50,12 +50,13 @@ public class DataServiceCallback {
     */
    @Retention(RetentionPolicy.SOURCE)
    @IntDef({RESULT_SUCCESS, RESULT_ERROR_UNSUPPORTED, RESULT_ERROR_INVALID_ARG, RESULT_ERROR_BUSY,
            RESULT_ERROR_ILLEGAL_STATE})
            RESULT_ERROR_ILLEGAL_STATE, RESULT_ERROR_TEMPORARILY_UNAVAILABLE,
            RESULT_ERROR_INVALID_RESPONSE})
    public @interface ResultCode {}

    /** Request is completed successfully */
    public static final int RESULT_SUCCESS              = 0;
    /** Request is not support */
    /** Request is not supported */
    public static final int RESULT_ERROR_UNSUPPORTED    = 1;
    /** Request contains invalid arguments */
    public static final int RESULT_ERROR_INVALID_ARG    = 2;
@@ -68,6 +69,11 @@ public class DataServiceCallback {
     * @hide
     */
    public static final int RESULT_ERROR_TEMPORARILY_UNAVAILABLE = 5;
    /**
     * Request failed to complete due to an invalid response.
     * @hide
     */
    public static final int RESULT_ERROR_INVALID_RESPONSE = 6;

    private final IDataServiceCallback mCallback;

@@ -255,6 +261,8 @@ public class DataServiceCallback {
                return "RESULT_ERROR_ILLEGAL_STATE";
            case RESULT_ERROR_TEMPORARILY_UNAVAILABLE:
                return "RESULT_ERROR_TEMPORARILY_UNAVAILABLE";
            case RESULT_ERROR_INVALID_RESPONSE:
                return "RESULT_ERROR_INVALID_RESPONSE";
            default:
                return "Unknown(" + resultCode + ")";
        }