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

Commit 6c88a3ec authored by Rebecca Silberstein's avatar Rebecca Silberstein
Browse files

WifiManager: remove last remnants of setWifiApEnabled

Now that the WifiManager.setWifiApEnabled call is deprecated and
removed, delete the underlying code.

Bug: 66917593
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: If68ddd3e2301b0ba9efc3914e2a0f0e17436ccf0
parent a5511eb6
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -126,8 +126,6 @@ interface IWifiManager


    void releaseMulticastLock();
    void releaseMulticastLock();


    void setWifiApEnabled(in WifiConfiguration wifiConfig, boolean enable);

    void updateInterfaceIpState(String ifaceName, int mode);
    void updateInterfaceIpState(String ifaceName, int mode);


    boolean startSoftAp(in WifiConfiguration wifiConfig);
    boolean startSoftAp(in WifiConfiguration wifiConfig);
+0 −1
Original line number Original line Diff line number Diff line
@@ -785,6 +785,5 @@ public class WifiManagerTest {
    public void testSetWifiApEnabledReturnsFalse() throws Exception {
    public void testSetWifiApEnabledReturnsFalse() throws Exception {
        assertFalse(mWifiManager.setWifiApEnabled(null, true));
        assertFalse(mWifiManager.setWifiApEnabled(null, true));
        assertFalse(mWifiManager.setWifiApEnabled(null, false));
        assertFalse(mWifiManager.setWifiApEnabled(null, false));
        verify(mWifiService, never()).setWifiApEnabled(any(), anyBoolean());
    }
    }
}
}