/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | AddWifiNetworkTaskTest.java | 131 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/ |
D | WifiSlice.java | 101 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
|
D | WifiScanWorker.java | 101 if (!mWifiTracker.getManager().isWifiEnabled()) { in onAccessPointsChanged()
|
/packages/apps/Settings/src/com/android/settings/wifi/slice/ |
D | WifiSlice.java | 94 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
|
D | WifiScanWorker.java | 107 if (!mWifiTracker.getManager().isWifiEnabled()) { in onAccessPointsChanged()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
D | WifiP2PPreferenceControllerTest.java | 103 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/ |
D | WifiSettingsFragment.java | 93 mWifiSwitch.setChecked(mCarWifiManager.isWifiEnabled()); in onWifiStateChanged() 105 mWifiSwitch.setChecked(mCarWifiManager.isWifiEnabled()); in setupWifiSwitch() 107 if (isChecked != mCarWifiManager.isWifiEnabled()) { in setupWifiSwitch()
|
D | CarWifiManager.java | 134 if (mWifiManager.isWifiEnabled()) { in getAccessPoints() 163 public boolean isWifiEnabled() { in isWifiEnabled() method in CarWifiManager 164 return mWifiManager.isWifiEnabled(); in isWifiEnabled()
|
D | WifiEntryPreferenceController.java | 48 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/ |
D | ShadowCarWifiManager.java | 104 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/ |
D | WifiP2pPreferenceController.java | 86 preference.setEnabled(mLocationManager.isLocationEnabled() && mWifiManager.isWifiEnabled()); in updateState() 114 mWifiManager.isWifiEnabled() in togglePreferences()
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | WifiP2pPreferenceController.java | 86 preference.setEnabled(mLocationManager.isLocationEnabled() && mWifiManager.isWifiEnabled()); in updateState() 114 mWifiManager.isWifiEnabled() in togglePreferences()
|
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/ |
D | WifiTile.java | 128 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/ |
D | WifiDetailPreferenceControllerTest.java | 1356 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/ |
D | WifiEntryPreferenceControllerTest.java | 88 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/ |
D | WifiConfigInfo.java | 50 if (mWifiManager.isWifiEnabled()) { in onResume()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiConfigInfo.java | 50 if (mWifiManager.isWifiEnabled()) { in onResume()
|
D | WifiSettings.java | 641 if (getActivity() != null && !mIsRestricted && mWifiManager.isWifiEnabled()) { in updateAccessPointsDelayed() 711 if (!mWifiManager.isWifiEnabled()) { in updateAccessPointPreferences()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | ConfirmConnectToWifiNetworkActivity.java | 67 } else if (!wifiManager.isWifiEnabled()) { in onClick()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | AddWifiNetworkTask.java | 178 return mWifiManager.isWifiEnabled() || mWifiManager.setWifiEnabled(true); in enableWifi()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/ |
D | WifiNetworkListFragmentTest.java | 132 when(mWifiManager.isWifiEnabled()).thenReturn(wifiState == WifiManager.WIFI_STATE_ENABLED); in setWifiState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/ |
D | WifiDppConfiguratorActivity.java | 381 if (!wifiManager.isWifiEnabled()) { in getConnectedWifiNetworkConfigOrNull()
|
D | WifiNetworkListFragment.java | 281 if (!mWifiManager.isWifiEnabled()) { in updateAccessPointPreferences()
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiDppConfiguratorActivity.java | 376 if (!wifiManager.isWifiEnabled()) { in getConnectedWifiNetworkConfigOrNull()
|
D | WifiNetworkListFragment.java | 281 if (!mWifiManager.isWifiEnabled()) { in updateAccessPointPreferences()
|