/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLockManagerTest.java | 25 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() 183 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in acquireWifiLockWithValidParamsShouldSucceed() 184 assertEquals(WifiManager.WIFI_MODE_FULL_HIGH_PERF, mWifiLockManager.getStrongestLockMode()); in acquireWifiLockWithValidParamsShouldSucceed() 196 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in secondCallToAcquireWifiLockWithSameBinderShouldFail() 197 assertEquals(WifiManager.WIFI_MODE_FULL_HIGH_PERF, in secondCallToAcquireWifiLockWithSameBinderShouldFail() 200 WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource)); in secondCallToAcquireWifiLockWithSameBinderShouldFail() 212 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL_HIGH_PERF, "", mBinder, mWorkSource); in releaseWifiLockShouldSucceed() [all …]
|
D | TestUtil.java | 25 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 …]
|
D | ActiveModeWardenTest.java | 29 import android.net.wifi.WifiManager; 80 WifiManager.SoftApCallback mSoftApManagerCallback; 81 @Mock WifiManager.SoftApCallback mSoftApStateMachineCallback; 139 public int currentState = WifiManager.WIFI_STATE_UNKNOWN; 148 public int currentState = WifiManager.WIFI_STATE_UNKNOWN; 158 new SoftApModeConfiguration(WifiManager.IFACE_IP_MODE_TETHERED, null)); in enterSoftApActiveMode() 177 mClientListener.onStateChanged(WifiManager.WIFI_STATE_ENABLED); in enterClientModeActiveState() 205 mScanOnlyListener.onStateChanged(WifiManager.WIFI_STATE_ENABLED); in enterScanOnlyModeActiveState() 229 mSoftApManagerCallback = (WifiManager.SoftApCallback) args[0]; in enterSoftApActiveMode() 233 }).when(mWifiInjector).makeSoftApManager(any(WifiManager.SoftApCallback.class), in enterSoftApActiveMode() [all …]
|
D | SupplicantStateTrackerTest.java | 27 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 …]
|
D | SoftApManagerTest.java | 20 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 …]
|
D | WifiNetworkSuggestionsManagerTest.java | 49 import android.net.wifi.WifiManager; 199 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testAddNetworkSuggestionsSuccess() 202 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testAddNetworkSuggestionsSuccess() 244 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveNetworkSuggestionsSuccess() 247 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveNetworkSuggestionsSuccess() 252 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveNetworkSuggestionsSuccess() 254 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveNetworkSuggestionsSuccess() 288 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveAllNetworkSuggestionsSuccess() 291 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveAllNetworkSuggestionsSuccess() 296 assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, in testRemoveAllNetworkSuggestionsSuccess() [all …]
|
D | SarManagerTest.java | 35 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 …]
|
D | LocalOnlyHotspotRequestInfoTest.java | 23 import android.net.wifi.WifiManager; 147 WifiManager.LocalOnlyHotspotCallback.ERROR_GENERIC); in verifySendFailedMessage() 149 assertEquals(WifiManager.HOTSPOT_FAILED, message.what); in verifySendFailedMessage() 150 assertEquals(WifiManager.LocalOnlyHotspotCallback.ERROR_GENERIC, message.arg1); in verifySendFailedMessage() 162 assertEquals(WifiManager.HOTSPOT_STARTED, message.what); in verifySendStartedMessage() 174 assertEquals(WifiManager.HOTSPOT_STOPPED, message.what); in verifySendStoppedMessage()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ClientModeManager.java | 22 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 …]
|
D | SoftApManager.java | 29 import android.net.wifi.WifiManager; 75 private final WifiManager.SoftApCallback mCallback; 126 @NonNull WifiManager.SoftApCallback callback, in SoftApManager() 163 updateApState(WifiManager.WIFI_AP_STATE_DISABLING, in stop() 164 WifiManager.WIFI_AP_STATE_ENABLED, 0); in stop() 166 updateApState(WifiManager.WIFI_AP_STATE_DISABLING, in stop() 167 WifiManager.WIFI_AP_STATE_ENABLING, 0); in stop() 226 final Intent intent = new Intent(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in updateApState() 228 intent.putExtra(WifiManager.EXTRA_WIFI_AP_STATE, newState); in updateApState() 229 intent.putExtra(WifiManager.EXTRA_PREVIOUS_WIFI_AP_STATE, currentState); in updateApState() [all …]
|
D | WifiLockManager.java | 21 import android.net.wifi.WifiManager; 91 mCurrentOpMode = WifiManager.WIFI_MODE_NO_LOCKS_HELD; in WifiLockManager() 218 return WifiManager.WIFI_MODE_NO_LOCKS_HELD; in getStrongestLockMode() 223 return WifiManager.WIFI_MODE_FULL_HIGH_PERF; in getStrongestLockMode() 228 return WifiManager.WIFI_MODE_FULL_LOW_LATENCY; in getStrongestLockMode() 232 return WifiManager.WIFI_MODE_FULL_LOW_LATENCY; in getStrongestLockMode() 236 return WifiManager.WIFI_MODE_FULL_HIGH_PERF; in getStrongestLockMode() 239 return WifiManager.WIFI_MODE_NO_LOCKS_HELD; in getStrongestLockMode() 282 case WifiManager.WIFI_MODE_FULL_HIGH_PERF: in updateWifiLockWorkSource() 289 case WifiManager.WIFI_MODE_FULL_LOW_LATENCY: in updateWifiLockWorkSource() [all …]
|
D | ActiveModeWarden.java | 22 import android.net.wifi.WifiManager; 100 private WifiManager.SoftApCallback mSoftApCallback; 107 public void registerSoftApCallback(@NonNull WifiManager.SoftApCallback callback) { in registerSoftApCallback() 197 if (mode != WifiManager.IFACE_IP_MODE_UNSPECIFIED in stopSoftAPMode() 399 if (state == WifiManager.WIFI_STATE_UNKNOWN) { in onStateChanged() 402 } else if (state == WifiManager.WIFI_STATE_DISABLED) { in onStateChanged() 405 } else if (state == WifiManager.WIFI_STATE_ENABLED) { in onStateChanged() 450 mClientModeCallback.onStateChanged(WifiManager.WIFI_STATE_UNKNOWN); in processMessage() 461 mClientModeCallback.onStateChanged(WifiManager.WIFI_STATE_DISABLED); in processMessage() 481 if (state == WifiManager.WIFI_STATE_UNKNOWN) { in onStateChanged() [all …]
|
D | ScanOnlyModeManager.java | 21 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()
|
D | WifiController.java | 24 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/ |
D | HotspotControllerImpl.java | 24 import android.net.wifi.WifiManager; 40 public class HotspotControllerImpl implements HotspotController, WifiManager.SoftApCallback { 47 private final WifiManager mWifiManager; 62 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in HotspotControllerImpl() 82 case WifiManager.WIFI_AP_STATE_DISABLED: in stateToString() 84 case WifiManager.WIFI_AP_STATE_DISABLING: in stateToString() 86 case WifiManager.WIFI_AP_STATE_ENABLED: in stateToString() 88 case WifiManager.WIFI_AP_STATE_ENABLING: in stateToString() 90 case WifiManager.WIFI_AP_STATE_FAILED: in stateToString() 135 return mHotspotState == WifiManager.WIFI_AP_STATE_ENABLED; in isHotspotEnabled() [all …]
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/ |
D | WifiClientTest.java | 24 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/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
D | ConnectivityManagerMobileTest.java | 22 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/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiStatusTracker.java | 29 import android.net.wifi.WifiManager; 42 private final WifiManager mWifiManager; 78 public WifiStatusTracker(Context context, WifiManager wifiManager, in WifiStatusTracker() 109 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { in handleBroadcast() 111 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) { in handleBroadcast() 114 intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO); in handleBroadcast() 131 } else if (action.equals(WifiManager.RSSI_CHANGED_ACTION)) { in handleBroadcast() 133 updateRssi(intent.getIntExtra(WifiManager.EXTRA_NEW_RSSI, -200)); in handleBroadcast() 140 enabled = state == WifiManager.WIFI_STATE_ENABLED; in updateWifiState() 145 level = WifiManager.calculateSignalLevel(rssi, WifiManager.RSSI_LEVELS); in updateRssi()
|
D | WifiTracker.java | 35 import android.net.wifi.WifiManager; 112 private final WifiManager mWifiManager; 178 filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in newIntentFilter() 179 filter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in newIntentFilter() 180 filter.addAction(WifiManager.NETWORK_IDS_CHANGED_ACTION); in newIntentFilter() 181 filter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); in newIntentFilter() 182 filter.addAction(WifiManager.CONFIGURED_NETWORKS_CHANGED_ACTION); in newIntentFilter() 183 filter.addAction(WifiManager.LINK_CONFIGURATION_CHANGED_ACTION); in newIntentFilter() 184 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in newIntentFilter() 185 filter.addAction(WifiManager.RSSI_CHANGED_ACTION); in newIntentFilter() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerWifiTest.java | 7 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/deviceinfo/ |
D | AbstractWifiMacAddressPreferenceController.java | 22 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()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | OsuNetworkConnection.java | 32 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/ |
D | TrackerService.java | 33 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/ |
D | ConnectionUtil.java | 37 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/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerTestBase.java | 29 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() 139 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in setUp() 140 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); in setUp() 141 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); in setUp() 142 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); in setUp() 143 mIntentFilter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in setUp() 333 if (!waitForWifiState(WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT)) { in connectToWifiWithConfiguration() [all …]
|