Home
last modified time | relevance | path

Searched refs:getWifiState (Results 1 – 23 of 23) sorted by relevance

/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DSavedNetworkTrackerTest.java118 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in testOnStart_setsWifiState()
122 assertThat(savedNetworkTracker.getWifiState()).isEqualTo(WifiManager.WIFI_STATE_DISABLED); in testOnStart_setsWifiState()
126 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in testOnStart_setsWifiState()
130 assertThat(savedNetworkTracker.getWifiState()).isEqualTo(WifiManager.WIFI_STATE_ENABLED); in testOnStart_setsWifiState()
144 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in testWifiStateChangeBroadcast_updatesWifiState()
148 assertThat(wifiPickerTracker.getWifiState()).isEqualTo(WifiManager.WIFI_STATE_DISABLED); in testWifiStateChangeBroadcast_updatesWifiState()
151 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in testWifiStateChangeBroadcast_updatesWifiState()
155 assertThat(wifiPickerTracker.getWifiState()).isEqualTo(WifiManager.WIFI_STATE_ENABLED); in testWifiStateChangeBroadcast_updatesWifiState()
DWifiPickerTrackerTest.java139 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in testWifiStateChangeBroadcast_updatesWifiState()
143 assertThat(wifiPickerTracker.getWifiState()).isEqualTo(WifiManager.WIFI_STATE_DISABLED); in testWifiStateChangeBroadcast_updatesWifiState()
146 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in testWifiStateChangeBroadcast_updatesWifiState()
150 assertThat(wifiPickerTracker.getWifiState()).isEqualTo(WifiManager.WIFI_STATE_ENABLED); in testWifiStateChangeBroadcast_updatesWifiState()
197 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in testOnStart_setsWifiState()
201 assertThat(wifiPickerTracker.getWifiState()).isEqualTo(WifiManager.WIFI_STATE_DISABLED); in testOnStart_setsWifiState()
205 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in testOnStart_setsWifiState()
209 assertThat(wifiPickerTracker.getWifiState()).isEqualTo(WifiManager.WIFI_STATE_ENABLED); in testOnStart_setsWifiState()
DStandardNetworkDetailsTrackerTest.java100 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in setUp()
235 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in testWifiStateChanged_disabled_clearsLevel()
DNetworkDetailsTrackerTest.java87 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in setUp()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DBaseWifiTracker.java101 if (mWifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLED) {
227 if (mWifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLED) { in onStart()
259 public int getWifiState() { in getWifiState() method in BaseWifiTracker
260 return mWifiManager.getWifiState(); in getWifiState()
DStandardNetworkDetailsTracker.java176 if (mWifiManager.getWifiState() == WifiManager.WIFI_STATE_DISABLED) { in conditionallyUpdateScanResults()
DPasspointNetworkDetailsTracker.java237 if (mWifiManager.getWifiState() == WifiManager.WIFI_STATE_DISABLED) { in conditionallyUpdateScanResults()
DSavedNetworkTracker.java265 if (mWifiManager.getWifiState() == WifiManager.WIFI_STATE_DISABLED) { in conditionallyUpdateScanResults()
DWifiPickerTracker.java565 if (mWifiManager.getWifiState() == WifiManager.WIFI_STATE_DISABLED) { in conditionallyUpdateScanResults()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerWifiTest.java179 Mockito.verify(mMockWm).getWifiState(); in testFetchInitialData()
187 when(mMockWm.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in testFetchInitialData_correctValues()
218 when(mMockWm.getWifiState()).thenReturn( in setWifiEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconHolder.java83 public WifiIconState getWifiState() { in getWifiState() method in StatusBarIconHolder
DStatusBarIconController.java259 return addSignalIcon(index, slot, holder.getWifiState()); in addHolder()
366 onSetSignalIcon(viewIndex, holder.getWifiState()); in onSetIconHolder()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java200 state = mWifiManager.getWifiState(); in updateWifiState()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java175 int state = mWifiManager.getWifiState(); in waitForWifiState()
/frameworks/base/wifi/java/android/net/wifi/
DWifiManager.java2932 public int getWifiState() { in getWifiState() method in WifiManager
2946 return getWifiState() == WIFI_STATE_ENABLED; in isWifiEnabled()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java149 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in setUp()
DWifiAwareStateManagerTest.java146 when(mMockWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in setUp()
3809 when(mMockWifiManager.getWifiState()).thenReturn( in simulateWifiStateChange()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareStateManager.java709 if (mWifiManager.getWifiState() != WifiManager.WIFI_STATE_ENABLED) { in enableUsage()
/frameworks/base/wifi/api/
Dcurrent.txt325 method public int getWifiState();
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java245 when(mMockWifiManager.getWifiState()).thenReturn( in simulateWifiStateChange()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt18043 method public int getWifiState();
/frameworks/base/api/
Dcurrent.txt31405 method public int getWifiState();