Home
last modified time | relevance | path

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

12

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DWifiTileTest.java63 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in getQCItem_wifiDisabled_returnsTile()
73 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_wifiNotConnected_returnsTile()
88 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_wifiConnected_returnsTile()
105 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_passpointWifiConnected_hasFriendlyName_returnsTile()
123 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_passpointWifiConnected_noFriendlyName_returnsRow()
141 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_osuWifiConnected_hasFriendlyName_returnsTile()
159 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_osuWifiConnected_noFriendlyName_returnsTile()
176 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in getQCItem_hasBaseUmRestriction_tileDisabled()
186 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in getQCItem_hasUmRestriction_tileClickableWhileDisabled()
196 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in onNotifyChange_togglesWifi()
[all …]
DWifiRowTest.java65 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in getQCItem_setsTitle()
73 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in getQCItem_wifiDisabled_returnsRow()
84 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_wifiNotConnected_returnsRow()
100 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_wifiConnected_returnsRow()
118 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_passpointWifiConnected_hasFriendlyName_returnsRow()
137 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_passpointWifiConnected_noFriendlyName_returnsRow()
156 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_osuWifiConnected_hasFriendlyName_returnsRow()
175 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in getQCItem_osuWifiConnected_noFriendlyName_returnsRow()
193 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in getQCItem_hasBaseUmRestriction_switchDisabled()
204 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in getQCItem_hasUmRestriction_switchClickableWhileDisabled()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DCarWifiManager.java205 public int getWifiState() { in getWifiState() method in CarWifiManager
206 return mWifiManager.getWifiState(); in getWifiState()
249 int state = mWifiTracker.getWifiState(); in onWifiStateChanged()
DWifiRequestToggleActivity.java130 final int wifiState = mCarWifiManager.getWifiState(); in onStart()
250 int currentState = mCarWifiManager.getWifiState(); in onReceive()
DWifiStatusPreferenceController.java45 switch (getCarWifiManager().getWifiState()) { in updateState()
DWifiStateSwitchPreferenceController.java95 onWifiStateChanged(getCarWifiManager().getWifiState()); in onStartInternal()
DWifiSettingsFragment.java85 onWifiStateChanged(mCarWifiManager.getWifiState()); in onStart()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DWifiQCUtils.java40 int wifiState = wifiManager.getWifiState(); in getSubtitle()
104 int state = wifiManager.getWifiState();
DWifiTile.java55 int wifiState = mWifiManager.getWifiState(); in getQCItem()
DWifiRow.java60 int wifiState = mWifiManager.getWifiState(); in getQCItem()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiEnabler.java72 handleWifiStateChanged(mWifiManager.getWifiState());
113 final int state = mWifiManager.getWifiState(); in setupSwitchController()
DRequestToggleWiFiActivity.java139 final int wifiState = mWiFiManager.getWifiState(); in onStart()
327 final int currentState = mWiFiManager.getWifiState(); in onReceive()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DInternetUpdaterTest.java147 doReturn(WifiManager.WIFI_STATE_DISABLED).when(mWifiManager).getWifiState(); in updateInternetType_apmOnWifiOff_getInternetApm()
158 doReturn(WifiManager.WIFI_STATE_ENABLED).when(mWifiManager).getWifiState(); in updateInternetType_apmOnWifiOnNotConnected_getInternetNetworksAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java111 doReturn(WifiManager.WIFI_STATE_ENABLED).when(mWifiManager).getWifiState(); in setUp()
204 doReturn(WifiManager.WIFI_STATE_DISABLED).when(mWifiManager).getWifiState(); in getWifiSlice_wifiOff_shouldReturnSingleRow()
339 assertThat(wifiManager.getWifiState()).isEqualTo(WifiManager.WIFI_STATE_ENABLED); in handleUriChange_updatesWifi()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarWifiManager.java96 public int getWifiState() { in getWifiState() method in ShadowCarWifiManager
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DRequestToggleWiFiActivityTest.java65 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in setUp()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNoWifiStatePermissionTest.java67 mWifiManager.getWifiState(); in testGetWifiState()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java381 && (mWifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLED in isWifiEnabledOrEnabling()
382 || mWifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLING); in isWifiEnabledOrEnabling()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DConnectivityListener.java411 && (mWifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLED in isWifiEnabledOrEnabling()
412 || mWifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLING); in isWifiEnabledOrEnabling()
DWifiTracker.java115 mListener.onWifiStateChanged(mWifiPickerTracker.getWifiState());
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiScanWorker.java151 if (mWifiPickerTracker.getWifiState() != WifiManager.WIFI_STATE_ENABLED in updateResults()
/packages/apps/Settings/src/com/android/settings/network/
DNetworkProviderSettings.java337 && mWifiPickerTracker.getWifiState() == WifiManager.WIFI_STATE_ENABLED; in onCreate()
832 final int wifiState = mWifiPickerTracker.getWifiState(); in onWifiStateChanged()
958 || mWifiPickerTracker.getWifiState() != WifiManager.WIFI_STATE_ENABLED) { in updateWifiEntryPreferences()
1323 if (wifiManager.getWifiState() != WifiManager.WIFI_STATE_ENABLED) { in getNonIndexableKeys()
DInternetUpdater.java258 && mWifiManager.getWifiState() != WifiManager.WIFI_STATE_ENABLED) { in updateInternetType()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiPrimarySwitchPreferenceControllerTest.java91 when(mWifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/addappnetworks/
DAddAppNetworksFragmentTest.java246 when(mWifiPickerTracker.getWifiState()).thenReturn(WifiManager.WIFI_STATE_ENABLED); in withOneSuggestion_whenScanResultChanged_uiListShouldHaveNewLevel()
266 when(mWifiPickerTracker.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in withOneSuggestion_whenScanResultChangedButWifiOff_uiListShouldHaveZeroLevel()

12