Home
last modified time | relevance | path

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

12

/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DCarWifiManager.java208 public boolean setWifiEnabled(boolean enabled) { in setWifiEnabled() method in CarWifiManager
209 return mWifiManager.setWifiEnabled(enabled); in setWifiEnabled()
DWifiRequestToggleActivity.java75 mCarWifiManager.setWifiEnabled(true);
81 mCarWifiManager.setWifiEnabled(false);
DWifiEntryPreferenceController.java50 mCarWifiManager.setWifiEnabled(isChecked); in onCreateInternal()
DWifiSettingsFragment.java74 mCarWifiManager.setWifiEnabled(mWifiSwitch.isChecked()); in onCreate()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java490 view.findViewById(R.id.startWifi).setOnClickListener(v -> setWifiEnabled(true)); in onCreateView()
491 view.findViewById(R.id.stopWifi).setOnClickListener(v -> setWifiEnabled(false)); in onCreateView()
600 private void setWifiEnabled(boolean enabled) { in setWifiEnabled() method in ConnectivityFragment
601 mWifiManager.setWifiEnabled(enabled); in setWifiEnabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DRequestToggleWiFiActivity.java116 mWiFiManager.setWifiEnabled(true); in onClick()
123 mWiFiManager.setWifiEnabled(false); in onClick()
DWifiEnabler.java218 if (!mWifiManager.setWifiEnabled(isChecked)) { in onSwitchToggled()
/packages/apps/Settings/src/com/android/settings/wifi/
DRequestToggleWiFiActivity.java116 mWiFiManager.setWifiEnabled(true); in onClick()
123 mWiFiManager.setWifiEnabled(false); in onClick()
DWifiEnabler.java202 if (!mWifiManager.setWifiEnabled(isChecked)) { in onSwitchToggled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java89 mWifiManager.setWifiEnabled(true); in setUp()
115 mWifiManager.setWifiEnabled(false); in getWifiSlice_wifiOff_shouldReturnSingleRow()
DContextualWifiScanWorkerTest.java62 mWifiManager.setWifiEnabled(true); in setUp()
DContextualWifiSliceTest.java78 mWifiManager.setWifiEnabled(true); in setUp()
DWifiScanWorkerTest.java84 mWifiManager.setWifiEnabled(true); in setUp()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java362 public void setWifiEnabled(boolean enable) { in setWifiEnabled() method in ConnectivityListener
364 mWifiManager.setWifiEnabled(enable); in setWifiEnabled()
DNetworkFragment.java190 mConnectivityListener.setWifiEnabled(mEnableWifiPref.isChecked()); in onPreferenceTreeClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiEnablerTest.java63 when(mWifiManager.setWifiEnabled(true)).thenReturn(true); in onSwitchToggled_avoidBadWifiConfigIsFalse_shouldReturnTrue()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DWirelessNetworkSettingsTests.java120 wifiManager.setWifiEnabled(wifiEnabled); in loadWiFiSettingsPage()
DMoreWirelessSettingsTest2.java643 wifiManager.setWifiEnabled(wifiEnabled); in loadWiFiSettingsPage()
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DWifiTile.java130 mCarWifiManager.setWifiEnabled(!mCarWifiManager.isWifiEnabled()); in onClick()
/packages/apps/Nfc/src/com/android/nfc/
DConfirmConnectToWifiNetworkActivity.java68 wifiManager.setWifiEnabled(true); in onClick()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DAddWifiNetworkTask.java179 return mWifiManager.isWifiEnabled() || mWifiManager.setWifiEnabled(true); in enableWifi()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java1585 verify(mockWifiManager, times(1)).setWifiEnabled(true); in testConnectButton_clickConnectWhenWiFiDisabled_displaySuccessMessage()
1624 verify(mockWifiManager, times(1)).setWifiEnabled(true); in testConnectButton_clickConnectWhenWiFiDisabled_failedToConnectWiFi()
1663 verify(mockWifiManager, times(1)).setWifiEnabled(true); in testConnectButton_clickConnectWhenWiFiDisabled_failedToConnectWifiBecauseNotInRange()
1701 verify(mockWifiManager, times(1)).setWifiEnabled(true); in testConnectButton_clickConnectWhenWiFiDisabled_failedToEnableWifi()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DAddWifiNetworkTaskTest.java134 when(mWifiManager.setWifiEnabled(true)).thenReturn(false); in testFailToEnableWifi()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiSlice.java308 mWifiManager.setWifiEnabled(newState); in onNotifyChange()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/slice/
DWifiSlice.java302 mWifiManager.setWifiEnabled(newState); in onNotifyChange()

12