Home
last modified time | relevance | path

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

123456

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLockManagerTest.java25 import android.net.wifi.WifiManager;
105 not(WifiManager.WIFI_MODE_NO_LOCKS_HELD)); in acquireWifiLockSuccessful()
109 if (lockMode == WifiManager.WIFI_MODE_FULL_LOW_LATENCY) { in acquireWifiLockSuccessful()
160 assertEquals(WifiManager.WIFI_MODE_NO_LOCKS_HELD, mWifiLockManager.getStrongestLockMode()); in newWifiLockManagerShouldNotHaveAnyLocks()
172 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in acquireWifiLockWithValidParamsShouldSucceed()
173 assertEquals(WifiManager.WIFI_MODE_FULL_HIGH_PERF, mWifiLockManager.getStrongestLockMode()); in acquireWifiLockWithValidParamsShouldSucceed()
185 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in secondCallToAcquireWifiLockWithSameBinderShouldFail()
186 assertEquals(WifiManager.WIFI_MODE_FULL_HIGH_PERF, in secondCallToAcquireWifiLockWithSameBinderShouldFail()
189 WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource)); in secondCallToAcquireWifiLockWithSameBinderShouldFail()
201 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in releaseWifiLockShouldSucceed()
[all …]
DTestUtil.java25 import android.net.wifi.WifiManager;
39 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); in sendNetworkStateChanged()
42 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo); in sendNetworkStateChanged()
51 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); in sendNetworkStateChanged()
52 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, nwInfo); in sendNetworkStateChanged()
53 intent.putExtra(WifiManager.EXTRA_WIFI_INFO, wifiInfo); in sendNetworkStateChanged()
62 Intent intent = new Intent(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in sendScanResultsAvailable()
71 Intent intent = new Intent(WifiManager.WIFI_SCAN_AVAILABLE); in sendWifiScanAvailable()
72 intent.putExtra(WifiManager.EXTRA_SCAN_AVAILABLE, scanAvailable); in sendWifiScanAvailable()
81 Intent intent = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION); in sendWifiStateChanged()
[all …]
DSoftApManagerTest.java20 import static android.net.wifi.WifiManager.EXTRA_PREVIOUS_WIFI_AP_STATE;
21 import static android.net.wifi.WifiManager.EXTRA_WIFI_AP_FAILURE_REASON;
22 import static android.net.wifi.WifiManager.EXTRA_WIFI_AP_INTERFACE_NAME;
23 import static android.net.wifi.WifiManager.EXTRA_WIFI_AP_MODE;
24 import static android.net.wifi.WifiManager.EXTRA_WIFI_AP_STATE;
25 import static android.net.wifi.WifiManager.WIFI_AP_STATE_DISABLED;
26 import static android.net.wifi.WifiManager.WIFI_AP_STATE_DISABLING;
27 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED;
28 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLING;
29 import static android.net.wifi.WifiManager.WIFI_AP_STATE_FAILED;
[all …]
DSupplicantStateTrackerTest.java27 import android.net.wifi.WifiManager;
93 assertTrue(action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)); in testSupplicantStateChangeIntent()
95 (SupplicantState) intent.getExtra(WifiManager.EXTRA_NEW_STATE, -1); in testSupplicantStateChangeIntent()
100 mIntentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in testSupplicantStateChangeIntent()
115 assertTrue(action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)); in testAuthPassInSupplicantStateChangeIntent()
117 (SupplicantState) intent.getExtra(WifiManager.EXTRA_NEW_STATE, -1); in testAuthPassInSupplicantStateChangeIntent()
120 (boolean) intent.getExtra(WifiManager.EXTRA_SUPPLICANT_ERROR, -1); in testAuthPassInSupplicantStateChangeIntent()
125 mIntentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in testAuthPassInSupplicantStateChangeIntent()
141 assertTrue(action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)); in testAuthFailedInSupplicantStateChangeIntent()
143 (SupplicantState) intent.getExtra(WifiManager.EXTRA_NEW_STATE, -1); in testAuthFailedInSupplicantStateChangeIntent()
[all …]
DActiveModeWardenTest.java40 import android.net.wifi.WifiManager;
93 WifiManager.SoftApCallback mSoftApManagerCallback;
94 @Mock WifiManager.SoftApCallback mSoftApStateMachineCallback;
152 public int currentState = WifiManager.WIFI_STATE_UNKNOWN;
161 public int currentState = WifiManager.WIFI_STATE_UNKNOWN;
171 new SoftApModeConfiguration(WifiManager.IFACE_IP_MODE_TETHERED, null)); in enterSoftApActiveMode()
190 mClientListener.onStateChanged(WifiManager.WIFI_STATE_ENABLED); in enterClientModeActiveState()
218 mScanOnlyListener.onStateChanged(WifiManager.WIFI_STATE_ENABLED); in enterScanOnlyModeActiveState()
242 mSoftApManagerCallback = (WifiManager.SoftApCallback) args[0]; in enterSoftApActiveMode()
246 }).when(mWifiInjector).makeSoftApManager(any(WifiManager.SoftApCallback.class), in enterSoftApActiveMode()
[all …]
DWifiNetworkSuggestionsManagerTest.java49 import android.net.wifi.WifiManager;
203 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testAddNetworkSuggestionsSuccess()
206 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testAddNetworkSuggestionsSuccess()
248 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveNetworkSuggestionsSuccess()
251 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveNetworkSuggestionsSuccess()
256 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveNetworkSuggestionsSuccess()
259 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveNetworkSuggestionsSuccess()
294 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveAllNetworkSuggestionsSuccess()
297 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveAllNetworkSuggestionsSuccess()
302 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveAllNetworkSuggestionsSuccess()
[all …]
DSarManagerTest.java35 import android.net.wifi.WifiManager;
320 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
348 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
367 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
389 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_DISABLED); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
429 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_wifiOn_offHook_wifiOff_onHook()
442 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_DISABLED); in testSarMgr_enabledSar_wifiOn_offHook_wifiOff_onHook()
450 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_wifiOn_offHook_wifiOff_onHook()
474 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_wifiOff_offHook_onHook_wifiOn()
496 mSarMgr.setClientWifiState(WifiManager.WIFI_STATE_ENABLED); in testSarMgr_enabledSar_offHook_wifiOnOff_onHook()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DClientModeManager.java22 import android.net.wifi.WifiManager;
82 updateWifiState(WifiManager.WIFI_STATE_DISABLING, in stop()
83 WifiManager.WIFI_STATE_ENABLED); in stop()
85 updateWifiState(WifiManager.WIFI_STATE_DISABLING, in stop()
86 WifiManager.WIFI_STATE_ENABLING); in stop()
143 if (newState == WifiManager.WIFI_STATE_UNKNOWN in updateWifiState()
144 || newState == WifiManager.WIFI_STATE_DISABLED) { in updateWifiState()
148 if (newState == WifiManager.WIFI_STATE_UNKNOWN) { in updateWifiState()
155 final Intent intent = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION); in updateWifiState()
157 intent.putExtra(WifiManager.EXTRA_WIFI_STATE, newState); in updateWifiState()
[all …]
DSoftApManager.java31 import android.net.wifi.WifiManager;
80 private final WifiManager.SoftApCallback mCallback;
133 @NonNull WifiManager.SoftApCallback callback, in SoftApManager()
172 updateApState(WifiManager.WIFI_AP_STATE_DISABLING, in stop()
173 WifiManager.WIFI_AP_STATE_ENABLED, 0); in stop()
175 updateApState(WifiManager.WIFI_AP_STATE_DISABLING, in stop()
176 WifiManager.WIFI_AP_STATE_ENABLING, 0); in stop()
235 final Intent intent = new Intent(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in updateApState()
237 intent.putExtra(WifiManager.EXTRA_WIFI_AP_STATE, newState); in updateApState()
238 intent.putExtra(WifiManager.EXTRA_PREVIOUS_WIFI_AP_STATE, currentState); in updateApState()
[all …]
DWifiLockManager.java21 import android.net.wifi.WifiManager;
91 mCurrentOpMode = WifiManager.WIFI_MODE_NO_LOCKS_HELD; in WifiLockManager()
214 return WifiManager.WIFI_MODE_NO_LOCKS_HELD; in getStrongestLockMode()
219 return WifiManager.WIFI_MODE_FULL_HIGH_PERF; in getStrongestLockMode()
224 return WifiManager.WIFI_MODE_FULL_LOW_LATENCY; in getStrongestLockMode()
228 return WifiManager.WIFI_MODE_FULL_LOW_LATENCY; in getStrongestLockMode()
232 return WifiManager.WIFI_MODE_FULL_HIGH_PERF; in getStrongestLockMode()
235 return WifiManager.WIFI_MODE_NO_LOCKS_HELD; in getStrongestLockMode()
278 case WifiManager.WIFI_MODE_FULL_HIGH_PERF: in updateWifiLockWorkSource()
285 case WifiManager.WIFI_MODE_FULL_LOW_LATENCY: in updateWifiLockWorkSource()
[all …]
DActiveModeWarden.java23 import android.net.wifi.WifiManager;
102 private WifiManager.SoftApCallback mSoftApCallback;
109 public void registerSoftApCallback(@NonNull WifiManager.SoftApCallback callback) { in registerSoftApCallback()
199 if (mode != WifiManager.IFACE_IP_MODE_UNSPECIFIED in stopSoftAPMode()
401 if (state == WifiManager.WIFI_STATE_UNKNOWN) { in onStateChanged()
404 } else if (state == WifiManager.WIFI_STATE_DISABLED) { in onStateChanged()
407 } else if (state == WifiManager.WIFI_STATE_ENABLED) { in onStateChanged()
452 mClientModeCallback.onStateChanged(WifiManager.WIFI_STATE_UNKNOWN); in processMessage()
463 mClientModeCallback.onStateChanged(WifiManager.WIFI_STATE_DISABLED); in processMessage()
483 if (state == WifiManager.WIFI_STATE_UNKNOWN) { in onStateChanged()
[all …]
DScanOnlyModeManager.java21 import android.net.wifi.WifiManager;
136 if (state == WifiManager.WIFI_STATE_UNKNOWN || state == WifiManager.WIFI_STATE_DISABLED) { in updateWifiState()
202 updateWifiState(WifiManager.WIFI_STATE_UNKNOWN); in processMessage()
225 updateWifiState(WifiManager.WIFI_STATE_ENABLED); in onUpChanged()
239 mSarManager.setScanOnlyWifiState(WifiManager.WIFI_STATE_ENABLED); in enter()
259 updateWifiState(WifiManager.WIFI_STATE_UNKNOWN); in processMessage()
278 updateWifiState(WifiManager.WIFI_STATE_DISABLED); in exit()
279 mSarManager.setScanOnlyWifiState(WifiManager.WIFI_STATE_DISABLED); in exit()
DWifiController.java24 import android.net.wifi.WifiManager;
154 filter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in start()
155 filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in start()
162 if (action.equals(WifiManager.WIFI_AP_STATE_CHANGED_ACTION)) { in start()
164 WifiManager.EXTRA_WIFI_AP_STATE, in start()
165 WifiManager.WIFI_AP_STATE_FAILED); in start()
166 if (state == WifiManager.WIFI_AP_STATE_FAILED) { in start()
169 } else if (state == WifiManager.WIFI_AP_STATE_DISABLED) { in start()
198 if (state == WifiManager.WIFI_STATE_UNKNOWN) { in onStateChanged()
200 } else if (state == WifiManager.WIFI_STATE_DISABLED) { in onStateChanged()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DHotspotControllerImpl.java25 import android.net.wifi.WifiManager;
44 public class HotspotControllerImpl implements HotspotController, WifiManager.SoftApCallback {
51 private final WifiManager mWifiManager;
67 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in HotspotControllerImpl()
87 case WifiManager.WIFI_AP_STATE_DISABLED: in stateToString()
89 case WifiManager.WIFI_AP_STATE_DISABLING: in stateToString()
91 case WifiManager.WIFI_AP_STATE_ENABLED: in stateToString()
93 case WifiManager.WIFI_AP_STATE_ENABLING: in stateToString()
95 case WifiManager.WIFI_AP_STATE_FAILED: in stateToString()
142 return mHotspotState == WifiManager.WIFI_AP_STATE_ENABLED; in isHotspotEnabled()
[all …]
/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 …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/wifi/
DWifiDebuggingSecondaryUserActivity.java28 import android.net.wifi.WifiManager;
41 private WifiManager mWifiManager;
47 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onCreate()
68 if (WifiManager.WIFI_STATE_CHANGED_ACTION.equals(action)) { in onReceive()
70 WifiManager.EXTRA_WIFI_STATE, WifiManager.WIFI_STATE_DISABLED); in onReceive()
71 if (state == WifiManager.WIFI_STATE_DISABLED) { in onReceive()
74 } else if (WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(action)) { in onReceive()
76 WifiManager.EXTRA_NETWORK_INFO); in onReceive()
96 IntentFilter filter = new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION); in onStart()
97 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in onStart()
DWifiDebuggingActivity.java30 import android.net.wifi.WifiManager;
60 private WifiManager mWifiManager;
74 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onCreate()
139 if (WifiManager.WIFI_STATE_CHANGED_ACTION.equals(action)) { in onReceive()
141 WifiManager.EXTRA_WIFI_STATE, WifiManager.WIFI_STATE_DISABLED); in onReceive()
142 if (state == WifiManager.WIFI_STATE_DISABLED) { in onReceive()
145 } else if (WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(action)) { in onReceive()
147 WifiManager.EXTRA_NETWORK_INFO); in onReceive()
175 IntentFilter filter = new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION); in onStart()
176 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in onStart()
/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.java14 import android.net.wifi.WifiManager;
90 setWifiActivity(WifiManager.TrafficStateCallback.DATA_ACTIVITY_IN); in testQsDataDirection()
92 setWifiActivity(WifiManager.TrafficStateCallback.DATA_ACTIVITY_NONE); in testQsDataDirection()
94 setWifiActivity(WifiManager.TrafficStateCallback.DATA_ACTIVITY_IN); in testQsDataDirection()
96 setWifiActivity(WifiManager.TrafficStateCallback.DATA_ACTIVITY_OUT); in testQsDataDirection()
98 setWifiActivity(WifiManager.TrafficStateCallback.DATA_ACTIVITY_INOUT); in testQsDataDirection()
182 Intent i = new Intent(WifiManager.RSSI_CHANGED_ACTION); in setWifiLevel()
183 i.putExtra(WifiManager.EXTRA_NEW_RSSI, rssi); in setWifiLevel()
189 enabled ? WifiManager.WIFI_STATE_ENABLED : WifiManager.WIFI_STATE_DISABLED); in setWifiEnabled()
190 mNetworkController.onReceive(mContext, new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION)); in setWifiEnabled()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java29 import android.net.wifi.WifiManager;
43 private final WifiManager mWifiManager;
79 public WifiStatusTracker(Context context, WifiManager wifiManager, in WifiStatusTracker()
110 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { in handleBroadcast()
112 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) { in handleBroadcast()
115 intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO); in handleBroadcast()
132 } else if (action.equals(WifiManager.RSSI_CHANGED_ACTION)) { in handleBroadcast()
134 updateRssi(intent.getIntExtra(WifiManager.EXTRA_NEW_RSSI, -200)); in handleBroadcast()
141 enabled = state == WifiManager.WIFI_STATE_ENABLED; in updateWifiState()
146 level = WifiManager.calculateSignalLevel(rssi, WifiManager.RSSI_LEVELS); in updateRssi()
DWifiTracker.java35 import android.net.wifi.WifiManager;
114 private final WifiManager mWifiManager;
180 filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in newIntentFilter()
181 filter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in newIntentFilter()
182 filter.addAction(WifiManager.NETWORK_IDS_CHANGED_ACTION); in newIntentFilter()
183 filter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in newIntentFilter()
184 filter.addAction(WifiManager.CONFIGURED_NETWORKS_CHANGED_ACTION); in newIntentFilter()
185 filter.addAction(WifiManager.LINK_CONFIGURATION_CHANGED_ACTION); in newIntentFilter()
186 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in newIntentFilter()
187 filter.addAction(WifiManager.RSSI_CHANGED_ACTION); in newIntentFilter()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java32 import android.net.wifi.WifiManager;
48 private WifiManager mWifiManager;
100 filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in init()
105 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { in init()
106 int state = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, in init()
107 WifiManager.WIFI_STATE_UNKNOWN); in init()
108 if (state == WifiManager.WIFI_STATE_DISABLED && mWifiEnabled) { in init()
112 if (state == WifiManager.WIFI_STATE_ENABLED && !mWifiEnabled) { in init()
119 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in init()
/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/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractWifiMacAddressPreferenceController.java22 import android.net.wifi.WifiManager;
47 WifiManager.LINK_CONFIGURATION_CHANGED_ACTION,
48 WifiManager.NETWORK_STATE_CHANGED_ACTION,
52 private final WifiManager mWifiManager;
56 mWifiManager = context.getSystemService(WifiManager.class); in AbstractWifiMacAddressPreferenceController()

123456