Searched refs:mWifiManager (Results 1 - 19 of 19) sorted by relevance

/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
H A DWifiSoftAPTest.java34 private WifiManager mWifiManager; field in class:WifiSoftAPTest
42 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
43 assertNotNull(mWifiManager);
44 assertTrue(mWifiManager.setWifiApEnabled(null, true));
45 mWifiConfig = mWifiManager.getWifiApConfiguration();
56 mWifiManager.setWifiApEnabled(null, false);
67 assertTrue(mWifiManager.setWifiApEnabled(mWifiConfig, true));
74 assertNotNull(mWifiManager.getWifiApConfiguration());
76 mWifiManager.getWifiApState());
H A DWifiClientTest.java40 private WifiManager mWifiManager; field in class:WifiClientTest
100 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
101 mWifiManager.setWifiEnabled(true);
102 assertNotNull(mWifiManager);
121 int netId = mWifiManager.addNetwork(config);
125 List<WifiConfiguration> configList = mWifiManager.getConfiguredNetworks();
135 boolean ret = mWifiManager.removeNetwork(netId);
139 configList = mWifiManager.getConfiguredNetworks();
158 int netId = mWifiManager.addNetwork(config);
162 boolean ret = mWifiManager
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestBase.java80 public WifiManager mWifiManager; field in class:ConnectivityManagerTestBase
115 mLastScanResult = mWifiManager.getScanResults();
130 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE);
132 if (mWifiManager.isWifiApEnabled()) {
134 mWifiManager.setWifiApEnabled(null, false);
181 int state = mWifiManager.getWifiState();
200 int state = mWifiManager.getWifiApState();
260 return mWifiManager.setWifiEnabled(true);
335 if (!mWifiManager.isWifiEnabled()) {
337 mWifiManager
[all...]
/frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/wifi/
H A DWifiTrackerTest.java55 private WifiManager mWifiManager; field in class:WifiTrackerTest
69 mWifiManager = Mockito.mock(WifiManager.class);
78 mWifiManager, mMainLooper);
80 Mockito.when(mWifiManager.isWifiEnabled()).thenReturn(true);
124 Mockito.when(mWifiManager.startScan()).thenReturn(true);
127 Mockito.verify(mWifiManager, Mockito.atLeastOnce()).startScan();
139 Mockito.when(mWifiManager.getConfiguredNetworks()).thenReturn(wifiConfigs);
140 Mockito.when(mWifiManager.getScanResults()).thenReturn(scanResults);
152 mWifiManager, mMainLooper);
163 Mockito.when(mWifiManager
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
H A DWifiStatusTracker.java23 private final WifiManager mWifiManager; field in class:WifiStatusTracker
31 mWifiManager = wifiManager;
48 : mWifiManager.getConnectionInfo();
70 List<WifiConfiguration> networks = mWifiManager.getConfiguredNetworks();
H A DWifiTracker.java67 private final WifiManager mWifiManager; field in class:WifiTracker
134 mWifiManager = wifiManager;
142 sVerboseLogging = mWifiManager.getVerboseLoggingLevel();
170 if (mWifiManager.isWifiEnabled() && mScanner != null) {
194 if (mWifiManager.isWifiEnabled()) {
243 return mWifiManager;
247 return mWifiManager.isWifiEnabled();
277 final List<ScanResult> newResults = mWifiManager.getScanResults();
306 final List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks();
338 final List<WifiConfiguration> configs = mWifiManager
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
H A DWifiApStress.java86 mWifiManager.setWifiApEnabled(config, false));
91 if (mWifiManager.isWifiEnabled()) {
103 mWifiManager.setWifiApEnabled(config, true));
118 mWifiManager.setWifiApEnabled(config, false));
121 assertFalse("wifi hotspot still enabled", mWifiManager.isWifiApEnabled());
H A DWifiStressTest.java98 if (!mWifiManager.isWifiEnabled()) {
159 assertTrue("start scan failed", mWifiManager.startScan());
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
H A DWifiAssociationTest.java72 WifiInfo wi = mWifiManager.getConnectionInfo();
96 if (mWifiManager.getFrequencyBand() != frequencyBand) {
98 mWifiManager.setFrequencyBand(frequencyBand, true);
101 frequencyBand, mWifiManager.getFrequencyBand());
H A DConnectivityManagerMobileTest.java314 assertNotNull("not associated with any AP", mWifiManager.getConnectionInfo().getBSSID());
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DWifiSignalController.java40 private final WifiManager mWifiManager; field in class:WifiSignalController
49 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
50 mWifiTracker = new WifiStatusTracker(mWifiManager);
54 Messenger wifiMessenger = mWifiManager.getWifiServiceMessenger();
H A DNetworkControllerImpl.java77 private final WifiManager mWifiManager; field in class:NetworkControllerImpl
174 mWifiManager = wifiManager;
349 final int wifiApState = mWifiManager.getWifiApState();
352 mWifiManager.setWifiApEnabled(null, false);
355 mWifiManager.setWifiEnabled(enabled);
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
H A DConnectionUtil.java76 private WifiManager mWifiManager; field in class:ConnectionUtil
116 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE);
129 mWifiManager.setWifiEnabled(true);
554 if (!mWifiManager.isWifiEnabled()) {
556 mWifiManager.setWifiEnabled(true);
566 List<ScanResult> netList = mWifiManager.getScanResults();
575 mWifiManager.connect(config, new WifiManager.ActionListener() {
591 mWifiManager.startScan();
607 if ((mWifiManager.getScanResults() == null) ||
608 (mWifiManager
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DCarrierText.java53 private WifiManager mWifiManager; field in class:CarrierText
101 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
130 || (mWifiManager.isWifiEnabled()
131 && mWifiManager.getConnectionInfo() != null
132 && mWifiManager.getConnectionInfo().getBSSID() != null)) {
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkPolicyManagerShellCommand.java44 private final WifiManager mWifiManager; field in class:NetworkPolicyManagerShellCommand
48 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
328 for (WifiConfiguration config : mWifiManager.getConfiguredNetworks()) {
345 final List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks();
/frameworks/base/services/retaildemo/java/com/android/server/retaildemo/
H A DRetailDemoModeService.java121 private WifiManager mWifiManager; field in class:RetailDemoModeService
496 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);
534 if (!mWifiManager.isWifiEnabled()) {
535 mWifiManager.setWifiEnabled(true);
/frameworks/base/services/core/java/com/android/server/am/
H A DBatteryStatsService.java99 private IWifiManager mWifiManager; field in class:BatteryStatsService
1455 if (mWifiManager == null) {
1456 mWifiManager = IWifiManager.Stub.asInterface(
1460 if (mWifiManager != null) {
1463 mWifiManager.requestActivityInfo(wifiReceiver);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DContextFixture.java225 return mWifiManager;
481 private final WifiManager mWifiManager = mock(WifiManager.class); field in class:ContextFixture
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkMonitor.java209 private final WifiManager mWifiManager; field in class:NetworkMonitor
256 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
903 WifiInfo currentWifiInfo = mWifiManager.getConnectionInfo();

Completed in 118 milliseconds