Home
last modified time | relevance | path

Searched refs:mWifiManager (Results 1 – 18 of 18) sorted by relevance

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