/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/ |
D | WifiDppUtils.java | 131 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 …]
|
D | WifiDppQrCodeScannerFragment.java | 166 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()
|
D | WifiDppInitiatorViewModel.java | 57 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()
|
D | WifiDppConfiguratorActivity.java | 380 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/ |
D | WifiDppUtils.java | 131 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 …]
|
D | WifiDppQrCodeScannerFragment.java | 166 final WifiManager wifiManager = 177 final int id = wifiManager.addNetwork(qrCodeWifiConfiguration); 181 wifiManager.enableNetwork(id, /* attemptConnect */ false); 188 wifiManager.connect(id, 562 final WifiManager wifiManager = getContext().getSystemService(WifiManager.class); in onEnrolleeSuccess() local 564 wifiManager.getPrivilegedConfiguredNetworks(); in onEnrolleeSuccess() 569 wifiManager.connect(wifiConfig, WifiDppQrCodeScannerFragment.this); in onEnrolleeSuccess() 614 final WifiManager wifiManager = in onFailure() local 616 wifiManager.stopEasyConnectSession(); in onFailure()
|
D | WifiDppInitiatorViewModel.java | 57 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()
|
D | WifiDppConfiguratorActivity.java | 375 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/ |
D | WifiDialogActivity.java | 100 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()
|
D | NetworkRequestDialogFragment.java | 238 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()
|
D | ConfigureWifiSettings.java | 81 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/ |
D | ConfirmConnectToWifiNetworkActivity.java | 63 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/ |
D | WifiDialogActivity.java | 108 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()
|
D | NetworkRequestDialogFragment.java | 238 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()
|
D | ConfigureWifiSettings.java | 81 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/ |
D | NetworkRequestDialogFragmentTest.java | 151 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()
|
D | WifiConfigControllerTest.java | 341 WifiManager wifiManager = mock(WifiManager.class); in securitySpinnerTestHelper() local 342 when(wifiManager.isWpa3SaeSupported()).thenReturn(saeVisible); in securitySpinnerTestHelper() 343 when(wifiManager.isWpa3SuiteBSupported()).thenReturn(suitebVisible); in securitySpinnerTestHelper() 344 when(wifiManager.isEnhancedOpenSupported()).thenReturn(oweVisible); in securitySpinnerTestHelper() 347 WifiConfigUiBase.MODE_MODIFY, wifiManager); in securitySpinnerTestHelper() 396 WifiManager wifiManager) { in TestWifiConfigController() argument 397 super(parent, view, accessPoint, mode, wifiManager); in TestWifiConfigController() 468 final WifiManager wifiManager = mock(WifiManager.class); in selectSecurity_wpa3Eap192bit_eapMethodTls() local 469 when(wifiManager.isWpa3SuiteBSupported()).thenReturn(true); in selectSecurity_wpa3Eap192bit_eapMethodTls() 471 WifiConfigUiBase.MODE_MODIFY, wifiManager); in selectSecurity_wpa3Eap192bit_eapMethodTls()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiUtil.java | 161 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/ |
D | UtilsTest.java | 82 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/ |
D | NetworkRequestDialogFragment.java | 239 final WifiManager wifiManager = getContext().getApplicationContext() in onPause() local 241 if (wifiManager != null) { in onPause() 242 wifiManager.unregisterNetworkRequestMatchCallback(this); in onPause() 305 final WifiManager wifiManager = getContext().getApplicationContext() in onResume() local 307 if (wifiManager != null) { in onResume() 308 wifiManager.registerNetworkRequestMatchCallback(this, mHandler); in onResume()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | ResetNetworkConfirmFragment.java | 97 WifiManager wifiManager = (WifiManager) in resetNetwork() local 99 if (wifiManager != null) { in resetNetwork() 100 wifiManager.factoryReset(); in resetNetwork()
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | MdnsDiscovery.java | 143 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/ |
D | WifiTetherSoftApManager.java | 31 WifiTetherSoftApManager(WifiManager wifiManager, in WifiTetherSoftApManager() argument 33 mWifiManager = wifiManager; in WifiTetherSoftApManager()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/tether/ |
D | WifiTetherSoftApManager.java | 31 WifiTetherSoftApManager(WifiManager wifiManager, in WifiTetherSoftApManager() argument 33 mWifiManager = wifiManager; in WifiTetherSoftApManager()
|
D | HotspotOffReceiver.java | 31 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in onReceive() local 32 if (wifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED) { in onReceive()
|