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

Commit 976e6f27 authored by paulye's avatar paulye Committed by android-build-merger
Browse files

Merge "Add startNetworkScan_1_4 impl in RIL." am: d07d1030 am: df5b7794

am: cb2c6b2b

Change-Id: I087a0cd405a60961f2e21b59553ca30f9cc42f88
parents 2651349f cb2c6b2b
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -2000,8 +2000,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();
@@ -2031,7 +2029,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