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

12 3 4 5 6 7

  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
WifiNotificationController.java 30 import android.net.wifi.WifiManager;
104 mWifiState = WifiManager.WIFI_STATE_UNKNOWN;
108 filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
109 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
110 filter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
116 if (intent.getAction().equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
117 mWifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
118 WifiManager.WIFI_STATE_UNKNOWN);
121 WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
123 WifiManager.EXTRA_NETWORK_INFO)
    [all...]
SoftApManager.java 26 import android.net.wifi.WifiManager;
196 updateApState(WifiManager.WIFI_AP_STATE_ENABLING, 0);
199 updateApState(WifiManager.WIFI_AP_STATE_ENABLED, 0);
202 int reason = WifiManager.SAP_START_FAILURE_GENERAL;
204 reason = WifiManager.SAP_START_FAILURE_NO_CHANNEL;
206 updateApState(WifiManager.WIFI_AP_STATE_FAILED, reason);
225 updateApState(WifiManager.WIFI_AP_STATE_DISABLING, 0);
227 updateApState(WifiManager.WIFI_AP_STATE_DISABLED, 0);
WifiTrafficPoller.java 27 import android.net.wifi.WifiManager;
79 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
90 if (WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(
93 WifiManager.EXTRA_NETWORK_INFO);
185 int dataActivity = WifiManager.DATA_ACTIVITY_NONE;
201 dataActivity |= WifiManager.DATA_ACTIVITY_OUT;
204 dataActivity |= WifiManager.DATA_ACTIVITY_IN;
215 msg.what = WifiManager.DATA_ACTIVITY_NOTIFICATION;
WifiController.java 19 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;
34 import android.net.wifi.WifiManager;
93 "com.android.server.WifiManager.action.DEVICE_IDLE";
191 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
192 filter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION);
193 filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
201 } else if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION))
    [all...]
  /frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DownloadManagerTestRunner.java 20 import android.net.wifi.WifiManager;
60 ((WifiManager)getContext().getSystemService(Context.WIFI_SERVICE))
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
WifiSignalController.java 21 import android.net.wifi.WifiManager;
40 private final WifiManager mWifiManager;
49 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
113 mCurrentState.activityIn = wifiActivity == WifiManager.DATA_ACTIVITY_INOUT
114 || wifiActivity == WifiManager.DATA_ACTIVITY_IN;
115 mCurrentState.activityOut = wifiActivity == WifiManager.DATA_ACTIVITY_INOUT
116 || wifiActivity == WifiManager.DATA_ACTIVITY_OUT;
135 case WifiManager.DATA_ACTIVITY_NOTIFICATION:
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
ConnectivityManagerMobileTest.java 22 import android.net.wifi.WifiManager;
100 WifiManager.WIFI_STATE_DISABLED, LONG_TIMEOUT));
119 // assert that WifiManager reports correct state
121 WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT));
143 WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT));
154 WifiManager.WIFI_STATE_DISABLED, LONG_TIMEOUT));
169 WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT));
191 WifiManager.WIFI_STATE_ENABLED, LONG_TIMEOUT));
203 WifiManager.WIFI_STATE_DISABLED, LONG_TIMEOUT));
223 WifiManager.WIFI_STATE_DISABLED, LONG_TIMEOUT))
    [all...]
  /packages/apps/Settings/src/com/android/settings/wifi/
WifiConfigInfo.java 21 import android.net.wifi.WifiManager;
36 private WifiManager mWifiManager;
42 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
WpsDialog.java 26 import android.net.wifi.WifiManager;
59 private WifiManager mWifiManager;
60 private WifiManager.WpsCallback mWpsListener;
84 class WpsListener extends WifiManager.WpsCallback {
104 case WifiManager.WPS_OVERLAP_ERROR:
107 case WifiManager.WPS_WEP_PROHIBITED:
110 case WifiManager.WPS_TKIP_ONLY_PROHIBITED:
113 case WifiManager.IN_PROGRESS:
128 mFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
179 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE)
    [all...]
