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

Commit 99e04765 authored by Meng Wang's avatar Meng Wang Committed by android-build-merger
Browse files

DO NOT MERGE ImsRegistrationListener#registrationChangeFailed

am: e441415a

Change-Id: Ia30672c87b79c486fc724eb58be25ec5048813a8
parents 552cc3c2 e441415a
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -33,6 +33,13 @@ public class ImsConnectionStateListener {
        // no-op
    }

    /**
     * Called when the device is connected to the IMS network with {@param imsRadioTech}.
     */
    public void onImsConnected(int imsRadioTech) {
        // no-op
    }

    /**
     * Called when the device is trying to connect to the IMS network.
     */
@@ -83,4 +90,11 @@ public class ImsConnectionStateListener {
    public void registrationAssociatedUriChanged(Uri[] uris) {
        // no-op
    }

    /**
     * Called when IMS registration attempt on {@param imsRadioTech} failed
     */
    public void onRegistrationChangeFailed(int imsRadioTech, ImsReasonInfo imsReasonInfo) {
        // no-op
    }
}
+12 −1
Original line number Diff line number Diff line
@@ -1483,7 +1483,7 @@ public class ImsManager {
    /**
     * Adapter class for {@link IImsRegistrationListener}.
     */
    private class ImsRegistrationListenerProxy extends IImsRegistrationListener.Stub {
    private static class ImsRegistrationListenerProxy extends IImsRegistrationListener.Stub {
        private int mServiceClass;
        private ImsConnectionStateListener mListener;

@@ -1529,6 +1529,7 @@ public class ImsManager {

            if (mListener != null) {
                mListener.onImsConnected();
                mListener.onImsConnected(imsRadioTech);
            }
        }

@@ -1616,6 +1617,16 @@ public class ImsManager {
                mListener.registrationAssociatedUriChanged(uris);
            }
        }

        @Override
        public void registrationChangeFailed(int targetAccessTech, ImsReasonInfo imsReasonInfo) {
            if (DBG) log("registrationChangeFailed :: targetAccessTech=" + targetAccessTech +
                    ", imsReasonInfo=" + imsReasonInfo);

            if (mListener != null) {
                mListener.onRegistrationChangeFailed(targetAccessTech, imsReasonInfo);
            }
        }
    }

    /**