Home
last modified time | relevance | path

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

12

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java68 private final WifiManager mWifiManager; field in ConnectivityListener
118 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in ConnectivityListener()
175 mWifiManager.startScan(); in scanWifiAccessPoints()
184 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getWifiIpAddress()
198 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getWifiMacAddress()
241 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getWifiSignalStrength()
248 mWifiManager.forget(networkId, null); in forgetWifiNetwork()
253 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getWifiNetworkId()
262 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getWifiConfiguration()
265 List<WifiConfiguration> configuredNetworks = mWifiManager.getConfiguredNetworks(); in getWifiConfiguration()
[all …]
DConnectToWifiFragment.java79 private WifiManager mWifiManager; field in ConnectToWifiFragment
110 mWifiManager = ((WifiManager) getActivity().getSystemService(Context.WIFI_SERVICE)); in onCreate()
187 int networkId = mWifiManager.addNetwork(mWifiConfiguration); in onCreate()
193 } else if (!mWifiManager.enableNetwork(networkId, true)) { in onCreate()
198 } else if (!mWifiManager.reconnect()) { in onCreate()
212 mWifiManager.disconnect(); in onDestroy()
247 WifiInfo currentConnection = mWifiManager.getConnectionInfo(); in isNetworkConnected()
DWifiNetworksBrowseInfo.java63 private final WifiManager mWifiManager; field in WifiNetworksBrowseInfo
69 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiNetworksBrowseInfo()
113 WifiInfo currentConnection = mWifiManager.getConnectionInfo(); in initAvailableNetworksBrowseItems()
128 if (WifiConfigHelper.areSameNetwork(mWifiManager, network, currentConnection)) { in initAvailableNetworksBrowseItems()
296 mWifiManager, connectedWifiInfo); in getAvailableNetworks()
299 final List<ScanResult> results = mWifiManager.getScanResults(); in getAvailableNetworks()
303 mWifiManager.startScan(); in getAvailableNetworks()
319 if (WifiConfigHelper.areSameNetwork(mWifiManager, result, connectedWifiInfo)) { in getAvailableNetworks()
DWifiConfigurationActivity.java59 private WifiManager mWifiManager; field in WifiConfigurationActivity
76 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onCreate()
140 return mWifiManager.getConnectionInfo(); in getWifiInfo()
199 mWifiManager, wifiInfo.getNetworkId()); in refreshActionList()
249 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getNetworkName()
300 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getNetworkId()
366 mWifiManager.forget(networkId, null); in onActionClicked()
DWpsConnectionActivity.java48 private WifiManager mWifiManager; field in WpsConnectionActivity
79 mWifiManager.cancelWps(null);
99 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onCreate()
112 mWifiManager.cancelWps(null); in onStop()
140 mWifiManager.startWps(wpsConfig, mWpsCallback); in startWps()
DWifiConfig.java29 private WifiManager mWifiManager; field in WifiConfig
33 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiConfig()
49 mWifiManager.save(mWifiConfiguration, listener); in save()
56 mWifiConfiguration = WifiConfigHelper.getWifiConfiguration(mWifiManager, networkId); in load()
DConnectivityStatusIconUriGetter.java43 private final WifiManager mWifiManager; field in ConnectivityStatusIconUriGetter
62 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in ConnectivityStatusIconUriGetter()
91 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getWifiDrawableResourceId()
92 boolean isOpen = isOpenNetwork(mWifiManager, wifiInfo); in getWifiDrawableResourceId()
DConnectivityStatusTextGetter.java38 private final WifiManager mWifiManager; field in ConnectivityStatusTextGetter
62 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in ConnectivityStatusTextGetter()
85 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getWifiString()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiSettings.java116 /* package */ WifiManager mWifiManager; field in WifiSettings
201 if (mWifiSettings.mWifiManager.startScan()) { in handleMessage()
241 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onActivityCreated()
398 final boolean wifiIsEnabled = mWifiManager.isWifiEnabled(); in addOptionsMenuItems()
461 if (mWifiManager.isWifiEnabled()) { in onOptionsItemSelected()
466 if (mWifiManager.isWifiEnabled()) { in onOptionsItemSelected()
628 getActivity(), mSelectedAccessPoint, mWifiManager); in onCreateDialog()
648 final int wifiState = mWifiManager.getWifiState(); in updateAccessPoints()
651 mVerboseLogging = mWifiManager.getVerboseLoggingLevel(); in updateAccessPoints()
657 constructAccessPoints(getActivity(), mWifiManager, mLastInfo, in updateAccessPoints()
[all …]
DWifiApEnabler.java47 private WifiManager mWifiManager; field in WifiApEnabler
82 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiApEnabler()
117 int wifiState = mWifiManager.getWifiState(); in setSoftapEnabled()
120 mWifiManager.setWifiEnabled(false); in setSoftapEnabled()
124 if (mWifiManager.setWifiApEnabled(null, enable)) { in setSoftapEnabled()
146 mWifiManager.setWifiEnabled(true); in setSoftapEnabled()
178 WifiConfiguration wifiConfig = mWifiManager.getWifiApConfiguration(); in updateTetherState()
DWifiEnabler.java46 private final WifiManager mWifiManager; field in WifiEnabler
90 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiEnabler()
101 final int state = mWifiManager.getWifiState(); in setupSwitchBar()
207 int wifiApState = mWifiManager.getWifiApState(); in onSwitchChanged()
210 mWifiManager.setWifiApEnabled(null, false); in onSwitchChanged()
213 if (!mWifiManager.setWifiEnabled(isChecked)) { in onSwitchChanged()
DAdvancedWifiSettings.java68 private WifiManager mWifiManager; field in AdvancedWifiSettings
93 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onActivityCreated()
120 notifyOpenNetworks.setEnabled(mWifiManager.isWifiEnabled()); in initPreferences()
172 if (mWifiManager.isDualBandSupported()) { in initPreferences()
174 int value = mWifiManager.getFrequencyBand(); in initPreferences()
266 mWifiManager.setFrequencyBand(value, true); in onPreferenceChange()
319 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in refreshWifiInfo()
DWifiStatusTest.java85 private WifiManager mWifiManager; field in WifiStatusTest
125 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE); in onCreate()
183 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo();
185 setWifiStateText(mWifiManager.getWifiState());
272 List<ScanResult> list = mWifiManager.getScanResults(); in handleScanResultsAvailable()
302 if (mWifiManager.isWifiEnabled()) { in handleNetworkStateChanged()
303 WifiInfo info = mWifiManager.getConnectionInfo(); in handleNetworkStateChanged()
DWifiSettingsForSetupWizardXL.java75 private WifiManager mWifiManager; field in WifiSettingsForSetupWizardXL
143 mWifiManager = (WifiManager)getSystemService(Context.WIFI_SERVICE); in onCreate()
146 mWifiManager.setWifiEnabled(true); in onCreate()
226 mWifiManager.setWifiEnabled(false); in onClick()
590 final List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in onBackButtonPressed()
596 mWifiManager.forget(config.networkId, new WifiManager.ActionListener() { in onBackButtonPressed()
669 mWifiManager.disconnect(); in refreshAccessPoints()
761 mWifiManager.connect(config, new WifiManager.ActionListener() { in onSaveNetwork()
DWifiAPITest.java55 private WifiManager mWifiManager; field in WifiAPITest
67 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE); in onCreate()
102 mWifiManager.disconnect(); in onPreferenceClick()
114 mWifiManager.disableNetwork(netid); in onPreferenceClick()
134 mWifiManager.enableNetwork(netid, false); in onPreferenceClick()
DSavedAccessPointsWifiSettings.java54 private WifiManager mWifiManager; field in SavedAccessPointsWifiSettings
77 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onActivityCreated()
91 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in initPreferences()
92 final List<AccessPoint> accessPoints = constructSavedAccessPoints(context, mWifiManager); in initPreferences()
201 mWifiManager.forget(mSelectedAccessPoint.networkId, null); in onClick()
DWpsDialog.java59 private WifiManager mWifiManager; field in WpsDialog
179 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in onCreate()
208 mWifiManager.startWps(wpsConfig, mWpsListener); in onStart()
214 mWifiManager.cancelWps(null); in onStop()
267 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in handleEvent()
DWifiConfigInfo.java35 private WifiManager mWifiManager; field in WifiConfigInfo
41 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE); in onCreate()
49 if (mWifiManager.isWifiEnabled()) { in onResume()
50 final List<WifiConfiguration> wifiConfigs = mWifiManager.getConfiguredNetworks(); in onResume()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DAddWifiNetworkTask.java55 private WifiManager mWifiManager; field in AddWifiNetworkTask
84 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in AddWifiNetworkTask()
85 mWifiConfig = new WifiConfig(mWifiManager); in AddWifiNetworkTask()
136 if (!mWifiManager.reconnect()) { in connectToProvidedNetwork()
158 return mWifiManager != null in enableWifi()
159 && (mWifiManager.isWifiEnabled() || mWifiManager.setWifiEnabled(true)); in enableWifi()
195 && mWifiManager.getConnectionInfo() != null in isConnectedToSpecifiedWifi()
196 && mSsid.equals(mWifiManager.getConnectionInfo().getSSID()); in isConnectedToSpecifiedWifi()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DWifiConfig.java30 private final WifiManager mWifiManager; field in WifiConfig
39 mWifiManager = manager; in WifiConfig()
47 if (!mWifiManager.isWifiEnabled()) { in addNetwork()
48 mWifiManager.setWifiEnabled(true); in addNetwork()
82 int netId = mWifiManager.addNetwork(wifiConf); in addNetwork()
86 mWifiManager.enableNetwork(netId, true); in addNetwork()
87 mWifiManager.saveConfiguration(); in addNetwork()
/packages/apps/Settings/src/com/android/settings/
DTetherSettings.java87 private WifiManager mWifiManager; field in TetherSettings
186 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in initWifiTethering()
187 mWifiConfig = mWifiManager.getWifiApConfiguration(); in initWifiTethering()
637 if (mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_ENABLED) { in onClick()
638 mWifiManager.setWifiApEnabled(null, false); in onClick()
639 mWifiManager.setWifiApEnabled(mWifiConfig, true); in onClick()
641 mWifiManager.setWifiApConfiguration(mWifiConfig); in onClick()
DDevelopmentSettings.java174 private WifiManager mWifiManager; field in DevelopmentSettings
259 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onCreate()
1050 boolean enabled = mWifiManager.getVerboseLoggingLevel() > 0; in updateWifiVerboseLoggingOptions()
1055 mWifiManager.enableVerboseLogging(mWifiVerboseLogging.isChecked() ? 1 : 0); in writeWifiVerboseLoggingOptions()
1059 boolean enabled = mWifiManager.getAggressiveHandover() > 0; in updateWifiAggressiveHandoverOptions()
1064 mWifiManager.enableAggressiveHandover(mWifiAggressiveHandover.isChecked() ? 1 : 0); in writeWifiAggressiveHandoverOptions()
1068 boolean enabled = mWifiManager.getAllowScansWithTraffic() > 0; in updateWifiAllowScansWithTrafficOptions()
1073 mWifiManager.setAllowScansWithTraffic(mWifiAllowScansWithTraffic.isChecked() ? 1 : 0); in writeWifiAllowScansWithTrafficOptions()
/packages/apps/Settings/src/com/android/settings/net/
DDataUsageMeteredSettings.java54 private WifiManager mWifiManager; field in DataUsageMeteredSettings
68 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in onCreate()
90 if (hasWifiRadio(context) && mWifiManager.isWifiEnabled()) { in updateNetworks()
91 for (WifiConfiguration config : mWifiManager.getConfiguredNetworks()) { in updateNetworks()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DWifiSetupActivity.java80 private WifiManager mWifiManager; field in WifiSetupActivity
98 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onCreate()
418 final List<ScanResult> results = mWifiManager.getScanResults(); in getNetworks()
490 WifiInfo currentWifiConnection = mWifiManager.getConnectionInfo(); in addSummaryPage()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DDeveloperOptionsActivity.java83 private WifiManager mWifiManager; field in DeveloperOptionsActivity
91 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onCreate()
143 mWifiManager.getVerboseLoggingLevel() > 0 ? "On" : "Off")); in refreshActionList()
481 mWifiManager.enableVerboseLogging(enable ? 1 : 0); in setProperty()
549 return mWifiManager.getVerboseLoggingLevel() > 0; in getProperty()

12