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

Commit 0e734e17 authored by Mohamed Abdalkader's avatar Mohamed Abdalkader
Browse files

Add and trigger onReady API for SMS over IMS

Test: manual test that normal code path is fine since this code path is
not yet exercisable.
BUG=69846044
Change-Id: Id56b04eea65ee06953cc819bab07b2659da2738c
parent c47babb1
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2353,6 +2353,15 @@ public class ImsManager {
        }
    }

    public void onSmsReady() throws ImsException{
        try {
            mImsServiceProxy.onSmsReady();
        } catch (RemoteException e) {
            throw new ImsException("onSmsReady()", e,
                    ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN);
        }
    }

    public void addRegistrationCallback(ImsRegistrationImplBase.Callback callback) {
        // TODO: implement (coming in ag/3472519)
    }
+7 −0
Original line number Diff line number Diff line
@@ -371,6 +371,13 @@ public class ImsServiceProxy {
        }
    }

    public void onSmsReady() throws RemoteException {
        synchronized (mLock) {
            checkServiceIsReady();
            getServiceInterface(mBinder).onSmsReady();
        }
    }

    public void setSmsListener(IImsSmsListener listener) throws RemoteException {
        synchronized (mLock) {
            checkServiceIsReady();