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

Commit 549bd627 authored by Hunsuk Choi's avatar Hunsuk Choi
Browse files

Add resetScan parameter to cancelEmergencyNetworkScan

It indicates the way how the next triggerEmergencyNetworkScan shall work.
If true, modem will start the new scan from the beginning.
Otherwise, it will proceed as an existing search.

Test: build
Bug: 243344927
Change-Id: Idaaf637b57b6a1d3fbf479c063277119961fa606
parent 05230f38
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -889,12 +889,16 @@ public class RadioNetworkProxy extends RadioServiceProxy {
     * Cancels ongoing Emergency network scan
     *
     * @param serial Serial number of the request.
     * @param resetScan Indicates how the next {@link #triggerEmergencyNetworkScan} should work.
     *        If {@code true}, then the modem shall start the new scan from the beginning,
     *        otherwise the modem shall resume from the last search.
     *
     * @throws RemoteException
     */
    public void cancelEmergencyNetworkScan(int serial) throws RemoteException {
    public void cancelEmergencyNetworkScan(int serial, boolean resetScan) throws RemoteException {
        if (isEmpty()) return;
        if (isAidl()) {
            mNetworkProxy.cancelEmergencyNetworkScan(serial);
            mNetworkProxy.cancelEmergencyNetworkScan(serial, resetScan);
        }
        // Only supported on AIDL.
    }