HomeSort by relevance Sort by last modified time
    Searched full:wifimanager (Results 1 - 25 of 124) sorted by null

1 2 3 4 5

  /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...]
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");
  /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...]
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...]
WifiConfigInfo.java 20 import android.net.wifi.WifiManager;
37 private WifiManager mWifiManager;
47 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
WifiSettings.java 38 import android.net.wifi.WifiManager;
106 private WifiManager mWifiManager;
140 mFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
141 mFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
142 mFilter.addAction(WifiManager.NETWORK_IDS_CHANGED_ACTION);
143 mFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION);
144 mFilter.addAction(WifiManager.CONFIGURED_NETWORKS_CHANGED_ACTION);
145 mFilter.addAction(WifiManager.LINK_CONFIGURATION_CHANGED_ACTION);
146 mFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
147 mFilter.addAction(WifiManager.RSSI_CHANGED_ACTION)
    [all...]
  /cts/tests/tests/net/src/android/net/wifi/cts/
ScanResultTest.java 26 import android.net.wifi.WifiManager;
27 import android.net.wifi.WifiManager.WifiLock;
39 private WifiManager mWifiManager;
56 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...]
WifiManagerTest.java 30 import android.net.wifi.WifiManager;
32 import android.net.wifi.WifiManager.WifiLock;
40 @TestTargetClass(WifiManager.class)
46 private WifiManager mWifiManager;
51 // Please refer to WifiManager
72 if (action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
81 } else if (action.equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) {
95 mIntentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
96 mIntentFilter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
97 mIntentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION)
    [all...]
