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

Commit 463e2bba authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Automerger Merge Worker
Browse files

Merge "Add default stubs for phonebook batch APIs" am: 93faa9f4 am: 2c2f6fbe am: b62a763c

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

Change-Id: I94ecdfe6376f0066fbe37757bd4370a08ee4bfdb
parents 09bc8e2c b62a763c
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ import android.hardware.radio.V1_0.SuppSvcNotification;
import android.hardware.radio.V1_2.CellConnectionStatus;
import android.hardware.radio.V1_6.IRadioIndication;
import android.hardware.radio.V1_6.PhysicalChannelConfig.Band;
import android.hardware.radio.V1_6.PhonebookRecordInfo;
import android.os.AsyncResult;
import android.os.RemoteException;
import android.sysprop.TelephonyProperties;
@@ -1071,6 +1072,26 @@ public class RadioIndication extends IRadioIndication.Stub {
        mRil.mNattKeepaliveStatusRegistrants.notifyRegistrants(new AsyncResult(null, ks, null));
    }

    /**
     * Indicates when the phonebook is changed.
     *
     * @param indicationType RadioIndicationType
     */
    public void simPhonebookChanged(int indicationType) {

    }

    /**
     * Indicates the content of all the used records in the SIM phonebook.
     *
     * @param indicationType RadioIndicationType
     * @param records Content of the SIM phonebook records
     */
    public void simPhonebookRecordsReceived(int indicationType, int status,
            ArrayList<PhonebookRecordInfo> records) {

    }

    /**
     * Indicate that a registration failure has occurred.
     *
+25 −0
Original line number Diff line number Diff line
@@ -1999,6 +1999,31 @@ public class RadioResponse extends IRadioResponse.Stub {
        return iccCardStatus;
    }

    /**
     * @param info Response info struct containing response type, serial no. and error.
     */
    public void getSimPhonebookRecordsResponse(
            android.hardware.radio.V1_6.RadioResponseInfo responseInfo) {
    }

    /**
     * @param info Response info struct containing response type, serial no. and error.
     * @param pbCapacity Contains the adn, email, anr capacities in the sim card.
     */
    public void getSimPhonebookCapacityResponse(
            android.hardware.radio.V1_6.RadioResponseInfo responseInfo,
            android.hardware.radio.V1_6.PhonebookCapacity pbCapacity) {
    }

    /**
     * @param info Response info struct containing response type, serial no. and error.
     * @param updatedRecordIndex The index of the updated record.
     */
    public void updateSimPhonebookRecordsResponse(
            android.hardware.radio.V1_6.RadioResponseInfo responseInfo,
            int updatedRecordIndex) {
    }

    private void responseIccCardStatus(RadioResponseInfo responseInfo, CardStatus cardStatus) {
        RILRequest rr = mRil.processResponse(responseInfo);