HomeSort by relevance Sort by last modified time
    Searched refs:WifiManager (Results 1 - 25 of 62) sorted by null

1 2 3

  /packages/apps/Settings/src/com/android/settings/wifi/
WifiEnabler.java 26 import android.net.wifi.WifiManager;
42 private final WifiManager mWifiManager;
49 if (WifiManager.WIFI_STATE_CHANGED_ACTION.equals(action)) {
51 WifiManager.EXTRA_WIFI_STATE, WifiManager.WIFI_STATE_UNKNOWN));
52 } else if (WifiManager.SUPPLICANT_STATE_CHANGED_ACTION.equals(action)) {
55 intent.getParcelableExtra(WifiManager.EXTRA_NEW_STATE)));
57 } else if (WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(action)) {
59 WifiManager.EXTRA_NETWORK_INFO);
70 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE)
    [all...]
WifiConfigInfo.java 20 import android.net.wifi.WifiManager;
37 private WifiManager mWifiManager;
47 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
WifiStatusTest.java 34 import android.net.wifi.WifiManager;
79 private WifiManager mWifiManager;
90 if (intent.getAction().equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
91 handleWifiStateChanged(intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
92 WifiManager.WIFI_STATE_UNKNOWN));
93 } else if (intent.getAction().equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
95 (NetworkInfo) intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO));
96 } else if (intent.getAction().equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
98 } else if (intent.getAction().equals(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION)) {
100 } else if (intent.getAction().equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION))
    [all...]
WifiApEnabler.java 35 import android.net.wifi.WifiManager;
47 private WifiManager mWifiManager;
57 if (WifiManager.WIFI_AP_STATE_CHANGED_ACTION.equals(action)) {
59 WifiManager.EXTRA_WIFI_AP_STATE, WifiManager.WIFI_AP_STATE_FAILED));
81 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
86 mIntentFilter = new IntentFilter(WifiManager.WIFI_AP_STATE_CHANGED_ACTION);
117 if (enable && ((wifiState == WifiManager.WIFI_STATE_ENABLING) ||
118 (wifiState == WifiManager.WIFI_STATE_ENABLED))) {
182 case WifiManager.WIFI_AP_STATE_ENABLING
    [all...]
WifiSettings.java 38 import android.net.wifi.WifiManager;
106 private WifiManager mWifiManager;
140 mFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
141 mFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
142 mFilter.addAction(WifiManager.NETWORK_IDS_CHANGED_ACTION);
143 mFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION);
144 mFilter.addAction(WifiManager.CONFIGURED_NETWORKS_CHANGED_ACTION);
145 mFilter.addAction(WifiManager.LINK_CONFIGURATION_CHANGED_ACTION);
146 mFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
147 mFilter.addAction(WifiManager.RSSI_CHANGED_ACTION)
    [all...]
WifiAPITest.java 24 import android.net.wifi.WifiManager;
55 private WifiManager mWifiManager;
67 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
  /cts/tests/tests/net/src/android/net/wifi/cts/
ScanResultTest.java 26 import android.net.wifi.WifiManager;
27 import android.net.wifi.WifiManager.WifiLock;
39 private WifiManager mWifiManager;
56 if (action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) {
70 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
71 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
72 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);
73 mIntentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION);
74 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
75 mIntentFilter.addAction(WifiManager.RSSI_CHANGED_ACTION)
    [all...]
WifiManager_WifiLockTest.java 20 import android.net.wifi.WifiManager;
21 import android.net.wifi.WifiManager.WifiLock;
28 @TestTargetClass(WifiManager.WifiLock.class)
66 WifiManager wm = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
WifiManagerTest.java 30 import android.net.wifi.WifiManager;
32 import android.net.wifi.WifiManager.WifiLock;
40 @TestTargetClass(WifiManager.class)
46 private WifiManager mWifiManager;
51 // Please refer to WifiManager
72 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
81 } else if (action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) {
95 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
96 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
97 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION)
    [all...]
WifiConfigurationTest.java 23 import android.net.wifi.WifiManager;
32 private WifiManager mWifiManager;
36 mWifiManager = (WifiManager) mContext
WifiInfoTest.java 30 import android.net.wifi.WifiManager;
31 import android.net.wifi.WifiManager.WifiLock;
40 private WifiManager mWifiManager;
57 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
71 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
74 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
182 assertEquals(WifiManager.WIFI_STATE_DISABLED, mWifiManager.getWifiState());
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
WifiClientTest.java 27 import android.net.wifi.WifiManager;
46 private WifiManager mWifiManager;
63 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
64 mWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
65 WifiManager.WIFI_STATE_UNKNOWN);
67 case WifiManager.WIFI_STATE_DISABLING:
70 case WifiManager.WIFI_STATE_DISABLED:
73 case WifiManager.WIFI_STATE_ENABLING:
76 case WifiManager.WIFI_STATE_ENABLED:
80 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION))
    [all...]
