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

Commit 93faa9f4 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Gerrit Code Review
Browse files

Merge "Add default stubs for phonebook batch APIs"

parents 83a315d5 091c21ce
Loading
Loading
Loading
Loading
+21 −0
Original line number Original line 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_2.CellConnectionStatus;
import android.hardware.radio.V1_6.IRadioIndication;
import android.hardware.radio.V1_6.IRadioIndication;
import android.hardware.radio.V1_6.PhysicalChannelConfig.Band;
import android.hardware.radio.V1_6.PhysicalChannelConfig.Band;
import android.hardware.radio.V1_6.PhonebookRecordInfo;
import android.os.AsyncResult;
import android.os.AsyncResult;
import android.os.RemoteException;
import android.os.RemoteException;
import android.sysprop.TelephonyProperties;
import android.sysprop.TelephonyProperties;
@@ -1071,6 +1072,26 @@ public class RadioIndication extends IRadioIndication.Stub {
        mRil.mNattKeepaliveStatusRegistrants.notifyRegistrants(new AsyncResult(null, ks, null));
        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.
     * Indicate that a registration failure has occurred.
     *
     *
+25 −0
Original line number Original line Diff line number Diff line
@@ -1998,6 +1998,31 @@ public class RadioResponse extends IRadioResponse.Stub {
        return iccCardStatus;
        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) {
    private void responseIccCardStatus(RadioResponseInfo responseInfo, CardStatus cardStatus) {
        RILRequest rr = mRil.processResponse(responseInfo);
        RILRequest rr = mRil.processResponse(responseInfo);