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

Commit af3f1c99 authored by Pierre Vandwalle's avatar Pierre Vandwalle Committed by android-build-merger
Browse files

Merge "export API to disable autojoin scan initial implementation" into lmp-mr1-wfc-dev

automerge: 7c398083

* commit '7c398083':
  export API to disable autojoin scan initial implementation
parents 2877877d 7c398083
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -155,6 +155,10 @@ interface IWifiManager

    void setAllowScansWithTraffic(int enabled);

    boolean getAllowScansWhileAssociated();

    void setAllowScansWhileAssociated(boolean enabled);

    WifiConnectionStatistics getConnectionStatistics();

    void disableEphemeralNetwork(String SSID);
+21 −0
Original line number Diff line number Diff line
@@ -2576,6 +2576,27 @@ public class WifiManager {
        }
    }

    /**
     * Set setting for allowing Scans when infrastructure is associated
     * @hide
     */
    public void setAllowScansWhileAssociated(boolean enabled) {
        try {
            mService.setAllowScansWhileAssociated(enabled);
        } catch (RemoteException e) {

        }
    }

    /**
     * Get setting for allowing Scans when infrastructure is associated
     * @hide
     */
    public boolean getAllowScansWhileAssociated() {
        try {
            return mService.getAllowScansWhileAssociated();
        } catch (RemoteException e) {
        }
        return false;
    }
}