Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialogActivity.java71 final WifiManager wifiManager = getSystemService(WifiManager.class); in onForget() local
78 wifiManager.disableEphemeralNetwork( in onForget()
85 wifiManager.forget(accessPoint.getConfig().networkId, null /* listener */); in onForget()
103 final WifiManager wifiManager = getSystemService(WifiManager.class); in onSubmit() local
107 wifiManager.connect(accessPoint.getConfig(), null /* listener */); in onSubmit()
110 wifiManager.save(config, null /* listener */); in onSubmit()
115 wifiManager.connect(config, null /* listener */); in onSubmit()
DConfigureWifiSettings.java78 final WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); in getPreferenceControllers() local
86 controllers.add(new WifiInfoPreferenceController(context, getLifecycle(), wifiManager)); in getPreferenceControllers()
88 controllers.add(new WifiP2pPreferenceController(context, getLifecycle(), wifiManager)); in getPreferenceControllers()
91 context, getLifecycle(), wifiManager, getFragmentManager())); in getPreferenceControllers()
DWriteWifiConfigToNfcDialog.java76 WriteWifiConfigToNfcDialog(Context context, int security, WifiManagerWrapper wifiManager) { in WriteWifiConfigToNfcDialog() argument
84 mWifiManager = wifiManager; in WriteWifiConfigToNfcDialog()
87 WriteWifiConfigToNfcDialog(Context context, Bundle savedState, WifiManagerWrapper wifiManager) { in WriteWifiConfigToNfcDialog() argument
95 mWifiManager = wifiManager; in WriteWifiConfigToNfcDialog()
DWifiManagerWrapper.java13 public WifiManagerWrapper(WifiManager wifiManager) { in WifiManagerWrapper() argument
14 mWifiManager = wifiManager; in WifiManagerWrapper()
DWifiInfoPreferenceController.java53 WifiManager wifiManager) { in WifiInfoPreferenceController() argument
55 mWifiManager = wifiManager; in WifiInfoPreferenceController()
DWpsPreferenceController.java65 WifiManager wifiManager, in WpsPreferenceController() argument
68 mWifiManager = wifiManager; in WpsPreferenceController()
/packages/apps/Nfc/src/com/android/nfc/
DConfirmConnectToWifiNetworkActivity.java61 WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onClick() local
63 if (!wifiManager.isWifiEnabled()) { in onClick()
64 wifiManager.setWifiEnabled(true); in onClick()
78 doConnect(wifiManager); in onClick()
84 private void doConnect(WifiManager wifiManager) { in doConnect() argument
86 int networkId = wifiManager.addNetwork(mCurrentWifiConfiguration); in doConnect()
92 wifiManager.connect(networkId, in doConnect()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java44 private WifiManager wifiManager; field in UtilsTest
55 when(mContext.getSystemService(WifiManager.class)).thenReturn(wifiManager); in setUp()
62 when(wifiManager.getCurrentNetwork()).thenReturn(network); in testGetWifiIpAddresses_succeeds()
73 when(wifiManager.getCurrentNetwork()).thenReturn(network); in testGetWifiIpAddresses_nullLinkProperties()
83 when(wifiManager.getCurrentNetwork()).thenReturn(null); in testGetWifiIpAddresses_nullNetwork()
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/
DNetworkRecommendationService.java71 WifiManager wifiManager = getSystemService(WifiManager.class); in onCreate() local
78 wifiManager, notificationManager, userManager, new WifiNotificationHelper(this)); in onCreate()
82 notificationManager, wifiManager); in onCreate()
84 … new WifiWakeupController(this, getContentResolver(), mControllerHandler, wifiManager, in onCreate()
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/scoring/util/
DNetworkUtil.java119 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in getCurrentWifiSsid() local
120 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in getCurrentWifiSsid()
127 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in getConfig() local
128 List<WifiConfiguration> configs = wifiManager.getConfiguredNetworks(); in getConfig()
/packages/apps/Settings/src/com/android/settings/widget/
DSettingsAppWidgetProvider.java369 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in getActualState() local
370 if (wifiManager != null) { in getActualState()
371 return wifiStateToFiveState(wifiManager.getWifiState()); in getActualState()
378 final WifiManager wifiManager = in requestStateChange() local
380 if (wifiManager == null) { in requestStateChange()
395 int wifiApState = wifiManager.getWifiApState(); in requestStateChange()
404 wifiManager.setWifiEnabled(desiredState); in requestStateChange()
/packages/apps/Settings/src/com/android/settings/
DResetNetworkConfirm.java78 WifiManager wifiManager = (WifiManager)
80 if (wifiManager != null) {
81 wifiManager.factoryReset();
DHotspotOffReceiver.java31 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in onReceive() local
32 if (wifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED) { in onReceive()
DUtils.java247 WifiManager wifiManager = context.getSystemService(WifiManager.class); in getWifiIpAddresses() local
248 Network currentNetwork = wifiManager.getCurrentNetwork(); in getWifiIpAddresses()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryTest.java85 final WifiManager wifiManager = mock(WifiManager.class); in testUpdateNetworkRestrictionSummary_shouldSetSummary() local
87 ReflectionHelpers.setField(dataUsageSummary, "mWifiManager", wifiManager); in testUpdateNetworkRestrictionSummary_shouldSetSummary()
88 when(wifiManager.getConfiguredNetworks()).thenReturn(new ArrayList<WifiConfiguration>()); in testUpdateNetworkRestrictionSummary_shouldSetSummary()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageMeteredSettings.java204 final WifiManager wifiManager =
206 if (hasWifiRadio(context) && wifiManager.isWifiEnabled()) {
207 for (WifiConfiguration config : wifiManager.getConfiguredNetworks()) {
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/util/
DRoboCompatUtil.java60 public void connectToWifi(WifiManager wifiManager, WifiConfiguration wifiConfiguration) { in connectToWifi() argument
61 wifiManager.connect(wifiConfiguration, null /* actionListener */); in connectToWifi()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPreferenceController.java54 Context context, Lifecycle lifecycle, WifiManager wifiManager) { in WifiP2pPreferenceController() argument
56 mWifiManager = wifiManager; in WifiP2pPreferenceController()
/packages/services/BuiltInPrintService/src/com/android/bips/
DBuiltInPrintService.java83 WifiManager wifiManager = (WifiManager)getSystemService(Context.WIFI_SERVICE); in onCreate() local
84 mWifiLock = wifiManager.createWifiLock(WifiManager.WIFI_MODE_FULL, TAG); in onCreate()
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/wakeup/
DWifiWakeupHelper.java115 WifiManager wifiManager) { in WifiWakeupHelper() argument
120 mWifiManager = wifiManager; in WifiWakeupHelper()
DWifiWakeupController.java93 WifiManager wifiManager, in WifiWakeupController() argument
103 mWifiManager = wifiManager; in WifiWakeupController()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java132 public static WifiConfiguration getWifiConfiguration(WifiManager wifiManager, int networkId) { in getWifiConfiguration() argument
133 List<WifiConfiguration> configuredNetworks = wifiManager.getConfiguredNetworks(); in getWifiConfiguration()
DWifiDetailsFragment.java232 WifiManager wifiManager = in onGuidedActionClicked() local
234 wifiManager.forget(mAccessPoint.getConfig().networkId, null); in onGuidedActionClicked()
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/notify/
DWifiNotificationController.java173 WifiManager wifiManager, in WifiNotificationController() argument
180 mWifiManager = wifiManager; in WifiNotificationController()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java207 WifiManager wifiManager, in WifiDetailPreferenceController() argument
218 mWifiManager = wifiManager; in WifiDetailPreferenceController()