Home
last modified time | relevance | path

Searched refs:wifiManager (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java126 private static String getPresharedKey(WifiManager wifiManager, in getPresharedKey() argument
129 wifiManager.getPrivilegedConfiguredNetworks(); in getPresharedKey()
208 WifiManager wifiManager, AccessPoint accessPoint) { in getConfiguratorQrCodeGeneratorIntentOrNull() argument
217 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getConfiguratorQrCodeGeneratorIntentOrNull()
240 WifiManager wifiManager, WifiEntry wifiEntry) { in getConfiguratorQrCodeGeneratorIntentOrNull() argument
249 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getConfiguratorQrCodeGeneratorIntentOrNull()
264 WifiManager wifiManager, WifiEntry wifiEntry) { in getConfiguratorQrCodeScannerIntentOrNull() argument
273 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getConfiguratorQrCodeScannerIntentOrNull()
294 WifiManager wifiManager, SoftApConfiguration softApConfiguration) { in getHotspotConfiguratorIntentOrNull() argument
345 private static void setConfiguratorIntentExtra(Intent intent, WifiManager wifiManager, in setConfiguratorIntentExtra() argument
[all …]
DWifiDppInitiatorViewModel.java73 final WifiManager wifiManager = getApplication().getSystemService(WifiManager.class); in startEasyConnectAsConfiguratorInitiator() local
75 wifiManager.startEasyConnectAsConfiguratorInitiator(qrCode, networkId, in startEasyConnectAsConfiguratorInitiator()
82 final WifiManager wifiManager = getApplication().getSystemService(WifiManager.class); in startEasyConnectAsEnrolleeInitiator() local
84 wifiManager.startEasyConnectAsEnrolleeInitiator(qrCode, getApplication().getMainExecutor(), in startEasyConnectAsEnrolleeInitiator()
DWifiDppQrCodeScannerFragment.java173 final WifiManager wifiManager =
184 final int id = wifiManager.addNetwork(qrCodeWifiConfiguration);
188 wifiManager.enableNetwork(id, /* attemptConnect */ false);
195 wifiManager.connect(id,
591 final WifiManager wifiManager = getContext().getSystemService(WifiManager.class); in onEnrolleeSuccess() local
593 wifiManager.getPrivilegedConfiguredNetworks(); in onEnrolleeSuccess()
598 wifiManager.connect(wifiConfig, WifiDppQrCodeScannerFragment.this); in onEnrolleeSuccess()
643 final WifiManager wifiManager = in onFailure() local
645 wifiManager.stopEasyConnectSession(); in onFailure()
DWifiDppConfiguratorActivity.java361 final WifiManager wifiManager = getSystemService(WifiManager.class); in getConnectedWifiNetworkConfigOrNull() local
362 if (!wifiManager.isWifiEnabled()) { in getConnectedWifiNetworkConfigOrNull()
366 final WifiInfo connectionInfo = wifiManager.getConnectionInfo(); in getConnectedWifiNetworkConfigOrNull()
372 final List<WifiConfiguration> configs = wifiManager.getConfiguredNetworks(); in getConnectedWifiNetworkConfigOrNull()
/packages/apps/Nfc/src/com/android/nfc/
DConfirmConnectToWifiNetworkActivity.java63 WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onClick() local
67 } else if (!wifiManager.isWifiEnabled()) { in onClick()
68 wifiManager.setWifiEnabled(true); in onClick()
82 doConnect(wifiManager); in onClick()
95 private void doConnect(WifiManager wifiManager) { in doConnect() argument
97 int networkId = wifiManager.addNetwork(mCurrentWifiConfiguration); in doConnect()
103 wifiManager.connect(networkId, in doConnect()
/packages/apps/Settings/src/com/android/settings/wifi/
DNetworkRequestDialogActivity.java121 final WifiManager wifiManager = getSystemService(WifiManager.class); in onResume() local
122 if (wifiManager != null) { in onResume()
123 wifiManager.registerNetworkRequestMatchCallback(new HandlerExecutor(mHandler), this); in onResume()
132 final WifiManager wifiManager = getSystemService(WifiManager.class); in onPause() local
133 if (wifiManager != null) { in onPause()
134 wifiManager.unregisterNetworkRequestMatchCallback(this); in onPause()
DWifiDialogActivity.java227 final WifiManager wifiManager = getSystemService(WifiManager.class); in onForget() local
234 wifiManager.disableEphemeralNetwork( in onForget()
241 wifiManager.forget(accessPoint.getConfig().networkId, null /* listener */); in onForget()
277 final WifiManager wifiManager = getSystemService(WifiManager.class); in onSubmit() local
282 wifiManager.connect(accessPoint.getConfig(), null /* listener */); in onSubmit()
285 wifiManager.save(config, null /* listener */); in onSubmit()
290 wifiManager.connect(config, null /* listener */); in onSubmit()
DConfigureWifiSettings.java71 final WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); in createPreferenceControllers() local
74 wifiManager)); in createPreferenceControllers()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigControllerTest.java335 WifiManager wifiManager = mock(WifiManager.class); in securitySpinnerTestHelper() local
336 when(wifiManager.isWpa3SaeSupported()).thenReturn(saeVisible); in securitySpinnerTestHelper()
337 when(wifiManager.isWpa3SuiteBSupported()).thenReturn(suitebVisible); in securitySpinnerTestHelper()
338 when(wifiManager.isEnhancedOpenSupported()).thenReturn(oweVisible); in securitySpinnerTestHelper()
341 WifiConfigUiBase.MODE_MODIFY, wifiManager); in securitySpinnerTestHelper()
390 WifiManager wifiManager) { in TestWifiConfigController() argument
391 super(parent, view, accessPoint, mode, wifiManager); in TestWifiConfigController()
488 final WifiManager wifiManager = mock(WifiManager.class); in selectSecurity_wpa3Eap192bit_eapMethodTls() local
489 when(wifiManager.isWpa3SuiteBSupported()).thenReturn(true); in selectSecurity_wpa3Eap192bit_eapMethodTls()
491 WifiConfigUiBase.MODE_MODIFY, wifiManager); in selectSecurity_wpa3Eap192bit_eapMethodTls()
DWifiConfigController2Test.java373 WifiManager wifiManager = mock(WifiManager.class); in securitySpinnerTestHelper() local
374 when(wifiManager.isWpa3SaeSupported()).thenReturn(saeVisible); in securitySpinnerTestHelper()
375 when(wifiManager.isWpa3SuiteBSupported()).thenReturn(suitebVisible); in securitySpinnerTestHelper()
376 when(wifiManager.isEnhancedOpenSupported()).thenReturn(oweVisible); in securitySpinnerTestHelper()
379 WifiConfigUiBase2.MODE_MODIFY, wifiManager); in securitySpinnerTestHelper()
428 WifiManager wifiManager) { in TestWifiConfigController2() argument
429 super(parent, view, wifiEntry, mode, wifiManager); in TestWifiConfigController2()
537 final WifiManager wifiManager = mock(WifiManager.class); in selectSecurity_wpa3Eap192bit_eapMethodTls() local
538 when(wifiManager.isWpa3SuiteBSupported()).thenReturn(true); in selectSecurity_wpa3Eap192bit_eapMethodTls()
540 WifiConfigUiBase2.MODE_MODIFY, wifiManager); in selectSecurity_wpa3Eap192bit_eapMethodTls()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkStackDependenciesTest.kt42 val wifiManager = context.getSystemService(WifiManager::class.java) in testGetFrequency() constant
43 assertNotNull(wifiManager, "Device supports wifi but there is no WifiManager") in testGetFrequency()
46 val wifiInfo = wifiManager.getConnectionInfo() in testGetFrequency()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DDeviceSettingBroadcastReceiver.java71 WifiManager wifiManager = context.getSystemService(WifiManager.class); in removeWifis() local
72 List<WifiConfiguration> wifiList = wifiManager.getConfiguredNetworks(); in removeWifis()
75 wifiManager.removeNetwork(wifiConfiguration.networkId); in removeWifis()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DNetworkSecurityPreferenceController.java78 WifiManager wifiManager = getContext().getSystemService(WifiManager.class); in onCreateInternal() local
84 if (wifiManager.isEnhancedOpenSupported()) { in onCreateInternal()
98 if (wifiManager.isWpa3SaeSupported()) { in onCreateInternal()
108 if (wifiManager.isWpa3SuiteBSupported()) { in onCreateInternal()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/networkrequest/
DNetworkRequestDialogFragment.java268 WifiManager wifiManager = getContext().getApplicationContext() in onPause() local
270 if (wifiManager != null) { in onPause()
271 wifiManager.unregisterNetworkRequestMatchCallback(this); in onPause()
316 WifiManager wifiManager = getContext().getApplicationContext() in onResume() local
318 if (wifiManager != null) { in onResume()
319 wifiManager.registerNetworkRequestMatchCallback(new HandlerExecutor(mHandler), this); in onResume()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java82 private WifiManager wifiManager; field in UtilsTest
104 when(mContext.getSystemService(WifiManager.class)).thenReturn(wifiManager); in setUp()
112 when(wifiManager.getCurrentNetwork()).thenReturn(network); in getWifiIpAddresses_succeeds()
123 when(wifiManager.getCurrentNetwork()).thenReturn(network); in getWifiIpAddresses_nullLinkProperties()
133 when(wifiManager.getCurrentNetwork()).thenReturn(null); in getWifiIpAddresses_nullNetwork()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkRequestDialogFragment.java234 final WifiManager wifiManager = getContext().getApplicationContext() in onPause() local
236 if (wifiManager != null) { in onPause()
237 wifiManager.unregisterNetworkRequestMatchCallback(this); in onPause()
300 final WifiManager wifiManager = getContext().getApplicationContext() in onResume() local
302 if (wifiManager != null) { in onResume()
303 wifiManager.registerNetworkRequestMatchCallback(new HandlerExecutor(mHandler), this); in onResume()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DInternetPreferenceControllerTest.java79 final WifiManager wifiManager = mock(WifiManager.class); in setUp() local
80 when(mContext.getSystemService(Context.WIFI_SERVICE)).thenReturn(wifiManager); in setUp()
81 when(wifiManager.getWifiState()).thenReturn(WifiManager.WIFI_STATE_DISABLED); in setUp()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/security/
DWifiSecurityHelper.java42 WifiManager wifiManager = context.getSystemService(WifiManager.class); in getSecurityTypes() local
48 if (wifiManager.isEnhancedOpenSupported()) { in getSecurityTypes()
62 if (wifiManager.isWpa3SaeSupported()) { in getSecurityTypes()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DResetNetworkConfirmFragment.java99 WifiManager wifiManager = (WifiManager) in resetNetwork() local
101 if (wifiManager != null) { in resetNetwork()
102 wifiManager.factoryReset(); in resetNetwork()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DWiFiInstaller.java106 WifiManager wifiManager = getSystemService(WifiManager.class); in createMainDialog() local
124 wifiManager.removePasspointConfiguration( in createMainDialog()
131 wifiManager.addOrUpdatePasspointConfiguration(mPasspointConfig); in createMainDialog()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSoftApManager.java31 WifiTetherSoftApManager(WifiManager wifiManager, in WifiTetherSoftApManager() argument
33 mWifiManager = wifiManager; in WifiTetherSoftApManager()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DMdnsDiscovery.java143 WifiManager wifiManager = getPrintService().getSystemService(WifiManager.class); in onStart() local
144 if (wifiManager != null) { in onStart()
146 mMulticastLock = wifiManager.createMulticastLock(this.getClass().getName()); in onStart()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarWifiManager.java48 public static void setInstance(CarWifiManager wifiManager) { in setInstance() argument
49 sInstance = wifiManager; in setInstance()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPreferenceController.java70 Context context, Lifecycle lifecycle, WifiManager wifiManager) { in WifiP2pPreferenceController() argument
72 mWifiManager = wifiManager; in WifiP2pPreferenceController()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DWirelessNetworkSettingsTests.java118 WifiManager wifiManager = (WifiManager) InstrumentationRegistry.getTargetContext() in loadWiFiSettingsPage() local
120 wifiManager.setWifiEnabled(wifiEnabled); in loadWiFiSettingsPage()

12