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

1 2 3 4

  /packages/apps/Settings/src/com/android/settings/wifi/
WifiEnabler.java 27 import android.net.wifi.WifiManager;
44 private final WifiManager mWifiManager;
51 if (WifiManager.WIFI_STATE_CHANGED_ACTION.equals(action)) {
53 WifiManager.EXTRA_WIFI_STATE, WifiManager.WIFI_STATE_UNKNOWN));
54 } else if (WifiManager.SUPPLICANT_STATE_CHANGED_ACTION.equals(action)) {
57 intent.getParcelableExtra(WifiManager.EXTRA_NEW_STATE)));
59 } else if (WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(action)) {
61 WifiManager.EXTRA_NETWORK_INFO);
72 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE)
    [all...]
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...]
WifiConfigInfo.java 20 import android.net.wifi.WifiManager;
35 private WifiManager mWifiManager;
41 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
WpsDialog.java 26 import android.net.wifi.WifiManager;
58 private WifiManager mWifiManager;
59 private WifiManager.WpsListener mWpsListener;
82 class WpsListener implements WifiManager.WpsListener {
100 case WifiManager.WPS_OVERLAP_ERROR:
103 case WifiManager.WPS_WEP_PROHIBITED:
106 case WifiManager.WPS_TKIP_ONLY_PROHIBITED:
109 case WifiManager.IN_PROGRESS:
124 mFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
156 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE)
    [all...]
WifiSettings.java 46 import android.net.wifi.WifiManager;
125 private WifiManager mWifiManager;
126 private WifiManager.ActionListener mConnectListener;
127 private WifiManager.ActionListener mSaveListener;
128 private WifiManager.ActionListener mForgetListener;
180 mFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
181 mFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
182 mFilter.addAction(WifiManager.NETWORK_IDS_CHANGED_ACTION);
183 mFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION);
184 mFilter.addAction(WifiManager.CONFIGURED_NETWORKS_CHANGED_ACTION)
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
WifiInfoTest.java 4 import android.net.wifi.WifiManager;
20 WifiManager wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
21 WifiInfo wifiInfo = wifiManager.getConnectionInfo();
24 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
25 wifiInfo = wifiManager.getConnectionInfo();
WifiManagerTest.java 6 import android.net.wifi.WifiManager;
32 private WifiManager wifiManager;
37 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE);
38 shadowWifiManager = shadowOf(wifiManager);
43 assertEquals(wifiManager.getConnectionInfo().getClass(), WifiInfo.class);
49 wifiManager.setWifiEnabled(true);
55 wifiManager.isWifiEnabled();
61 wifiManager.getConnectionInfo()
    [all...]
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
WifiAssociationTestRunner.java 20 import android.net.wifi.WifiManager;
68 WifiManager mWifiManager = (WifiManager)getContext().getSystemService(Context.WIFI_SERVICE);
71 mBand = WifiManager.WIFI_FREQUENCY_BAND_2GHZ;
74 mBand = WifiManager.WIFI_FREQUENCY_BAND_5GHZ;
77 mBand = WifiManager.WIFI_FREQUENCY_BAND_AUTO;
ConnectivityManagerTestBase.java 28 import android.net.wifi.WifiManager;
95 public WifiManager mWifiManager;
153 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
156 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
158 (NetworkInfo) intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO);
161 mBssid = intent.getStringExtra(WifiManager.EXTRA_BSSID);
164 } else if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
165 mWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
166 WifiManager.WIFI_STATE_UNKNOWN);
168 } else if (action.equals(WifiManager.WIFI_AP_STATE_CHANGED_ACTION))
    [all...]
  /cts/tests/tests/net/src/android/net/wifi/cts/
ConcurrencyTest.java 23 import android.net.wifi.WifiManager;
35 private WifiManager mWifiManager;
47 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
49 mMySync.expectedWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
50 WifiManager.WIFI_STATE_DISABLED);
72 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
76 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
83 mMySync.expectedWifiState = WifiManager.WIFI_STATE_DISABLED;
108 && (mMySync.expectedWifiState != WifiManager.WIFI_STATE_ENABLED ||
134 assertTrue(mMySync.expectedWifiState == WifiManager.WIFI_STATE_ENABLED)
    [all...]
ScanResultTest.java 26 import android.net.wifi.WifiManager;
27 import android.net.wifi.WifiManager.WifiLock;
36 private WifiManager mWifiManager;
56 if (action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) {
61 } else if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
79 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
80 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
81 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);
82 mIntentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION);
83 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION)
    [all...]