WifiDialogActivity.java 24 import android.net.wifi.WifiManager;
71 final WifiManager wifiManager = getSystemService(WifiManager.class);
78 wifiManager.disableEphemeralNetwork(
85 wifiManager.forget(accessPoint.getConfig().networkId, null /* listener */);
103 final WifiManager wifiManager = getSystemService(WifiManager.class);
107 wifiManager.connect(accessPoint.getConfig(), null /* listener */)
    [all...]
  /cts/tests/tests/net/src/android/net/wifi/cts/
WifiManagerTest.java 30 import android.net.wifi.WifiManager;
31 import android.net.wifi.WifiManager.TxPacketCountListener;
32 import android.net.wifi.WifiManager.WifiLock;
51 private WifiManager mWifiManager;
57 // Please refer to WifiManager
83 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
92 } else if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
93 int newState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE,
94 WifiManager.WIFI_STATE_UNKNOWN);
96 if (newState == WifiManager.WIFI_STATE_ENABLED)
    [all...]
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);
151 return mWifiManager.getWifiState() == WifiManager.WIFI_STATE_DISABLED;
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
WifiApStress.java 23 import android.net.wifi.WifiManager;
88 WifiManager.WIFI_AP_STATE_DISABLED, 2 * LONG_TIMEOUT));
95 WifiManager.WIFI_STATE_DISABLED, LONG_TIMEOUT));
106 WifiManager.WIFI_AP_STATE_ENABLED, 2 * LONG_TIMEOUT));
120 WifiManager.WIFI_AP_STATE_DISABLED, 2 * LONG_TIMEOUT));
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowWifiManager.java 6 import android.net.wifi.WifiManager;
20 @Implements(WifiManager.class)
104 public WifiManager.WifiLock createWifiLock(int lockType, java.lang.String tag) {
105 return Robolectric.newInstanceOf(WifiManager.WifiLock.class);
109 public WifiManager.WifiLock createWifiLock(java.lang.String tag) {
110 return createWifiLock(WifiManager.WIFI_MODE_FULL, tag);
146 @Implements(WifiManager.WifiLock.class)
  /frameworks/base/packages/Osu/src/com/android/
MainActivity.java 18 import android.net.wifi.WifiManager;
243 WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
246 case WifiManager.SCAN_RESULTS_AVAILABLE_ACTION:
247 mOsuManager.pushScanResults(wifiManager.getScanResults());
249 case WifiManager.PASSPOINT_WNM_FRAME_RECEIVED_ACTION:
250 long bssid = bundle.getLong(WifiManager.EXTRA_PASSPOINT_WNM_BSSID);
251 String url = bundle.getString(WifiManager.EXTRA_PASSPOINT_WNM_URL);
254 if (bundle.containsKey(WifiManager.EXTRA_PASSPOINT_WNM_METHOD))
    [all...]
  /frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/wifi/
WifiTrackerTest.java 24 import android.net.wifi.WifiManager;
55 private WifiManager mWifiManager;
69 mWifiManager = Mockito.mock(WifiManager.class);
108 final int TEST_WIFI_STATE = WifiManager.WIFI_STATE_ENABLED;
110 Intent i = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION);
111 i.putExtra(WifiManager.EXTRA_WIFI_STATE, TEST_WIFI_STATE);
250 Intent i = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION);
252 i.putExtra(WifiManager.EXTRA_WIFI_STATE, WifiManager.WIFI_STATE_DISABLED);
254 i.putExtra(WifiManager.EXTRA_WIFI_STATE, WifiManager.WIFI_STATE_ENABLED)
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
WifiConfigHelper.java 24 import android.net.wifi.WifiManager;
132 public static WifiConfiguration getWifiConfiguration(WifiManager wifiManager, int networkId) {
133 List<WifiConfiguration> configuredNetworks = wifiManager.getConfiguredNetworks();
175 WifiManager wifiMan = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
204 WifiManager wifiMan = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
224 WifiManager mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE)
    [all...]
EthernetConfig.java 22 import android.net.wifi.WifiManager;
52 public void save(WifiManager.ActionListener listener) {
SaveWifiConfigurationFragment.java 20 import android.net.wifi.WifiManager;
29 implements WifiManager.ActionListener {
  /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...]
  /cts/tests/tests/permission/src/android/permission/cts/
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/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
ConnectivityManagerTestBase.java 29 import android.net.wifi.WifiManager;
80 public WifiManager mWifiManager;
112 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
129 // Get an instance of WifiManager
130 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE);
145 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
146 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
147 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
148 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);
149 mIntentFilter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION)
    [all...]
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
WifiTracker.java 31 import android.net.wifi.WifiManager;
67 private final WifiManager mWifiManager;
114 context.getSystemService(WifiManager.class),
121 WifiManager wifiManager, ConnectivityManager connectivityManager,
134 mWifiManager = wifiManager;
145 mFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
146 mFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
147 mFilter.addAction(WifiManager.NETWORK_IDS_CHANGED_ACTION);
148 mFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)
    [all...]
  /frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
ConnectionUtil.java 37 import android.net.wifi.WifiManager;
76 private WifiManager mWifiManager;
105 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
106 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
107 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
108 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);
109 mIntentFilter.addAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION);
115 // Get an instance of WifiManager
116 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE);
187 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION))
    [all...]
  /platform_testing/tests/androidbvt/src/com/android/androidbvt/
ConnectivityWifiTests.java 24 import android.net.wifi.WifiManager;
44 private WifiManager mWifiManager = null;
126 mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED);
133 && mWifiManager.getWifiApState() != WifiManager.WIFI_AP_STATE_ENABLED) {
137 mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_ENABLED);
156 && mWifiManager.getWifiApState() != WifiManager.WIFI_AP_STATE_DISABLED) {
160 mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED);

Completed in 1317 milliseconds

12 3 4 5 6 7