Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/
DWifiDppUtils.java131 private static String getPresharedKey(WifiManager wifiManager, WifiConfiguration config) { in getPresharedKey() argument
134 final List<WifiConfiguration> wifiConfigs = wifiManager.getPrivilegedConfiguredNetworks(); in getPresharedKey()
189 WifiManager wifiManager, AccessPoint accessPoint) { in getConfiguratorQrCodeGeneratorIntentOrNull() argument
198 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getConfiguratorQrCodeGeneratorIntentOrNull()
213 WifiManager wifiManager, AccessPoint accessPoint) { in getConfiguratorQrCodeScannerIntentOrNull() argument
222 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getConfiguratorQrCodeScannerIntentOrNull()
243 WifiManager wifiManager, WifiConfiguration wifiConfiguration) { in getHotspotConfiguratorIntentOrNull() argument
251 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getHotspotConfiguratorIntentOrNull()
267 private static void setConfiguratorIntentExtra(Intent intent, WifiManager wifiManager, in setConfiguratorIntentExtra() argument
276 preSharedKey = removeFirstAndLastDoubleQuotes(getPresharedKey(wifiManager, in setConfiguratorIntentExtra()
[all …]
DWifiDppQrCodeScannerFragment.java166 final WifiManager wifiManager =
177 final int id = wifiManager.addNetwork(qrCodeWifiConfiguration);
181 wifiManager.enableNetwork(id, /* attemptConnect */ false);
185 wifiManager.connect(id,
552 final WifiManager wifiManager = getContext().getSystemService(WifiManager.class); in onEnrolleeSuccess() local
554 wifiManager.getPrivilegedConfiguredNetworks(); in onEnrolleeSuccess()
559 wifiManager.connect(wifiConfig, WifiDppQrCodeScannerFragment.this); in onEnrolleeSuccess()
604 final WifiManager wifiManager = in onFailure() local
606 wifiManager.stopEasyConnectSession(); in onFailure()
DWifiDppInitiatorViewModel.java57 final WifiManager wifiManager = getApplication().getSystemService(WifiManager.class); in startEasyConnectAsConfiguratorInitiator() local
59 wifiManager.startEasyConnectAsConfiguratorInitiator(qrCode, networkId, in startEasyConnectAsConfiguratorInitiator()
66 final WifiManager wifiManager = getApplication().getSystemService(WifiManager.class); in startEasyConnectAsEnrolleeInitiator() local
68 wifiManager.startEasyConnectAsEnrolleeInitiator(qrCode, getApplication().getMainExecutor(), in startEasyConnectAsEnrolleeInitiator()
DWifiDppConfiguratorActivity.java380 final WifiManager wifiManager = getSystemService(WifiManager.class); in getConnectedWifiNetworkConfigOrNull() local
381 if (!wifiManager.isWifiEnabled()) { in getConnectedWifiNetworkConfigOrNull()
385 final WifiInfo connectionInfo = wifiManager.getConnectionInfo(); in getConnectedWifiNetworkConfigOrNull()
391 final List<WifiConfiguration> configs = wifiManager.getConfiguredNetworks(); in getConnectedWifiNetworkConfigOrNull()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java131 private static String getPresharedKey(WifiManager wifiManager, in getPresharedKey() argument
134 wifiManager.getPrivilegedConfiguredNetworks(); in getPresharedKey()
197 WifiManager wifiManager, AccessPoint accessPoint) { in getConfiguratorQrCodeGeneratorIntentOrNull() argument
206 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getConfiguratorQrCodeGeneratorIntentOrNull()
226 WifiManager wifiManager, AccessPoint accessPoint) { in getConfiguratorQrCodeScannerIntentOrNull() argument
235 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getConfiguratorQrCodeScannerIntentOrNull()
256 WifiManager wifiManager, WifiConfiguration wifiConfiguration) { in getHotspotConfiguratorIntentOrNull() argument
264 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getHotspotConfiguratorIntentOrNull()
280 private static void setConfiguratorIntentExtra(Intent intent, WifiManager wifiManager, in setConfiguratorIntentExtra() argument
287 final String preSharedKey = removeFirstAndLastDoubleQuotes(getPresharedKey(wifiManager, in setConfiguratorIntentExtra()
[all …]
DWifiDppQrCodeScannerFragment.java166 final WifiManager wifiManager =
177 final int id = wifiManager.addNetwork(qrCodeWifiConfiguration);
181 wifiManager.enableNetwork(id, /* attemptConnect */ false);
185 wifiManager.connect(id,
559 final WifiManager wifiManager = getContext().getSystemService(WifiManager.class); in onEnrolleeSuccess() local
561 wifiManager.getPrivilegedConfiguredNetworks(); in onEnrolleeSuccess()
566 wifiManager.connect(wifiConfig, WifiDppQrCodeScannerFragment.this); in onEnrolleeSuccess()
611 final WifiManager wifiManager = in onFailure() local
613 wifiManager.stopEasyConnectSession(); in onFailure()
DWifiDppInitiatorViewModel.java57 final WifiManager wifiManager = getApplication().getSystemService(WifiManager.class); in startEasyConnectAsConfiguratorInitiator() local
59 wifiManager.startEasyConnectAsConfiguratorInitiator(qrCode, networkId, in startEasyConnectAsConfiguratorInitiator()
66 final WifiManager wifiManager = getApplication().getSystemService(WifiManager.class); in startEasyConnectAsEnrolleeInitiator() local
68 wifiManager.startEasyConnectAsEnrolleeInitiator(qrCode, getApplication().getMainExecutor(), in startEasyConnectAsEnrolleeInitiator()
DWifiDppConfiguratorActivity.java375 final WifiManager wifiManager = getSystemService(WifiManager.class); in getConnectedWifiNetworkConfigOrNull() local
376 if (!wifiManager.isWifiEnabled()) { in getConnectedWifiNetworkConfigOrNull()
380 final WifiInfo connectionInfo = wifiManager.getConnectionInfo(); in getConnectedWifiNetworkConfigOrNull()
386 final List<WifiConfiguration> configs = wifiManager.getConfiguredNetworks(); in getConnectedWifiNetworkConfigOrNull()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiDialogActivity.java100 final WifiManager wifiManager = getSystemService(WifiManager.class); in onForget() local
107 wifiManager.disableEphemeralNetwork( in onForget()
114 wifiManager.forget(accessPoint.getConfig().networkId, null /* listener */); in onForget()
132 final WifiManager wifiManager = getSystemService(WifiManager.class); in onSubmit() local
137 wifiManager.connect(accessPoint.getConfig(), null /* listener */); in onSubmit()
140 wifiManager.save(config, null /* listener */); in onSubmit()
145 wifiManager.connect(config, null /* listener */); in onSubmit()
DNetworkRequestDialogFragment.java238 final WifiManager wifiManager = getContext().getApplicationContext() in onPause() local
240 if (wifiManager != null) { in onPause()
241 wifiManager.unregisterNetworkRequestMatchCallback(this); in onPause()
304 final WifiManager wifiManager = getContext().getApplicationContext() in onResume() local
306 if (wifiManager != null) { in onResume()
307 wifiManager.registerNetworkRequestMatchCallback(this, mHandler); in onResume()
DConfigureWifiSettings.java81 final WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); in createPreferenceControllers() local
88 wifiManager)); in createPreferenceControllers()
90 wifiManager)); in createPreferenceControllers()
/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/
DWifiDialogActivity.java108 final WifiManager wifiManager = getSystemService(WifiManager.class); in onForget() local
115 wifiManager.disableEphemeralNetwork( in onForget()
122 wifiManager.forget(accessPoint.getConfig().networkId, null /* listener */); in onForget()
140 final WifiManager wifiManager = getSystemService(WifiManager.class); in onSubmit() local
145 wifiManager.connect(accessPoint.getConfig(), null /* listener */); in onSubmit()
148 wifiManager.save(config, null /* listener */); in onSubmit()
153 wifiManager.connect(config, null /* listener */); in onSubmit()
DNetworkRequestDialogFragment.java238 final WifiManager wifiManager = getContext().getApplicationContext() in onPause() local
240 if (wifiManager != null) { in onPause()
241 wifiManager.unregisterNetworkRequestMatchCallback(this); in onPause()
304 final WifiManager wifiManager = getContext().getApplicationContext() in onResume() local
306 if (wifiManager != null) { in onResume()
307 wifiManager.registerNetworkRequestMatchCallback(this, mHandler); in onResume()
DConfigureWifiSettings.java81 final WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); in createPreferenceControllers() local
88 wifiManager)); in createPreferenceControllers()
90 wifiManager)); in createPreferenceControllers()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestDialogFragmentTest.java151 WifiManager wifiManager = mock(WifiManager.class); in onResume_shouldRegisterCallback() local
152 when(applicationContext.getSystemService(Context.WIFI_SERVICE)).thenReturn(wifiManager); in onResume_shouldRegisterCallback()
156 verify(wifiManager).registerNetworkRequestMatchCallback(any(), any()); in onResume_shouldRegisterCallback()
164 WifiManager wifiManager = mock(WifiManager.class); in onPause_shouldUnRegisterCallback() local
165 when(applicationContext.getSystemService(Context.WIFI_SERVICE)).thenReturn(wifiManager); in onPause_shouldUnRegisterCallback()
169 verify(wifiManager).unregisterNetworkRequestMatchCallback(networkRequestDialogFragment); in onPause_shouldUnRegisterCallback()
215 WifiManager wifiManager = mock(WifiManager.class); in onMatch_shouldUpdatedList() local
216 when(applicationContext.getSystemService(Context.WIFI_SERVICE)).thenReturn(wifiManager); in onMatch_shouldUpdatedList()
DWifiConfigControllerTest.java324 WifiManager wifiManager = mock(WifiManager.class); in securitySpinnerTestHelper() local
325 when(wifiManager.isWpa3SaeSupported()).thenReturn(saeVisible); in securitySpinnerTestHelper()
326 when(wifiManager.isWpa3SuiteBSupported()).thenReturn(suitebVisible); in securitySpinnerTestHelper()
327 when(wifiManager.isEnhancedOpenSupported()).thenReturn(oweVisible); in securitySpinnerTestHelper()
330 WifiConfigUiBase.MODE_MODIFY, wifiManager); in securitySpinnerTestHelper()
379 WifiManager wifiManager) { in TestWifiConfigController() argument
380 super(parent, view, accessPoint, mode, wifiManager); in TestWifiConfigController()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiUtil.java161 WifiManager wifiManager = context.getSystemService(WifiManager.class); in connectToAccessPoint() local
196 int netId = wifiManager.addNetwork(wifiConfig); in connectToAccessPoint()
203 wifiManager.enableNetwork(netId, true); in connectToAccessPoint()
210 WifiManager wifiManager = context.getSystemService(WifiManager.class); in forget() local
215 wifiManager.disableEphemeralNetwork( in forget()
223 wifiManager.forget(accessPoint.getConfig().networkId, in forget()
/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/Car/Settings/src/com/android/car/settings/system/
DResetNetworkConfirmFragment.java93 WifiManager wifiManager = (WifiManager) in resetNetwork() local
95 if (wifiManager != null) { in resetNetwork()
96 wifiManager.factoryReset(); in resetNetwork()
/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/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSoftApManager.java27 WifiTetherSoftApManager(WifiManager wifiManager, in WifiTetherSoftApManager() argument
29 mWifiManager = wifiManager; in WifiTetherSoftApManager()
DHotspotOffReceiver.java31 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in onReceive() local
32 if (wifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED) { in onReceive()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/tether/
DWifiTetherSoftApManager.java27 WifiTetherSoftApManager(WifiManager wifiManager, in WifiTetherSoftApManager() argument
29 mWifiManager = wifiManager; in WifiTetherSoftApManager()
DHotspotOffReceiver.java31 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in onReceive() local
32 if (wifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED) { in onReceive()

12