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

Commit ec63e6e9 authored by Brad Ebinger's avatar Brad Ebinger Committed by Gerrit Code Review
Browse files

Merge "Call out IllegalArgumentException in docs for ImsMmTelManager"

parents bf60c29c 9b490a16
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.annotation.IntDef;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.content.pm.PackageManager;
import android.telephony.SubscriptionManager;
import android.text.TextUtils;

import java.lang.annotation.Retention;
@@ -55,12 +56,23 @@ public final class ImsException extends Exception {
     */
    public static final int CODE_ERROR_UNSUPPORTED_OPERATION = 2;

    /**
     * The subscription ID associated with this operation is invalid or not active.
     * <p>
     * This is a configuration error and there should be no retry. The subscription used for this
     * operation is either invalid or has become inactive. The active subscriptions can be queried
     * with {@link SubscriptionManager#getActiveSubscriptionInfoList()}.
     * @hide
     */
    public static final int CODE_ERROR_INVALID_SUBSCRIPTION = 3;

    /**@hide*/
    @Retention(RetentionPolicy.SOURCE)
    @IntDef(prefix = "CODE_ERROR_", value = {
            CODE_ERROR_UNSPECIFIED,
            CODE_ERROR_SERVICE_UNAVAILABLE,
            CODE_ERROR_UNSUPPORTED_OPERATION
            CODE_ERROR_UNSUPPORTED_OPERATION,
            CODE_ERROR_INVALID_SUBSCRIPTION
    })
    public @interface ImsErrorCode {}

+162 −17

File changed.

Preview size limit exceeded, changes collapsed.