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

1 2 3 4 5 6 7

  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
WifiStatusTracker.java 17 import android.net.wifi.WifiManager;
23 private final WifiManager mWifiManager;
30 public WifiStatusTracker(WifiManager wifiManager) {
31 mWifiManager = wifiManager;
36 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
37 enabled = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
38 WifiManager.WIFI_STATE_UNKNOWN) == WifiManager.WIFI_STATE_ENABLED;
39 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION))
    [all...]
  /packages/apps/Settings/src/com/android/settings/
HotspotOffReceiver.java 8 import android.net.wifi.WifiManager;
24 if (WifiManager.WIFI_AP_STATE_CHANGED_ACTION.equals(intent.getAction())) {
25 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
26 if (wifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED) {
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
WifiLockManagerTest.java 25 import android.net.wifi.WifiManager;
77 not(WifiManager.WIFI_MODE_NO_LOCKS_HELD));
98 assertEquals(WifiManager.WIFI_MODE_NO_LOCKS_HELD, mWifiLockManager.getStrongestLockMode());
121 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL, "", mBinder, mWorkSource);
122 assertEquals(WifiManager.WIFI_MODE_FULL, mWifiLockManager.getStrongestLockMode());
134 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_SCAN_ONLY, "", mBinder, mWorkSource);
135 assertEquals(WifiManager.WIFI_MODE_SCAN_ONLY, mWifiLockManager.getStrongestLockMode());
137 WifiManager.WIFI_MODE_SCAN_ONLY, "", mBinder, mWorkSource));
149 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL, "", mBinder, mWorkSource);
151 assertEquals(WifiManager.WIFI_MODE_NO_LOCKS_HELD, mWifiLockManager.getStrongestLockMode())
    [all...]
TestUtil.java 26 import android.net.wifi.WifiManager;
48 * Send {@link WifiManager#NETWORK_STATE_CHANGED_ACTION} broadcast.
52 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION);
55 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo);
60 * Send {@link WifiManager#SCAN_RESULTS_AVAILABLE_ACTION} broadcast.
64 Intent intent = new Intent(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
69 * Send {@link WifiManager#WIFI_SCAN_AVAILABLE} broadcast.
73 Intent intent = new Intent(WifiManager.WIFI_SCAN_AVAILABLE);
74 intent.putExtra(WifiManager.EXTRA_SCAN_AVAILABLE, scanAvailable);
79 * Send {@link WifiManager#WIFI_STATE_CHANGED} broadcast
    [all...]
SoftApManagerTest.java 33 import android.net.wifi.WifiManager;
102 order.verify(mListener).onStateChanged(WifiManager.WIFI_AP_STATE_ENABLING, 0);
104 WifiManager.WIFI_AP_STATE_FAILED, WifiManager.SAP_START_FAILURE_GENERAL);
127 order.verify(mListener).onStateChanged(WifiManager.WIFI_AP_STATE_DISABLING, 0);
128 order.verify(mListener).onStateChanged(WifiManager.WIFI_AP_STATE_DISABLED, 0);
148 order.verify(mListener).onStateChanged(WifiManager.WIFI_AP_STATE_ENABLING, 0);
149 order.verify(mListener).onStateChanged(WifiManager.WIFI_AP_STATE_ENABLED, 0);
154 verify(mListener, never()).onStateChanged(WifiManager.WIFI_AP_STATE_DISABLING, 0);
155 verify(mListener, never()).onStateChanged(WifiManager.WIFI_AP_STATE_DISABLED, 0)
    [all...]
  /external/robolectric/v1/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...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
NetworkConfiguration.java 20 import android.net.wifi.WifiManager;
47 public void save(WifiManager.ActionListener listener);
WifiConfig.java 22 import android.net.wifi.WifiManager;
29 private final WifiManager mWifiManager;
33 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
48 public void save(WifiManager.ActionListener listener) {
WpsConnectionActivity.java 22 import android.net.wifi.WifiManager;
23 import android.net.wifi.WifiManager.WpsCallback;
39 private WifiManager mWifiManager;
72 case WifiManager.WPS_OVERLAP_ERROR:
75 case WifiManager.WPS_WEP_PROHIBITED:
78 case WifiManager.WPS_TKIP_ONLY_PROHIBITED:
81 case WifiManager.IN_PROGRESS:
85 case WifiManager.WPS_TIMED_OUT:
101 mWifiManager = (WifiManager) getSystemService(Context.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;
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
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);
ConcurrencyTest.java 28 import android.net.wifi.WifiManager;
43 private WifiManager mWifiManager;
55 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
57 mMySync.expectedWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
58 WifiManager.WIFI_STATE_DISABLED);
80 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
84 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
91 mMySync.expectedWifiState = WifiManager.WIFI_STATE_DISABLED;
113 && (mMySync.expectedWifiState != WifiManager.WIFI_STATE_ENABLED ||
166 assertTrue(mMySync.expectedWifiState == WifiManager.WIFI_STATE_ENABLED)
    [all...]
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
WifiClientTest.java 24 import android.net.wifi.WifiManager;
40 private WifiManager mWifiManager;
56 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
57 mWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
58 WifiManager.WIFI_STATE_UNKNOWN);
60 case WifiManager.WIFI_STATE_DISABLING:
63 case WifiManager.WIFI_STATE_DISABLED:
66 case WifiManager.WIFI_STATE_ENABLING:
69 case WifiManager.WIFI_STATE_ENABLED:
73 } 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,
  /packages/apps/Settings/src/com/android/settings/wifi/
WifiEnabler.java 26 import android.net.wifi.WifiManager;
52 private final WifiManager mWifiManager;
59 if (WifiManager.WIFI_STATE_CHANGED_ACTION.equals(action)) {
61 WifiManager.EXTRA_WIFI_STATE, WifiManager.WIFI_STATE_UNKNOWN));
62 } else if (WifiManager.SUPPLICANT_STATE_CHANGED_ACTION.equals(action)) {
65 intent.getParcelableExtra(WifiManager.EXTRA_NEW_STATE)));
67 } else if (WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(action)) {
69 WifiManager.EXTRA_NETWORK_INFO);
96 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE)
    [all...]
