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

Commit e4ae7936 authored by Thiébaud Weksteen's avatar Thiébaud Weksteen Committed by Automerger Merge Worker
Browse files

Merge "Adds getAllowedNetworkTypeBitmapResponse" am: 1df7a2a0 am: 109b8d95

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib1ce6328a7635109db747e0271e53df36b417ffa
parents bbe4163a 109b8d95
Loading
Loading
Loading
Loading
+33 −1
Original line number Diff line number Diff line
@@ -647,6 +647,13 @@ public class RadioResponse extends IRadioResponse.Stub {
        responseVoid_1_6(info);
    }

    @Override
    public void getAllowedNetworkTypeBitmapResponse(
            android.hardware.radio.V1_6.RadioResponseInfo info,
            int halRadioAccessFamilyBitmap) {
        responseInts_1_6(info, halRadioAccessFamilyBitmap);
    }

    /**
     * @param responseInfo Response info struct containing response type, serial no. and error
     * @param iccIo ICC io operation response as defined by IccIoResult in types.hal
@@ -2057,6 +2064,15 @@ public class RadioResponse extends IRadioResponse.Stub {
        responseIntArrayList(responseInfo, ints);
    }

    private void responseInts_1_6(android.hardware.radio.V1_6.RadioResponseInfo responseInfo,
            int ...var) {
        final ArrayList<Integer> ints = new ArrayList<>();
        for (int i = 0; i < var.length; i++) {
            ints.add(var[i]);
        }
        responseIntArrayList_1_6(responseInfo, ints);
    }

    private void responseIntArrayList(RadioResponseInfo responseInfo, ArrayList<Integer> var) {
        RILRequest rr = mRil.processResponse(responseInfo);

@@ -2072,6 +2088,22 @@ public class RadioResponse extends IRadioResponse.Stub {
        }
    }

    private void responseIntArrayList_1_6(
            android.hardware.radio.V1_6.RadioResponseInfo responseInfo, ArrayList<Integer> var) {
        RILRequest rr = mRil.processResponse_1_6(responseInfo);

        if (rr != null) {
            int[] ret = new int[var.size()];
            for (int i = 0; i < var.size(); i++) {
                ret[i] = var.get(i);
            }
            if (responseInfo.error == RadioError.NONE) {
                sendMessageResponse(rr.mResult, ret);
            }
            mRil.processResponseDone_1_6(rr, responseInfo, ret);
        }
    }

    private void responseCurrentCalls(RadioResponseInfo responseInfo,
            ArrayList<android.hardware.radio.V1_0.Call> calls) {
        RILRequest rr = mRil.processResponse(responseInfo);