Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/wifi/
DWifiSettings.java116 private WifiManager mWifiManager; field in WifiSettings
204 if (mWifiManager.isWifiEnabled()) { in onCreateView()
214 if (mWifiManager.isWifiEnabled()) { in onCreateView()
245 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onActivityCreated()
246 mChannel = mWifiManager.initialize(getActivity(), getActivity().getMainLooper(), null); in onActivityCreated()
376 mWifiManager.connect(mChannel, mKeyStoreNetworkId, mConnectListener); in onResume()
395 final boolean wifiIsEnabled = mWifiManager.isWifiEnabled(); in onCreateOptionsMenu()
469 if (mWifiManager.isWifiEnabled()) { in onOptionsItemSelected()
474 if (mWifiManager.isWifiEnabled()) { in onOptionsItemSelected()
523 mWifiManager.connect(mChannel, mSelectedAccessPoint.networkId, in onContextItemSelected()
[all …]
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()
DWifiEnabler.java42 private final WifiManager mWifiManager; field in WifiEnabler
70 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiEnabler()
94 final int wifiState = mWifiManager.getWifiState(); in setSwitch()
114 int wifiApState = mWifiManager.getWifiApState(); in onCheckedChanged()
117 mWifiManager.setWifiApEnabled(null, false); in onCheckedChanged()
120 if (mWifiManager.setWifiEnabled(isChecked)) { in onCheckedChanged()
DAdvancedWifiSettings.java48 private WifiManager mWifiManager; field in AdvancedWifiSettings
59 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onActivityCreated()
74 notifyOpenNetworks.setEnabled(mWifiManager.isWifiEnabled()); in initPreferences()
89 if (mWifiManager.isDualBandSupported()) { in initPreferences()
91 int value = mWifiManager.getFrequencyBand(); in initPreferences()
163 mWifiManager.setFrequencyBand(Integer.parseInt((String) newValue), true); in onPreferenceChange()
188 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in refreshWifiInfo()
DWifiApEnabler.java47 private WifiManager mWifiManager; field in WifiApEnabler
81 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiApEnabler()
116 int wifiState = mWifiManager.getWifiState(); in setSoftapEnabled()
119 mWifiManager.setWifiEnabled(false); in setSoftapEnabled()
123 if (mWifiManager.setWifiApEnabled(null, enable)) { in setSoftapEnabled()
141 mWifiManager.setWifiEnabled(true); in setSoftapEnabled()
173 WifiConfiguration wifiConfig = mWifiManager.getWifiApConfiguration(); in updateTetherState()
DWifiConfigInfo.java37 private WifiManager mWifiManager; field in WifiConfigInfo
47 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE); in onCreate()
55 final List<WifiConfiguration> wifiConfigs = mWifiManager.getConfiguredNetworks(); in onResume()
DWpsDialog.java58 private WifiManager mWifiManager; field in WpsDialog
157 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in onCreate()
158 mChannel = mWifiManager.initialize(mContext, mContext.getMainLooper(), null); in onCreate()
187 mWifiManager.startWps(mChannel, wpsConfig, mWpsListener); in onStart()
193 mWifiManager.cancelWps(mChannel, null); in onStop()
240 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in handleEvent()
DWifiStatusTest.java79 private WifiManager mWifiManager; field in WifiStatusTest
119 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE); in onCreate()
177 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo();
179 setWifiStateText(mWifiManager.getWifiState());
266 List<ScanResult> list = mWifiManager.getScanResults(); in handleScanResultsAvailable()
296 if (mWifiManager.isWifiEnabled()) { in handleNetworkStateChanged()
297 String summary = Summary.get(this, mWifiManager.getConnectionInfo().getSSID(), in handleNetworkStateChanged()
DWifiSettingsForSetupWizardXL.java76 private WifiManager mWifiManager; field in WifiSettingsForSetupWizardXL
145 mWifiManager = (WifiManager)getSystemService(Context.WIFI_SERVICE); in onCreate()
146 mChannel = mWifiManager.initialize(this, getMainLooper(), null); in onCreate()
149 mWifiManager.setWifiEnabled(true); in onCreate()
229 mWifiManager.setWifiEnabled(false); in onClick()
593 final List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in onBackButtonPressed()
599 mWifiManager.forget(mChannel, config.networkId, new WifiManager.ActionListener() { in onBackButtonPressed()
672 mWifiManager.disconnect(); in refreshAccessPoints()
764 mWifiManager.connect(mChannel, config, new WifiManager.ActionListener() { in onSaveNetwork()
/packages/apps/Settings/src/com/android/settings/net/
DDataUsageMeteredSettings.java47 private WifiManager mWifiManager; field in DataUsageMeteredSettings
61 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in onCreate()
83 if (hasWifiRadio(context) && mWifiManager.isWifiEnabled()) { in updateNetworks()
84 for (WifiConfiguration config : mWifiManager.getConfiguredNetworks()) { in updateNetworks()
/packages/apps/Settings/src/com/android/settings/
DTetherSettings.java89 private WifiManager mWifiManager; field in TetherSettings
168 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in initWifiTethering()
169 mWifiConfig = mWifiManager.getWifiApConfiguration(); in initWifiTethering()
566 if (mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_ENABLED) { in onClick()
567 mWifiManager.setWifiApEnabled(null, false); in onClick()
568 mWifiManager.setWifiApEnabled(mWifiConfig, true); in onClick()
570 mWifiManager.setWifiApConfiguration(mWifiConfig); in onClick()