WifiApEnabler.java 25 import android.net.wifi.WifiManager;
41 private WifiManager mWifiManager;
51 if (WifiManager.WIFI_AP_STATE_CHANGED_ACTION.equals(action)) {
53 WifiManager.EXTRA_WIFI_AP_STATE, WifiManager.WIFI_AP_STATE_FAILED);
54 if (state == WifiManager.WIFI_AP_STATE_FAILED) {
55 int reason = intent.getIntExtra(WifiManager.EXTRA_WIFI_AP_FAILURE_REASON,
56 WifiManager.SAP_START_FAILURE_GENERAL);
59 handleWifiApStateChanged(state, WifiManager.SAP_START_FAILURE_GENERAL);
83 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE)
    [all...]
WifiStatusTest.java 29 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...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
HotspotControllerImpl.java 25 import android.net.wifi.WifiManager;
65 case WifiManager.WIFI_AP_STATE_DISABLED:
67 case WifiManager.WIFI_AP_STATE_DISABLING:
69 case WifiManager.WIFI_AP_STATE_ENABLED:
71 case WifiManager.WIFI_AP_STATE_ENABLING:
73 case WifiManager.WIFI_AP_STATE_FAILED:
101 return mHotspotState == WifiManager.WIFI_AP_STATE_ENABLED;
140 filter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION);
154 WifiManager.EXTRA_WIFI_AP_STATE, WifiManager.WIFI_AP_STATE_FAILED)
    [all...]
  /frameworks/base/packages/Osu/src/com/android/hotspot2/
WifiNetworkAdapter.java 12 import android.net.wifi.WifiManager;
89 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
90 for (WifiConfiguration config : wifiManager.getPrivilegedConfiguredNetworks()) {
135 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
137 wifiManager.addPasspointManagementObject(xml);
142 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE)
    [all...]
  /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");
  /packages/apps/Nfc/src/com/android/nfc/
ConfirmConnectToWifiNetworkActivity.java 11 import android.net.wifi.WifiManager;
48 intentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
61 WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
63 if (!wifiManager.isWifiEnabled()) {
64 wifiManager.setWifiEnabled(true);
78 doConnect(wifiManager);
84 private void doConnect(WifiManager wifiManager) {
    [all...]
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
NetworkControllerWifiTest.java 7 import android.net.wifi.WifiManager;
17 // These match the constants in WifiManager and need to be kept up to date.
72 setWifiActivity(WifiManager.DATA_ACTIVITY_NONE);
74 setWifiActivity(WifiManager.DATA_ACTIVITY_IN);
76 setWifiActivity(WifiManager.DATA_ACTIVITY_OUT);
78 setWifiActivity(WifiManager.DATA_ACTIVITY_INOUT);
111 Intent i = new Intent(WifiManager.RSSI_CHANGED_ACTION);
112 i.putExtra(WifiManager.EXTRA_NEW_RSSI, rssi);
117 Intent i = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION);
118 i.putExtra(WifiManager.EXTRA_WIFI_STATE
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
WifiLockManager.java 20 import android.net.wifi.WifiManager;
63 * @param tag String passed to WifiManager.WifiLock
98 * If no locks are held, WifiManager.WIFI_MODE_NO_LOCKS_HELD is returned.
104 return WifiManager.WIFI_MODE_NO_LOCKS_HELD;
108 return WifiManager.WIFI_MODE_FULL_HIGH_PERF;
112 return WifiManager.WIFI_MODE_FULL;
115 return WifiManager.WIFI_MODE_SCAN_ONLY;
166 if (lockMode != WifiManager.WIFI_MODE_FULL
167 && lockMode != WifiManager.WIFI_MODE_SCAN_ONLY
168 && lockMode != WifiManager.WIFI_MODE_FULL_HIGH_PERF)
    [all...]

Completed in 865 milliseconds

1 2 3 4 5 6 7