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
This commit is contained in:
Dheeraj Shetty
2019-05-24 10:59:44 -07:00
parent 1c446a22d4
commit 6b58978968
2 changed files with 16 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -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
}
}