/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoWifiStatePermissionTest.java | 34 private WifiManager mWifiManager; field in NoWifiStatePermissionTest 39 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp() 40 assertNotNull(mWifiManager); in setUp() 50 mWifiManager.getWifiState(); in testGetWifiState() 64 mWifiManager.getConfiguredNetworks(); in testGetConfiguredNetworks() 78 mWifiManager.getConnectionInfo(); in testGetConnectionInfo() 92 mWifiManager.getScanResults(); in testGetScanResults() 106 mWifiManager.getDhcpInfo(); in testGetDhcpInfo() 120 mWifiManager.disconnect(); in testDisconnect() 134 mWifiManager.reconnect(); in testReconnect() [all …]
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 68 private WifiManager mWifiManager; field in WifiManagerTest 116 mScanResults = mWifiManager.getScanResults(); 167 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 168 assertNotNull(mWifiManager); in setUp() 169 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp() 171 if (!mWifiManager.isWifiEnabled()) in setUp() 176 assertTrue(mWifiManager.isWifiEnabled()); in setUp() 189 if (!mWifiManager.isWifiEnabled()) in tearDown() 199 if (mWifiManager.isWifiEnabled() != enable) { in setWifiEnabled() 245 assertTrue(mWifiManager.startScan()); in startScan() [all …]
|
D | WifiInfoTest.java | 43 private WifiManager mWifiManager; field in WifiInfoTest 81 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 82 assertNotNull(mWifiManager); in setUp() 83 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp() 85 if (!mWifiManager.isWifiEnabled()) in setUp() 88 assertTrue(mWifiManager.isWifiEnabled()); in setUp() 101 if (!mWifiManager.isWifiEnabled()) in tearDown() 128 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in testWifiInfoProperties() 154 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in testWifiInfoProperties() 162 return mWifiManager.getWifiState() == WifiManager.WIFI_STATE_DISABLED; in testWifiInfoProperties()
|
D | ScanResultTest.java | 40 private WifiManager mWifiManager; field in ScanResultTest 99 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 100 assertNotNull(mWifiManager); in setUp() 101 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp() 103 if (!mWifiManager.isWifiEnabled()) in setUp() 106 assertTrue(mWifiManager.isWifiEnabled()); in setUp() 119 if (!mWifiManager.isWifiEnabled()) in tearDown() 150 List<ScanResult> scanResults = mWifiManager.getScanResults(); in testScanResultProperties() 163 mWifiManager.startScan(); in scanAndWait() 182 List<ScanResult> scanResults = mWifiManager.getScanResults(); in testScanResultTimeStamp() [all …]
|
D | WifiConfigurationTest.java | 29 private WifiManager mWifiManager; field in WifiConfigurationTest 33 mWifiManager = (WifiManager) mContext in setUp() 42 List<WifiConfiguration> wifiConfigurations = mWifiManager.getConfiguredNetworks(); in testWifiConfiguration()
|
D | ConcurrencyTest.java | 74 private WifiManager mWifiManager; field in ConcurrencyTest 137 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 138 assertNotNull(mWifiManager); in setUp() 139 if (mWifiManager.isWifiEnabled()) { in setUp() 143 assertTrue(!mWifiManager.isWifiEnabled()); in setUp() 231 if (!mWifiManager.isWifiEnabled()) { in enableWifi() 276 while (!mWifiManager.isWifiEnabled() && System.currentTimeMillis() < timeout) { in setupWifiP2p() 282 assertTrue(mWifiManager.isWifiEnabled()); in setupWifiP2p()
|
D | WifiEnterpriseConfigTest.java | 39 private WifiManager mWifiManager; field in WifiEnterpriseConfigTest 690 mWifiManager = (WifiManager) mContext in setUp() 692 assertNotNull(mWifiManager); in setUp() 696 assertTrue(mWifiManager.isWifiEnabled()); in setUp()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | WifiConfigCreator.java | 61 private final WifiManager mWifiManager; field in WifiConfigCreator 65 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiConfigCreator() 78 int netId = mWifiManager.addNetwork(wifiConf); in addNetwork() 81 mWifiManager.enableNetwork(netId, true); in addNetwork() 103 netId = mWifiManager.addNetwork(conf); in addHttpProxyNetworkVerifyAndRemove() 107 for (final WifiConfiguration w : mWifiManager.getConfiguredNetworks()) { in addHttpProxyNetworkVerifyAndRemove() 122 if (!mWifiManager.removeNetwork(netId)) { in addHttpProxyNetworkVerifyAndRemove() 126 mWifiManager.removeNetwork(netId); in addHttpProxyNetworkVerifyAndRemove() 145 int newNetId = mWifiManager.updateNetwork(conf); in updateNetwork() 148 mWifiManager.saveConfiguration(); in updateNetwork() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | WifiConfigCreator.java | 61 private final WifiManager mWifiManager; field in WifiConfigCreator 65 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiConfigCreator() 78 int netId = mWifiManager.addNetwork(wifiConf); in addNetwork() 81 mWifiManager.enableNetwork(netId, true); in addNetwork() 103 netId = mWifiManager.addNetwork(conf); in addHttpProxyNetworkVerifyAndRemove() 107 for (final WifiConfiguration w : mWifiManager.getConfiguredNetworks()) { in addHttpProxyNetworkVerifyAndRemove() 122 if (!mWifiManager.removeNetwork(netId)) { in addHttpProxyNetworkVerifyAndRemove() 126 mWifiManager.removeNetwork(netId); in addHttpProxyNetworkVerifyAndRemove() 145 int newNetId = mWifiManager.updateNetwork(conf); in updateNetwork() 148 mWifiManager.saveConfiguration(); in updateNetwork() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | WifiConfigLockdownTest.java | 49 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/tests/net/src/android/net/wifi/rtt/cts/ |
D | TestBase.java | 56 protected WifiManager mWifiManager; field in TestBase 93 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 94 assertNotNull("Wi-Fi Manager", mWifiManager); in setUp() 95 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp() 97 if (!mWifiManager.isWifiEnabled()) { in setUp() 204 mWifiManager.startScan(); in scanAps() 207 return mWifiManager.getScanResults(); in scanAps()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | WifiTest.java | 54 private WifiManager mWifiManager; field in WifiTest 63 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 64 mWifiEnabled = mWifiManager.isWifiEnabled(); in setUp() 159 if (mWifiManager.isWifiEnabled() == enabled) { in awaitWifiEnabledState() 176 final List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in getNetworkForSsid()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/ |
D | TestUtils.java | 48 private final WifiManager mWifiManager; field in TestUtils 53 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in TestUtils() 76 if (!mWifiManager.startScan()) { in startScanAndWaitForResults() 117 List<ScanResult> scanResults = mWifiManager.getScanResults(); in startScanAndFindAnyOpenNetworkInResults() 139 List<ScanResult> scanResults = mWifiManager.getScanResults(); in findNetworkInScanResultsResults() 161 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in isConnected()
|
D | BaseTestCase.java | 40 protected WifiManager mWifiManager; field in BaseTestCase 52 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp() 75 mWifiManager = null; in tearDown()
|
D | TestListActivity.java | 43 private WifiManager mWifiManager; field in TestListActivity 49 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onCreate() 50 if (mWifiManager == null) { in onCreate() 111 if (!mWifiManager.isWifiEnabled() || !locationManager.isLocationEnabled()) { in handleItemClick()
|
/cts/tests/tests/location/src/android/location/cts/ |
D | EmergencyCallWifiTest.java | 50 private WifiManager mWifiManager; field in EmergencyCallWifiTest 60 mWifiManager = (WifiManager) mContext.getSystemService(mContext.WIFI_SERVICE); in setUp() 69 mWifiManager.startScan(); in testWifiScan() 99 List <ScanResult> scanResults = mWifiManager.getScanResults(); in onReceive()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ConnectivityConstraintTest.java | 55 private WifiManager mWifiManager; field in ConnectivityConstraintTest 75 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 85 mInitialWiFiState = mWifiManager.isWifiEnabled(); in setUp() 102 if (mWifiManager.isWifiEnabled() != mInitialWiFiState) { in tearDown() 103 setWifiState(mInitialWiFiState, mContext, mCm, mWifiManager); in tearDown() 416 setWifiState(true, mContext, mCm, mWifiManager); in connectToWifi() 424 setWifiState(false, mContext, mCm, mWifiManager); in disconnectFromWifi() 466 if (mHasWifi && mWifiManager.isWifiEnabled()) { in disconnectWifiToConnectToMobile()
|
D | JobThrottlingTest.java | 84 private WifiManager mWifiManager; field in JobThrottlingTest 136 mWifiManager = mContext.getSystemService(WifiManager.class); in setUp() 139 mInitialWiFiState = mWifiManager.isWifiEnabled(); in setUp() 231 setWifiState(true, mContext, mCm, mWifiManager); in testBackgroundConnectivityJobsThrottled() 332 if (mWifiManager.isWifiEnabled() != mInitialWiFiState) { in tearDown() 333 setWifiState(mInitialWiFiState, mContext, mCm, mWifiManager); in tearDown()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/ |
D | NetworkSuggestionTestCase.java | 145 if (mWifiManager.addNetworkSuggestions(mNetworkSuggestions) in executeTest() 154 if (!mWifiManager.startScan()) { in executeTest() 204 if (mWifiManager.removeNetworkSuggestions(mNetworkSuggestions) in executeTest() 244 mWifiManager.removeNetworkSuggestions(new ArrayList<>()); in tearDown()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ |
D | MultiNetworkConnectivityTestActivity.java | 194 private WifiManager mWifiManager; field in MultiNetworkConnectivityTestActivity 202 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onCreate() 222 if (!mWifiManager.isWifiEnabled()) { in recordCurrentWifiState() 225 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in recordCurrentWifiState() 233 mWifiManager.enableNetwork(mRecordedWifiConfiguration, true); in restoreOriginalWifiState() 447 List<WifiConfiguration> availableConfigurations = mWifiManager.getConfiguredNetworks(); in getOrAddLegacyNetwork() 453 int newNetwork = mWifiManager.addNetwork(buildWifiConfiguration()); in getOrAddLegacyNetwork() 458 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in isConnectedToExpectedWifiNetwork() 459 DhcpInfo dhcpInfo = mWifiManager.getDhcpInfo(); in isConnectedToExpectedWifiNetwork()
|
/cts/tests/tests/net/util/java/android/net/cts/util/ |
D | CtsNetUtils.java | 70 private WifiManager mWifiManager; field in CtsNetUtils 76 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in CtsNetUtils() 81 if (mWifiManager.isWifiEnabled()) { in toggleWifi()
|
/cts/tests/tests/net/src/android/net/wifi/aware/cts/ |
D | SingleDeviceTest.java | 76 private WifiManager mWifiManager; field in SingleDeviceTest 366 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 367 assertNotNull("Wi-Fi Manager", mWifiManager); in setUp() 368 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp() 370 if (!mWifiManager.isWifiEnabled()) { in setUp()
|
/cts/tests/app/src/android/app/cts/ |
D | SystemFeaturesTest.java | 82 private WifiManager mWifiManager; field in SystemFeaturesTest 100 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp() 582 boolean enabled = mWifiManager.isWifiEnabled(); in testWifiFeature() 587 assertEquals(!enabled, mWifiManager.isWifiEnabled()); in testWifiFeature()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 140 private WifiManager mWifiManager; field in ConnectivityManagerTest 156 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp() 198 if (mWifiManager.isWifiEnabled()) { in ensureWifiConnected() 544 final boolean previousWifiEnabledState = mWifiManager.isWifiEnabled(); in testRequestNetworkCallback_onUnavailable() 701 final String ssid = unquoteSSID(mWifiManager.getConnectionInfo().getSSID()); in testGetMultipathPreference()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | VpnTest.java | 107 private WifiManager mWifiManager; field in VpnTest 132 mWifiManager = (WifiManager) mActivity.getSystemService(Context.WIFI_SERVICE); in setUp()
|