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

Commit 10ebd7f2 authored by Chen Xu's avatar Chen Xu Committed by android-build-merger
Browse files

Merge "refactor resetNv API to resetRadioModemConfig and rebootRadioModem" am: 5a6b9387

am: 46b78a16

Change-Id: Ie474b5c8713f48c8e664095b9dda807113d0c0b8
parents c49727ba 46b78a16
Loading
Loading
Loading
Loading
+14 −5
Original line number Original line Diff line number Diff line
@@ -2149,15 +2149,24 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
    }
    }


    /**
    /**
     * Perform the specified type of NV config reset. The radio will be taken offline
     * Perform the radio modem reboot. The radio will be taken offline. Used for device
     * and the device must be rebooted after erasing the NV. Used for device
     * configuration by some CDMA operators.
     * configuration by some CDMA operators.
     * TODO: reuse nvResetConfig for now, should move to separate HAL API.
     *
     *
     * @param resetType reset type: 1: reload NV reset, 2: erase NV reset, 3: factory NV reset
     * @param response Callback message.
     * @param response Callback message.
     */
     */
    public void nvResetConfig(int resetType, Message response) {
    public void rebootModem(Message response) {
        mCi.nvResetConfig(resetType, response);
        mCi.nvResetConfig(1 /* 1: reload NV reset, trigger a modem reboot */, response);
    }

    /**
     * Perform the modem configuration reset. Used for device configuration by some CDMA operators.
     * TODO: reuse nvResetConfig for now, should move to separate HAL API.
     *
     * @param response Callback message.
     */
    public void resetModemConfig(Message response) {
        mCi.nvResetConfig(3 /* factory NV reset */, response);
    }
    }


    public void notifyDataActivity() {
    public void notifyDataActivity() {