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

Commit 6b589789 authored by Dheeraj Shetty's avatar Dheeraj Shetty
Browse files

ims: API to update ims carreir configs

Add a new API in IImsConfig to update carrier
configs for ims.

Bug: 125484786
Test: Build
Change-Id: Id4577b46df514f7948a1d7b1ca58c12abf93b744
parent 1c446a22
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@

package android.telephony.ims.aidl;

import android.os.PersistableBundle;

import android.telephony.ims.aidl.IImsConfigCallback;

import com.android.ims.ImsConfigListener;
@@ -37,4 +39,5 @@ interface IImsConfig {
    int setConfigInt(int item, int value);
    // Return result code defined in ImsConfig#OperationStatusConstants
    int setConfigString(int item, String value);
    void updateImsCarrierConfigs(in PersistableBundle bundle);
}
+13 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package android.telephony.ims.stub;
import android.annotation.IntDef;
import android.annotation.SystemApi;
import android.content.Context;
import android.os.PersistableBundle;
import android.os.RemoteCallbackList;
import android.os.RemoteException;
import android.telephony.ims.aidl.IImsConfig;
@@ -182,6 +183,11 @@ public class ImsConfigImplBase {
            return retVal;
        }

        @Override
        public void updateImsCarrierConfigs(PersistableBundle bundle) throws RemoteException {
            getImsConfigImpl().updateImsCarrierConfigs(bundle);
        }

        private ImsConfigImplBase getImsConfigImpl() throws RemoteException {
            ImsConfigImplBase ref = mImsConfigImplBaseWeakReference.get();
            if (ref == null) {
@@ -387,4 +393,11 @@ public class ImsConfigImplBase {
        // Base Implementation - To be overridden.
        return null;
    }

    /**
     * @hide
     */
    public void updateImsCarrierConfigs(PersistableBundle bundle) {
        // Base Implementation - Should be overridden
    }
}