/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/ |
D | WifiClientTest.java | 40 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 …]
|
D | WifiSoftAPTest.java | 34 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/ |
D | WifiTrackerTest.java | 55 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/ |
D | ConnectivityManagerTestBase.java | 80 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/ |
D | WifiApStress.java | 86 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()
|
D | WifiStressTest.java | 98 if (!mWifiManager.isWifiEnabled()) { in setUp() 159 assertTrue("start scan failed", mWifiManager.startScan()); in testWifiScanning()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
D | ConnectionUtil.java | 76 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/ |
D | WifiStatusTracker.java | 23 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()
|
D | WifiTracker.java | 67 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/ |
D | WifiAssociationTest.java | 72 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()
|
D | ConnectivityManagerMobileTest.java | 314 assertNotNull("not associated with any AP", mWifiManager.getConnectionInfo().getBSSID()); in testWifiStateChange()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | WifiSignalController.java | 40 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()
|
D | NetworkControllerImpl.java | 77 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/ |
D | CarrierText.java | 53 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/ |
D | NetworkPolicyManagerShellCommand.java | 44 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/ |
D | NetworkMonitor.java | 231 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/ |
D | BatteryStatsService.java | 99 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/ |
D | ContextFixture.java | 225 return mWifiManager; in getSystemService() 459 private final WifiManager mWifiManager = mock(WifiManager.class); field in ContextFixture
|