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

Commit 8b20f0a9 authored by Saki Oomori's avatar Saki Oomori Committed by Masaya Nemoto
Browse files

Extend Call Barring features for IMS service

Extend Call Barring function to add following CB types for IMS service.
- Anonymous Call Rejection

Bug:137072759
Test: manual - Checked that Call Barring works normally.
Change-Id: Ia995732f029fff3340719363930de5b5ac4a1117
parent b165de43
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ public interface CommandsInterface {
    static final String CB_FACILITY_BA_MT        = "AC";
    static final String CB_FACILITY_BA_SIM       = "SC";
    static final String CB_FACILITY_BA_FD        = "FD";
    static final String CB_FACILITY_BIC_ACR      = "AR";


    // Used for various supp services apis
+3 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import static com.android.internal.telephony.CommandsInterface.CB_FACILITY_BAOIC
import static com.android.internal.telephony.CommandsInterface.CB_FACILITY_BA_ALL;
import static com.android.internal.telephony.CommandsInterface.CB_FACILITY_BA_MO;
import static com.android.internal.telephony.CommandsInterface.CB_FACILITY_BA_MT;
import static com.android.internal.telephony.CommandsInterface.CB_FACILITY_BIC_ACR;
import static com.android.internal.telephony.CommandsInterface.CF_ACTION_DISABLE;
import static com.android.internal.telephony.CommandsInterface.CF_ACTION_ENABLE;
import static com.android.internal.telephony.CommandsInterface.CF_ACTION_ERASURE;
@@ -1067,6 +1068,8 @@ public class ImsPhone extends ImsPhoneBase {
            return ImsUtInterface.CB_BA_MO;
        } else if (CB_FACILITY_BA_MT.equals(facility)) {
            return ImsUtInterface.CB_BA_MT;
        } else if (CB_FACILITY_BIC_ACR.equals(facility)) {
            return ImsUtInterface.CB_BIC_ACR;
        }

        return 0;