Home
last modified time | relevance | path

Searched refs:isWifiEnabled (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DAddWifiNetworkTaskTest.java131 when(mWifiManager.isWifiEnabled()).thenReturn(false); in testFailToEnableWifi()
150 when(mWifiManager.isWifiEnabled()).thenReturn(true); in testIsConnectedToSpecifiedWifiTrue()
173 when(mWifiManager.isWifiEnabled()).thenReturn(true); in testNoWifiInfoInProvider()
201 when(mWifiManager.isWifiEnabled()).thenReturn(true); in testFailingAddingNetwork()
231 when(mWifiManager.isWifiEnabled()).thenReturn(true); in testFailingToReconnectAfterAddingNetwork()
254 assertTrue(mWifiManager.isWifiEnabled()); in testFailingToReconnectAfterAddingNetwork()
267 when(mWifiManager.isWifiEnabled()).thenReturn(true); in testReconnectAfterAddingNetworkSuccess()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/slice/
DWifiSlice.java101 final boolean isWifiEnabled = isWifiEnabled(); in getSlice()
102 ListBuilder listBuilder = getListBuilder(isWifiEnabled, null /* accessPoint */); in getSlice()
103 if (!isWifiEnabled) { in getSlice()
133 listBuilder = getListBuilder(isWifiEnabled, accessPoint); in getSlice()
147 private ListBuilder getListBuilder(boolean isWifiEnabled, AccessPoint accessPoint) { in getListBuilder() argument
157 null /* actionTitle */, isWifiEnabled); in getListBuilder()
302 mWifiManager.isWifiEnabled()); in onNotifyChange()
329 private boolean isWifiEnabled() { in isWifiEnabled() method in WifiSlice
DWifiScanWorker.java101 if (!mWifiTracker.getManager().isWifiEnabled()) { in onAccessPointsChanged()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiSlice.java94 final boolean isWifiEnabled = isWifiEnabled(); in getSlice()
95 ListBuilder listBuilder = getHeaderRow(isWifiEnabled); in getSlice()
96 if (!isWifiEnabled) { in getSlice()
148 private ListBuilder getHeaderRow(boolean isWifiEnabled) { in getHeaderRow() argument
157 null /* actionTitle */, isWifiEnabled); in getHeaderRow()
309 mWifiManager.isWifiEnabled()); in onNotifyChange()
329 private boolean isWifiEnabled() { in isWifiEnabled() method in WifiSlice
DWifiScanWorker.java107 if (!mWifiTracker.getManager().isWifiEnabled()) { in onAccessPointsChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
DWifiP2PPreferenceControllerTest.java103 when(mWifiManager.isWifiEnabled()).thenReturn(true); in testWifiStateChange_shouldToggleEnabledState()
114 when(mWifiManager.isWifiEnabled()).thenReturn(false); in testWifiStateChange_shouldToggleEnabledState()
121 when(mWifiManager.isWifiEnabled()).thenReturn(true); in testDisplayPreference_shouldToggleEnabledState()
126 when(mWifiManager.isWifiEnabled()).thenReturn(false); in testDisplayPreference_shouldToggleEnabledState()
130 when(mWifiManager.isWifiEnabled()).thenReturn(true); in testDisplayPreference_shouldToggleEnabledState()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiSettingsFragment.java93 mWifiSwitch.setChecked(mCarWifiManager.isWifiEnabled()); in onWifiStateChanged()
105 mWifiSwitch.setChecked(mCarWifiManager.isWifiEnabled()); in setupWifiSwitch()
107 if (isChecked != mCarWifiManager.isWifiEnabled()) { in setupWifiSwitch()
DCarWifiManager.java134 if (mWifiManager.isWifiEnabled()) { in getAccessPoints()
163 public boolean isWifiEnabled() { in isWifiEnabled() method in CarWifiManager
164 return mWifiManager.isWifiEnabled(); in isWifiEnabled()
DWifiEntryPreferenceController.java48 if (isChecked != mCarWifiManager.isWifiEnabled()) { in onCreateInternal()
61 preference.setSwitchChecked(mCarWifiManager.isWifiEnabled()); in updateState()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarWifiManager.java104 public boolean isWifiEnabled() { in isWifiEnabled() method in ShadowCarWifiManager
105 return sInstance.isWifiEnabled(); in isWifiEnabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/
DWifiP2pPreferenceController.java86 preference.setEnabled(mLocationManager.isLocationEnabled() && mWifiManager.isWifiEnabled()); in updateState()
114 mWifiManager.isWifiEnabled() in togglePreferences()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPreferenceController.java86 preference.setEnabled(mLocationManager.isLocationEnabled() && mWifiManager.isWifiEnabled()); in updateState()
114 mWifiManager.isWifiEnabled() in togglePreferences()
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DWifiTile.java128 mCarWifiManager.setWifiEnabled(!mCarWifiManager.isWifiEnabled()); in onClick()
132 return mCarWifiManager.isWifiEnabled() && mCarWifiManager.getConnectedAccessPoint() == null; in wifiEnabledNotConnected()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java1356 when(mockWifiManager.isWifiEnabled()).thenReturn(true); in testConnectButton_clickConnect_displayAsSuccess()
1390 when(mockWifiManager.isWifiEnabled()).thenReturn(true); in testConnectButton_clickConnectButFailed_displayFailMessage()
1436 when(mockWifiManager.isWifiEnabled()).thenReturn(true); in testConnectButton_clickConnectButTimeout_displayFailMessage()
1465 when(mockWifiManager.isWifiEnabled()).thenReturn(true); in testConnectButton_clickConnectButTimeout_displayNotInRangeMessage()
1494 when(mockWifiManager.isWifiEnabled()).thenReturn(false); // wifi disabled in testConnectButton_clickConnectWhenWiFiDisabled_displaySuccessMessage()
1535 when(mockWifiManager.isWifiEnabled()).thenReturn(false); // wifi disabled in testConnectButton_clickConnectWhenWiFiDisabled_failedToConnectWiFi()
1574 when(mockWifiManager.isWifiEnabled()).thenReturn(false); // wifi disabled in testConnectButton_clickConnectWhenWiFiDisabled_failedToConnectWifiBecauseNotInRange()
1612 when(mockWifiManager.isWifiEnabled()).thenReturn(false); // wifi disabled in testConnectButton_clickConnectWhenWiFiDisabled_failedToEnableWifi()
1643 when(mockWifiManager.isWifiEnabled()).thenReturn(true); in testConnectButton_clickConnectAndBackKey_ignoreTimeoutEvent()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiEntryPreferenceControllerTest.java88 when(mCarWifiManager.isWifiEnabled()).thenReturn(false); in refreshUi_wifiDisabled_setsSwitchUnchecked()
100 when(mCarWifiManager.isWifiEnabled()).thenReturn(true); in refreshUi_wifiEnabled_setsSwitchChecked()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigInfo.java50 if (mWifiManager.isWifiEnabled()) { in onResume()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiConfigInfo.java50 if (mWifiManager.isWifiEnabled()) { in onResume()
DWifiSettings.java641 if (getActivity() != null && !mIsRestricted && mWifiManager.isWifiEnabled()) { in updateAccessPointsDelayed()
711 if (!mWifiManager.isWifiEnabled()) { in updateAccessPointPreferences()
/packages/apps/Nfc/src/com/android/nfc/
DConfirmConnectToWifiNetworkActivity.java67 } else if (!wifiManager.isWifiEnabled()) { in onClick()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DAddWifiNetworkTask.java178 return mWifiManager.isWifiEnabled() || mWifiManager.setWifiEnabled(true); in enableWifi()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/
DWifiNetworkListFragmentTest.java132 when(mWifiManager.isWifiEnabled()).thenReturn(wifiState == WifiManager.WIFI_STATE_ENABLED); in setWifiState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/
DWifiDppConfiguratorActivity.java381 if (!wifiManager.isWifiEnabled()) { in getConnectedWifiNetworkConfigOrNull()
DWifiNetworkListFragment.java281 if (!mWifiManager.isWifiEnabled()) { in updateAccessPointPreferences()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppConfiguratorActivity.java376 if (!wifiManager.isWifiEnabled()) { in getConnectedWifiNetworkConfigOrNull()
DWifiNetworkListFragment.java281 if (!mWifiManager.isWifiEnabled()) { in updateAccessPointPreferences()

12