/frameworks/base/wifi/java/android/net/wifi/ |
WifiManager.java | 65 public class WifiManager { 67 private static final String TAG = "WifiManager"; 551 * Create a new WifiManager instance. 560 public WifiManager(Context context, IWifiManager service) { [all...] |
WifiWatchdogStateMachine.java | 116 private static final int LINK_MONITOR_LEVEL_THRESHOLD = WifiManager.RSSI_LEVELS - 1; 264 private WifiManager mWifiManager; 310 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); 361 if (action.equals(WifiManager.RSSI_CHANGED_ACTION)) { 363 intent.getIntExtra(WifiManager.EXTRA_NEW_RSSI, -200), 0).sendToTarget(); 364 } else if (action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) { 366 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) { 372 } else if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { 374 WifiManager.EXTRA_WIFI_STATE, WifiManager.WIFI_STATE_UNKNOWN)) [all...] |
WifiStateMachine.java | 19 import static android.net.wifi.WifiManager.WIFI_STATE_DISABLED; 20 import static android.net.wifi.WifiManager.WIFI_STATE_DISABLING; 21 import static android.net.wifi.WifiManager.WIFI_STATE_ENABLED; 22 import static android.net.wifi.WifiManager.WIFI_STATE_ENABLING; 23 import static android.net.wifi.WifiManager.WIFI_STATE_UNKNOWN; 29 import static android.net.wifi.WifiManager.WIFI_AP_STATE_DISABLED; 30 import static android.net.wifi.WifiManager.WIFI_AP_STATE_DISABLING; 31 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED; 32 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLING; 33 import static android.net.wifi.WifiManager.WIFI_AP_STATE_FAILED [all...] |
SupplicantStateTracker.java | 148 Intent intent = new Intent(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); 151 intent.putExtra(WifiManager.EXTRA_NEW_STATE, (Parcelable) state); 154 WifiManager.EXTRA_SUPPLICANT_ERROR, 155 WifiManager.ERROR_AUTHENTICATING); 187 case WifiManager.CONNECT_NETWORK:
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
ConnectionUtil.java | 37 import android.net.wifi.WifiManager; 76 private WifiManager mWifiManager; 105 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); 106 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); 107 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); 108 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); 109 mIntentFilter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); 115 // Get an instance of WifiManager 116 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); 187 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
TestCase.java | 19 import android.net.wifi.WifiManager; 53 protected WifiManager mWifiMgr; 146 mWifiMgr = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiAPITest.java | 24 import android.net.wifi.WifiManager; 55 private WifiManager mWifiManager; 67 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
|
WifiScanModeActivity.java | 29 import android.net.wifi.WifiManager; 47 .equals(WifiManager.ACTION_REQUEST_SCAN_ALWAYS_AVAILABLE)) {
|
AdvancedWifiSettings.java | 22 import android.net.wifi.WifiManager; 54 private WifiManager mWifiManager; 65 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
|
WifiSettingsForSetupWizardXL.java | 25 import android.net.wifi.WifiManager; 75 private WifiManager mWifiManager; 143 mWifiManager = (WifiManager)getSystemService(Context.WIFI_SERVICE); 596 mWifiManager.forget(config.networkId, new WifiManager.ActionListener() { 677 * {@link WifiManager#SUPPLICANT_STATE_CHANGED_ACTION}. 680 final int errorCode = intent.getIntExtra(WifiManager.EXTRA_SUPPLICANT_ERROR, -1); 681 if (errorCode == WifiManager.ERROR_AUTHENTICATING) { 757 * Called when WifiManager is requested to save a network. 761 mWifiManager.connect(config, new WifiManager.ActionListener() {
|
/frameworks/base/services/java/com/android/server/wifi/ |
WifiService.java | 40 import android.net.wifi.WifiManager; 174 case WifiManager.CONNECT_NETWORK: 175 case WifiManager.SAVE_NETWORK: { 186 if (msg.what == WifiManager.CONNECT_NETWORK) { 187 replyFailed(msg, WifiManager.CONNECT_NETWORK_FAILED); 189 replyFailed(msg, WifiManager.SAVE_NETWORK_FAILED); 198 if (msg.what == WifiManager.CONNECT_NETWORK) { 199 replyFailed(msg, WifiManager.CONNECT_NETWORK_FAILED); 201 replyFailed(msg, WifiManager.SAVE_NETWORK_FAILED); 206 case WifiManager.FORGET_NETWORK [all...] |
WifiController.java | 29 import android.net.wifi.WifiManager; 30 import static android.net.wifi.WifiManager.WIFI_MODE_FULL; 31 import static android.net.wifi.WifiManager.WIFI_MODE_FULL_HIGH_PERF; 32 import static android.net.wifi.WifiManager.WIFI_MODE_SCAN_ONLY; 89 "com.android.server.WifiManager.action.DEVICE_IDLE"; 175 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); 183 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) { 185 WifiManager.EXTRA_NETWORK_INFO);
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
WifiP2pPeer.java | 22 import android.net.wifi.WifiManager; 88 return WifiManager.calculateSignalLevel(mRssi, SIGNAL_LEVELS);
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
WifiEnterpriseConfigTest.java | 24 import android.net.wifi.WifiManager; 28 private WifiManager mWifiManager; 40 mWifiManager = (WifiManager) mContext
|
/external/chromium_org/net/android/java/src/org/chromium/net/ |
NetworkChangeNotifierAutoDetect.java | 13 import android.net.wifi.WifiManager; 59 /** Queries the WifiManager for SSID of the current Wifi connection. */ 61 private final WifiManager mWifiManager; 64 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
|
/frameworks/base/core/java/android/net/ |
NetworkIdentity.java | 25 import android.net.wifi.WifiManager; 164 final WifiManager wifi = (WifiManager) context.getSystemService(
|
/packages/apps/Settings/src/com/android/settings/net/ |
DataUsageMeteredSettings.java | 29 import android.net.wifi.WifiManager; 47 private WifiManager mWifiManager; 61 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/ |
WifiApStress.java | 26 import android.net.wifi.WifiManager; 93 assertTrue(waitForWifiAPState(WifiManager.WIFI_AP_STATE_ENABLED, 2 * LONG_TIMEOUT));
|
WifiStressTest.java | 27 import android.net.wifi.WifiManager; 239 assertTrue(waitForWifiState(WifiManager.WIFI_STATE_ENABLED, 292 waitForWifiState(WifiManager.WIFI_STATE_ENABLED,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
NetworkController.java | 28 import android.net.wifi.WifiManager; 99 final WifiManager mWifiManager; 106 int mWifiActivity = WifiManager.DATA_ACTIVITY_NONE; 213 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); 223 filter.addAction(WifiManager.RSSI_CHANGED_ACTION); 224 filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); 225 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); 319 && (mWifiActivity == WifiManager.DATA_ACTIVITY_INOUT 320 || mWifiActivity == WifiManager.DATA_ACTIVITY_IN); 322 && (mWifiActivity == WifiManager.DATA_ACTIVITY_INOU [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
SettingsAppWidgetProvider.java | 31 import android.net.wifi.WifiManager; 368 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); 369 if (wifiManager != null) { 370 return wifiStateToFiveState(wifiManager.getWifiState()); 377 final WifiManager wifiManager = 378 (WifiManager) context.getSystemService(Context.WIFI_SERVICE); 379 if (wifiManager == null) [all...] |
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
ConnectivityManagerMobileTest.java | 23 import android.net.wifi.WifiManager; 169 assertTrue(waitForWifiState(WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT)); 202 assertTrue(waitForWifiState(WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT)); 215 assertTrue(waitForWifiState(WifiManager.WIFI_STATE_DISABLED, LONG_TIMEOUT)); 492 assertTrue(waitForWifiState(WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT)); 518 assertTrue(waitForWifiState(WifiManager.WIFI_STATE_DISABLED, LONG_TIMEOUT));
|
/cts/tests/tests/net/src/android/net/http/cts/ |
ApacheHttpClientTest.java | 33 import android.net.wifi.WifiManager; 55 private WifiManager mWifiManager; 67 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
TelephonyManagerTest.java | 23 import android.net.wifi.WifiManager; 296 WifiManager wifiManager = (WifiManager) getContext() 299 boolean enabled = wifiManager.isWifiEnabled(); 303 wifiManager.setWifiEnabled(true); 306 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); 311 wifiManager.setWifiEnabled(false);
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsBackupAgent.java | 28 import android.net.wifi.WifiManager; 131 private WifiManager mWfm; 281 WifiManager mWfm = (WifiManager) getSystemService(Context.WIFI_SERVICE); 375 enableWifi(retainedWifiState == WifiManager.WIFI_STATE_ENABLED || 376 retainedWifiState == WifiManager.WIFI_STATE_ENABLING); 540 enableWifi(retainedWifiState == WifiManager.WIFI_STATE_ENABLED || 541 retainedWifiState == WifiManager.WIFI_STATE_ENABLING); [all...] |