Home
last modified time | relevance | path

Searched refs:setWifiEnabled (Results 1 – 25 of 43) sorted by relevance

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiDataStallTest.java220 private void setWifiEnabled(boolean enabled) { in setWifiEnabled() method in WifiDataStallTest
236 setWifiEnabled(false); in testCellularDataConnectionOnOff()
237 setWifiEnabled(true); in testCellularDataConnectionOnOff()
250 setWifiEnabled(false); in testCellularDataConnectionOnOff()
253 setWifiEnabled(false); in testCellularDataConnectionOnOff()
264 setWifiEnabled(false); in testCellularDataListenerReset()
265 setWifiEnabled(true); in testCellularDataListenerReset()
633 setWifiEnabled(true); in testIncrementConnectionDuration()
668 setWifiEnabled(false); in testIncrementConnectionDuration()
DWifiHealthMonitorTest.java362 private void setWifiEnabled(boolean enabled) { in setWifiEnabled() method in WifiHealthMonitorTest
377 setWifiEnabled(true); in makeSerializedExample()
427 setWifiEnabled(false); in testReadWriteAndSWChange()
455 setWifiEnabled(true); in testSerializationDeserialization()
654 setWifiEnabled(false); in testAfterSwBuildChange()
666 setWifiEnabled(true); in testAfterSwBuildChange()
720 setWifiEnabled(true); in testFullBandScan()
736 setWifiEnabled(true); in test2GScan()
795 setWifiEnabled(true); in testPostBootAbnormalScanDetection()
DWifiConnectivityManagerTest.java200 setWifiEnabled(true); in setUp()
1995 setWifiEnabled(false); in connectionAttemptNotRateLimitedWhenScreenOffAfterWifiToggle()
1996 setWifiEnabled(true); in connectionAttemptNotRateLimitedWhenScreenOffAfterWifiToggle()
2838 setWifiEnabled(false); in openNetworkNotifierClearsPendingNotificationOnWifiDisabled()
3049 setWifiEnabled(true); in checkWorkingWithDefaultScheduleWithMultiplier()
4629 setWifiEnabled(false); in clearEnableTemporarilyDisabledNetworksWhenExitingWifiClientMode()
4651 setWifiEnabled(false); in testAnqpFlushCacheSkippedIfNotConfigured()
4684 setWifiEnabled(true); in verifyGetFirmwareRoamingInfoIsCalledWhenEnableWiFiAndWcmOn()
4700 setWifiEnabled(true); in verifyGetFirmwareRoamingInfoIsNotCalledWhenEnableWiFiAndWcmOff()
5105 setWifiEnabled(true); in filterScanResultsWithOneRadioChainInfoForNetworkSelectionIfConfigDisabled()
[all …]
DWifiServiceImplTest.java894 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledMetricsPrivilegedApp()
896 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, false)); in testSetWifiEnabledMetricsPrivilegedApp()
924 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledMetricsNormalAppBelowQSdk()
925 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, false)); in testSetWifiEnabledMetricsNormalAppBelowQSdk()
944 assertFalse(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledMetricsNormalAppTargetingQSdkNoIncrement()
945 assertFalse(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, false)); in testSetWifiEnabledMetricsNormalAppTargetingQSdkNoIncrement()
960 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledSuccessWithNetworkSettingsPermission()
975 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledSuccessWithNetworkManagedProvisioningPermission()
994 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledSuccessForDOAppsTargetingQSdk()
1013 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledSuccessForSystemAppsTargetingQSdk()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DCarWifiManager.java210 public boolean setWifiEnabled(boolean enabled) { in setWifiEnabled() method in CarWifiManager
211 return mWifiManager.setWifiEnabled(enabled); in setWifiEnabled()
DWifiRequestToggleActivity.java75 mCarWifiManager.setWifiEnabled(true);
81 mCarWifiManager.setWifiEnabled(false);
DWifiStateSwitchPreferenceController.java70 getCarWifiManager().setWifiEnabled(wifiEnabled); in handlePreferenceChanged()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java486 view.findViewById(R.id.startWifi).setOnClickListener(v -> setWifiEnabled(true)); in onCreateView()
487 view.findViewById(R.id.stopWifi).setOnClickListener(v -> setWifiEnabled(false)); in onCreateView()
595 private void setWifiEnabled(boolean enabled) { in setWifiEnabled() method in ConnectivityFragment
596 mWifiManager.setWifiEnabled(enabled); in setWifiEnabled()
/packages/apps/Settings/src/com/android/settings/wifi/
DRequestToggleWiFiActivity.java112 mWiFiManager.setWifiEnabled(true); in onClick()
119 mWiFiManager.setWifiEnabled(false); in onClick()
DWifiEnabler.java235 if (!mWifiManager.setWifiEnabled(isChecked)) { in onSwitchToggled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiEnablerTest.java66 when(mWifiManager.setWifiEnabled(true)).thenReturn(true); in onSwitchToggled_avoidBadWifiConfigIsFalse_shouldReturnTrue()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DWifiTile.java92 mWifiManager.setWifiEnabled(newState); in onNotifyChange()
DWifiRow.java109 mWifiManager.setWifiEnabled(newState); in onNotifyChange()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNoWifiStatePermissionTest.java217 mWifiManager.setWifiEnabled(true); in testSetWifiEnabled()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DWirelessNetworkSettingsTests.java123 wifiManager.setWifiEnabled(wifiEnabled); in loadWiFiSettingsPage()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java385 public void setWifiEnabled(boolean enable) { in setWifiEnabled() method in ConnectivityListener
387 mWifiManager.setWifiEnabled(enable); in setWifiEnabled()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DConnectivityListener.java415 public void setWifiEnabled(boolean enable) { in setWifiEnabled() method in ConnectivityListener
417 mWifiManager.setWifiEnabled(enable); in setWifiEnabled()
DNetworkState.java204 mNetworkModule.getConnectivityListener().setWifiEnabled(status); in onPreferenceTreeClick()
/packages/apps/Nfc/src/com/android/nfc/
DConfirmConnectToWifiNetworkActivity.java71 wifiManager.setWifiEnabled(true); in onClick()
/packages/modules/Wifi/framework/api/
Dlint-baseline.txt38 RequiresPermission: android.net.wifi.WifiManager#setWifiEnabled(boolean):
39 Method 'setWifiEnabled' documentation mentions permissions without declaring @RequiresPermission
Dmodule-lib-lint-baseline.txt90 RequiresPermission: android.net.wifi.WifiManager#setWifiEnabled(boolean):
91 Method 'setWifiEnabled' documentation mentions permissions without declaring @RequiresPermission
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DAddWifiNetworkTask.java173 return mWifiManager.isWifiEnabled() || mWifiManager.setWifiEnabled(true); in enableWifi()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DAddWifiNetworkTaskTest.java134 when(mWifiManager.setWifiEnabled(true)).thenReturn(false); in testFailToEnableWifi()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiHealthMonitor.java148 setWifiEnabled(mActiveModeWarden.getPrimaryClientModeManagerNullable() != null); in update()
217 private void setWifiEnabled(boolean enable) { in setWifiEnabled() method in WifiHealthMonitor
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DWifiTileTest.java200 verify(mWifiManager).setWifiEnabled(true); in onNotifyChange_togglesWifi()

12