WifiManager_WifiLockTest.java 20 import android.net.wifi.WifiManager;
21 import android.net.wifi.WifiManager.WifiLock;
28 @TestTargetClass(WifiManager.WifiLock.class)
66 WifiManager wm = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
WifiConfigurationTest.java 23 import android.net.wifi.WifiManager;
32 private WifiManager mWifiManager;
36 mWifiManager = (WifiManager) mContext
WifiInfoTest.java 30 import android.net.wifi.WifiManager;
31 import android.net.wifi.WifiManager.WifiLock;
40 private WifiManager mWifiManager;
57 if (action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
71 mIntentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
74 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
182 assertEquals(WifiManager.WIFI_STATE_DISABLED, mWifiManager.getWifiState());
  /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,
  /frameworks/base/services/java/com/android/server/
WifiService.java 35 import android.net.wifi.WifiManager;
146 "com.android.server.WifiManager.action.DEVICE_IDLE";
257 case WifiManager.CMD_ENABLE_TRAFFIC_STATS_POLL: {
262 sendMessageDelayed(Message.obtain(this, WifiManager.CMD_TRAFFIC_STATS_POLL,
267 case WifiManager.CMD_TRAFFIC_STATS_POLL: {
270 sendMessageDelayed(Message.obtain(this, WifiManager.CMD_TRAFFIC_STATS_POLL,
275 case WifiManager.CMD_CONNECT_NETWORK: {
283 case WifiManager.CMD_SAVE_NETWORK: {
287 case WifiManager.CMD_FORGET_NETWORK: {
291 case WifiManager.CMD_START_WPS:
    [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...]
  /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/docs/html/sdk/api_diff/3/changes/
android.net.wifi.WifiManager.html 10 android.net.wifi.WifiManager
74 Class android.net.wifi.<A HREF="../../../../reference/android/net/wifi/WifiManager.html" target="_top"><font size="+2"><code>WifiManager</code></font></A>
86 <A NAME="android.net.wifi.WifiManager.createWifiLock_added(int, java.lang.String)"></A>
87 <nobr><code>WifiLock</code>&nbsp;<A HREF="../../../../reference/android/net/wifi/WifiManager.html#createWifiLock(int, java.lang.String)" target="_top"><code>createWifiLock</code></A>(<code>int,</nobr> String<nobr><nobr></code>)</nobr>
102 <A NAME="android.net.wifi.WifiManager.WIFI_MODE_FULL"></A>
103 <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/net/wifi/WifiManager.html#WIFI_MODE_FULL" target="_top"><code>WIFI_MODE_FULL</code></A></nobr>
109 <A NAME="android.net.wifi.WifiManager.WIFI_MODE_SCAN_ONLY"></A>
110 <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/net/wifi/WifiManager.html#WIFI_MODE_SCAN_ONLY" target="_top"><code>WIFI_MODE_SCAN_ONLY</code></A></nobr>
  /frameworks/base/docs/html/sdk/api_diff/4/changes/
pkg_android.net.wifi.html 84 <A NAME="WifiManager.MulticastLock"></A>
85 <nobr><A HREF="../../../../reference/android/net/wifi/WifiManager.MulticastLock.html" target="_top"><code>WifiManager.MulticastLock</code></A></nobr>
99 <A NAME="WifiManager"></A>
100 <nobr><A HREF="android.net.wifi.WifiManager.html">WifiManager</A></nobr>
android.net.wifi.WifiManager.html 10 android.net.wifi.WifiManager
74 Class android.net.wifi.<A HREF="../../../../reference/android/net/wifi/WifiManager.html" target="_top"><font size="+2"><code>WifiManager</code></font></A>
86 <A NAME="android.net.wifi.WifiManager.createMulticastLock_added(java.lang.String)"></A>
87 <nobr><code>MulticastLock</code>&nbsp;<A HREF="../../../../reference/android/net/wifi/WifiManager.html#createMulticastLock(java.lang.String)" target="_top"><code>createMulticastLock</code></A>(<code>String</code>)</nobr>
  /packages/apps/Settings/src/com/android/settings/widget/
SettingsAppWidgetProvider.java 33 import android.net.wifi.WifiManager;
342 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
343 if (wifiManager != null) {
344 return wifiStateToFiveState(wifiManager.getWifiState());
351 final WifiManager wifiManager =
352 (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
353 if (wifiManager == null)
    [all...]
  /frameworks/base/docs/html/sdk/api_diff/12/changes/
android.net.wifi.WifiManager.html 10 android.net.wifi.WifiManager
74 Class android.net.wifi.<A HREF="../../../../reference/android/net/wifi/WifiManager.html" target="_top"><font size="+2"><code>WifiManager</code></font></A>
87 <A NAME="android.net.wifi.WifiManager.WIFI_MODE_FULL_HIGH_PERF"></A>
88 <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/net/wifi/WifiManager.html#WIFI_MODE_FULL_HIGH_PERF" target="_top"><code>WIFI_MODE_FULL_HIGH_PERF</code></A></nobr>
  /frameworks/base/docs/html/sdk/api_diff/14/changes/
android.net.wifi.WifiManager.html 10 android.net.wifi.WifiManager
74 Class android.net.wifi.<A HREF="../../../../reference/android/net/wifi/WifiManager.html" target="_top"><font size="+2"><code>WifiManager</code></font></A>
87 <A NAME="android.net.wifi.WifiManager.EXTRA_WIFI_INFO"></A>
88 <nobr><code>String</code>&nbsp;<A HREF="../../../../reference/android/net/wifi/WifiManager.html#EXTRA_WIFI_INFO" target="_top"><code>EXTRA_WIFI_INFO</code></A></nobr>
  /frameworks/base/docs/html/sdk/api_diff/9/changes/
android.net.wifi.WifiManager.WifiLock.html 10 android.net.wifi.WifiManager.WifiLock
74 Class android.net.wifi.<A HREF="../../../../reference/android/net/wifi/WifiManager.WifiLock.html" target="_top"><font size="+2"><code>WifiManager.WifiLock</code></font></A>
86 <A NAME="android.net.wifi.WifiManager.WifiLock.setWorkSource_added(android.os.WorkSource)"></A>
87 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/net/wifi/WifiManager.WifiLock.html#setWorkSource(android.os.WorkSource)" target="_top"><code>setWorkSource</code></A>(<code>WorkSource</code>)</nobr>
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
NetworkController.java 33 import android.net.wifi.WifiManager;
95 final WifiManager mWifiManager;
102 int mWifiActivity = WifiManager.DATA_ACTIVITY_NONE;
178 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
188 filter.addAction(WifiManager.RSSI_CHANGED_ACTION);
189 filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
190 filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
258 if (action.equals(WifiManager.RSSI_CHANGED_ACTION)
259 || action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION)
260 || action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION))
    [all...]

Completed in 1440 milliseconds

1 2 3 4 5