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

Commit bb91f5fe authored by Oscar Shu's avatar Oscar Shu Committed by Android (Google) Code Review
Browse files

Merge "Remove unwanted hidden APIs"

parents 2ad16ddb 8d4e20f2
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -164,12 +164,6 @@ interface IWifiManager
    void enableAggressiveHandover(int enabled);
    int getAggressiveHandover();

    void setAllowScansWithTraffic(int enabled);
    int getAllowScansWithTraffic();

    boolean setEnableAutoJoinWhenAssociated(boolean enabled);
    boolean getEnableAutoJoinWhenAssociated();

    void enableWifiConnectivityManager(boolean enabled);

    WifiConnectionStatistics getConnectionStatistics();
+16 −26
Original line number Diff line number Diff line
@@ -3488,27 +3488,23 @@ public class WifiManager {
    }

    /**
     * Set setting for allowing Scans when traffic is ongoing.
     * Deprecated
     * Does nothing
     * @hide
     * @deprecated
     */
    public void setAllowScansWithTraffic(int enabled) {
        try {
            mService.setAllowScansWithTraffic(enabled);
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
        return;
    }

    /**
     * Get setting for allowing Scans when traffic is ongoing.
     * Deprecated
     * returns value for 'disabled'
     * @hide
     * @deprecated
     */
    public int getAllowScansWithTraffic() {
        try {
            return mService.getAllowScansWithTraffic();
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
        return 0;
    }

    /**
@@ -3538,29 +3534,23 @@ public class WifiManager {
    }

    /**
     * Framework layer autojoin enable/disable when device is associated
     * this will enable/disable autojoin scan and switch network when connected
     * @return true -- if set successful false -- if set failed
     * Deprecated
     * returns false
     * @hide
     * @deprecated
     */
    public boolean setEnableAutoJoinWhenAssociated(boolean enabled) {
        try {
            return mService.setEnableAutoJoinWhenAssociated(enabled);
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
        return false;
    }

    /**
     * Get setting for Framework layer autojoin enable status
     * Deprecated
     * returns false
     * @hide
     * @deprecated
     */
    public boolean getEnableAutoJoinWhenAssociated() {
        try {
            return mService.getEnableAutoJoinWhenAssociated();
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
        return false;
    }

    /**