/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoWifiStatePermissionTest.java | 32 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/ |
D | WifiManagerTest.java | 48 private WifiManager mWifiManager; field in WifiManagerTest 82 if (mWifiManager.getScanResults() != null) { 83 mScanResults = mWifiManager.getScanResults(); 85 mScanResults = mWifiManager.getScanResults(); 133 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 134 assertNotNull(mWifiManager); in setUp() 135 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp() 137 if (!mWifiManager.isWifiEnabled()) in setUp() 140 assertTrue(mWifiManager.isWifiEnabled()); in setUp() 153 if (!mWifiManager.isWifiEnabled()) in tearDown() [all …]
|
D | WifiInfoTest.java | 38 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 …]
|
D | ScanResultTest.java | 36 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 …]
|
D | ConcurrencyTest.java | 35 private WifiManager mWifiManager; field in ConcurrencyTest 76 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 77 assertNotNull(mWifiManager); in setUp() 78 if (mWifiManager.isWifiEnabled()) { in setUp() 79 assertTrue(mWifiManager.setWifiEnabled(false)); in setUp() 82 assertTrue(!mWifiManager.isWifiEnabled()); in setUp() 97 if (mWifiManager.isWifiEnabled()) { in tearDown() 98 assertTrue(mWifiManager.setWifiEnabled(false)); in tearDown() 130 assertTrue(mWifiManager.setWifiEnabled(true)); in testConcurrency()
|
D | WifiEnterpriseConfigTest.java | 29 private WifiManager mWifiManager; field in WifiEnterpriseConfigTest 50 mWifiManager = (WifiManager) mContext in setUp() 52 assertNotNull(mWifiManager); in setUp() 53 mWifiManager.setWifiEnabled(true); in setUp() 56 assertTrue(mWifiManager.isWifiEnabled()); in setUp() 118 int netId = mWifiManager.addNetwork(config); in testAddEapNetwork() 120 mWifiManager.removeNetwork(netId); in testAddEapNetwork() 125 for (final WifiConfiguration w : mWifiManager.getConfiguredNetworks()) { in doesSsidExist()
|
D | WifiConfigurationTest.java | 27 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/ |
D | WifiConfigCreator.java | 48 private final WifiManager mWifiManager; field in WifiConfigCreator 51 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiConfigCreator() 60 if (!mWifiManager.isWifiEnabled()) { in addNetwork() 61 mWifiManager.setWifiEnabled(true); in addNetwork() 66 int netId = mWifiManager.addNetwork(wifiConf); in addNetwork() 69 mWifiManager.enableNetwork(netId, true); in addNetwork() 82 if (!mWifiManager.isWifiEnabled()) { in updateNetwork() 83 mWifiManager.setWifiEnabled(true); in updateNetwork() 92 int newNetId = mWifiManager.updateNetwork(conf); in updateNetwork() 95 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/JobScheduler/src/android/jobscheduler/cts/ |
D | ConnectivityConstraintTest.java | 47 private WifiManager mWifiManager; field in ConnectivityConstraintTest 63 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 73 mInitialWiFiState = mWifiManager.isWifiEnabled(); in setUp() 79 mWifiManager.setWifiEnabled(mInitialWiFiState); in tearDown() 199 if (!mWifiManager.isWifiEnabled()) { in connectToWiFi() 207 assertTrue(mWifiManager.setWifiEnabled(true)); in connectToWiFi() 224 if (mHasWifi && mWifiManager.isWifiEnabled()) { in disconnectWifiToConnectToMobile() 235 assertTrue(mWifiManager.setWifiEnabled(false)); in disconnectWifiToConnectToMobile()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | WifiTest.java | 51 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/tests/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 66 private WifiManager mWifiManager; field in ConnectivityManagerTest 75 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 270 boolean previousWifiEnabledState = mWifiManager.isWifiEnabled(); in testRegisterNetworkCallback() 326 boolean previousWifiEnabledState = mWifiManager.isWifiEnabled(); in testRegisterNetworkCallback_withPendingIntent() 363 assertTrue(mWifiManager.setWifiEnabled(true)); in connectToWifi() 385 assertTrue(mWifiManager.setWifiEnabled(false)); in disconnectFromWifi()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | SystemFeaturesTest.java | 64 private WifiManager mWifiManager; field in SystemFeaturesTest 83 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp() 467 boolean enabled = mWifiManager.isWifiEnabled(); in testWifiFeature() 472 if (mWifiManager.setWifiEnabled(true)) { in testWifiFeature() 477 mWifiManager.setWifiEnabled(false); in testWifiFeature()
|
/cts/tests/tests/netlegacy22/api/src/android/net/cts/legacy/api22/ |
D | ConnectivityManagerLegacyTest.java | 58 private WifiManager mWifiManager; field in ConnectivityManagerLegacyTest 66 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 222 mWifiManager.setWifiEnabled(enabled); in setWifiState()
|