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

Commit f6dfd08c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "IMS: Add support for error codes for IMS registration"

parents 860eeb68 c5c51b23
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -45,6 +45,12 @@ public class ImsReasonInfo implements Parcelable {
    public static final int TYPE_STATUSCODE = 3;
    public static final int TYPE_MEDIA = 4;
    public static final int TYPE_USER = 5;
    /**
     * For registration errors mReasonType set to TYPE_REGISTRATION.
     * mExtraCode will be set to operator specific error code
     * mExtraMessage will be set to operator specific error message
     */
    public static final int TYPE_REGISTRATION = 101;
    public static final int TYPE_UT = 8;
    public static final int TYPE_CALL_DROP = 100;

@@ -236,6 +242,10 @@ public class ImsReasonInfo implements Parcelable {
     * ECBM
     */
    public static final int CODE_ECBM_NOT_SUPPORTED = 901;
    /**
     * Ims Registration error code
     */
    public static final int CODE_REGISTRATION_ERROR = TYPE_REGISTRATION * 100;

    /**
     * MT call has ended due to a release from the network
+7 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.ims.internal;

import com.android.ims.ImsReasonInfo;
/**
 * A listener type for receiving notifications about the changes to
 * the IMS connection(registration).
@@ -28,10 +29,15 @@ interface IImsRegistrationListener {
     */
    void registrationConnected();

    /**
     * Notifies the application when the device is trying to connect the IMS network.
     */
    void registrationProgressing();

    /**
     * Notifies the application when the device is disconnected from the IMS network.
     */
    void registrationDisconnected();
    void registrationDisconnected(in ImsReasonInfo imsReasonInfo);

    /**
     * Notifies the application when its suspended IMS connection is resumed,