Home
last modified time | relevance | path

Searched refs:WifiManager (Results 1 – 25 of 104) sorted by relevance

12345

/frameworks/base/packages/Osu/src/com/android/hotspot2/app/
DOSUService.java10 import android.net.wifi.WifiManager;
48 WifiManager.SCAN_RESULTS_AVAILABLE_ACTION,
52 WifiManager.CONFIGURED_NETWORKS_CHANGED_ACTION,
53 WifiManager.WIFI_STATE_CHANGED_ACTION,
54 WifiManager.NETWORK_STATE_CHANGED_ACTION,
113 WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in handleIntent()
121 case WifiManager.SCAN_RESULTS_AVAILABLE_ACTION: in handleIntent()
164 case WifiManager.NETWORK_STATE_CHANGED_ACTION: in handleIntent()
166 (WifiInfo) intent.getParcelableExtra(WifiManager.EXTRA_WIFI_INFO)); in handleIntent()
168 case WifiManager.CONFIGURED_NETWORKS_CHANGED_ACTION: in handleIntent()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java19 import android.net.wifi.WifiManager;
27 private final WifiManager mWifiManager;
37 public WifiStatusTracker(WifiManager wifiManager) { in WifiStatusTracker()
43 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { in handleBroadcast()
44 state = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, in handleBroadcast()
45 WifiManager.WIFI_STATE_UNKNOWN); in handleBroadcast()
46 enabled = state == WifiManager.WIFI_STATE_ENABLED; in handleBroadcast()
49 enabled = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, in handleBroadcast()
50 WifiManager.WIFI_STATE_UNKNOWN) == WifiManager.WIFI_STATE_ENABLED; in handleBroadcast()
51 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) { in handleBroadcast()
[all …]
DWifiTracker.java36 import android.net.wifi.WifiManager;
84 private final WifiManager mWifiManager;
165 context.getSystemService(WifiManager.class), in WifiTracker()
174 WifiManager wifiManager, ConnectivityManager connectivityManager, in WifiTracker()
198 mFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in WifiTracker()
199 mFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in WifiTracker()
200 mFilter.addAction(WifiManager.NETWORK_IDS_CHANGED_ACTION); in WifiTracker()
201 mFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in WifiTracker()
202 mFilter.addAction(WifiManager.CONFIGURED_NETWORKS_CHANGED_ACTION); in WifiTracker()
203 mFilter.addAction(WifiManager.LINK_CONFIGURATION_CHANGED_ACTION); in WifiTracker()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLockManagerTest.java24 import android.net.wifi.WifiManager;
76 not(WifiManager.WIFI_MODE_NO_LOCKS_HELD)); in acquireWifiLockSuccessful()
97 assertEquals(WifiManager.WIFI_MODE_NO_LOCKS_HELD, mWifiLockManager.getStrongestLockMode()); in newWifiLockManagerShouldNotHaveAnyLocks()
120 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL, "", mBinder, mWorkSource); in acquireWifiLockWithValidParamsShouldSucceed()
121 assertEquals(WifiManager.WIFI_MODE_FULL, mWifiLockManager.getStrongestLockMode()); in acquireWifiLockWithValidParamsShouldSucceed()
133 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_SCAN_ONLY, "", mBinder, mWorkSource); in secondCallToAcquireWifiLockWithSameBinderShouldFail()
134 assertEquals(WifiManager.WIFI_MODE_SCAN_ONLY, mWifiLockManager.getStrongestLockMode()); in secondCallToAcquireWifiLockWithSameBinderShouldFail()
136 WifiManager.WIFI_MODE_SCAN_ONLY, "", mBinder, mWorkSource)); in secondCallToAcquireWifiLockWithSameBinderShouldFail()
148 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL, "", mBinder, mWorkSource); in releaseWifiLockShouldSucceed()
150 assertEquals(WifiManager.WIFI_MODE_NO_LOCKS_HELD, mWifiLockManager.getStrongestLockMode()); in releaseWifiLockShouldSucceed()
[all …]
DTestUtil.java24 import android.net.wifi.WifiManager;
37 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); in sendNetworkStateChanged()
40 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo); in sendNetworkStateChanged()
49 Intent intent = new Intent(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in sendScanResultsAvailable()
58 Intent intent = new Intent(WifiManager.WIFI_SCAN_AVAILABLE); in sendWifiScanAvailable()
59 intent.putExtra(WifiManager.EXTRA_SCAN_AVAILABLE, scanAvailable); in sendWifiScanAvailable()
68 Intent intent = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION); in sendWifiStateChanged()
69 intent.putExtra(WifiManager.EXTRA_WIFI_STATE, wifiState); in sendWifiStateChanged()
79 Intent intent = new Intent(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in sendWifiApStateChanged()
80 intent.putExtra(WifiManager.EXTRA_WIFI_AP_STATE, apState); in sendWifiApStateChanged()
[all …]
DSupplicantStateTrackerTest.java27 import android.net.wifi.WifiManager;
89 assertTrue(action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)); in testSupplicantStateChangeIntent()
91 (SupplicantState) intent.getExtra(WifiManager.EXTRA_NEW_STATE, -1); in testSupplicantStateChangeIntent()
96 mIntentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in testSupplicantStateChangeIntent()
111 assertTrue(action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)); in testAuthPassInSupplicantStateChangeIntent()
113 (SupplicantState) intent.getExtra(WifiManager.EXTRA_NEW_STATE, -1); in testAuthPassInSupplicantStateChangeIntent()
116 (boolean) intent.getExtra(WifiManager.EXTRA_SUPPLICANT_ERROR, -1); in testAuthPassInSupplicantStateChangeIntent()
121 mIntentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in testAuthPassInSupplicantStateChangeIntent()
137 assertTrue(action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)); in testAuthFailedInSupplicantStateChangeIntent()
139 (SupplicantState) intent.getExtra(WifiManager.EXTRA_NEW_STATE, -1); in testAuthFailedInSupplicantStateChangeIntent()
[all …]
DSoftApManagerTest.java31 import android.net.wifi.WifiManager;
159 verify(mListener).onStateChanged(WifiManager.WIFI_AP_STATE_FAILED, in startSoftApDefaultConfigFailedToLoad()
160 WifiManager.SAP_START_FAILURE_GENERAL); in startSoftApDefaultConfigFailedToLoad()
184 order.verify(mListener).onStateChanged(WifiManager.WIFI_AP_STATE_DISABLING, 0); in stopWhenStarted()
185 order.verify(mListener).onStateChanged(WifiManager.WIFI_AP_STATE_DISABLED, 0); in stopWhenStarted()
195 order.verify(mListener).onStateChanged(WifiManager.WIFI_AP_STATE_DISABLING, 0); in handlesWificondInterfaceDeath()
196 order.verify(mListener).onStateChanged(WifiManager.WIFI_AP_STATE_FAILED, in handlesWificondInterfaceDeath()
197 WifiManager.SAP_START_FAILURE_GENERAL); in handlesWificondInterfaceDeath()
218 order.verify(mListener).onStateChanged(WifiManager.WIFI_AP_STATE_ENABLING, 0); in startSoftApAndVerifyEnabled()
227 order.verify(mListener).onStateChanged(WifiManager.WIFI_AP_STATE_ENABLED, 0); in startSoftApAndVerifyEnabled()
[all …]
DLocalOnlyHotspotRequestInfoTest.java23 import android.net.wifi.WifiManager;
146 WifiManager.LocalOnlyHotspotCallback.ERROR_GENERIC); in verifySendFailedMessage()
148 assertEquals(WifiManager.HOTSPOT_FAILED, message.what); in verifySendFailedMessage()
149 assertEquals(WifiManager.LocalOnlyHotspotCallback.ERROR_GENERIC, message.arg1); in verifySendFailedMessage()
161 assertEquals(WifiManager.HOTSPOT_STARTED, message.what); in verifySendStartedMessage()
173 assertEquals(WifiManager.HOTSPOT_STOPPED, message.what); in verifySendStoppedMessage()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
DWifiClientTest.java24 import android.net.wifi.WifiManager;
40 private WifiManager mWifiManager;
56 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { in onReceive()
57 mWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, in onReceive()
58 WifiManager.WIFI_STATE_UNKNOWN); in onReceive()
60 case WifiManager.WIFI_STATE_DISABLING: in onReceive()
63 case WifiManager.WIFI_STATE_DISABLED: in onReceive()
66 case WifiManager.WIFI_STATE_ENABLING: in onReceive()
69 case WifiManager.WIFI_STATE_ENABLED: in onReceive()
73 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) { in onReceive()
[all …]
DWifiSoftAPTest.java20 import android.net.wifi.WifiManager;
34 private WifiManager mWifiManager;
42 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp()
75 assertEquals("wifi AP state is not enabled", WifiManager.WIFI_AP_STATE_ENABLED, in testApSsidWithAlphabet()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DHotspotControllerImpl.java25 import android.net.wifi.WifiManager;
67 case WifiManager.WIFI_AP_STATE_DISABLED: in stateToString()
69 case WifiManager.WIFI_AP_STATE_DISABLING: in stateToString()
71 case WifiManager.WIFI_AP_STATE_ENABLED: in stateToString()
73 case WifiManager.WIFI_AP_STATE_ENABLING: in stateToString()
75 case WifiManager.WIFI_AP_STATE_FAILED: in stateToString()
103 return mHotspotState == WifiManager.WIFI_AP_STATE_ENABLED; in isHotspotEnabled()
108 return mWaitingForCallback || (mHotspotState == WifiManager.WIFI_AP_STATE_ENABLING); in isHotspotTransient()
158 filter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in setListening()
171 WifiManager.EXTRA_WIFI_AP_STATE, WifiManager.WIFI_AP_STATE_FAILED); in onReceive()
[all …]
DWifiSignalController.java26 import android.net.wifi.WifiManager;
52 private final WifiManager mWifiManager;
66 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiSignalController()
173 mCurrentState.isTransient = mWifiTracker.state == WifiManager.WIFI_STATE_ENABLING in handleBroadcast()
174 || mWifiTracker.state == WifiManager.WIFI_AP_STATE_DISABLING in handleBroadcast()
219 mCurrentState.activityIn = wifiActivity == WifiManager.DATA_ACTIVITY_INOUT in setActivity()
220 || wifiActivity == WifiManager.DATA_ACTIVITY_IN; in setActivity()
221 mCurrentState.activityOut = wifiActivity == WifiManager.DATA_ACTIVITY_INOUT in setActivity()
222 || wifiActivity == WifiManager.DATA_ACTIVITY_OUT; in setActivity()
245 case WifiManager.DATA_ACTIVITY_NOTIFICATION: in handleMessage()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLockManager.java20 import android.net.wifi.WifiManager;
104 return WifiManager.WIFI_MODE_NO_LOCKS_HELD; in getStrongestLockMode()
108 return WifiManager.WIFI_MODE_FULL_HIGH_PERF; in getStrongestLockMode()
112 return WifiManager.WIFI_MODE_FULL; in getStrongestLockMode()
115 return WifiManager.WIFI_MODE_SCAN_ONLY; in getStrongestLockMode()
166 if (lockMode != WifiManager.WIFI_MODE_FULL in isValidLockMode()
167 && lockMode != WifiManager.WIFI_MODE_SCAN_ONLY in isValidLockMode()
168 && lockMode != WifiManager.WIFI_MODE_FULL_HIGH_PERF) { in isValidLockMode()
193 case WifiManager.WIFI_MODE_FULL: in addLock()
196 case WifiManager.WIFI_MODE_FULL_HIGH_PERF: in addLock()
[all …]
DSoftApManager.java27 import android.net.wifi.WifiManager;
279 updateApState(WifiManager.WIFI_AP_STATE_ENABLING, 0); in processMessage()
282 updateApState(WifiManager.WIFI_AP_STATE_FAILED, in processMessage()
283 WifiManager.SAP_START_FAILURE_GENERAL); in processMessage()
285 false, WifiManager.SAP_START_FAILURE_GENERAL); in processMessage()
295 updateApState(WifiManager.WIFI_AP_STATE_FAILED, in processMessage()
296 WifiManager.SAP_START_FAILURE_GENERAL); in processMessage()
298 false, WifiManager.SAP_START_FAILURE_GENERAL); in processMessage()
304 int failureReason = WifiManager.SAP_START_FAILURE_GENERAL; in processMessage()
306 failureReason = WifiManager.SAP_START_FAILURE_NO_CHANNEL; in processMessage()
[all …]
DWifiNotificationController.java29 import android.net.wifi.WifiManager;
116 mWifiState = WifiManager.WIFI_STATE_UNKNOWN; in WifiNotificationController()
120 filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in WifiNotificationController()
121 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in WifiNotificationController()
122 filter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in WifiNotificationController()
129 .equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { in WifiNotificationController()
130 mWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, in WifiNotificationController()
131 WifiManager.WIFI_STATE_UNKNOWN); in WifiNotificationController()
134 WifiManager.NETWORK_STATE_CHANGED_ACTION)) { in WifiNotificationController()
136 WifiManager.EXTRA_NETWORK_INFO); in WifiNotificationController()
[all …]
DWifiTrafficPoller.java27 import android.net.wifi.WifiManager;
81 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in WifiTrafficPoller()
92 if (WifiManager.NETWORK_STATE_CHANGED_ACTION.equals( in WifiTrafficPoller()
95 WifiManager.EXTRA_NETWORK_INFO); in WifiTrafficPoller()
187 int dataActivity = WifiManager.DATA_ACTIVITY_NONE; in notifyOnDataActivity()
203 dataActivity |= WifiManager.DATA_ACTIVITY_OUT; in notifyOnDataActivity()
206 dataActivity |= WifiManager.DATA_ACTIVITY_IN; in notifyOnDataActivity()
217 msg.what = WifiManager.DATA_ACTIVITY_NOTIFICATION; in notifyOnDataActivity()
DWifiStateMachine.java19 import static android.net.wifi.WifiManager.WIFI_AP_STATE_DISABLED;
20 import static android.net.wifi.WifiManager.WIFI_AP_STATE_DISABLING;
21 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
22 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLING;
23 import static android.net.wifi.WifiManager.WIFI_AP_STATE_FAILED;
24 import static android.net.wifi.WifiManager.WIFI_STATE_DISABLED;
25 import static android.net.wifi.WifiManager.WIFI_STATE_DISABLING;
26 import static android.net.wifi.WifiManager.WIFI_STATE_ENABLED;
27 import static android.net.wifi.WifiManager.WIFI_STATE_ENABLING;
28 import static android.net.wifi.WifiManager.WIFI_STATE_UNKNOWN;
[all …]
DWifiController.java19 import static android.net.wifi.WifiManager.WIFI_MODE_FULL;
20 import static android.net.wifi.WifiManager.WIFI_MODE_FULL_HIGH_PERF;
21 import static android.net.wifi.WifiManager.WIFI_MODE_NO_LOCKS_HELD;
22 import static android.net.wifi.WifiManager.WIFI_MODE_SCAN_ONLY;
33 import android.net.wifi.WifiManager;
190 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in WifiController()
191 filter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in WifiController()
192 filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in WifiController()
200 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) { in WifiController()
202 WifiManager.EXTRA_NETWORK_INFO); in WifiController()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DConnectivityManagerMobileTest.java22 import android.net.wifi.WifiManager;
100 WifiManager.WIFI_STATE_DISABLED, LONG_TIMEOUT)); in test3GToWifiNotification()
121 WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT)); in testConnectToWifi()
143 WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT)); in testConnectToWifWithKnownAP()
154 WifiManager.WIFI_STATE_DISABLED, LONG_TIMEOUT)); in testConnectToWifWithKnownAP()
169 WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT)); in testConnectToWifWithKnownAP()
191 WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT)); in testDisconnectWifi()
203 WifiManager.WIFI_STATE_DISABLED, LONG_TIMEOUT)); in testDisconnectWifi()
223 WifiManager.WIFI_STATE_DISABLED, LONG_TIMEOUT)); in testDataConnectionWith3GToAmTo3G()
277 WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT)); in testDataConnectionWithWifiToAMToWifi()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerWifiTest.java12 import android.net.wifi.WifiManager;
188 setWifiActivity(WifiManager.DATA_ACTIVITY_IN); in testQsDataDirection()
190 setWifiActivity(WifiManager.DATA_ACTIVITY_NONE); in testQsDataDirection()
192 setWifiActivity(WifiManager.DATA_ACTIVITY_IN); in testQsDataDirection()
194 setWifiActivity(WifiManager.DATA_ACTIVITY_OUT); in testQsDataDirection()
196 setWifiActivity(WifiManager.DATA_ACTIVITY_INOUT); in testQsDataDirection()
231 Intent i = new Intent(WifiManager.RSSI_CHANGED_ACTION); in setWifiLevel()
232 i.putExtra(WifiManager.EXTRA_NEW_RSSI, rssi); in setWifiLevel()
237 Intent i = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION); in setWifiEnabled()
238 i.putExtra(WifiManager.EXTRA_WIFI_STATE, in setWifiEnabled()
[all …]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java33 import android.net.wifi.WifiManager;
153 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in initLocationListeners()
154 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in initLocationListeners()
388 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) { in onReceive()
389 WifiManager wifiManager = in onReceive()
390 (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in onReceive()
409 } else if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { in onReceive()
410 int state = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, in onReceive()
411 WifiManager.WIFI_STATE_UNKNOWN); in onReceive()
415 case WifiManager.WIFI_STATE_DISABLED: in onReceive()
[all …]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java37 import android.net.wifi.WifiManager;
76 private WifiManager mWifiManager;
105 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in initialize()
106 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in initialize()
107 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in initialize()
108 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); in initialize()
109 mIntentFilter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in initialize()
116 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); in initialize()
187 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) { in onReceive()
190 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) { in onReceive()
[all …]
/frameworks/base/packages/Osu/src/com/android/hotspot2/flow/
DPlatformAdapter.java10 import android.net.wifi.WifiManager;
183 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in loadAllSps()
231 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in connect()
459 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in addNetwork()
492 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in updateNetwork()
532 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in addSP()
538 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in modifySP()
549 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in reconnect()
559 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in deleteNetwork()
565 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in getConnectionInfo()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java29 import android.net.wifi.WifiManager;
80 public WifiManager mWifiManager;
112 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) { in onReceive()
130 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); in setUp()
145 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in setUp()
146 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in setUp()
147 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in setUp()
148 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); in setUp()
149 mIntentFilter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in setUp()
339 if (!waitForWifiState(WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT)) { in connectToWifiWithConfiguration()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
DWifiApStress.java23 import android.net.wifi.WifiManager;
88 WifiManager.WIFI_AP_STATE_DISABLED, 2 * LONG_TIMEOUT)); in testWifiHotSpot()
95 WifiManager.WIFI_STATE_DISABLED, LONG_TIMEOUT)); in testWifiHotSpot()
106 WifiManager.WIFI_AP_STATE_ENABLED, 2 * LONG_TIMEOUT)); in testWifiHotSpot()
120 WifiManager.WIFI_AP_STATE_DISABLED, 2 * LONG_TIMEOUT)); in testWifiHotSpot()

12345