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

Commit ce6b58ee authored by Sewook Seo's avatar Sewook Seo
Browse files

N3IWF HAL support: update NetworkResponse

Override getRegistrationStateResponse for N3IWF HAL API change to solve build error

Bug: 249129495
Test: build and flash
Change-Id: Iad6a6cc2e15a8cdd3896545340e55aeecc00da76
parent 358fa7cb
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -473,6 +473,22 @@ public class NetworkResponse extends IRadioNetworkResponse.Stub {
        RadioResponse.responseVoid(RIL.NETWORK_SERVICE, mRil, responseInfo);
    }

    /**
     * @param responseInfo Response info struct containing response type, serial no. and error
     * @param regResponse Current registration response as defined by RegStateResult
     */
    public void getRegistrationStateResponse(RadioResponseInfo responseInfo,
            android.hardware.radio.network.RegStateResult regResponse) {
        RILRequest rr = mRil.processResponse(RIL.NETWORK_SERVICE, responseInfo);

        if (rr != null) {
            if (responseInfo.error == RadioError.NONE) {
                RadioResponse.sendMessageResponse(rr.mResult, regResponse);
            }
            mRil.processResponseDone(rr, responseInfo, regResponse);
        }
    }

    @Override
    public String getInterfaceHash() {
        return IRadioNetworkResponse.HASH;