OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:wifiManager
(Results
1 - 25
of
25
) sorted by null
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
WifiManagerTest.java
6
import android.net.wifi.
WifiManager
;
32
private
WifiManager
wifiManager
;
37
wifiManager
= (
WifiManager
) application.getSystemService(WIFI_SERVICE);
38
shadowWifiManager = shadowOf(
wifiManager
);
43
assertEquals(
wifiManager
.getConnectionInfo().getClass(), WifiInfo.class);
49
wifiManager
.setWifiEnabled(true);
55
wifiManager
.isWifiEnabled();
61
wifiManager
.getConnectionInfo()
[
all
...]
WifiInfoTest.java
4
import android.net.wifi.
WifiManager
;
20
WifiManager
wifiManager
= (
WifiManager
) application.getSystemService(WIFI_SERVICE);
21
WifiInfo wifiInfo =
wifiManager
.getConnectionInfo();
24
wifiManager
= (
WifiManager
) application.getSystemService(WIFI_SERVICE);
25
wifiInfo =
wifiManager
.getConnectionInfo();
/frameworks/base/packages/Osu/src/com/android/hotspot2/
WifiNetworkAdapter.java
12
import android.net.wifi.
WifiManager
;
89
WifiManager
wifiManager
= (
WifiManager
) mContext.getSystemService(Context.WIFI_SERVICE);
90
for (WifiConfiguration config :
wifiManager
.getPrivilegedConfiguredNetworks()) {
135
WifiManager
wifiManager
= (
WifiManager
) mContext.getSystemService(Context.WIFI_SERVICE);
137
wifiManager
.addPasspointManagementObject(xml);
142
WifiManager
wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE)
[
all
...]
OMADMAdapter.java
5
import android.net.wifi.
WifiManager
;
240
WifiManager
wifiManager
= (
WifiManager
) mContext.getSystemService(Context.WIFI_SERVICE);
241
return
wifiManager
!= null ?
243
Utils.parseMac(
wifiManager
.getConnectionInfo().getMacAddress())) :
/packages/apps/Settings/src/com/android/settings/
HotspotOffReceiver.java
8
import android.net.wifi.
WifiManager
;
24
if (
WifiManager
.WIFI_AP_STATE_CHANGED_ACTION.equals(intent.getAction())) {
25
WifiManager
wifiManager
= (
WifiManager
) context.getSystemService(Context.WIFI_SERVICE);
26
if (
wifiManager
.getWifiApState() ==
WifiManager
.WIFI_AP_STATE_DISABLED) {
/packages/apps/Nfc/src/com/android/nfc/
ConfirmConnectToWifiNetworkActivity.java
11
import android.net.wifi.
WifiManager
;
48
intentFilter.addAction(
WifiManager
.WIFI_STATE_CHANGED_ACTION);
61
WifiManager
wifiManager
= (
WifiManager
) getSystemService(Context.WIFI_SERVICE);
63
if (!
wifiManager
.isWifiEnabled()) {
64
wifiManager
.setWifiEnabled(true);
78
doConnect(
wifiManager
);
84
private void doConnect(
WifiManager
wifiManager
) {
[
all
...]
/packages/apps/Settings/src/com/android/settings/wifi/
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/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");
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
WifiNetworkScoreCache.java
25
import android.net.wifi.
WifiManager
;
186
WifiManager
wifiManager
= (
WifiManager
) mContext.getSystemService(Context.WIFI_SERVICE);
187
for (ScanResult scanResult :
wifiManager
.getScanResults()) {
/developers/build/prebuilts/gradle/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
ProvisioningValuesLoader.java
23
import android.net.wifi.
WifiManager
;
170
WifiManager
wifiManager
= (
WifiManager
) context
172
WifiInfo info =
wifiManager
.getConnectionInfo();
/developers/samples/android/admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
ProvisioningValuesLoader.java
23
import android.net.wifi.
WifiManager
;
170
WifiManager
wifiManager
= (
WifiManager
) context
172
WifiInfo info =
wifiManager
.getConnectionInfo();
/development/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/
ProvisioningValuesLoader.java
23
import android.net.wifi.
WifiManager
;
170
WifiManager
wifiManager
= (
WifiManager
) context
172
WifiInfo info =
wifiManager
.getConnectionInfo();
/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
...]
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
NetworkMonitorAutoDetect.java
44
import android.net.wifi.
WifiManager
;
216
/** Queries the
WifiManager
for SSID of the current Wifi connection. */
219
private final
WifiManager
wifiManager
;
228
wifiManager
= hasWifiPermission
229
? (
WifiManager
) context.getSystemService(Context.WIFI_SERVICE) : null;
236
wifiManager
= null;
242
new IntentFilter(
WifiManager
.NETWORK_STATE_CHANGED_ACTION));
244
final WifiInfo wifiInfo = intent.getParcelableExtra(
WifiManager
.EXTRA_WIFI_INFO);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
OMADMAdapter.java
5
import android.net.wifi.
WifiManager
;
231
WifiManager
wifiManager
= (
WifiManager
) mContext.getSystemService(Context.WIFI_SERVICE);
232
return
wifiManager
!= null ?
234
Utils.parseMac(
wifiManager
.getConnectionInfo().getMacAddress())) :
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
WifiDetailsFragment.java
22
import android.net.wifi.
WifiManager
;
224
WifiManager
wifiManager
=
225
(
WifiManager
) getContext().getSystemService(Context.WIFI_SERVICE);
226
wifiManager
.forget(mAccessPoint.getConfig().networkId, null);
/cts/tests/tests/telephony/src/android/telephony/cts/
TelephonyManagerTest.java
25
import android.net.wifi.
WifiManager
;
347
WifiManager
wifiManager
= (
WifiManager
) getContext()
350
boolean enabled =
wifiManager
.isWifiEnabled();
354
wifiManager
.setWifiEnabled(true);
357
WifiInfo wifiInfo =
wifiManager
.getConnectionInfo();
362
wifiManager
.setWifiEnabled(false);
/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
...]
/platform_testing/tests/functional/settingstests/src/com/android/settings/functional/
QuickSettingsTest.java
23
import android.net.wifi.
WifiManager
;
158
WifiManager
wifiManager
= (
WifiManager
) getInstrumentation().getContext()
160
wifiManager
.setWifiEnabled(!verifyOn);
WirelessNetworkSettingsTests.java
20
import android.net.wifi.
WifiManager
;
635
WifiManager
wifiManager
= (
WifiManager
)getInstrumentation().getContext()
637
wifiManager
.setWifiEnabled(wifiEnabled);
[
all
...]
/packages/apps/Settings/src/com/android/settings/widget/
SettingsAppWidgetProvider.java
31
import android.net.wifi.
WifiManager
;
369
WifiManager
wifiManager
= (
WifiManager
) context.getSystemService(Context.WIFI_SERVICE);
370
if (
wifiManager
!= null) {
371
return wifiStateToFiveState(
wifiManager
.getWifiState());
378
final
WifiManager
wifiManager
=
379
(
WifiManager
) context.getSystemService(Context.WIFI_SERVICE);
380
if (
wifiManager
== null)
[
all
...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
AccessPoint.java
35
import android.net.wifi.
WifiManager
;
189
int difference =
WifiManager
.calculateSignalLevel(other.mRssi, SIGNAL_LEVELS)
190
-
WifiManager
.calculateSignalLevel(mRssi, SIGNAL_LEVELS);
267
return
WifiManager
.calculateSignalLevel(mRssi, SIGNAL_LEVELS);
779
IWifiManager
wifiManager
= IWifiManager.Stub.asInterface(
784
nw =
wifiManager
.getCurrentNetwork();
[
all
...]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DpmMockContext.java
34
import android.net.wifi.
WifiManager
;
263
public final
WifiManager
wifiManager
;
298
wifiManager
= mock(
WifiManager
.class);
420
return
wifiManager
;
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsBackupAgent.java
32
import android.net.wifi.
WifiManager
;
164
private
WifiManager
mWfm;
410
WifiManager
mWfm = (
WifiManager
) getSystemService(Context.WIFI_SERVICE);
544
enableWifi(retainedWifiState ==
WifiManager
.WIFI_STATE_ENABLED
545
|| retainedWifiState ==
WifiManager
.WIFI_STATE_ENABLING);
[
all
...]
/frameworks/base/services/core/java/com/android/server/connectivity/
Tethering.java
45
import android.net.wifi.
WifiManager
;
200
filter.addAction(
WifiManager
.WIFI_AP_STATE_CHANGED_ACTION);
282
// through the
WifiManager
.WIFI_AP_STATE_CHANGED_ACTION intent.
454
final
WifiManager
wifiManager
=
455
(
WifiManager
) mContext.getSystemService(Context.WIFI_SERVICE);
456
if (
wifiManager
.setWifiApEnabled(null /* use existing wifi config */, enable)) {
[
all
...]
Completed in 790 milliseconds