WifiConfigurationTest.java 23 import android.net.wifi.WifiManager;
27 private WifiManager mWifiManager;
31 mWifiManager = (WifiManager) mContext
WifiManagerTest.java 28 import android.net.wifi.WifiManager;
29 import android.net.wifi.WifiManager.TxPacketCountListener;
30 import android.net.wifi.WifiManager.WifiLock;
46 private WifiManager mWifiManager;
52 // Please refer to WifiManager
74 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
83 } else if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
84 int newState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
85 WifiManager.WIFI_STATE_UNKNOWN);
87 if (newState == WifiManager.WIFI_STATE_ENABLED)
    [all...]
WifiManager_WifiLockTest.java 20 import android.net.wifi.WifiManager;
21 import android.net.wifi.WifiManager.WifiLock;
33 WifiManager wm = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
WifiInfoTest.java 27 import android.net.wifi.WifiManager;
28 import android.net.wifi.WifiManager.WifiLock;
38 private WifiManager mWifiManager;
55 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
73 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
76 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
151 return mWifiManager.getWifiState() == WifiManager.WIFI_STATE_DISABLED;
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
WifiClientTest.java 24 import android.net.wifi.WifiManager;
40 private WifiManager mWifiManager;
57 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
58 mWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
59 WifiManager.WIFI_STATE_UNKNOWN);
61 case WifiManager.WIFI_STATE_DISABLING:
64 case WifiManager.WIFI_STATE_DISABLED:
67 case WifiManager.WIFI_STATE_ENABLING:
70 case WifiManager.WIFI_STATE_ENABLED:
74 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION))
    [all...]
WifiSoftAPTest.java 20 import android.net.wifi.WifiManager;
34 private WifiManager mWifiManager;
42 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
75 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/services/java/com/android/server/wifi/
WifiNotificationController.java 30 import android.net.wifi.WifiManager;
99 mWifiState = WifiManager.WIFI_STATE_UNKNOWN;
102 filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
103 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
104 filter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
110 if (intent.getAction().equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
111 mWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
112 WifiManager.WIFI_STATE_UNKNOWN);
115 WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
117 WifiManager.EXTRA_NETWORK_INFO)
    [all...]
WifiTrafficPoller.java 26 import android.net.wifi.WifiManager;
74 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
83 WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
85 WifiManager.EXTRA_NETWORK_INFO);
151 int dataActivity = WifiManager.DATA_ACTIVITY_NONE;
160 dataActivity |= WifiManager.DATA_ACTIVITY_OUT;
163 dataActivity |= WifiManager.DATA_ACTIVITY_IN;
170 msg.what = WifiManager.DATA_ACTIVITY_NOTIFICATION;
  /frameworks/base/wifi/java/android/net/wifi/
WifiStateTracker.java 61 private WifiManager mWifiManager;
90 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
92 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
93 filter.addAction(WifiManager.LINK_CONFIGURATION_CHANGED_ACTION);
266 if (intent.getAction().equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
268 WifiManager.EXTRA_NETWORK_INFO);
271 WifiManager.EXTRA_LINK_PROPERTIES);
276 WifiManager.EXTRA_LINK_CAPABILITIES);
281 mWifiInfo = intent.getParcelableExtra(WifiManager.EXTRA_WIFI_INFO);
297 } else if (intent.getAction().equals(WifiManager.LINK_CONFIGURATION_CHANGED_ACTION))
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowWifiManager.java 6 import android.net.wifi.WifiManager;
20 @Implements(WifiManager.class)
104 public WifiManager.WifiLock createWifiLock(int lockType, java.lang.String tag) {
105 return Robolectric.newInstanceOf(WifiManager.WifiLock.class);
109 public WifiManager.WifiLock createWifiLock(java.lang.String tag) {
110 return createWifiLock(WifiManager.WIFI_MODE_FULL, tag);
146 @Implements(WifiManager.WifiLock.class)
  /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...]

Completed in 313 milliseconds

1 2 3 4