Home
last modified time | relevance | path

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

/cts/tests/tests/permission/src/android/permission/cts/
DNoWifiStatePermissionTest.java32 private WifiManager mWifiManager; field in NoWifiStatePermissionTest
37 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp()
38 assertNotNull(mWifiManager); in setUp()
48 mWifiManager.getWifiState(); in testGetWifiState()
62 mWifiManager.getConfiguredNetworks(); in testGetConfiguredNetworks()
76 mWifiManager.getConnectionInfo(); in testGetConnectionInfo()
90 mWifiManager.getScanResults(); in testGetScanResults()
104 mWifiManager.getDhcpInfo(); in testGetDhcpInfo()
118 mWifiManager.disconnect(); in testDisconnect()
132 mWifiManager.reconnect(); in testReconnect()
[all …]
/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiManagerTest.java51 private WifiManager mWifiManager; field in WifiManagerTest
85 if (mWifiManager.getScanResults() != null) {
86 mScanResults = mWifiManager.getScanResults();
88 mScanResults = mWifiManager.getScanResults();
136 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp()
137 assertNotNull(mWifiManager); in setUp()
138 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp()
140 if (!mWifiManager.isWifiEnabled()) in setUp()
143 assertTrue(mWifiManager.isWifiEnabled()); in setUp()
156 if (!mWifiManager.isWifiEnabled()) in tearDown()
[all …]
DScanResultTest.java36 private WifiManager mWifiManager; field in ScanResultTest
89 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp()
90 assertNotNull(mWifiManager); in setUp()
91 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp()
93 if (!mWifiManager.isWifiEnabled()) in setUp()
96 assertTrue(mWifiManager.isWifiEnabled()); in setUp()
109 if (!mWifiManager.isWifiEnabled()) in tearDown()
118 assertTrue(mWifiManager.setWifiEnabled(enable)); in setWifiEnabled()
135 List<ScanResult> scanResults = mWifiManager.getScanResults(); in testScanResultProperties()
146 mWifiManager.startScan(); in scanAndWait()
[all …]
DWifiInfoTest.java38 private WifiManager mWifiManager; field in WifiInfoTest
76 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp()
77 assertNotNull(mWifiManager); in setUp()
78 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp()
80 if (!mWifiManager.isWifiEnabled()) in setUp()
83 assertTrue(mWifiManager.isWifiEnabled()); in setUp()
96 if (!mWifiManager.isWifiEnabled()) in tearDown()
105 assertTrue(mWifiManager.setWifiEnabled(enable)); in setWifiEnabled()
119 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in testWifiInfoProperties()
143 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in testWifiInfoProperties()
[all …]
DConcurrencyTest.java43 private WifiManager mWifiManager; field in ConcurrencyTest
84 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp()
85 assertNotNull(mWifiManager); in setUp()
86 if (mWifiManager.isWifiEnabled()) { in setUp()
87 assertTrue(mWifiManager.setWifiEnabled(false)); in setUp()
90 assertTrue(!mWifiManager.isWifiEnabled()); in setUp()
126 if (!mWifiManager.isWifiEnabled()) { in enableWifi()
127 assertTrue(mWifiManager.setWifiEnabled(true)); in enableWifi()
162 assertTrue(mWifiManager.setWifiEnabled(true)); in testConcurrency()
DWifiEnterpriseConfigTest.java33 private WifiManager mWifiManager; field in WifiEnterpriseConfigTest
444 mWifiManager = (WifiManager) mContext in setUp()
446 assertNotNull(mWifiManager); in setUp()
447 mWifiManager.setWifiEnabled(true); in setUp()
450 assertTrue(mWifiManager.isWifiEnabled()); in setUp()
522 int netId = mWifiManager.addNetwork(config); in testAddEapNetwork()
524 mWifiManager.removeNetwork(netId); in testAddEapNetwork()
529 for (final WifiConfiguration w : mWifiManager.getConfiguredNetworks()) { in doesSsidExist()
DWifiConfigurationTest.java27 private WifiManager mWifiManager; field in WifiConfigurationTest
31 mWifiManager = (WifiManager) mContext in setUp()
40 List<WifiConfiguration> wifiConfigurations = mWifiManager.getConfiguredNetworks(); in testWifiConfiguration()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DWifiConfigCreator.java59 private final WifiManager mWifiManager; field in WifiConfigCreator
63 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiConfigCreator()
76 int netId = mWifiManager.addNetwork(wifiConf); in addNetwork()
79 mWifiManager.enableNetwork(netId, true); in addNetwork()
100 int newNetId = mWifiManager.updateNetwork(conf); in updateNetwork()
103 mWifiManager.saveConfiguration(); in updateNetwork()
104 mWifiManager.enableNetwork(newNetId, true); in updateNetwork()
120 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in updateNetwork()
131 return mWifiManager.removeNetwork(netId); in removeNetwork()
204 if (!mWifiManager.isWifiEnabled()) { in checkAndEnableWifi()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DWifiConfigLockdownTest.java49 private WifiManager mWifiManager; field in WifiConfigLockdownTest
55 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp()
69 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in tearDown()
75 mWifiManager.removeNetwork(config.networkId); in tearDown()
82 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in testDeviceOwnerCanUpdateConfig()
101 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in testDeviceOwnerCanRemoveConfig()
106 assertTrue(mWifiManager.removeNetwork(config.networkId)); in testDeviceOwnerCanRemoveConfig()
115 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in testRegularAppCannotUpdateDeviceOwnerConfig()
128 configs = mWifiManager.getConfiguredNetworks(); in testRegularAppCannotUpdateDeviceOwnerConfig()
141 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in testRegularAppCannotRemoveDeviceOwnerConfig()
[all …]
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DConnectivityConstraintTest.java47 private WifiManager mWifiManager; field in ConnectivityConstraintTest
63 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp()
73 mInitialWiFiState = mWifiManager.isWifiEnabled(); in setUp()
88 assertTrue(mWifiManager.setWifiEnabled(mInitialWiFiState)); in tearDown()
212 if (!mWifiManager.isWifiEnabled()) { in connectToWiFi()
220 assertTrue(mWifiManager.setWifiEnabled(true)); in connectToWiFi()
237 if (mHasWifi && mWifiManager.isWifiEnabled()) { in disconnectWifiToConnectToMobile()
248 assertTrue(mWifiManager.setWifiEnabled(false)); in disconnectWifiToConnectToMobile()
/cts/tests/tests/media/src/android/media/cts/
DWifiStatus.java42 private WifiManager mWifiManager; field in WifiStatus
47 mWifiManager = (WifiManager)context.getSystemService(Context.WIFI_SERVICE); in WifiStatus()
70 return mWifiManager.isWifiEnabled(); in isEnabled()
74 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in printConnectionInfo()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DWifiTest.java51 private WifiManager mWifiManager; field in WifiTest
56 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp()
135 for (WifiConfiguration config : mWifiManager.getConfiguredNetworks()) { in getNetworkForSsid()
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java64 private WifiManager mWifiManager; field in SystemFeaturesTest
83 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp()
472 boolean enabled = mWifiManager.isWifiEnabled(); in testWifiFeature()
477 if (mWifiManager.setWifiEnabled(true)) { in testWifiFeature()
482 mWifiManager.setWifiEnabled(false); in testWifiFeature()
/cts/tests/tests/net/src/android/net/cts/
DConnectivityManagerTest.java89 private WifiManager mWifiManager; field in ConnectivityManagerTest
99 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp()
300 final boolean previousWifiEnabledState = mWifiManager.isWifiEnabled(); in testRegisterNetworkCallback()
359 final boolean previousWifiEnabledState = mWifiManager.isWifiEnabled(); in testRegisterNetworkCallback_withPendingIntent()
449 if (mWifiManager.isWifiEnabled()) { in toggleWifi()
474 assertTrue(mWifiManager.setWifiEnabled(true)); in connectToWifi()
540 assertTrue(mWifiManager.setWifiEnabled(false)); in disconnectFromWifi()
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java58 private WifiManager mWifiManager; field in ConnectivityManagerLegacyTest
66 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp()
260 mWifiManager.setWifiEnabled(enabled); in setWifiState()