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

Commit ce77f88b authored by Suresh Koleti's avatar Suresh Koleti
Browse files

Add support to pass password in Call barring

- Adding password support for call barring over IMS

Test: Manual
Bug: 112248618
Change-Id: I450c738225b123ca2fb799c4c53791d430c2834b
parent 576f7afe
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -360,10 +360,20 @@ public class ImsUt implements ImsUtInterface {

    /**
     * Modifies the configuration of the call barring for specified service class.
     * @deprecated Use {@link #updateCallBarring(int, int, Message, String[], int, String)} instead.
     */
    @Override
    public void updateCallBarring(int cbType, int action, Message result, String[] barrList,
            int serviceClass) {
        updateCallBarring(cbType, action, result, barrList, serviceClass, "");
    }

    /**
     * Modifies the configuration of the call barring for specified service class with password.
     */
    @Override
    public void updateCallBarring(int cbType, int action, Message result,
            String[] barrList, int serviceClass) {
            String[] barrList, int serviceClass, String password) {
        if (DBG) {
            if (barrList != null) {
                String bList = new String();
@@ -382,8 +392,8 @@ public class ImsUt implements ImsUtInterface {

        synchronized(mLockObj) {
            try {
                int id = miUt.updateCallBarringForServiceClass(cbType, action,
                        barrList, serviceClass);
                int id = miUt.updateCallBarringWithPassword(cbType, action,
                        barrList, serviceClass, password);

                if (id < 0) {
                    sendFailureReport(result,