WifiSoftAPTest.java 26 import android.net.wifi.WifiManager;
42 private WifiManager mWifiManager;
50 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
83 assertEquals("wifi AP state is not enabled", WifiManager.WIFI_AP_STATE_ENABLED,
  /cts/tests/tests/permission/src/android/permission/cts/
NoWakeLockPermissionTest.java 22 import android.net.wifi.WifiManager;
23 import android.net.wifi.WifiManager.WifiLock;
44 * Verify that WifiManager.WifiLock.acquire() requires permissions.
50 final WifiManager wifiManager = (WifiManager) mContext.getSystemService(
52 final WifiLock wifiLock = wifiManager.createWifiLock("WakeLockPermissionTest");
55 fail("WifiManager.WifiLock.acquire() didn't throw SecurityException as expected");
NoWifiStatePermissionTest.java 21 import android.net.wifi.WifiManager;
26 * Verify WifiManager related methods without specific Wifi state permissions.
32 private WifiManager mWifiManager;
37 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
42 * Verify that WifiManager#getWifiState() requires permissions.
49 fail("WifiManager.getWifiState didn't throw SecurityException as expected");
56 * Verify that WifiManager#getConfiguredNetworks() requires permissions.
63 fail("WifiManager.getConfiguredNetworks didn't throw SecurityException as expected");
70 * Verify that WifiManager#getConnectionInfo() requires permissions.
77 fail("WifiManager.getConnectionInfo didn't throw SecurityException as expected")
    [all...]
  /frameworks/base/wifi/java/android/net/wifi/
WifiStateTracker.java 59 private WifiManager mWifiManager;
86 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
88 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
89 filter.addAction(WifiManager.LINK_CONFIGURATION_CHANGED_ACTION);
224 } else if (intent.getAction().equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
226 WifiManager.EXTRA_NETWORK_INFO);
228 WifiManager.EXTRA_LINK_PROPERTIES);
233 WifiManager.EXTRA_LINK_CAPABILITIES);
248 } else if (intent.getAction().equals(WifiManager.LINK_CONFIGURATION_CHANGED_ACTION)) {
250 WifiManager.EXTRA_LINK_PROPERTIES)
    [all...]
WifiWatchdogStateMachine.java 139 private WifiManager mWifiManager;
205 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
257 if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
259 } else if (action.equals(WifiManager.RSSI_CHANGED_ACTION)) {
261 intent.getIntExtra(WifiManager.EXTRA_NEW_RSSI, -200)).sendToTarget();
262 } else if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
264 } else if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
266 intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
267 WifiManager.WIFI_STATE_UNKNOWN));
273 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION)
    [all...]
  /frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
TrackerService.java 33 import android.net.wifi.WifiManager;
153 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
154 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
388 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
389 WifiManager wifiManager =
390 (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
391 List<ScanResult> wifiScanResults = wifiManager.getScanResults();
409 } else if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
410 int state = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE
    [all...]
  /frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
ConnectionUtil.java 37 import android.net.wifi.WifiManager;
72 private WifiManager mWifiManager;
101 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
102 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
103 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
104 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);
105 mIntentFilter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION);
111 // Get an instance of WifiManager
112 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE);
178 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION))
    [all...]
  /frameworks/base/services/java/com/android/server/
WifiService.java 35 import android.net.wifi.WifiManager;
146 "com.android.server.WifiManager.action.DEVICE_IDLE";
257 case WifiManager.CMD_ENABLE_TRAFFIC_STATS_POLL: {
262 sendMessageDelayed(Message.obtain(this, WifiManager.CMD_TRAFFIC_STATS_POLL,
267 case WifiManager.CMD_TRAFFIC_STATS_POLL: {
270 sendMessageDelayed(Message.obtain(this, WifiManager.CMD_TRAFFIC_STATS_POLL,
275 case WifiManager.CMD_CONNECT_NETWORK: {
283 case WifiManager.CMD_SAVE_NETWORK: {
287 case WifiManager.CMD_FORGET_NETWORK: {
291 case WifiManager.CMD_START_WPS:
    [all...]
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
ConnectivityManagerTestActivity.java 28 import android.net.wifi.WifiManager;
94 public WifiManager mWifiManager;
155 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
158 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
160 (NetworkInfo) intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO);
163 mBssid = intent.getStringExtra(WifiManager.EXTRA_BSSID);
166 } else if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
167 mWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
168 WifiManager.WIFI_STATE_UNKNOWN);
170 } else if (action.equals(WifiManager.WIFI_AP_STATE_CHANGED_ACTION))
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
NetworkController.java 33 import android.net.wifi.WifiManager;
95 final WifiManager mWifiManager;
102 int mWifiActivity = WifiManager.DATA_ACTIVITY_NONE;
178 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
188 filter.addAction(WifiManager.RSSI_CHANGED_ACTION);
189 filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
190 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
258 if (action.equals(WifiManager.RSSI_CHANGED_ACTION)
259 || action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)
260 || action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION))
    [all...]
  /packages/apps/Settings/src/com/android/settings/widget/
SettingsAppWidgetProvider.java 33 import android.net.wifi.WifiManager;
342 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
343 if (wifiManager != null) {
344 return wifiStateToFiveState(wifiManager.getWifiState());
351 final WifiManager wifiManager =
352 (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
353 if (wifiManager == null)
    [all...]
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
WifiConnectionTest.java 32 import android.net.wifi.WifiManager;
65 private WifiManager mWifiManager = null;
76 mWifiManager = (WifiManager) mRunner.getContext().getSystemService(Context.WIFI_SERVICE);
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
WifiApStress.java 27 import android.net.wifi.WifiManager;
99 assertTrue(mAct.waitForWifiAPState(WifiManager.WIFI_AP_STATE_ENABLED,

Completed in 722 milliseconds

1 2 3