/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiEnabler.java | 26 import android.net.wifi.WifiManager; 42 private final WifiManager mWifiManager; 49 if (WifiManager.WIFI_STATE_CHANGED_ACTION.equals(action)) { 51 WifiManager.EXTRA_WIFI_STATE, WifiManager.WIFI_STATE_UNKNOWN)); 52 } else if (WifiManager.SUPPLICANT_STATE_CHANGED_ACTION.equals(action)) { 55 intent.getParcelableExtra(WifiManager.EXTRA_NEW_STATE))); 57 } else if (WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(action)) { 59 WifiManager.EXTRA_NETWORK_INFO); 70 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE) [all...] |
WifiConfigInfo.java | 20 import android.net.wifi.WifiManager; 37 private WifiManager mWifiManager; 47 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
|
WifiStatusTest.java | 34 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...] |
WifiApEnabler.java | 35 import android.net.wifi.WifiManager; 47 private WifiManager mWifiManager; 57 if (WifiManager.WIFI_AP_STATE_CHANGED_ACTION.equals(action)) { 59 WifiManager.EXTRA_WIFI_AP_STATE, WifiManager.WIFI_AP_STATE_FAILED)); 81 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); 86 mIntentFilter = new IntentFilter(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); 117 if (enable && ((wifiState == WifiManager.WIFI_STATE_ENABLING) || 118 (wifiState == WifiManager.WIFI_STATE_ENABLED))) { 182 case WifiManager.WIFI_AP_STATE_ENABLING [all...] |
WpsDialog.java | 26 import android.net.wifi.WifiManager; 58 private WifiManager mWifiManager; 59 private WifiManager.Channel mChannel; 60 private WifiManager.WpsListener mWpsListener; 83 class WpsListener implements WifiManager.WpsListener { 101 case WifiManager.WPS_OVERLAP_ERROR: 104 case WifiManager.WPS_WEP_PROHIBITED: 107 case WifiManager.WPS_TKIP_ONLY_PROHIBITED: 110 case WifiManager.IN_PROGRESS: 125 mFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION) [all...] |
WifiSettings.java | 38 import android.net.wifi.WifiManager; 116 private WifiManager mWifiManager; 117 private WifiManager.Channel mChannel; 118 private WifiManager.ActionListener mConnectListener; 119 private WifiManager.ActionListener mSaveListener; 120 private WifiManager.ActionListener mForgetListener; 168 mFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); 169 mFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); 170 mFilter.addAction(WifiManager.NETWORK_IDS_CHANGED_ACTION); 171 mFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION) [all...] |
WifiAPITest.java | 24 import android.net.wifi.WifiManager; 55 private WifiManager mWifiManager; 67 mWifiManager = (WifiManager) getSystemService(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; 35 private WifiManager mWifiManager; 52 if (action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) { 70 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); 71 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); 72 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); 73 mIntentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); 74 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); 75 mIntentFilter.addAction(WifiManager.RSSI_CHANGED_ACTION) [all...] |
ConcurrencyTest.java | 23 import android.net.wifi.WifiManager; 35 private WifiManager mWifiManager; 47 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { 49 mMySync.expectedWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, 50 WifiManager.WIFI_STATE_DISABLED); 72 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); 76 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 83 mMySync.expectedWifiState = WifiManager.WIFI_STATE_DISABLED; 108 && (mMySync.expectedWifiState != WifiManager.WIFI_STATE_ENABLED || 134 assertTrue(mMySync.expectedWifiState == WifiManager.WIFI_STATE_ENABLED) [all...] |
WifiConfigurationTest.java | 23 import android.net.wifi.WifiManager; 27 private WifiManager mWifiManager; 31 mWifiManager = (WifiManager) mContext
|
WifiManagerTest.java | 26 import android.net.wifi.WifiManager; 28 import android.net.wifi.WifiManager.WifiLock; 41 private WifiManager mWifiManager; 46 // Please refer to WifiManager 67 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) { 76 } else if (action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) { 94 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); 95 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); 96 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); 97 mIntentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION) [all...] |
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);
|
WifiInfoTest.java | 27 import android.net.wifi.WifiManager; 28 import android.net.wifi.WifiManager.WifiLock; 38 private WifiManager mWifiManager; 55 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { 73 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); 76 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 145 return mWifiManager.getWifiState() == WifiManager.WIFI_STATE_DISABLED;
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/ |
WifiClientTest.java | 27 import android.net.wifi.WifiManager; 46 private WifiManager mWifiManager; 63 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { 64 mWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, 65 WifiManager.WIFI_STATE_UNKNOWN); 67 case WifiManager.WIFI_STATE_DISABLING: 70 case WifiManager.WIFI_STATE_DISABLED: 73 case WifiManager.WIFI_STATE_ENABLING: 76 case WifiManager.WIFI_STATE_ENABLED: 80 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) [all...] |
WifiSoftAPTest.java | 26 import android.net.wifi.WifiManager; 42 private WifiManager mWifiManager; 50 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 83 assertEquals("wifi AP state is not enabled", WifiManager.WIFI_AP_STATE_ENABLED,
|
/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");
|
NoWifiStatePermissionTest.java | 21 import android.net.wifi.WifiManager; 26 * Verify WifiManager related methods without specific Wifi state permissions. 32 private WifiManager mWifiManager; 37 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 42 * Verify that WifiManager#getWifiState() requires permissions. 49 fail("WifiManager.getWifiState didn't throw SecurityException as expected"); 56 * Verify that WifiManager#getConfiguredNetworks() requires permissions. 63 fail("WifiManager.getConfiguredNetworks didn't throw SecurityException as expected"); 70 * Verify that WifiManager#getConnectionInfo() requires permissions. 77 fail("WifiManager.getConnectionInfo didn't throw SecurityException as expected") [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
WifiStateTracker.java | 59 private WifiManager mWifiManager; 86 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 88 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); 89 filter.addAction(WifiManager.LINK_CONFIGURATION_CHANGED_ACTION); 224 } else if (intent.getAction().equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) { 226 WifiManager.EXTRA_NETWORK_INFO); 228 WifiManager.EXTRA_LINK_PROPERTIES); 233 WifiManager.EXTRA_LINK_CAPABILITIES); 248 } else if (intent.getAction().equals(WifiManager.LINK_CONFIGURATION_CHANGED_ACTION)) { 250 WifiManager.EXTRA_LINK_PROPERTIES) [all...] |
WifiStateMachine.java | 19 import static android.net.wifi.WifiManager.WIFI_STATE_DISABLED; 20 import static android.net.wifi.WifiManager.WIFI_STATE_DISABLING; 21 import static android.net.wifi.WifiManager.WIFI_STATE_ENABLED; 22 import static android.net.wifi.WifiManager.WIFI_STATE_ENABLING; 23 import static android.net.wifi.WifiManager.WIFI_STATE_UNKNOWN; 34 import static android.net.wifi.WifiManager.WIFI_AP_STATE_DISABLED; 35 import static android.net.wifi.WifiManager.WIFI_AP_STATE_DISABLING; 36 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLED; 37 import static android.net.wifi.WifiManager.WIFI_AP_STATE_ENABLING; 38 import static android.net.wifi.WifiManager.WIFI_AP_STATE_FAILED [all...] |
WifiManager.java | 59 public class WifiManager { 497 * Create a new WifiManager instance. 506 public WifiManager(IWifiManager service, Handler handler) { [all...] |
/frameworks/base/services/java/com/android/server/ |
WifiService.java | 35 import android.net.wifi.WifiManager; 148 "com.android.server.WifiManager.action.DEVICE_IDLE"; 263 case WifiManager.ENABLE_TRAFFIC_STATS_POLL: { 268 sendMessageDelayed(Message.obtain(this, WifiManager.TRAFFIC_STATS_POLL, 273 case WifiManager.TRAFFIC_STATS_POLL: { 276 sendMessageDelayed(Message.obtain(this, WifiManager.TRAFFIC_STATS_POLL, 281 case WifiManager.CONNECT_NETWORK: { 285 case WifiManager.SAVE_NETWORK: { 289 case WifiManager.FORGET_NETWORK: { 293 case WifiManager.START_WPS: [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...] |
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
ConnectivityManagerTestActivity.java | 28 import android.net.wifi.WifiManager; 96 public WifiManager mWifiManager; 97 public WifiManager.Channel mChannel; 158 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) { 161 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) { 163 (NetworkInfo) intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO); 166 mBssid = intent.getStringExtra(WifiManager.EXTRA_BSSID); 169 } else if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) { 170 mWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, 171 WifiManager.WIFI_STATE_UNKNOWN) [all...] |
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
ConnectionUtil.java | 37 import android.net.wifi.WifiManager; 76 private WifiManager mWifiManager; 77 private WifiManager.Channel mChannel; 106 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); 107 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); 108 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); 109 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); 110 mIntentFilter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); 116 // Get an instance of WifiManager 117 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE) [all...] |
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
WifiConnectionTest.java | 32 import android.net.wifi.WifiManager; 65 private WifiManager mWifiManager = null; 66 private WifiManager.Channel mChannel; 77 mWifiManager = (WifiManager) mRunner.getContext().getSystemService(Context.WIFI_SERVICE);
|