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

Commit a007b378 authored by Megha Patil's avatar Megha Patil Committed by Android (Google) Code Review
Browse files

Merge "Send Sms Memory Availability notification to ImsService"

parents 73fdd134 adc4b9d3
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3084,6 +3084,15 @@ public class ImsManager implements FeatureUpdates {
        }
    }

    public void onMemoryAvailable(int token) throws ImsException {
        try {
            mMmTelConnectionRef.get().onMemoryAvailable(token);
        } catch (RemoteException e) {
            throw new ImsException("onMemoryAvailable()", e,
                ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN);
        }
    }

    public void acknowledgeSms(int token, int messageRef, int result) throws ImsException {
        try {
            mMmTelConnectionRef.get().acknowledgeSms(token, messageRef, result);
+7 −0
Original line number Diff line number Diff line
@@ -506,6 +506,13 @@ public class MmTelFeatureConnection extends FeatureConnection {
        }
    }

    public void onMemoryAvailable(int token) throws RemoteException {
        synchronized (mLock) {
            checkServiceIsReady();
            getServiceInterface(mBinder).onMemoryAvailable(token);
        }
    }

    public void acknowledgeSms(int token, int messageRef,
            @ImsSmsImplBase.SendStatusResult int result) throws RemoteException {
        synchronized (mLock) {