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

Commit ca922b65 authored by Sarah Chin's avatar Sarah Chin Committed by Automerger Merge Worker
Browse files

Merge "Add new method for getCdmaSubscriptionMode" am: 7e58cb94 am: a29f3a4d am: a4eb3d6f

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1506559

Change-Id: I7a24b3aeedff681f962c3e198bc1b32552df7b1a
parents bc971e93 a4eb3d6f
Loading
Loading
Loading
Loading
+16 −7
Original line number Diff line number Diff line
@@ -2141,14 +2141,23 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
    }

    /**
     *  Query the CDMA roaming preference setting
     * Query the CDMA roaming preference setting.
     *
     * @param response is callback message to report one of  CDMA_RM_*
     * @param response is callback message to report one of TelephonyManager#CDMA_ROAMING_MODE_*
     */
    public void queryCdmaRoamingPreference(Message response) {
        mCi.queryCdmaRoamingPreference(response);
    }

    /**
     * Get the CDMA subscription mode setting.
     *
     * @param response is callback message to report one of TelephonyManager#CDMA_SUBSCRIPTION_*
     */
    public void queryCdmaSubscriptionMode(Message response) {
        mCi.getCdmaSubscriptionSource(response);
    }

    /**
     * Get current signal strength. No change notification available on this
     * interface. Use <code>PhoneStateNotifier</code> or an equivalent.
@@ -2179,7 +2188,7 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {

    /**
     * Requests to set the CDMA roaming preference
     * @param cdmaRoamingType one of  CDMA_RM_*
     * @param cdmaRoamingType one of TelephonyManager#CDMA_ROAMING_MODE_*
     * @param response is callback message
     */
    public void setCdmaRoamingPreference(int cdmaRoamingType, Message response) {
@@ -2188,10 +2197,10 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {

    /**
     * Requests to set the CDMA subscription mode
     * @param cdmaSubscriptionType one of  CDMA_SUBSCRIPTION_*
     * @param cdmaSubscriptionType one of TelephonyManager#CDMA_SUBSCRIPTION_*
     * @param response is callback message
     */
    public void setCdmaSubscription(int cdmaSubscriptionType, Message response) {
    public void setCdmaSubscriptionMode(int cdmaSubscriptionType, Message response) {
        mCi.setCdmaSubscriptionSource(cdmaSubscriptionType, response);
    }