/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/app/ |
OSUService.java | 10 import android.net.wifi.WifiManager; 29 * operating system by being bound from the framework (in WifiManager in stage 48 WifiManager.SCAN_RESULTS_AVAILABLE_ACTION, 50 //WifiManager.PASSPOINT_WNM_FRAME_RECEIVED_ACTION, 51 //WifiManager.PASSPOINT_ICON_RECEIVED_ACTION, 52 WifiManager.CONFIGURED_NETWORKS_CHANGED_ACTION, 53 WifiManager.WIFI_STATE_CHANGED_ACTION, 54 WifiManager.NETWORK_STATE_CHANGED_ACTION, 113 WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE) [all...] |
/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/ |
HotspotOffReceiver.java | 9 import android.net.wifi.WifiManager; 30 if (WifiManager.WIFI_AP_STATE_CHANGED_ACTION.equals(intent.getAction())) { 31 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); 32 if (wifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED) { 44 new IntentFilter(WifiManager.WIFI_AP_STATE_CHANGED_ACTION));
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
DataUsageSummaryTest.java | 30 import android.net.wifi.WifiManager; 74 final WifiManager wifiManager = mock(WifiManager.class); 76 ReflectionHelpers.setField(dataUsageSummary, "mWifiManager", wifiManager); 77 when(wifiManager.getConfiguredNetworks()).thenReturn(new ArrayList<WifiConfiguration>());
|
DataPlanUsageSummaryTest.java | 32 import android.net.wifi.WifiManager; 73 WifiManager wifiManager = mock(WifiManager.class); 75 ReflectionHelpers.setField(mDataUsageSummary, "mWifiManager", wifiManager); 76 when(wifiManager.getConfiguredNetworks()).thenReturn(new ArrayList<>());
|
/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...] |
ConfigureWifiSettings.java | 25 import android.net.wifi.WifiManager; 88 final WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); 95 controllers.add(new WifiInfoPreferenceController(context, getLifecycle(), wifiManager)); 97 controllers.add(new WifiP2pPreferenceController(context, getLifecycle(), wifiManager)); 100 context, getLifecycle(), wifiManager, getFragmentManager()));
|
/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");
|
/platform_testing/utils/wifistrengthscanner/src/com/android/test/util/wifistrengthscanner/ |
WifiStrengthScannerInstrumentation.java | 27 import android.net.wifi.WifiManager; 63 new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)); 64 WifiManager wifiManager = 65 (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 67 wifiManager.startScan(); 76 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); 86 WifiManager.calculateSignalLevel(wifiInfo.getRssi(), NUMBER_OF_WIFI_LEVELS)); 90 ScanResult result = getScanResult(wifiManager, bssid); 92 bundle.putInt("scan_result_wifi_level", wifiManager.calculateSignalLevel(resul [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/flow/ |
PlatformAdapter.java | 10 import android.net.wifi.WifiManager; 183 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); 184 List<WifiConfiguration> configs = wifiManager.getPrivilegedConfiguredNetworks(); 231 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 255 int networkId = wifiManager.addNetwork(config); 259 if (wifiManager.enableNetwork(networkId, true)) [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
OSUManager.java | 10 import android.net.wifi.WifiManager; 232 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 233 wifiManager.queryPasspointIcon(bssid, fileName);
|
/developers/build/prebuilts/gradle/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/ |
ProvisioningValuesLoader.java | 23 import android.net.wifi.WifiManager; 169 WifiManager wifiManager = (WifiManager) context 171 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; 169 WifiManager wifiManager = (WifiManager) context 171 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/wifi/java/android/net/wifi/ |
WifiNetworkScoreCache.java | 259 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 260 for (ScanResult scanResult : wifiManager.getScanResults()) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
UtilsTest.java | 19 import android.net.wifi.WifiManager; 52 private WifiManager wifiManager; 67 when(mContext.getSystemService(WifiManager.class)).thenReturn(wifiManager); 74 when(wifiManager.getCurrentNetwork()).thenReturn(network); 85 when(wifiManager.getCurrentNetwork()).thenReturn(network); 95 when(wifiManager.getCurrentNetwork()).thenReturn(null);
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
BuiltInPrintService.java | 23 import android.net.wifi.WifiManager; 53 private WifiManager.WifiLock mWifiLock; 83 WifiManager wifiManager = (WifiManager)getSystemService(Context.WIFI_SERVICE); 84 mWifiLock = wifiManager.createWifiLock(WifiManager.WIFI_MODE_FULL, TAG);
|
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/ |
WifiUtil.java | 22 import android.net.wifi.WifiManager; 161 WifiManager wifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 162 if (wifiManager == null) { 163 fail("Couldn't get WifiManager reference; goodbye!"); 172 result.putBoolean("result", wifiManager.setWifiEnabled(true)); 174 result.putBoolean("result", wifiManager.setWifiEnabled(false)); 192 wifiManager.enableNetwork(id, true /* disable other networks */)); 195 result.putBoolean("result", wifiManager.disconnect()) [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/service/ |
RemediationHandler.java | 11 import android.net.wifi.WifiManager; 97 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 98 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); 99 Network network = wifiManager.getCurrentNetwork(); 135 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 136 WifiInfo wifiInfo = wifiManager.getConnectionInfo() [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/base/packages/Osu/src/com/android/hotspot2/ |
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/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
WifiDetailsFragment.java | 22 import android.net.wifi.WifiManager; 232 WifiManager wifiManager = 233 (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 234 wifiManager.forget(mAccessPoint.getConfig().networkId, null);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
MockSystemServices.java | 42 import android.net.wifi.WifiManager; 90 public final WifiManager wifiManager; 124 wifiManager = mock(WifiManager.class);
|