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

Commit 33bb558a authored by Cassie's avatar Cassie Committed by Cassie Han
Browse files

Add cellInfoList_1_2 in IRadioIndication.java.

As part of the new NetworkScan API project, we need to add V1_2
cellInfoList in RadioIndication to support the V1_2 CellInfo as well.

Bug: 63984327, 69058403, 71697391
Test: Basic telephony sanity
Change-Id: Ia942be465bca76e1b3f42a5086d4a8c719b6d7ae
parent 1076d8a7
Loading
Loading
Loading
Loading
+13 −0
Original line number Original line Diff line number Diff line
@@ -625,6 +625,7 @@ public class RadioIndication extends IRadioIndication.Stub {
                new AsyncResult (null, response, null));
                new AsyncResult (null, response, null));
    }
    }


    /** Get unsolicited message for cellInfoList */
    public void cellInfoList(int indicationType,
    public void cellInfoList(int indicationType,
                             ArrayList<android.hardware.radio.V1_0.CellInfo> records) {
                             ArrayList<android.hardware.radio.V1_0.CellInfo> records) {
        mRil.processIndication(indicationType);
        mRil.processIndication(indicationType);
@@ -636,6 +637,18 @@ public class RadioIndication extends IRadioIndication.Stub {
        mRil.mRilCellInfoListRegistrants.notifyRegistrants(new AsyncResult(null, response, null));
        mRil.mRilCellInfoListRegistrants.notifyRegistrants(new AsyncResult(null, response, null));
    }
    }


    /** Get unsolicited message for cellInfoList using HAL V1_2 */
    public void cellInfoList_1_2(int indicationType,
                             ArrayList<android.hardware.radio.V1_2.CellInfo> records) {
        mRil.processIndication(indicationType);

        ArrayList<CellInfo> response = RIL.convertHalCellInfoList_1_2(records);

        if (RIL.RILJ_LOGD) mRil.unsljLogRet(RIL_UNSOL_CELL_INFO_LIST, response);

        mRil.mRilCellInfoListRegistrants.notifyRegistrants(new AsyncResult(null, response, null));
    }

    /**
    /**
     * Indicates a change of the ICC slot status
     * Indicates a change of the ICC slot status
     * @param indicationType RadioIndicationType
     * @param indicationType RadioIndicationType