HomeSort by relevance Sort by last modified time
    Searched refs:wifiManager (Results 1 - 7 of 7) sorted by null

  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
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...]
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();
  /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");
  /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);
  /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/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...]
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
Status.java 28 import android.net.wifi.WifiManager;
492 WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
493 WifiInfo wifiInfo = wifiManager.getConnectionInfo();

Completed in 257 milliseconds