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

Commit 7c398083 authored by Pierre Vandwalle's avatar Pierre Vandwalle Committed by Android (Google) Code Review
Browse files

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

parents bcb17eb7 5914caff
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -153,6 +153,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
@@ -2561,6 +2561,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;
    }
}