Merge "Add support to pass password in Call barring"
This commit is contained in:
@@ -10649,6 +10649,7 @@ package android.telephony.ims.stub {
|
||||
method public int transact(android.os.Bundle);
|
||||
method public int updateCallBarring(int, int, String[]);
|
||||
method public int updateCallBarringForServiceClass(int, int, String[], int);
|
||||
method public int updateCallBarringWithPassword(int, int, @Nullable String[], int, @NonNull String);
|
||||
method public int updateCallForward(int, int, String, int, int);
|
||||
method public int updateCallWaiting(boolean, int);
|
||||
method public int updateClip(boolean);
|
||||
|
||||
@@ -3933,6 +3933,7 @@ package android.telephony.ims.stub {
|
||||
method public int transact(android.os.Bundle);
|
||||
method public int updateCallBarring(int, int, String[]);
|
||||
method public int updateCallBarringForServiceClass(int, int, String[], int);
|
||||
method public int updateCallBarringWithPassword(int, int, @Nullable String[], int, @NonNull String);
|
||||
method public int updateCallForward(int, int, String, int, int);
|
||||
method public int updateCallWaiting(boolean, int);
|
||||
method public int updateClip(boolean);
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
package android.telephony.ims.stub;
|
||||
|
||||
import android.annotation.IntDef;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.os.Bundle;
|
||||
@@ -206,6 +208,13 @@ public class ImsUtImplBase {
|
||||
return ImsUtImplBase.this.updateCallBarringForServiceClass(
|
||||
cbType, action, barrList, serviceClass);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateCallBarringWithPassword(int cbType, int action, String[] barrList,
|
||||
int serviceClass, String password) throws RemoteException {
|
||||
return ImsUtImplBase.this.updateCallBarringWithPassword(
|
||||
cbType, action, barrList, serviceClass, password);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -327,6 +336,14 @@ public class ImsUtImplBase {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the configuration of the call barring for specified service class with password.
|
||||
*/
|
||||
public int updateCallBarringWithPassword(int cbType, int action, @Nullable String[] barrList,
|
||||
int serviceClass, @NonNull String password) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the configuration of the call forward.
|
||||
*/
|
||||
|
||||
@@ -165,6 +165,12 @@ public interface ImsUtInterface {
|
||||
public void updateCallBarring(int cbType, int action, Message result,
|
||||
String[] barrList, int serviceClass);
|
||||
|
||||
/**
|
||||
* Modifies the configuration of the call barring for specified service class with password.
|
||||
*/
|
||||
public void updateCallBarring(int cbType, int action, Message result,
|
||||
String[] barrList, int serviceClass, String password);
|
||||
|
||||
/**
|
||||
* Modifies the configuration of the call forward.
|
||||
*/
|
||||
|
||||
@@ -122,4 +122,10 @@ interface IImsUt {
|
||||
*/
|
||||
int updateCallBarringForServiceClass(int cbType, int action, in String[] barrList,
|
||||
int serviceClass);
|
||||
|
||||
/**
|
||||
* Updates the configuration of the call barring for specified service class with password.
|
||||
*/
|
||||
int updateCallBarringWithPassword(int cbType, int action, in String[] barrList,
|
||||
int serviceClass, String password);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user