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

Commit ba39c673 authored by paulye's avatar paulye
Browse files

Add startNetworkScan_1_4 impl in RIL.

Change-Id: I390deead282cd67d2ae9464d468f147eb80b771d
Bug: 122730115
Test: Compilation
parent 6f319694
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -1937,8 +1937,6 @@ public class RIL extends BaseCommands implements CommandsInterface {
        IRadio radioProxy = getRadioProxy(result);
        if (radioProxy != null) {
            if (mRadioVersion.greaterOrEqual(RADIO_HAL_VERSION_1_2)) {
                android.hardware.radio.V1_2.IRadio radioProxy12 =
                        (android.hardware.radio.V1_2.IRadio) radioProxy;

                android.hardware.radio.V1_2.NetworkScanRequest request =
                        new android.hardware.radio.V1_2.NetworkScanRequest();
@@ -1968,7 +1966,15 @@ public class RIL extends BaseCommands implements CommandsInterface {
                }

                try {
                    if (mRadioVersion.greaterOrEqual(RADIO_HAL_VERSION_1_4)) {
                        android.hardware.radio.V1_4.IRadio radioProxy14 =
                                (android.hardware.radio.V1_4.IRadio) radioProxy;
                        radioProxy14.startNetworkScan_1_4(rr.mSerial, request);
                    } else {
                        android.hardware.radio.V1_2.IRadio radioProxy12 =
                                (android.hardware.radio.V1_2.IRadio) radioProxy;
                        radioProxy12.startNetworkScan_1_2(rr.mSerial, request);
                    }
                } catch (RemoteException | RuntimeException e) {
                    handleRadioProxyExceptionForRR(rr, "startNetworkScan", e);
                }
+10 −0
Original line number Diff line number Diff line
@@ -606,6 +606,16 @@ public class RadioResponse extends IRadioResponse.Stub {
        responseScanStatus(responseInfo);
    }

    /**
     * The same method as startNetworkScanResponse, except disallowing error codes
     * OPERATION_NOT_ALLOWED and REQUEST_NOT_SUPPORTED.
     *
     * @param responseInfo Response info struct containing response type, serial no. and error
     */
    public void startNetworkScanResponse_1_4(RadioResponseInfo responseInfo) {
        responseScanStatus(responseInfo);
    }

    /**
     *
     * @param responseInfo Response info struct containing response type, serial no. and error